/* Version 14
   Refactored from Version 12.
   Design is preserved; structure and assets were separated for maintainability.

   File layout:
   - assets/css/main.css
   - assets/js/main.js
   - assets/images/*
*/

:root {
      --green: #01875f;
      --accent: #01875f;
      --accent-strong: #0f9d58;
      --accent-soft: rgba(1, 135, 95, .08);
      --accent-soft-border: rgba(1, 135, 95, .24);
      --surface: #ffffff;
      --surface-elevated: #ffffff;
      --icon-color: var(--muted);
      --icon-active: #01875f;
      --button-text-on-accent: #ffffff;
      --track-soft: #e6f4ea;
      --bar-track: #e0e0e0;
      --green-dark: #0f9d58;
      --button-muted-text: #0b3d20;
      --text: #202124;
      --muted: #5f6368;
      --line: #e0e0e0;
      --bg: #f1f3f4;
      --page-x: clamp(14px, 4vw, 18px);
      --page-top: clamp(18px, 4.8vw, 24px);
      --frame-width: 430px;
      --card-radius: 20px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      min-height: 100%;
    }

    body {
      margin: 0;
      min-height: 100dvh;
      background: var(--bg);
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
    }

    img {
      max-width: 100%;
    }

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

    .viewport {
      min-height: 100dvh;
      display: flex;
      justify-content: center;
      padding: 0;
    }

    .phone {
      width: min(100%, var(--frame-width));
      background: var(--surface);
      min-height: 100dvh;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, .03);
    }

    .page {
      padding: var(--page-top) var(--page-x) calc(108px + env(safe-area-inset-bottom));
    }
    .top {
      display: grid;
      grid-template-columns: minmax(0, auto) minmax(0, 1fr);
      gap: clamp(12px, 4vw, 16px);
      align-items: start;
    }

    .app-icon {
      width: clamp(74px, 22vw, 84px);
      height: clamp(74px, 22vw, 84px);
      border-radius: 20px;
      overflow: hidden;
      background: var(--surface);
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
      flex-shrink: 0;
    }

    .app-icon img,
    .shot-card img,
    .avatar img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    h1 {
      margin: 0;
      font-size: clamp(22px, 5.6vw, 23px);
      line-height: 1.15;
      font-weight: 600;
      letter-spacing: -.2px;
      word-break: break-word;
    }

    .publisher {
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent);
      font-size: clamp(13px, 3.8vw, 14px);
      font-weight: 600;
      flex-wrap: wrap;
    }

    .verified-badge {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      color: var(--accent);
      transform: translateY(1px);
    }

    .verified-badge svg {
      width: 17px;
      height: 17px;
      display: block;
      shape-rendering: geometricPrecision;
      transform: translateZ(0);
    }

    .meta {
      margin-top: 14px;
      color: var(--muted);
      font-size: clamp(13px, 3.8vw, 14px);
    }

    .stats {
      margin-top: 22px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: start;
      gap: 0;
      text-align: center;
    }

    .stat {
      padding: 0 clamp(4px, 1.5vw, 8px);
      border-right: 1px solid var(--line);
      min-width: 0;
    }

    .stat:last-child {
      border-right: 0;
    }

    .stat .value {
      font-size: clamp(14px, 3.8vw, 15px);
      font-weight: 700;
      white-space: nowrap;
      line-height: 1.2;
      min-height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .stat .label {
      margin-top: 8px;
      color: var(--muted);
      font-size: clamp(11px, 3vw, 12px);
      line-height: 1.25;
    }

    .tiny-info {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 13px;
      height: 13px;
      margin-left: 2px;
      vertical-align: middle;
      transform: translateY(-1px);
      color: #676d76;
      flex: 0 0 auto;
    }

    .tiny-info svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .metric-svg,
    .metric-age,
    .metric-star {
      width: 26px;
      height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .metric-svg svg,
    .metric-star svg {
      width: 26px;
      height: 26px;
      display: block;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.88;
      stroke-linecap: round;
      stroke-linejoin: round;
      shape-rendering: geometricPrecision;
      vector-effect: non-scaling-stroke;
      transform: translateZ(0);
    }

        .metric-star {
      width: 14px;
      height: 14px;
      margin-left: 1px;
      transform: translateY(-1px);
      color: #202124;
    }

    .metric-star svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
      stroke: none;
    }

    .metric-age {
      width: 31px;
      height: 31px;
      color: var(--icon-color);
      line-height: 1;
    }

    .metric-age svg {
      width: 31px;
      height: 31px;
      display: block;
      shape-rendering: geometricPrecision;
      transform: translateZ(0);
    }

    .install {
      margin-top: 20px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 52px;
      background: var(--green);
      color: #fff;
      border-radius: 6px;
      overflow: hidden;
      font-size: clamp(16px, 4.2vw, 17px);
      font-weight: 700;
      text-align: center;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    }

    .install div {
      padding: 14px 12px;
    }

    .install .caret {
      border-left: 1px solid rgba(0, 0, 0, .25);
      font-size: 18px;
    }

    .install-note {
      text-align: center;
      color: #7a7a7a;
      font-size: clamp(13px, 3.8vw, 14px);
      margin-top: 12px;
      line-height: 1.45;
    }
    .gallery {
      margin-top: 18px;
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      padding: 2px 0 6px;
      scrollbar-width: none;
      overscroll-behavior-x: contain;
    }

    .gallery::-webkit-scrollbar {
      display: none;
    }

    .shot-card {
      flex: 0 0 calc((100% - 16px) / 3);
      width: calc((100% - 16px) / 3);
      aspect-ratio: 946 / 2048;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .08);
      background: #f3f4f7;
      scroll-snap-align: start;
      border: 1px solid rgba(60,64,67,.08);
    }

    .section {
      padding-top: 18px;
    }

    .heading {
      font-size: clamp(17px, 4.5vw, 18px);
      font-weight: 500;
      margin: 0 0 18px;
    }

    .body-copy {
      font-size: clamp(14px, 3.9vw, 15px);
      line-height: 1.7;
      color: #35363a;
      overflow-wrap: anywhere;
    }

    .body-copy p {
      margin: 0 0 18px;
    }

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

    .divider {
      height: 1px;
      background: var(--line);
      margin: 22px calc(var(--page-x) * -1);
    }

    .subheading {
      font-size: clamp(16px, 4.2vw, 17px);
      font-weight: 500;
      margin: 26px 0 10px;
      color: #2f3133;
    }

    ul.copy-list {
      padding-left: 0;
      margin: 10px 0 0;
      list-style: none;
    }

    ul.copy-list li {
      margin: 6px 0;
      line-height: 1.7;
      overflow-wrap: anywhere;
    }

    .toggle-link,
    .green-link {
      border: 0;
      background: transparent;
      color: var(--accent);
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      padding: 0;
      cursor: pointer;
      min-height: 24px;
    }

    .center-link {
      width: 100%;
      text-align: center;
      margin: 24px 0 8px;
    }

    .center-link .toggle-link {
      margin: 0 auto;
    }

    .description-preview {
      position: relative;
      max-height: 7.25em;
      overflow: hidden;
    }

    .description-preview::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3.25em;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .62) 42%, #fff 100%);
      pointer-events: none;
    }

    .description-block.is-expanded .description-preview {
      max-height: none;
      overflow: visible;
    }

    .description-block.is-expanded .description-preview::after {
      display: none;
    }

    .description-extra[hidden],
    .reviews-extra[hidden] {
      display: none !important;
    }

    .safety-grid {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 14px;
      margin-top: 14px;
    }

    .safety-item {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 8px 0;
      color: #3a3b3d;
      font-size: clamp(14px, 3.9vw, 15px);
      line-height: 1.45;
    }

    .safety-icon {
      width: 21px;
      height: 21px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--icon-color);
      transform: translateZ(0);
      flex: 0 0 auto;
    }

    .safety-icon svg {
      width: 21px;
      height: 21px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      shape-rendering: geometricPrecision;
      vector-effect: non-scaling-stroke;
      stroke-miterlimit: 10;
      transform: translateZ(0);
    }

        .ratings-note {
      color: #6f7277;
      font-size: 13px;
      line-height: 1.55;
      margin-bottom: 18px;
    }

    .ratings-grid {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .rating-main {
      text-align: left;
    }

    .rating-main .num {
      font-size: clamp(56px, 15vw, 68px);
      line-height: .9;
      font-weight: 400;
      letter-spacing: -2px;
    }

    .rating-main .stars {
      color: var(--accent);
      letter-spacing: 1px;
      font-size: clamp(18px, 4.8vw, 19px);
      margin-top: 10px;
    }

    .rating-main .stars .dim {
      color: #9aa0a6;
    }

    .rating-main .count {
      color: #6f7277;
      font-size: 12px;
      margin-top: 6px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: 12px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      margin: 7px 0;
      font-size: 12px;
      color: #6f7277;
    }

    .bar {
      height: 11px;
      background: var(--bar-track);
      border-radius: 999px;
      overflow: hidden;
    }

    .bar > span {
      display: block;
      height: 100%;
      background: var(--accent);
      border-radius: 999px;
    }

    .review {
      padding: 22px 0 4px;
    }

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

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      background: #dfe3e8;
    }

    .reviewer {
      font-size: 14px;
      font-weight: 500;
      color: #313236;
      overflow-wrap: anywhere;
    }

    .review-meta {
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #7a7d81;
      font-size: 13px;
      flex-wrap: wrap;
    }

    .review-stars {
      color: var(--accent);
      font-size: 13px;
      letter-spacing: 1px;
    }

    .review-text {
      margin: 16px 0 14px 0;
      font-size: clamp(14px, 3.9vw, 15px);
      line-height: 1.65;
      color: #2e2f32;
      overflow-wrap: anywhere;
    }

    .review-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: #7a7d81;
      font-size: 13px;
    }

    .helpful {
      line-height: 1.55;
      min-width: 0;
    }

    .btns {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      flex-shrink: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .btn {
      border: 1px solid #dadce0;
      background: var(--surface);
      color: var(--muted);
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      min-height: 40px;
      cursor: pointer;
      transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .btn:hover {
      border-color: #c4c7cc;
      background: #fafafb;
    }

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

    .btn.is-active-yes {
      border-color: var(--accent-soft-border);
      background: var(--accent-soft);
      color: var(--accent);
      box-shadow: inset 0 0 0 1px var(--accent-soft-border);
    }

    .btn.is-active-no {
      border-color: rgba(95, 99, 104, .22);
      background: rgba(95, 99, 104, .08);
      color: #444b52;
    }

    .news-card,
    .info-list {
      border-top: 1px solid var(--line);
      padding-top: 18px;
    }

    .news-text {
      font-size: clamp(14px, 3.9vw, 15px);
      color: #3a3b3d;
      line-height: 1.6;
      margin-top: 14px;
    }

    .info-grid {
      margin-top: 16px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 22px;
    }

    .info-row {
      display: grid;
      gap: 6px;
    }

    .info-row .k {
      font-size: clamp(15px, 4vw, 16px);
      font-weight: 600;
      color: #313236;
    }

    .info-row .v {
      font-size: clamp(14px, 3.9vw, 15px);
      color: #6f7277;
    }

    .bottom-fade {
      height: 22px;
      margin: 28px calc(var(--page-x) * -1) calc(-108px - env(safe-area-inset-bottom));
      background: #efefef;
    }

    .bottom-nav-wrap {
      position: fixed;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      width: min(100%, var(--frame-width));
      z-index: 50;
      pointer-events: none;
    }

    .bottom-nav {
      pointer-events: auto;
      background: color-mix(in srgb, var(--surface) 98%, transparent);
      border-top: 1px solid rgba(60, 64, 67, .1);
      padding: 9px clamp(12px, 4vw, 18px) calc(11px + env(safe-area-inset-bottom));
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: clamp(4px, 1vw, 8px);
      align-items: center;
      justify-items: center;
      color: var(--icon-color);
      box-shadow: 0 -10px 26px rgba(15, 23, 42, .08);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .nav-item {
      width: 100%;
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: inherit;
      border-radius: 16px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
      position: relative;
    }

    .nav-item.active {
      color: inherit;
      background: transparent;
      box-shadow: none;
    }

    .icon-wrap {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      transform: translateZ(0);
    }

    .bottom-nav svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.88;
      stroke-linecap: round;
      stroke-linejoin: round;
      shape-rendering: geometricPrecision;
      vector-effect: non-scaling-stroke;
      transform: translateZ(0);
    }

        @media (max-width: 359px) {
      .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
      }

      .stat {
        border-right: 1px solid var(--line);
      }

      .stat:nth-child(2),
      .stat:nth-child(4) {
        border-right: 0;
      }

      .stat:nth-child(-n + 2) {
        padding-bottom: 8px;
      }

      .review-foot {
        flex-direction: column;
        align-items: flex-start;
      }

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

      .ratings-grid {
        grid-template-columns: 96px minmax(0, 1fr);
      }
    }

    @media (min-width: 480px) {
      .phone {
        min-height: 100dvh;
      }

      .page {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
      }

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

    @media (min-width: 768px) {
      body {
        background: linear-gradient(90deg, #eceff1 0%, #f4f6f8 50%, #eceff1 100%);
      }

      .viewport {
        padding: 0 24px;
      }

      .phone {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .03), 0 12px 32px rgba(15, 23, 42, .08);
      }

      .bottom-nav-wrap {
        width: min(calc(100vw - 48px), var(--frame-width));
      }
    }


/* Semantic helpers introduced in Version 14 */
.site-shell {}
.app-frame {}
.app-page {}
.app-hero {}
.app-section {}
.app-section--description {}
.app-section--safety {}
.app-section--reviews {}
.app-section--news {}
.app-section--details {}
.hero-card {}
.metrics-grid {}
.install-cta {}
.media-gallery {}
.review-card {}
.review-card__head {}
.review-card__footer {}
.review-card__actions {}
.details-grid {}
.section-divider {}
.page-fade {}
.site-footer {}

/* Accessibility and semantics */
.bottom-nav[aria-label],
nav[aria-label] {}

/* Version 17 install UI refresh */
.install-shell {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.install-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: none;
  transition: background-color .18s ease, transform .12s ease, opacity .18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.install-button:hover {
  background: #017452;
  box-shadow: none;
}

.install-button:active {
  transform: scale(.995);
  background: #016a4b;
}

.install-button:disabled {
  opacity: 1;
}

.install-button__text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.install-progress-card {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(60, 64, 67, .08), 0 6px 18px rgba(32, 33, 36, .06);
}

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

.install-progress-card__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.install-progress-card__icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.install-progress-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.install-progress-card__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.install-progress-card__ring-track,
.install-progress-card__ring-progress {
  fill: none;
  stroke-width: 3.5;
}

.install-progress-card__ring-track {
  stroke: color-mix(in srgb, var(--accent) 18%, transparent);
}

.install-progress-card__ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset .18s linear;
}

.install-progress-card__body {
  min-width: 0;
}

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

.install-progress-card__status {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.install-progress-card__percent {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.install-progress-card__label {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.install-progress-card__bar {
  margin-top: 10px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--track-soft);
  overflow: hidden;
}

.install-progress-card__bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width .18s linear;
}

.install-button.is-open-state {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.install-button.is-installing-state {
  background: #0b7d55;
  cursor: progress;
}

.install-button.is-waiting-state {
  background: var(--accent);
}

.install-button.is-ready-state {
  background: var(--accent);
}

.install-button[hidden] {
  display: none !important;
}

.nav-button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
}

.nav-button:focus-visible,
.install-button:focus-visible,
.toggle-link:focus-visible,
.vote-button:focus-visible {
  outline: 2px solid rgba(11, 125, 85, .45);
  outline-offset: 3px;
}

.app-launch-page {
  background: #f1f3f4;
}

.launch-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom));
}

.launch-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.08);
  text-align: center;
}

.launch-card__mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #0b7d55;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.launch-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.launch-card__text {
  margin: 10px auto 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.launch-card__loader {
  width: 42px;
  height: 42px;
  margin: 16px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(11, 125, 85, 0.18);
  border-top-color: #0b7d55;
  animation: paisa247-spin .9s linear infinite;
}

.launch-card__link {
  display: inline-flex;
  margin-top: 14px;
  color: #0b7d55;
  font-weight: 600;
  text-decoration: none;
}

.launch-frame {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(32, 33, 36, .08);
}

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

@media (max-width: 380px) {
  .install-button {
    min-height: 46px;
    padding-inline: 14px;
    border-radius: 16px;
  }

  .install-button__text {
    font-size: 15px;
  }

  .shot-card {
    border-radius: 12px;
  }

  .install-progress-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .install-progress-card__icon-wrap {
    width: 50px;
    height: 50px;
  }

  .install-progress-card__icon {
    width: 38px;
    height: 38px;
  }
}


/* Version 22 install architecture refresh */
.hero-card {
  align-items: start;
}
.hero-card__icon-stack {
  --hero-stack-size: clamp(82px, 24vw, 92px);
  position: relative;
  width: var(--hero-stack-size);
  height: var(--hero-stack-size);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hero-card__icon-stack .app-icon {
  width: calc(var(--hero-stack-size) - 12px);
  height: calc(var(--hero-stack-size) - 12px);
  border-radius: 22px;
  transition: width .22s ease, height .22s ease, border-radius .22s ease, transform .22s ease;
}
.hero-card__body {
  min-width: 0;
}
.hero-card__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.hero-card__ring-track,
.hero-card__ring-progress {
  fill: none;
  stroke-width: 4;
}
.hero-card__ring-track {
  stroke: var(--track-soft);
}
.hero-card__ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
}
.app-hero.is-installing .hero-card__ring {
  opacity: 1;
}
.app-hero.is-installing .hero-card__icon-stack .app-icon {
  width: calc(var(--hero-stack-size) - 34px);
  height: calc(var(--hero-stack-size) - 34px);
  border-radius: 16px;
}
.hero-install {
  margin-top: 10px;
}
.hero-install[hidden] {
  display: none !important;
}
.hero-install__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.hero-install__status {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}
.hero-install__percent {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}
.hero-install__label {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.hero-install__bar {
  margin-top: 10px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--track-soft);
  overflow: hidden;
}
.hero-install__bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .18s linear;
}
.install-shell {
  margin-top: 16px;
  align-items: stretch;
}
.install-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
}
.install-button__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.install-button.is-open-state {
  background: var(--accent);
}
.install-button.is-installing-state {
  background: var(--accent-strong);
}
.install-button.is-ready-state {
  background: var(--accent);
}
.install-button.is-waiting-state {
  background: color-mix(in srgb, var(--accent) 24%, white);
  color: var(--button-muted-text);
}
.install-button:hover {
  background: var(--accent-strong);
}
.install-button:active {
  background: var(--accent-strong);
}
.install-progress-card {
  display: none !important;
}
.launch-card__hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .install-button {
    min-height: 42px;
    padding: 0 18px;
  }
}


/* Version 22 install flow refinement */
.hero-card__summary {
  display: block;
}
.app-hero.is-installing .hero-card__summary {
  display: none;
}
.hero-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-install {
  margin-top: 0;
  min-height: 72px;
}
.hero-install__status {
  font-size: 15px;
}
.hero-install__label {
  margin-top: 6px;
  font-size: 13px;
}
.hero-install__bar {
  margin-top: 12px;
  height: 5px;
}
.install-shell {
  margin-top: 16px;
  align-items: flex-start;
}
@media (max-width: 420px) {
  .hero-install {
    min-height: 68px;
  }
}


/* Version 24 restore layout, keep full-width install button */
.install-shell {
  align-items: stretch;
}
.install-button {
  width: 100%;
  min-width: 0;
  max-width: none;
}


html[data-theme='light-green'] {
  --accent: #01875f;
  --accent-strong: #0f9d58;
  --accent-soft: rgba(1, 135, 95, .08);
  --accent-soft-border: rgba(1, 135, 95, .24);
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --bg: #f1f3f4;
  --line: #e0e0e0;
  --icon-color: #5f6368;
  --icon-active: #01875f;
  --button-text-on-accent: #ffffff;
  --track-soft: #e6f4ea;
  --bar-track: #e0e0e0;
  --button-muted-text: #0b3d20;
}

html[data-theme='light-blue'] {
  --accent: #1a73e8;
  --accent-strong: #1558b0;
  --accent-soft: rgba(26, 115, 232, .08);
  --accent-soft-border: rgba(26, 115, 232, .24);
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --bg: #f1f3f4;
  --line: #e0e0e0;
  --icon-color: #5f6368;
  --icon-active: #1a73e8;
  --button-text-on-accent: #ffffff;
  --track-soft: rgba(26, 115, 232, .14);
  --bar-track: #e0e0e0;
  --button-muted-text: #123c73;
}

html[data-theme='dark'] {
  --accent: #8ab4f8;
  --accent-strong: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, .16);
  --accent-soft-border: rgba(138, 180, 248, .30);
  --surface: #000000;
  --surface-elevated: #111111;
  --text: #ffffff;
  --muted: #cecfd2;
  --bg: #000000;
  --line: rgba(247, 247, 247, .14);
  --icon-color: #f7f7f7;
  --icon-active: #8ab4f8;
  --button-text-on-accent: #0b1f33;
  --track-soft: rgba(138, 180, 248, .18);
  --bar-track: rgba(247, 247, 247, .16);
  --button-muted-text: #0b1f33;
}

body,
.phone,
.bottom-nav,
.safety-grid,
.bar,
.btn,
.news-card,
.info-list,
.install-button,
.hero-install__bar,
.description-preview::after {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body { background: var(--bg); color: var(--text); }
.phone { background: var(--surface); }
.meta,
.stat .label,
.bar-row,
.review-meta,
.helpful,
.info-row .v,
.news-text,
.hero-install__label { color: var(--muted); }

.publisher,
.green-link,
.toggle-link,
.install-link,
.review-stars,
.metric-star-symbol,
.verified-badge,
.hero-install__percent { color: var(--accent); }

.metric-star-symbol {
  display: inline-block;
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.metric-svg,
.metric-age,
.tiny-info,
.safety-icon,
.bottom-nav,
.bottom-nav .nav-item,
.bottom-nav svg,
.metric-svg svg,
.safety-icon svg {
  color: var(--icon-color);
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item.active svg,
.bottom-nav .nav-item.active .icon-wrap,
.bottom-nav .nav-item.active .metric-svg,
.bottom-nav .nav-item.active .safety-icon,
.bottom-nav .nav-item.active .tiny-info {
  color: var(--icon-active) !important;
}

.bottom-nav svg,
.metric-svg svg,
.safety-icon svg,
.tiny-info svg {
  stroke: currentColor !important;
}

.tiny-info svg *,
.metric-svg svg *,
.safety-icon svg *,
.bottom-nav svg * {
  stroke: currentColor !important;
  fill: none;
}

.bar > span,
.hero-install__bar-fill {
  background: var(--accent);
}

.install-button,
.install-button.is-open-state,
.install-button.is-installing-state,
.install-button.is-ready-state,
.install-button.is-waiting-state {
  background: var(--accent);
  color: var(--button-text-on-accent);
}

.hero-card__ring-progress { stroke: var(--accent); }
.hero-card__ring-track { stroke: color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-install__bar { background: var(--track-soft); }
.bar { background: var(--bar-track); }

.btn.is-active-yes {
  color: var(--accent);
}

.description-preview::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, color-mix(in srgb, var(--surface) 62%, transparent) 42%, var(--surface) 100%);
}

html[data-theme='dark'] .description-preview::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 42%, #000000 100%);
}

html[data-theme='dark'] .heading,
html[data-theme='dark'] h1,
html[data-theme='dark'] .section-title,
html[data-theme='dark'] .publisher,
html[data-theme='dark'] .reviewer,
html[data-theme='dark'] .stat .value,
html[data-theme='dark'] .rating-main .num,
html[data-theme='dark'] .details-row__value,
html[data-theme='dark'] .info-row .v,
html[data-theme='dark'] .subheading,
html[data-theme='dark'] .content-subtitle {
  color: #ffffff;
}

html[data-theme='dark'] .meta,
html[data-theme='dark'] .stat .label,
html[data-theme='dark'] .hero-install__label,
html[data-theme='dark'] .review-text,
html[data-theme='dark'] .review-meta,
html[data-theme='dark'] .helpful,
html[data-theme='dark'] .news-text,
html[data-theme='dark'] .ratings-note,
html[data-theme='dark'] .rating-main .count,
html[data-theme='dark'] .bar-row,
html[data-theme='dark'] .body-copy,
html[data-theme='dark'] .body-copy p,
html[data-theme='dark'] .body-copy li,
html[data-theme='dark'] .body-copy div,
html[data-theme='dark'] .safety-item,
html[data-theme='dark'] .info-row .k,
html[data-theme='dark'] .details-row__label {
  color: #cecfd2;
}

html[data-theme='dark'] .metric-svg,
html[data-theme='dark'] .metric-age,
html[data-theme='dark'] .tiny-info,
html[data-theme='dark'] .safety-icon,
html[data-theme='dark'] .bottom-nav,
html[data-theme='dark'] .bottom-nav .nav-item,
html[data-theme='dark'] .bottom-nav svg,
html[data-theme='dark'] .icon-wrap {
  color: #f7f7f7 !important;
}

html[data-theme='dark'] .bottom-nav .nav-item.active,
html[data-theme='dark'] .bottom-nav .nav-item.active svg,
html[data-theme='dark'] .bottom-nav .nav-item.active .icon-wrap,
html[data-theme='dark'] .bottom-nav .nav-item.active .metric-svg,
html[data-theme='dark'] .bottom-nav .nav-item.active .safety-icon,
html[data-theme='dark'] .bottom-nav .nav-item.active .tiny-info {
  color: #8ab4f8 !important;
}

html[data-theme='dark'] .metric-svg svg *,
html[data-theme='dark'] .metric-age svg *,
html[data-theme='dark'] .tiny-info svg *,
html[data-theme='dark'] .safety-icon svg *,
html[data-theme='dark'] .bottom-nav svg * {
  stroke: currentColor !important;
}

html[data-theme='dark'] .app-icon,
html[data-theme='dark'] .hero-card__icon,
html[data-theme='dark'] .install-progress-card,
html[data-theme='dark'] .shot-card {
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(247, 247, 247, .08);
}

html[data-theme='dark'] .bottom-nav {
  background: rgba(0, 0, 0, .98);
  border-top-color: rgba(247, 247, 247, .10);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .35);
}

html[data-theme='dark'] .btn {
  background: #111111;
  border-color: rgba(247, 247, 247, .16);
  color: #f7f7f7;
}

html[data-theme='dark'] .btn:hover {
  background: #171717;
}

html[data-theme='dark'] .safety-card__icon,
html[data-theme='dark'] .safety-card__icon svg,
html[data-theme='dark'] .bottom-nav__icon,
html[data-theme='dark'] .bottom-nav__icon svg {
  color: #f7f7f7 !important;
}

html[data-theme='dark'] .bottom-nav .nav-item.active .bottom-nav__icon,
html[data-theme='dark'] .bottom-nav .nav-item.active .bottom-nav__icon svg {
  color: #8ab4f8 !important;
}

html[data-theme='dark'] .safety-card__icon svg *,
html[data-theme='dark'] .bottom-nav__icon svg * {
  stroke: currentColor !important;
  fill: currentColor;
}

html[data-theme='dark'] .safety-card__icon svg [fill='none'],
html[data-theme='dark'] .bottom-nav__icon svg [fill='none'] {
  fill: none !important;
}
