    :root {
      --bg: #eef3f8;
      --bg-2: #e6edf5;
      --surface: #fbfcfe;
      --surface-soft: #f3f6fb;
      --surface-strong: #e8eef7;
      --text: #101828;
      --muted: #586174;
      --border: #d7e0ec;
      --primary: #4456e8;
      --primary-dark: #2f3fd1;
      --secondary: #087f75;
      --tertiary: #9d4064;
      --success: #1b7f3a;
      --warning: #b86e00;
      --danger: #ba1a1a;
      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    }

    body.dark {
      --bg: #0f1520;
      --bg-2: #121b2a;
      --surface: #151d2b;
      --surface-soft: #1b2535;
      --surface-strong: #223044;
      --text: #f4f7fb;
      --muted: #b4bfd1;
      --border: #314158;
      --primary: #9aa8ff;
      --primary-dark: #7f90ff;
      --secondary: #78ddd1;
      --tertiary: #efafc4;
      --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--border) 35%, transparent) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--border) 28%, transparent) 1px, transparent 1px),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 35%, transparent), transparent 46%),
        linear-gradient(135deg, var(--bg), var(--bg-2));
      background-size: 48px 48px, 48px 48px, auto, auto;
      color: var(--text);
      transition: background 0.25s ease, color 0.25s ease;
    }

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

    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .navbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: color-mix(in srgb, var(--bg) 82%, transparent);
      border-bottom: 1px solid var(--border);
    }

    .nav-inner {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 22px;
      letter-spacing: 0;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: grid;
      place-items: center;
      color: white;
      box-shadow: var(--shadow);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-weight: 600;
      font-size: 14px;
    }

    .nav-links a,
    .theme-toggle {
      border: 1px solid transparent;
      border-radius: 14px;
      padding: 11px 16px;
      background: color-mix(in srgb, var(--surface) 74%, transparent);
      color: var(--muted);
      cursor: pointer;
      font: inherit;
    }

    .nav-links a:hover,
    .theme-toggle:hover {
      border-color: var(--border);
      background: var(--surface);
      color: var(--text);
    }

    .hero {
      padding: 74px 0 42px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
      gap: 28px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 12px;
      background: color-mix(in srgb, var(--surface) 86%, transparent);
      border-left: 3px solid var(--primary);
      border-top: 1px solid var(--border);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      color: var(--primary-dark);
      font-weight: 900;
      font-size: 13px;
      margin-bottom: 18px;
    }

    body.dark .eyebrow {
      color: var(--primary);
    }

    h1 {
      margin: 0;
      font-size: clamp(42px, 6vw, 72px);
      line-height: 0.96;
      letter-spacing: 0;
    }

    .hero p {
      margin: 22px 0 0;
      max-width: 620px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.7;
    }

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

    .hero-trust-signals {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
      max-width: 640px;
    }

    .hero-trust-signals span {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 8px 12px;
      border-radius: 12px;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      border: 1px solid var(--border);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.2;
    }

    .hero-trust-signals strong {
      color: var(--text);
      margin-right: 4px;
    }

    .btn {
      border: 0;
      border-radius: 14px;
      padding: 14px 20px;
      cursor: pointer;
      font-weight: 900;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 28%, transparent);
    }

    .btn-primary:hover {
      background: var(--primary-dark);
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn:disabled {
      cursor: not-allowed;
      opacity: 0.62;
      transform: none;
    }

    .hero-panel {
      background: color-mix(in srgb, var(--surface) 94%, transparent);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 18px;
      box-shadow: var(--shadow);
      display: grid;
      gap: 14px;
      overflow: hidden;
      justify-self: end;
      max-width: 520px;
      width: 100%;
    }

    .hero-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .hero-panel-head span {
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    body.dark .hero-panel-head span {
      color: var(--primary);
    }

    .hero-panel-head strong {
      color: var(--text);
      font-size: 16px;
      letter-spacing: 0;
      text-align: right;
    }

    .decision-preview {
      display: grid;
      gap: 12px;
    }

    .decision-preview-phones {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 10px;
      align-items: stretch;
    }

    .decision-phone {
      min-width: 0;
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      border-radius: 18px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      padding: 12px;
    }

    .decision-phone .phone-visual {
      width: 58px;
      height: 84px;
      border-radius: 14px;
      margin: 0;
    }

    .decision-phone h3 {
      margin: 4px 0 5px;
      color: var(--text);
      font-size: 18px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .decision-phone small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.2;
    }

    .decision-phone .brand-meta {
      gap: 5px;
    }

    .decision-vs {
      width: 44px;
      height: 44px;
      border-radius: 16px;
    }

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

    .decision-row {
      min-width: 0;
      display: grid;
      gap: 4px;
      padding: 10px 11px;
      border-radius: 14px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
    }

    .decision-row span,
    .decision-row small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    .decision-row strong {
      color: var(--text);
      font-size: 12px;
      font-weight: 950;
      line-height: 1.2;
    }

    .mini-compare {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .mini-phone {
      min-width: 0;
      border-radius: 18px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      padding: 16px;
      display: grid;
      align-content: space-between;
      gap: 14px;
    }

    .mini-phone-head {
      display: grid;
      grid-template-columns: 78px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .mini-phone-head .phone-visual {
      width: 70px;
      height: 108px;
      margin: 0;
    }

    .mini-phone h3 {
      margin: 5px 0 8px;
      font-size: 22px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .mini-phone p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mini-phone-meta {
      display: grid;
      gap: 8px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .mini-phone-meta strong {
      color: var(--text);
      font-size: 13px;
      line-height: 1.25;
    }

    .phone-visual {
      appearance: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      width: 72px;
      height: 112px;
      border-radius: 14px;
      background: linear-gradient(145deg, #111827, #48566f);
      margin-bottom: 16px;
      position: relative;
      box-shadow: inset 0 0 0 4px rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.16);
    }

    .device-iphone-15 {
      background: linear-gradient(145deg, #1f2937, #94a3b8 52%, #e5e7eb);
    }

    .device-galaxy-s24 {
      background: linear-gradient(145deg, #172554, #2563eb 52%, #93c5fd);
    }

    .device-xiaomi-14 {
      background: linear-gradient(145deg, #431407, #f97316 52%, #fed7aa);
    }

    .device-general-mobile-gm24-pro {
      background: linear-gradient(145deg, #064e3b, #10b981 52%, #bbf7d0);
    }

    .phone-visual::after {
      content: "";
      position: absolute;
      top: 9px;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 5px;
      border-radius: 999px;
      background: rgba(255,255,255,0.35);
    }

    .phone-visual.has-image,
    .big-phone.has-image {
      background: transparent;
      box-shadow: none;
      overflow: hidden;
    }

    .phone-visual.real-image,
    .big-phone.real-image {
      background: color-mix(in srgb, var(--surface) 88%, transparent);
    }

    .phone-visual.mockup-image,
    .big-phone.mockup-image {
      background: transparent;
    }

    .phone-image-trigger {
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .phone-image-trigger:hover {
      transform: translateY(-2px) scale(1.02);
    }

    .phone-visual.has-image::after {
      display: none;
    }

    .phone-visual img,
    .big-phone img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .big-phone.has-image::after {
      display: none;
    }

    .vs {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      background: var(--secondary);
      color: white;
      font-weight: 900;
      box-shadow: var(--shadow);
      transform: rotate(-5deg);
      align-self: center;
    }

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

    .hero-metric {
      display: grid;
      gap: 7px;
      padding: 11px;
      border-radius: 14px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
    }

    .hero-metric span,
    .hero-metric strong {
      font-size: 12px;
      font-weight: 900;
    }

    .hero-metric span {
      color: var(--muted);
    }

    .hero-metric strong {
      color: var(--text);
    }

    .hero-meter {
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--muted) 18%, transparent);
      overflow: hidden;
    }

    .hero-meter i,
    .hero-meter b {
      position: absolute;
      inset: 0 auto 0 0;
      border-radius: inherit;
    }

    .hero-meter i {
      background: var(--primary);
      opacity: 0.82;
    }

    .hero-meter b {
      background: var(--secondary);
      height: 4px;
      top: auto;
      bottom: 0;
    }

    .hero-verdict {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border-radius: 16px;
      background: color-mix(in srgb, var(--secondary) 9%, var(--surface-soft));
      border: 1px solid color-mix(in srgb, var(--secondary) 24%, var(--border));
    }

    .hero-verdict span {
      color: var(--text);
      font-size: 14px;
      font-weight: 850;
      line-height: 1.45;
    }

    .hero-verdict .btn {
      min-height: 42px;
      padding-inline: 16px;
      white-space: nowrap;
    }

    section {
      padding: 38px 0;
    }

    .method-disclosure,
    .archive-disclosure {
      border-top: 1px solid var(--border);
      padding: 24px 0;
    }

    .method-disclosure summary,
    .archive-disclosure summary {
      list-style: none;
      cursor: pointer;
    }

    .method-disclosure summary::-webkit-details-marker,
    .archive-disclosure summary::-webkit-details-marker {
      display: none;
    }

    .method-disclosure summary div,
    .archive-disclosure summary div {
      display: grid;
      gap: 6px;
      position: relative;
      padding-right: 36px;
    }

    .method-disclosure summary div::after,
    .archive-disclosure summary div::after {
      content: "+";
      position: absolute;
      top: 0;
      right: 0;
      color: var(--primary);
      font-size: 24px;
      font-weight: 900;
    }

    .method-disclosure[open] summary div::after,
    .archive-disclosure[open] summary div::after {
      content: "–";
    }

    .method-disclosure summary strong,
    .archive-disclosure summary strong {
      font-size: clamp(24px, 4vw, 34px);
      font-weight: 900;
    }

    .method-disclosure summary span,
    .archive-disclosure summary span {
      color: var(--muted);
      line-height: 1.6;
    }

    .method-disclosure-body,
    .archive-panel {
      margin-top: 18px;
    }

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

    .section-head h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 44px);
      letter-spacing: 0;
    }

    .section-head h2::before {
      content: "";
      display: inline-block;
      width: 28px;
      height: 2px;
      margin-right: 12px;
      vertical-align: middle;
      background: var(--primary);
    }

    .section-head p {
      margin: 8px 0 0;
      color: var(--muted);
      line-height: 1.6;
      max-width: 560px;
    }

    .search-box {
      width: 100%;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      border-radius: 16px;
      padding: 14px 16px;
      outline: none;
      font: inherit;
    }

    .filter-toggle {
      flex: 0 0 auto;
    }

    .filter-scrim {
      position: fixed;
      inset: 0;
      z-index: 30;
      background: color-mix(in srgb, #000 28%, transparent);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    body.filters-open .filter-scrim {
      opacity: 1;
      pointer-events: auto;
    }

    .filter-drawer {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 35;
      width: min(410px, calc(100vw - 28px));
      background: color-mix(in srgb, var(--surface) 94%, transparent);
      border-right: 1px solid var(--border);
      box-shadow: var(--shadow);
      padding: 22px;
      transform: translateX(-105%);
      transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
      overflow-y: auto;
    }

    body.filters-open .filter-drawer {
      transform: translateX(0);
    }

    body.filters-open {
      overflow: hidden;
    }

    .filter-drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

    .filter-drawer-head strong {
      font-size: 24px;
      letter-spacing: 0;
    }

    .drawer-close {
      width: 42px;
      height: 42px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-size: 22px;
      font-weight: 900;
    }

    .filter-panel {
      display: grid;
      gap: 14px;
    }

    .filter-panel label {
      margin: 0;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
    }

    .checkbox-filter {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }

    .checkbox-filter input {
      width: 22px;
      height: 22px;
      accent-color: var(--primary);
    }

    .checkbox-filter span {
      display: grid;
      gap: 3px;
      color: var(--text);
      font-weight: 900;
    }

    .checkbox-filter small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.35;
    }

    .filter-group {
      display: grid;
      gap: 16px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
    }

    .filter-title {
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
    }

    .range-filter {
      display: grid;
      gap: 10px;
    }

    .range-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .range-head output {
      color: var(--text);
      white-space: nowrap;
    }

    .dual-range {
      --range-start: 0%;
      --range-end: 100%;
      position: relative;
      height: 36px;
    }

    .range-track {
      position: absolute;
      left: 0;
      right: 0;
      top: 16px;
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--muted) 18%, transparent);
      overflow: hidden;
    }

    .range-track span {
      position: absolute;
      top: 0;
      bottom: 0;
      left: var(--range-start);
      right: calc(100% - var(--range-end));
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .dual-range input[type="range"] {
      appearance: none;
      position: absolute;
      inset: 0;
      width: 100%;
      height: 36px;
      margin: 0;
      background: transparent;
      pointer-events: none;
    }

    .dual-range input[type="range"]::-webkit-slider-runnable-track {
      height: 8px;
      background: transparent;
    }

    .dual-range input[type="range"]::-moz-range-track {
      height: 8px;
      background: transparent;
    }

    .dual-range input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      width: 20px;
      height: 20px;
      margin-top: -6px;
      border: 3px solid var(--surface);
      border-radius: 999px;
      background: var(--primary);
      box-shadow: 0 4px 12px rgba(16, 24, 40, 0.22);
      cursor: pointer;
      pointer-events: auto;
    }

    .dual-range input[type="range"]::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border: 3px solid var(--surface);
      border-radius: 999px;
      background: var(--primary);
      box-shadow: 0 4px 12px rgba(16, 24, 40, 0.22);
      cursor: pointer;
      pointer-events: auto;
    }

    .phone-results {
      min-width: 0;
    }

    .active-filter-summary {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin: -4px 0 16px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
    }

    .active-filter-summary[hidden] {
      display: none;
    }

    .filter-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-chip {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
      border-radius: 999px;
      background: color-mix(in srgb, var(--primary) 8%, var(--surface));
      color: var(--text);
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 900;
      line-height: 1.2;
    }

    .clear-filter-button {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 8px 12px;
      font-size: 12px;
    }

    .phone-grid-actions {
      display: flex;
      justify-content: center;
      padding-top: 8px;
    }

    .phone-grid-actions.is-hidden {
      display: none;
    }

    .result-note {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      margin: -4px 0 16px;
    }

    .empty-state {
      grid-column: 1 / -1;
      background: var(--surface);
      border: 1px dashed var(--border);
      border-radius: 30px;
      padding: 28px;
      color: var(--muted);
      line-height: 1.7;
    }

    .empty-state strong {
      display: block;
      color: var(--text);
      font-size: 22px;
      letter-spacing: 0;
      margin-bottom: 8px;
    }

    .grid {
      display: grid;
      gap: 18px;
      overflow: visible;
    }

    .phone-grid-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
      align-items: stretch;
    }

    .phone-grid-row .phone-card {
      height: 100%;
    }

    .phone-grid-row.is-detail-row {
      grid-template-columns: minmax(280px, 0.95fr) minmax(0, 3.05fr);
      align-items: start;
      animation: expandedRowReveal 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
      transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
      min-width: 0;
    }

    .card:nth-child(2n) {
      border-radius: var(--radius-lg);
    }

    .card:nth-child(3n) {
      border-radius: var(--radius-lg);
    }

    .card:hover {
      transform: translateY(-3px);
      border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
      box-shadow: 0 18px 34px color-mix(in srgb, var(--text) 10%, transparent);
    }

    .card-top {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      align-items: flex-start;
      justify-content: flex-start;
      gap: 10px;
      margin-bottom: 14px;
    }

    .visual-stack {
      display: grid;
      justify-items: start;
      width: 84px;
    }

    .visual-stack .phone-visual {
      margin-bottom: 0;
    }

    .card-heading {
      min-width: 0;
      display: grid;
      justify-items: start;
      align-content: start;
      text-align: left;
      padding-top: 2px;
    }

    .brand-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      min-width: 0;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      border-radius: 12px;
      padding: 7px 11px;
      background: color-mix(in srgb, var(--primary) 10%, var(--surface-soft));
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .soft-badge,
    .segment-badge {
      background: color-mix(in srgb, var(--secondary) 10%, var(--surface-soft));
    }

    .segment-badge {
      color: var(--secondary);
      border: 1px solid color-mix(in srgb, var(--secondary) 22%, var(--border));
    }

    .visual-stack .segment-badge {
      max-width: 104px;
      justify-content: flex-start;
      line-height: 1.2;
      text-align: left;
      padding: 7px 10px;
    }

    .platform-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      line-height: 1.15;
      white-space: nowrap;
    }

    .platform-icon {
      position: relative;
      display: inline-block;
      flex: 0 0 auto;
      width: 17px;
      height: 17px;
      color: var(--secondary);
    }

    .platform-icon.is-apple {
      color: var(--text);
    }

    .platform-icon.is-apple::before {
      content: "";
      position: absolute;
      left: 3px;
      top: 5px;
      width: 11px;
      height: 11px;
      border-radius: 48% 52% 55% 45%;
      background: currentColor;
    }

    .platform-icon.is-apple::after {
      content: "";
      position: absolute;
      left: 9px;
      top: 1px;
      width: 7px;
      height: 5px;
      border-radius: 7px 2px 7px 2px;
      background: currentColor;
      transform: rotate(-34deg);
    }

    .platform-icon.is-android::before {
      content: "";
      position: absolute;
      left: 3px;
      top: 6px;
      width: 11px;
      height: 9px;
      border-radius: 4px 4px 3px 3px;
      background: currentColor;
      box-shadow: -5px 3px 0 -3px currentColor, 5px 3px 0 -3px currentColor;
    }

    .platform-icon.is-android::after {
      content: "";
      position: absolute;
      left: 3px;
      top: 1px;
      width: 11px;
      height: 8px;
      border-radius: 7px 7px 2px 2px;
      background:
        radial-gradient(circle at 4px 5px, var(--surface) 0 1px, transparent 1.4px),
        radial-gradient(circle at 7px 5px, var(--surface) 0 1px, transparent 1.4px),
        currentColor;
    }

    .card h3 {
      margin: 5px 0 6px;
      font-size: 20px;
      letter-spacing: 0;
      line-height: 1.12;
    }

    .phone-card {
      overflow: visible;
      display: flex;
      flex-direction: column;
      height: auto;
      scroll-margin-top: 96px;
    }

    .brand-link {
      appearance: none;
      border: 0;
      background: transparent;
      color: var(--primary-dark);
      padding: 0;
      font: inherit;
      font-size: 12px;
      line-height: 1.2;
      font-weight: 900;
      text-align: left;
      cursor: pointer;
    }

    body.dark .brand-link {
      color: var(--primary);
    }

    .brand-link:hover {
      color: var(--secondary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .spec-label-link {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      color: inherit;
      cursor: pointer;
      font: inherit;
      border-bottom: 1px dashed color-mix(in srgb, var(--primary) 38%, transparent);
    }

    .spec-label-link:hover {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    .processor-trigger {
      cursor: pointer;
    }

    .processor-value {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      font: inherit;
      color: var(--primary);
      text-align: inherit;
      cursor: pointer;
    }

    .active-phone-card {
      position: relative;
      z-index: 8;
      padding: 20px;
      border-radius: var(--radius-lg);
      border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
      box-shadow: var(--shadow);
      animation: expandedCardReveal 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .active-phone-card:hover {
      transform: none;
      border-radius: var(--radius-lg);
    }

    .row-detail-panel {
      min-width: 0;
      overflow: visible;
      scroll-margin-top: 96px;
      border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
      border-radius: var(--radius-lg);
      background: var(--surface);
      box-shadow: var(--shadow);
      padding: 22px;
      animation: detailSideReveal 0.28s 0.04s both cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .row-detail-panel[data-detail-side="left"] {
      animation-name: detailLeftReveal;
    }

    .row-detail-panel[data-detail-side="below"] {
      grid-column: 1 / -1;
    }

    .row-detail-panel .detail-content h2 {
      font-size: clamp(24px, 3vw, 32px);
    }

    .processor-popover {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: grid;
      place-items: center;
      padding: 22px;
      background: color-mix(in srgb, #101828 34%, transparent);
      backdrop-filter: blur(8px);
    }

    .processor-popover[hidden] {
      display: none;
    }

    body.processor-popover-open {
      overflow: hidden;
    }

    .processor-popover-card {
      position: relative;
      width: min(560px, 100%);
      max-height: min(82vh, 720px);
      overflow: auto;
      border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
      border-radius: 28px;
      background: var(--surface);
      box-shadow: var(--shadow);
      padding: 24px;
      animation: expandedCardReveal 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .processor-close {
      position: absolute;
      top: 16px;
      right: 16px;
    }

    .processor-popover-head {
      padding-right: 48px;
    }

    .processor-popover-head span {
      color: var(--primary);
      font-size: 13px;
      font-weight: 900;
    }

    .processor-popover-head h3 {
      margin: 8px 0;
      font-size: clamp(24px, 4vw, 34px);
      letter-spacing: 0;
    }

    .processor-popover-head p,
    .processor-note p {
      color: var(--muted);
      line-height: 1.7;
      margin: 0;
    }

    .processor-spec-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    .processor-wide {
      grid-column: 1 / -1;
    }

    .processor-note {
      margin-top: 14px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--surface-soft);
      padding: 14px;
    }

    .processor-note strong {
      display: block;
      margin-bottom: 6px;
    }

    .image-gallery-popover {
      position: fixed;
      inset: 0;
      z-index: 62;
      display: grid;
      place-items: center;
      padding: 22px;
      background: color-mix(in srgb, #101828 38%, transparent);
      backdrop-filter: blur(8px);
    }

    .image-gallery-popover[hidden] {
      display: none;
    }

    body.image-gallery-open {
      overflow: hidden;
    }

    .image-gallery-card {
      position: relative;
      width: min(620px, 100%);
      max-height: min(86vh, 780px);
      overflow: auto;
      border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
      border-radius: 30px;
      background: var(--surface);
      box-shadow: var(--shadow);
      padding: 24px;
      animation: expandedCardReveal 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .gallery-close {
      position: absolute;
      top: 16px;
      right: 16px;
    }

    .image-gallery-head {
      padding-right: 48px;
      margin-bottom: 14px;
    }

    .image-gallery-head span {
      color: var(--primary);
      font-size: 13px;
      font-weight: 900;
    }

    .image-gallery-head h3 {
      margin: 6px 0 0;
      font-size: clamp(26px, 4vw, 38px);
      letter-spacing: 0;
    }

    .gallery-phone-view {
      min-height: 360px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 26px;
      background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 44%), var(--surface-soft);
      overflow: hidden;
    }

    .gallery-phone-view img,
    .gallery-phone-view .big-phone {
      width: min(270px, 72%);
      height: min(360px, 58vh);
      object-fit: contain;
      display: block;
    }

    .gallery-phone-view.is-back img,
    .gallery-phone-view.is-back .big-phone {
      transform: rotate(-5deg) scale(0.96);
      filter: saturate(0.92) contrast(1.04);
    }

    .gallery-phone-view.is-side img,
    .gallery-phone-view.is-side .big-phone {
      transform: perspective(700px) rotateY(48deg) scale(0.94);
      filter: brightness(0.96);
    }

    .gallery-caption {
      display: grid;
      gap: 4px;
      margin-top: 14px;
      color: var(--muted);
      line-height: 1.5;
    }

    .gallery-caption strong {
      color: var(--text);
      font-size: 16px;
    }

    .gallery-source {
      margin-top: 10px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.45;
    }

    .gallery-source a {
      color: var(--primary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .gallery-controls {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      margin-top: 16px;
    }

    .gallery-slider-label {
      display: grid;
      gap: 8px;
    }

    .gallery-slider-label span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-align: center;
    }

    .gallery-slider-label input {
      width: 100%;
      accent-color: var(--primary);
    }

    @keyframes expandedCardReveal {
      from {
        opacity: 0.72;
        transform: translateY(8px) scale(0.985);
      }

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

    @keyframes expandedRowReveal {
      from {
        opacity: 0.84;
        transform: translateY(6px);
      }

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

    @keyframes detailSideReveal {
      from {
        opacity: 0;
        transform: translateX(14px);
      }

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

    @keyframes detailLeftReveal {
      from {
        opacity: 0;
        transform: translateX(-14px);
      }

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

    .card p {
      color: var(--muted);
      line-height: 1.55;
      margin: 0 0 16px;
      font-size: 14px;
    }

    .price-strip {
      display: grid;
      gap: 4px;
      margin: 12px 0 14px;
      padding: 12px;
      border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
      border-radius: 18px;
      background: color-mix(in srgb, var(--primary) 7%, var(--surface-soft));
    }

    .price-strip.compact {
      margin: 12px 0;
    }

    .price-strip span,
    .price-strip small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .price-strip strong {
      color: var(--text);
      font-size: 18px;
      letter-spacing: 0;
    }

    .reference-chip {
      display: inline-flex;
      width: fit-content;
      max-width: 100%;
      margin: -4px 0 12px;
      padding: 7px 10px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--secondary) 10%, var(--surface-soft));
      color: var(--secondary);
      border: 1px solid color-mix(in srgb, var(--secondary) 22%, var(--border));
      font-size: 12px;
      font-weight: 900;
      line-height: 1.2;
    }

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin: -4px 0 13px;
    }

    .trust-badge {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.1;
      border: 1px solid var(--border);
      color: var(--muted);
      background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    }

    .trust-badge.is-strong {
      color: var(--secondary);
      border-color: color-mix(in srgb, var(--secondary) 28%, var(--border));
      background: color-mix(in srgb, var(--secondary) 10%, var(--surface));
    }

    .trust-badge.is-medium {
      color: var(--warning);
      border-color: color-mix(in srgb, var(--warning) 30%, var(--border));
      background: color-mix(in srgb, var(--warning) 10%, var(--surface));
    }

    .spec-list {
      display: grid;
      gap: 8px;
      margin: 16px 0;
    }

    .spec-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      color: var(--muted);
      border-top: 1px solid var(--border);
      padding-top: 8px;
    }

    .spec-item strong {
      color: var(--text);
      text-align: right;
    }

    .glossary-term {
      color: var(--primary);
      font-weight: 900;
      text-decoration: none;
      border-bottom: 1px dashed color-mix(in srgb, var(--primary) 54%, transparent);
    }

    .glossary-term:hover {
      color: var(--secondary);
      border-bottom-color: var(--secondary);
    }

    .card-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px;
      margin-top: 10px;
      padding-top: 0;
      width: 100%;
      max-width: 190px;
    }

    .card-heading .btn {
      width: 100%;
      min-height: 36px;
      padding: 9px 11px;
      border-radius: 16px;
      font-size: 12px;
      line-height: 1.15;
    }

    .reference-notice {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 0 0 16px;
      padding: 14px;
      border: 1px solid color-mix(in srgb, var(--secondary) 24%, var(--border));
      border-radius: 18px;
      background: color-mix(in srgb, var(--secondary) 9%, var(--surface-soft));
    }

    .reference-notice div {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .reference-notice strong {
      color: var(--text);
      font-size: 14px;
    }

    .reference-notice span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .compare-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 22px;
      box-shadow: var(--shadow);
    }

    .quick-compare {
      background:
        linear-gradient(135deg,
          color-mix(in srgb, var(--primary) 8%, var(--surface)),
          color-mix(in srgb, var(--secondary) 7%, var(--surface))
        );
      border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
    }

    body.dark .quick-compare {
      background:
        linear-gradient(135deg,
          color-mix(in srgb, var(--primary) 10%, var(--surface)),
          color-mix(in srgb, var(--secondary) 8%, var(--surface))
        );
      border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    }

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

    .compare-selector span {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .compare-remove {
      width: 42px;
      height: 42px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      font-size: 22px;
      font-weight: 900;
    }

    .compare-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 14px;
    }

    .compare-limit-note {
      margin: 10px 0 18px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    label {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    select {
      width: 100%;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text);
      border-radius: 16px;
      padding: 14px;
      outline: none;
      font: inherit;
      font-weight: 700;
    }

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

    .compare-card {
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px;
    }

    .compare-card h3 {
      margin: 0 0 10px;
      font-size: 24px;
      letter-spacing: 0;
    }

    .winner-list {
      margin-top: 16px;
      display: grid;
      gap: 10px;
    }

    .decision-panel {
      margin-bottom: 16px;
      background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary) 16%, var(--surface)),
        color-mix(in srgb, var(--secondary) 14%, var(--surface))
      );
      border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
      border-radius: 34px;
      padding: 20px;
    }

    .decision-panel span {
      display: inline-flex;
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface) 72%, transparent);
      border: 1px solid var(--border);
      color: var(--muted);
      padding: 7px 11px;
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .decision-panel h3 {
      margin: 0 0 8px;
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: 0;
    }

    .decision-panel p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      max-width: 760px;
    }

    .compare-share-button {
      margin-top: 14px;
    }

    .reason-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .better-for {
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 16px;
    }

    .better-for h4 {
      margin: 0 0 8px;
      font-size: 16px;
    }

    .better-for ul {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
    }

    .winner {
      border-radius: 24px;
      padding: 14px 16px;
      background: color-mix(in srgb, var(--secondary) 14%, var(--surface));
      border: 1px solid color-mix(in srgb, var(--secondary) 26%, var(--border));
      color: var(--text);
      line-height: 1.5;
    }

    .method-section {
      padding-top: 18px;
    }

    .method-head {
      margin-bottom: 18px;
    }

    .method-shell {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
      gap: 16px;
      align-items: stretch;
    }

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

    .method-card,
    .ecosystem-note,
    .platform-comparison-note {
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--surface) 90%, transparent);
    }

    .method-card {
      display: grid;
      gap: 8px;
      border-radius: 24px;
      padding: 16px;
    }

    .method-card span,
    .ecosystem-note span {
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }

    body.dark .method-card span,
    body.dark .ecosystem-note span {
      color: var(--primary);
    }

    .ecosystem-note span {
      text-transform: none;
    }

    .method-card p,
    .ecosystem-note p,
    .platform-comparison-note p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
    }

    .method-card p {
      font-size: 14px;
    }

    .ecosystem-note {
      display: grid;
      align-content: start;
      gap: 10px;
      border-radius: 28px;
      padding: 20px;
      background:
        linear-gradient(135deg,
          color-mix(in srgb, var(--primary) 12%, var(--surface)),
          color-mix(in srgb, var(--secondary) 11%, var(--surface))
        );
    }

    .ecosystem-note h3 {
      margin: 0;
      font-size: 24px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .platform-comparison-note {
      display: grid;
      gap: 6px;
      margin-bottom: 16px;
      border-radius: 24px;
      padding: 14px 16px;
      background: color-mix(in srgb, var(--primary) 8%, var(--surface));
      border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
    }

    .platform-comparison-note strong {
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
    }

    .platform-comparison-note p {
      font-size: 14px;
    }

    .weight-panel {
      display: grid;
      gap: 14px;
      margin-top: 16px;
      border: 1px solid var(--border);
      border-radius: 28px;
      background: color-mix(in srgb, var(--surface) 90%, transparent);
      padding: 18px;
    }

    .weight-panel-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 14px;
    }

    .weight-panel-head span {
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }

    body.dark .weight-panel-head span {
      color: var(--primary);
    }

    .weight-panel-head strong {
      color: var(--text);
      font-size: 18px;
      letter-spacing: 0;
    }

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

    .weight-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 12px;
      border-radius: 18px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
    }

    .weight-item span,
    .weight-item strong {
      font-size: 12px;
      font-weight: 950;
    }

    .weight-item span {
      color: var(--muted);
    }

    .weight-item strong {
      color: var(--text);
    }

    .weight-item i {
      grid-column: 1 / -1;
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--muted) 18%, transparent);
      overflow: hidden;
    }

    .weight-item i::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: var(--weight);
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .weight-panel p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .scenario-section {
      padding-top: 28px;
    }

    .scenario-shell {
      display: grid;
      gap: 16px;
    }

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

    .scenario-controls,
    .archive-controls {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .scenario-controls label,
    .archive-controls label {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      background: color-mix(in srgb, var(--surface) 86%, transparent);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 12px;
    }

    .scenario-controls select,
    .archive-controls select,
    .archive-controls input {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--surface);
      color: var(--text);
      padding: 11px 12px;
      font: inherit;
      outline: none;
    }

    .scenario-tab {
      appearance: none;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      padding: 14px;
      text-align: left;
      display: grid;
      gap: 5px;
      min-height: 82px;
      transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

    .scenario-tab:hover,
    .scenario-tab.is-active {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--scenario-accent, var(--primary)) 48%, var(--border));
      box-shadow: 0 12px 26px color-mix(in srgb, var(--scenario-accent, var(--primary)) 16%, transparent);
      background: color-mix(in srgb, var(--scenario-accent, var(--primary)) 11%, var(--surface));
    }

    .scenario-tab span {
      font-size: 16px;
      font-weight: 950;
      letter-spacing: 0;
    }

    .scenario-tab small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
    }

    .scenario-tab.is-primary,
    .scenario-summary.is-primary {
      --scenario-accent: var(--primary);
    }

    .scenario-tab.is-secondary,
    .scenario-summary.is-secondary {
      --scenario-accent: var(--secondary);
    }

    .scenario-tab.is-tertiary,
    .scenario-summary.is-tertiary {
      --scenario-accent: var(--tertiary);
    }

    .scenario-tab.is-warning,
    .scenario-summary.is-warning {
      --scenario-accent: var(--warning);
    }

    body.dark .scenario-tab {
      background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
      border-color: color-mix(in srgb, var(--border) 82%, transparent);
    }

    body.dark .scenario-tab:hover,
    body.dark .scenario-tab.is-active {
      background: color-mix(in srgb, var(--scenario-accent, var(--primary)) 16%, var(--surface));
      border-color: color-mix(in srgb, var(--scenario-accent, var(--primary)) 56%, var(--border));
      box-shadow: 0 14px 34px color-mix(in srgb, var(--scenario-accent, var(--primary)) 13%, transparent);
    }

    .scenario-result {
      display: grid;
      gap: 14px;
    }

    .scenario-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      border: 1px solid color-mix(in srgb, var(--scenario-accent, var(--primary)) 24%, var(--border));
      border-radius: var(--radius-lg);
      background:
        linear-gradient(135deg,
          color-mix(in srgb, var(--scenario-accent, var(--primary)) 12%, var(--surface)),
          color-mix(in srgb, var(--surface) 94%, transparent)
        );
      padding: 18px;
      box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
    }

    body.dark .scenario-summary {
      background:
        linear-gradient(135deg,
          color-mix(in srgb, var(--scenario-accent, var(--primary)) 16%, var(--surface)),
          color-mix(in srgb, var(--surface-soft) 72%, var(--surface))
        );
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    }

    .scenario-summary span {
      color: var(--scenario-accent, var(--primary));
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }

    .scenario-summary h3 {
      margin: 4px 0 6px;
      font-size: clamp(26px, 4vw, 38px);
      letter-spacing: 0;
    }

    .scenario-summary p {
      margin: 0;
      max-width: 680px;
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
    }

    .scenario-summary small {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .scenario-summary .btn {
      white-space: nowrap;
      background: color-mix(in srgb, var(--surface) 82%, transparent);
    }

    body.dark .scenario-summary .btn {
      background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    }

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

    .scenario-phone {
      position: relative;
      min-width: 0;
      display: grid;
      gap: 13px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface);
      padding: 16px;
      box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
    }

    body.dark .scenario-phone {
      background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface));
      border-color: color-mix(in srgb, var(--border) 84%, transparent);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    }

    .scenario-rank {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: color-mix(in srgb, var(--primary) 12%, var(--surface-soft));
      color: var(--primary-dark);
      font-weight: 950;
      font-size: 13px;
    }

    body.dark .scenario-rank {
      color: var(--primary);
      background: color-mix(in srgb, var(--primary) 16%, var(--surface));
    }

    .scenario-phone-head {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding-right: 28px;
    }

    .scenario-phone-head .phone-visual {
      width: 76px;
      height: 118px;
      margin: 0;
    }

    .scenario-phone h3 {
      margin: 5px 0 7px;
      font-size: 22px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .scenario-phone p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .scenario-score-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .scenario-score-row strong {
      color: var(--text);
      font-size: 18px;
    }

    .scenario-meter {
      height: 9px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--muted) 18%, transparent);
      overflow: hidden;
    }

    .scenario-meter i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .scenario-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .scenario-actions .btn {
      min-height: 38px;
      padding: 9px 11px;
      border-radius: 16px;
      font-size: 12px;
      line-height: 1.15;
    }

    .archive-section {
      padding-top: 28px;
    }

    .archive-panel {
      display: grid;
      gap: 14px;
    }

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

    .archive-card {
      display: grid;
      gap: 12px;
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface);
      padding: 14px;
      box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
    }

    .archive-card-head {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }

    .archive-card-head .phone-visual {
      width: 64px;
      height: 94px;
      margin: 0;
    }

    .archive-card h3 {
      margin: 5px 0 4px;
      font-size: 18px;
      line-height: 1.1;
      letter-spacing: 0;
    }

    .archive-card p,
    .archive-muted {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: 13px;
      font-weight: 750;
    }

    .detail-panel {
      margin-top: 18px;
      display: none;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 24px;
      box-shadow: var(--shadow);
    }

    .detail-panel.active {
      display: block;
    }

    .detail-layout {
      display: grid;
      grid-template-columns: 0.75fr 1.25fr;
      gap: 22px;
      align-items: start;
    }

    .detail-hero {
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 26px;
      padding: 22px;
      min-height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .big-phone {
      appearance: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      width: 130px;
      height: 210px;
      border-radius: 34px;
      background: linear-gradient(145deg, #0f172a, #64748b);
      box-shadow: inset 0 0 0 6px rgba(255,255,255,0.08), 0 22px 44px rgba(0,0,0,0.18);
      position: relative;
    }

    .big-phone::after {
      content: "";
      position: absolute;
      top: 14px;
      left: 50%;
      transform: translateX(-50%);
      width: 38px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255,255,255,0.32);
    }

    .detail-content h2 {
      margin: 0 0 8px;
      font-size: 38px;
      letter-spacing: 0;
    }

    .detail-content p {
      color: var(--muted);
      line-height: 1.7;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    .info-box {
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 14px;
    }

    .info-box span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .info-box strong {
      font-size: 15px;
    }

    .price-panel {
      margin-top: 18px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      padding: 16px;
    }

    .price-panel-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 14px;
    }

    .price-panel-head h4 {
      margin: 0 0 6px;
      font-size: 18px;
      letter-spacing: 0;
    }

    .price-panel-head p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .price-panel-head > span {
      white-space: nowrap;
      border-radius: 999px;
      background: color-mix(in srgb, var(--secondary) 12%, var(--surface-soft));
      color: var(--muted);
      border: 1px solid var(--border);
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 900;
    }

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

    .price-row {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr 1.2fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 13px;
    }

    .price-row strong {
      color: var(--text);
      font-size: 15px;
    }

    .price-head {
      background: transparent;
      border-style: dashed;
      font-weight: 900;
    }

    .price-link {
      justify-self: end;
      color: var(--primary);
      font-weight: 900;
      text-decoration: none;
      white-space: nowrap;
    }

    .price-link.muted {
      color: var(--muted);
    }

    .price-empty {
      border: 1px dashed var(--border);
      border-radius: 18px;
      padding: 14px;
      color: var(--muted);
      background: var(--surface-soft);
      line-height: 1.6;
      font-size: 14px;
    }

    .pros-cons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 18px;
    }

    .score-strip {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-top: 18px;
    }

    .score-card {
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 13px;
    }

    .score-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .score-card strong {
      display: block;
      font-size: 24px;
      letter-spacing: 0;
      margin-bottom: 8px;
    }

    .score-meter {
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--muted) 18%, transparent);
      overflow: hidden;
    }

    .score-meter i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .insight-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 18px;
    }

    .insight-box {
      background: color-mix(in srgb, var(--tertiary) 10%, var(--surface-soft));
      border: 1px solid color-mix(in srgb, var(--tertiary) 22%, var(--border));
      border-radius: 26px;
      padding: 16px;
    }

    .insight-box h4 {
      margin: 0 0 8px;
      font-size: 15px;
    }

    .insight-box p,
    .insight-box li {
      color: var(--muted);
      line-height: 1.65;
      font-size: 14px;
    }

    .insight-box ul {
      margin: 8px 0 0;
      padding-left: 18px;
    }

    .meaning-list {
      display: grid;
      gap: 10px;
      margin-top: 18px;
    }

    .meaning-row {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 14px;
      align-items: start;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
    }

    .meaning-row strong {
      font-size: 14px;
    }

    .meaning-row span {
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
    }

    .detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .pros-cons ul {
      margin: 8px 0 0;
      padding-left: 18px;
      color: var(--muted);
      line-height: 1.7;
    }

    .footer {
      padding: 40px 0 56px;
      color: var(--muted);
      text-align: center;
    }

    .not-found-page {
      min-height: 100vh;
      display: grid;
      place-items: center;
    }

    .not-found-shell {
      max-width: 560px;
      text-align: center;
      display: grid;
      justify-items: center;
      gap: 14px;
    }

    .not-found-shell span {
      color: var(--primary);
      font-size: 14px;
      font-weight: 950;
    }

    .not-found-shell h1 {
      font-size: clamp(36px, 6vw, 60px);
    }

    .not-found-shell p {
      margin: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.6;
    }

    .compare-tray {
      position: fixed;
      left: 50%;
      bottom: 18px;
      z-index: 50;
      width: min(720px, calc(100% - 32px));
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
      border-radius: 24px;
      background: color-mix(in srgb, var(--surface) 92%, transparent);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
      padding: 12px 14px;
      transform: translate(-50%, calc(100% + 34px));
      opacity: 0;
      pointer-events: none;
      transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .section-rail {
      position: fixed;
      top: 50%;
      right: 18px;
      z-index: 24;
      display: grid;
      gap: 10px;
      width: 182px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--surface) 92%, transparent);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      transform: translateY(-50%) translateX(calc(100% + 28px));
      opacity: 0;
      pointer-events: none;
      transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
    }

    .section-rail.is-visible {
      transform: translateY(-50%);
      opacity: 1;
      pointer-events: auto;
    }

    .section-rail nav {
      display: grid;
      gap: 2px;
    }

    .section-rail a {
      display: flex;
      align-items: center;
      min-height: 40px;
      border-radius: 12px;
      padding: 0 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.2;
    }

    .section-rail a:hover,
    .section-rail a.is-active {
      color: var(--text);
      background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    }

    .section-rail-toggle {
      width: 38px;
      height: 38px;
      justify-self: end;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface-soft);
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-size: 18px;
      font-weight: 900;
    }

    .section-rail.is-collapsed {
      width: 62px;
    }

    .section-rail.is-collapsed nav {
      display: none;
    }

    .compare-tray.is-visible {
      transform: translate(-50%, 0);
      opacity: 1;
      pointer-events: auto;
    }

    .compare-tray span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 2px;
    }

    .compare-tray strong {
      display: block;
      color: var(--text);
      font-size: 15px;
      line-height: 1.25;
    }

    .compare-tray-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .compare-tray .btn {
      min-height: 38px;
      padding: 9px 13px;
      font-size: 12px;
    }

    .detail-status {
      position: fixed;
      top: 88px;
      right: 24px;
      z-index: 28;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 48px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 8px 10px 8px 14px;
      border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface) 90%, transparent);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px);
    }

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

    .detail-status span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .detail-status strong {
      min-width: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .detail-status-close {
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--text);
      padding: 8px 11px;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .glossary-hero {
      min-height: 280px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      padding: 72px 0 28px;
      border-bottom: 1px solid var(--border);
    }

    .glossary-hero h1 {
      margin: 0 0 12px;
      max-width: 760px;
      font-size: clamp(42px, 7vw, 76px);
      line-height: 0.96;
      letter-spacing: 0;
    }

    .glossary-hero p {
      margin: 0;
      max-width: 720px;
      color: var(--muted);
      line-height: 1.7;
      font-size: 18px;
    }

    .glossary-filter {
      grid-template-columns: 1.4fr 0.6fr;
    }

    .glossary-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .glossary-card {
      scroll-margin-top: 96px;
      background: color-mix(in srgb, var(--surface) 92%, transparent);
      border: 1px solid var(--border);
      border-radius: 28px;
      padding: 18px;
      box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
    }

    .glossary-card:target {
      border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
    }

    .glossary-card h2 {
      margin: 12px 0 8px;
      font-size: 28px;
      letter-spacing: 0;
    }

    .glossary-card p {
      margin: 0 0 14px;
      color: var(--muted);
      line-height: 1.6;
    }

    .glossary-detail {
      color: var(--text);
      line-height: 1.7;
      font-size: 14px;
      border-top: 1px solid var(--border);
      padding-top: 14px;
    }

    @media (max-width: 920px) {
      .hero,
      .detail-layout,
      .method-shell {
        grid-template-columns: 1fr;
      }

      .hero-panel {
        justify-self: stretch;
        max-width: none;
      }

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

      .phone-grid-row.is-detail-row {
        grid-template-columns: 1fr;
      }

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

      .scenario-tabs,
      .scenario-grid,
      .scenario-controls,
      .archive-controls,
      .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .glossary-hero {
        align-items: flex-start;
        flex-direction: column;
      }

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

      .section-rail {
        right: 12px;
        width: 152px;
      }

      .compare-selector-list,
      .comparison,
      .score-strip,
      .insight-grid,
      .reason-grid,
      .price-row {
        grid-template-columns: 1fr;
      }

      .scenario-summary {
        align-items: flex-start;
        flex-direction: column;
      }

      .price-link {
        justify-self: start;
      }
    }

    @media (max-width: 620px) {
      .nav-inner,
      .section-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
      }

      .hero {
        padding-top: 44px;
      }

      .mini-compare,
      .decision-preview-phones,
      .decision-list,
      .method-grid,
      .phone-grid-row,
      .weight-grid,
      .scenario-tabs,
      .scenario-grid,
      .scenario-controls,
      .archive-controls,
      .archive-grid,
      .glossary-grid,
      .glossary-filter,
      .info-grid,
      .processor-spec-grid,
      .hero-metrics,
      .hero-verdict,
      .gallery-controls,
      .pros-cons,
      .meaning-row {
        grid-template-columns: 1fr;
      }

      .active-filter-summary {
        flex-direction: column;
      }

      .weight-panel-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .vs {
        margin: 0 auto;
      }

      .reference-notice {
        align-items: flex-start;
        flex-direction: column;
      }

      .scenario-phone-head,
      .scenario-actions {
        grid-template-columns: 1fr;
      }

      .scenario-phone-head {
        padding-right: 0;
      }

      .scenario-summary .btn {
        width: 100%;
      }

      .compare-tray {
        grid-template-columns: 1fr;
      }

      .detail-status {
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        justify-content: space-between;
      }

      body.compare-tray-visible .detail-status {
        bottom: 104px;
      }

      .section-rail {
        top: auto;
        right: 16px;
        bottom: 18px;
        transform: translateX(calc(100% + 28px));
      }

      .section-rail.is-visible {
        transform: none;
      }

      .compare-tray-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }
    }
