/* Ironvale App Depot — siteapp56
   Visual language captured from royvin.top: bold industrial red (#c8102e / #d71920)
   with ink (#151a21), cool paper (#f6f8fb), crisp 8px-corner cards, 4px red footer
   ridge, dark #10151d footer slab — a heavy-equipment catalog feel applied to an
   Android APK depot. */

/* Self-hosted Font Awesome 6 webfonts (the shared /static/siteapp/fontawesome
   pack ships class names without @font-face; solid glyphs would render tofu). */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/static/siteapp56/fonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/siteapp56/fonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/siteapp56/fonts/fa-brands-400.woff2") format("woff2");
}
.fa-solid { font-weight: 900; }
.fa-regular { font-weight: 400; }
.fa-brands { font-family: "Font Awesome 6 Brands"; font-weight: 400; }

:root {
  --iv-red: #d71920;
  --iv-red-deep: #c8102e;
  --iv-red-dark: #a30d25;
  --iv-ink: #151a21;
  --iv-muted: #64707d;
  --iv-line: #e6e9ee;
  --iv-soft: #f6f8fb;
  --iv-blue: #1d5b9f;
  --iv-gold: #c69221;
  --iv-green: #16795f;
  --iv-radius: 8px;
  --iv-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --iv-canvas: #10151d;
  --iv-surface: #171e28;
  --iv-surface-2: #1c2432;
  --iv-card: #171e28;
  --iv-border: #2a3543;
  --iv-heading: #f2f5f9;
  --iv-body: #c6cdd6;
  --iv-dim: #8592a1;
  --iv-chip: rgba(215, 25, 32, 0.14);
  --iv-input: #1e2733;
  --iv-shadow: 0 12px 28px rgba(2, 5, 10, 0.5);
  --iv-hero-fade: linear-gradient(115deg, #131923 0%, #1a2230 60%, #20101a 100%);
  --iv-footer: #0b0f15;
  --iv-strip: #131a24;
}

[data-theme="light"] {
  --iv-canvas: #f6f8fb;
  --iv-surface: #ffffff;
  --iv-surface-2: #f3f6fa;
  --iv-card: #ffffff;
  --iv-border: #e5e7eb;
  --iv-heading: #151a21;
  --iv-body: #394451;
  --iv-dim: #64707d;
  --iv-chip: rgba(215, 25, 32, 0.08);
  --iv-input: #ffffff;
  --iv-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --iv-hero-fade: linear-gradient(115deg, #f8fafc 0%, #eef2f7 55%, #fdf0f0 100%);
  --iv-footer: #10151d;
  --iv-strip: #eef2f7;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--iv-font);
  background: var(--iv-canvas);
  color: var(--iv-body);
  line-height: 1.65;
  font-size: 15.5px;
  transition: background 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; }
a { color: var(--iv-red); }
h1, h2, h3, h4 { color: var(--iv-heading); line-height: 1.3; }

.iv-page { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 84px; }
.iv-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ---------- Header ---------- */
.iv-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--iv-surface);
  border-bottom: 1px solid var(--iv-border);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}
.iv-nav-row { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.iv-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--iv-heading); }
.iv-brandmark { width: 44px; height: 38px; color: var(--iv-ink); }
[data-theme="dark"] .iv-brandmark { color: #dfe5ec; }
.iv-brandtext { font-size: 19px; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; }
.iv-brandtext em { font-style: normal; color: var(--iv-red); }
.iv-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.iv-nav a {
  padding: 8px 16px;
  border-radius: var(--iv-radius);
  text-decoration: none;
  color: var(--iv-body);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
}
.iv-nav a:hover { color: var(--iv-red); background: var(--iv-chip); }
.iv-nav a.is-active { color: #fff; background: var(--iv-red); }
.iv-tools { display: flex; align-items: center; gap: 10px; }
.iv-mode {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--iv-border);
  background: var(--iv-surface-2);
  color: var(--iv-body);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.iv-mode:hover { border-color: var(--iv-red); color: var(--iv-red); }
.iv-mode-dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd66b, #c69221); }
[data-theme="dark"] .iv-mode-dot { background: radial-gradient(circle at 35% 35%, #f2f5f9, #8592a1); }
.iv-burger { display: none; border: 1px solid var(--iv-border); background: transparent; color: var(--iv-heading); font-size: 22px; width: 42px; height: 42px; border-radius: var(--iv-radius); cursor: pointer; }

.iv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--iv-radius);
  padding: 10px 20px;
  font-weight: 800; font-size: 14.5px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.iv-btn--solid { background: var(--iv-red); color: #fff; box-shadow: 0 6px 18px rgba(215, 25, 32, 0.32); }
.iv-btn--solid:hover { background: var(--iv-red-dark); transform: translateY(-1px); }
.iv-btn--line { background: transparent; color: var(--iv-red); border-color: var(--iv-red); }
.iv-btn--line:hover { background: var(--iv-chip); }
.iv-btn--ghost { background: transparent; color: var(--iv-heading); border-color: var(--iv-border); }
.iv-btn--ghost:hover { border-color: var(--iv-red); color: var(--iv-red); }

/* ---------- Hero ---------- */
.iv-hero { background: var(--iv-hero-fade); border-bottom: 1px solid var(--iv-border); }
.iv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: center;
  padding: 64px 48px;
}
.iv-eyebrow {
  margin: 0 0 10px;
  color: var(--iv-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
}
.iv-hero h1 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.5px; }
.iv-lead { margin: 0; color: var(--iv-dim); font-size: 16.5px; line-height: 1.8; }
.iv-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.iv-hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  background: var(--iv-surface);
  border: 1px solid var(--iv-border);
  border-top: 4px solid var(--iv-red);
  border-radius: var(--iv-radius);
  padding: 26px;
  box-shadow: var(--iv-shadow);
}
.iv-hero-stats strong { font-size: 26px; color: var(--iv-red); line-height: 1.1; }
.iv-hero-stats span { color: var(--iv-dim); font-size: 13px; align-self: center; }

/* ---------- Two-column frame ---------- */
.iv-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 96px;
}
.iv-strip {
  background: var(--iv-strip);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  padding: 18px;
  margin-bottom: 30px;
}
.iv-strip-head, .iv-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin: 0 0 14px;
}
.iv-strip-head h2, .iv-section-head h2 { margin: 0; font-size: 21px; }
.iv-count { color: var(--iv-dim); font-size: 13px; white-space: nowrap; }
.iv-more { color: var(--iv-red); font-weight: 700; text-decoration: none; white-space: nowrap; }
.iv-more:hover { text-decoration: underline; }
.iv-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.iv-rail-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--iv-card); border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius); padding: 12px 8px;
  text-decoration: none; text-align: center;
}
.iv-rail-card:hover { border-color: var(--iv-red); transform: translateY(-2px); }
.iv-rail-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--iv-surface-2); }
.iv-rail-name { color: var(--iv-heading); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.iv-rail-meta { color: var(--iv-gold); font-size: 12px; font-weight: 700; }

.iv-section { margin-bottom: 34px; }
.iv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}
.iv-card {
  background: var(--iv-card);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.iv-card:hover { transform: translateY(-3px); border-color: var(--iv-red); box-shadow: var(--iv-shadow); }
.iv-card > a { display: block; padding: 16px 14px 14px; text-decoration: none; }
.iv-iconwrap { position: relative; display: flex; justify-content: center; margin-bottom: 10px; }
.iv-iconwrap img { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: var(--iv-surface-2); }
.iv-iconwrap em {
  position: absolute; top: -6px; right: 6px;
  background: var(--iv-green); color: #fff;
  font-style: normal; font-size: 10.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
}
.iv-card h3 { margin: 0 0 6px; font-size: 14.5px; text-align: center; color: var(--iv-heading); }
.iv-cardmeta { margin: 0; text-align: center; font-size: 12.5px; color: var(--iv-dim); }
.iv-cardmeta i { font-style: normal; }
.iv-stars { color: var(--iv-gold); letter-spacing: 1px; font-size: 11px; }

/* ---------- Sidebar ---------- */
.iv-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.iv-search { display: flex; border: 1px solid var(--iv-border); border-radius: var(--iv-radius); overflow: hidden; background: var(--iv-input); }
.iv-search input {
  flex: 1; border: 0; padding: 11px 14px;
  background: transparent; color: var(--iv-heading); font: inherit; outline: none;
}
.iv-search button {
  border: 0; padding: 0 16px; cursor: pointer;
  background: var(--iv-red); color: #fff; font-size: 15px;
}
.iv-sidepanel { background: var(--iv-card); border: 1px solid var(--iv-border); border-radius: var(--iv-radius); padding: 20px; }
.iv-sidepanel h2 { margin: 0 0 14px; font-size: 16.5px; }
.iv-socialrow { display: flex; gap: 9px; flex-wrap: wrap; }
.iv-soc {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: #fff; font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.iv-soc:hover { transform: translateY(-2px); filter: brightness(1.12); }
.iv-soc--fb { background: #1877f2; }
.iv-soc--tg { background: #229ed9; }
.iv-soc--yt { background: #ff0033; }
.iv-soc--x { background: #151a21; }
[data-theme="dark"] .iv-soc--x { background: #394451; }
.iv-soc--in { background: #0a66c2; }
.iv-ratedrow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; text-decoration: none;
  border-bottom: 1px solid var(--iv-border);
}
.iv-ratedrow:last-child { border-bottom: 0; }
.iv-ratedrow img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--iv-surface-2); flex: 0 0 auto; }
.iv-ratedrow span b { display: block; color: var(--iv-heading); font-size: 13.5px; line-height: 1.4; }
.iv-ratedrow span small { color: var(--iv-dim); font-size: 12px; }
.iv-ratedrow:hover span b { color: var(--iv-red); }

/* ---------- Detail ---------- */
.iv-breadcrumb { padding: 22px 0 4px; font-size: 13px; color: var(--iv-dim); }
.iv-breadcrumb a { color: var(--iv-dim); text-decoration: none; }
.iv-breadcrumb a:hover { color: var(--iv-red); }
.iv-breadcrumb span { color: var(--iv-heading); font-weight: 600; }
.iv-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-bottom: 110px;
}
.iv-article {
  background: var(--iv-card);
  border: 1px solid var(--iv-border);
  border-top: 4px solid var(--iv-red);
  border-radius: var(--iv-radius);
  padding: 28px;
  margin-top: 14px;
  box-shadow: var(--iv-shadow);
}
.iv-apphead { display: flex; gap: 20px; align-items: flex-start; }
.iv-apphead img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: var(--iv-surface-2); flex: 0 0 auto; }
.iv-apphead-main h1 { margin: 0 0 6px; font-size: 26px; }
.iv-apphead-meta { margin: 0 0 14px; color: var(--iv-dim); font-size: 14px; }
.iv-download { margin-top: 2px; }
.iv-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin: 22px 0;
}
.iv-facts b {
  background: var(--iv-surface-2);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  padding: 10px 12px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--iv-dim);
}
.iv-facts small { display: block; margin-top: 4px; color: var(--iv-heading); font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.iv-toc {
  background: var(--iv-surface-2);
  border: 1px solid var(--iv-border);
  border-left: 4px solid var(--iv-red);
  border-radius: var(--iv-radius);
  padding: 16px 18px;
  margin: 0 0 22px;
}
.iv-toc > b { display: block; margin-bottom: 8px; color: var(--iv-heading); }
.iv-toc ol { margin: 0; padding-left: 20px; }
.iv-toc ol ol { margin: 4px 0 0; padding-left: 20px; list-style-type: circle; }
.iv-toc li { margin: 5px 0; }
.iv-toc a { color: var(--iv-body); text-decoration: none; }
.iv-toc a:hover { color: var(--iv-red); text-decoration: underline; }
.iv-copy { font-size: 15.5px; line-height: 1.85; }
.iv-copy h2 { font-size: 22px; margin: 28px 0 10px; padding-top: 14px; border-top: 1px dashed var(--iv-border); }
.iv-copy h3 { font-size: 18px; margin: 20px 0 8px; }
.iv-copy ul, .iv-copy ol { padding-left: 22px; }
.iv-copy li { margin: 6px 0; }

.iv-appsocial { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--iv-border); }
.iv-appsocial > b { display: block; margin-bottom: 10px; color: var(--iv-heading); }
.iv-appsocial div { display: flex; gap: 9px; flex-wrap: wrap; }
.iv-appsocial a {
  display: grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--iv-radius);
  background: var(--iv-red); color: #fff;
  font-weight: 800; text-decoration: none;
}
.iv-appsocial a:hover { background: var(--iv-red-dark); }

.iv-relrail {
  background: var(--iv-card);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  padding: 20px;
  margin-top: 14px;
  position: sticky; top: 90px;
}
.iv-relrail h2 { margin: 0 0 10px; font-size: 16.5px; }
.iv-relhead--tight { margin-top: 20px; }
.iv-relhead--tight h2 { border-top: 1px dashed var(--iv-border); padding-top: 18px; }

/* ---------- Comment form ---------- */
.iv-comment {
  margin-top: 30px;
  background: var(--iv-surface-2);
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  padding: 22px;
}
.iv-comment h2 { margin: 0 0 14px; font-size: 19px; }
.iv-comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iv-comment label { display: block; font-size: 12.5px; font-weight: 700; color: var(--iv-heading); margin-bottom: 12px; }
.iv-comment input, .iv-comment textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--iv-border); border-radius: 6px;
  background: var(--iv-input); color: var(--iv-body);
  font: inherit; outline: none;
}
.iv-comment input:focus, .iv-comment textarea:focus { border-color: var(--iv-red); }
.iv-comment .iv-btn { margin-top: 4px; }
.iv-comment-success { color: var(--iv-green); font-weight: 700; }

/* ---------- 404 ---------- */
.iv-notfound { padding: 70px 48px 90px; }
.iv-notfound h1 { margin: 6px 0 12px; font-size: 34px; }

/* ---------- Footer ---------- */
.iv-footer {
  margin-top: auto;
  background: var(--iv-footer);
  color: #d1d5db;
  padding: 34px 0 0;
  border-top: 4px solid var(--iv-red-deep);
}
.iv-footgrid { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.iv-footbrand .iv-brand { color: #fff; }
.iv-footbrand .iv-brandmark { color: #dfe5ec; }
.iv-footabout { margin: 10px 0 0; line-height: 1.8; color: #9aa4b2; max-width: 420px; font-size: 13.5px; }
.iv-footsocial { display: flex; gap: 8px; margin-top: 14px; }
.iv-footsocial a {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e9ef; font-size: 14px; text-decoration: none;
}
.iv-footsocial a:hover { background: var(--iv-red); }
.iv-foothead { color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.iv-footlinks { list-style: none; margin: 0; padding: 0; }
.iv-footlinks li { margin: 6px 0; }
.iv-footlinks a { color: #9aa4b2; text-decoration: none; font-size: 13.5px; }
.iv-footlinks a:hover { color: #fff; }
.iv-footnote { margin: 0 0 12px; color: #9aa4b2; font-size: 13px; line-height: 1.7; max-width: 240px; }
.iv-footlegal { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 0; }
.iv-footlegal p { margin: 0; font-size: 12.5px; color: #6f7a88; }
.iv-legalbrand { color: #b9c2cd; font-weight: 700; }

/* ---------- Floating login/register dock ---------- */
.iv-floatdock {
  position: fixed; z-index: 60;
  left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 10px;
  background: var(--iv-surface);
  border: 1px solid var(--iv-border);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--iv-shadow);
}
.iv-dockbtn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 9px 18px;
  font-weight: 800; font-size: 13.5px; text-decoration: none;
}
.iv-dockbtn--primary { background: var(--iv-red); color: #fff; }
.iv-dockbtn--primary:hover { background: var(--iv-red-dark); }
.iv-dockbtn--alt { background: transparent; color: var(--iv-red); border: 1px solid var(--iv-red); }
.iv-dockbtn--alt:hover { background: var(--iv-chip); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .iv-columns, .iv-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .iv-sidebar { position: static; }
  .iv-relrail { position: static; margin-top: 26px; border-top: 1px solid var(--iv-border); padding-top: 18px; }
  .iv-hero-grid { grid-template-columns: 1fr; padding: 44px 24px; gap: 26px; }
}

@media (max-width: 980px) {
  .iv-shell { padding: 0 20px; }
  .iv-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    display: none; flex-direction: column;
    background: var(--iv-surface);
    border-bottom: 1px solid var(--iv-border);
    padding: 10px 20px 16px;
    box-shadow: var(--iv-shadow);
  }
  .iv-nav.is-open { display: flex; }
  .iv-nav a { padding: 12px 10px; border-radius: 0; border-bottom: 1px solid var(--iv-border); }
  .iv-burger { display: inline-grid; place-items: center; }
  .iv-headcta { display: none; }
  .iv-hero h1 { font-size: 30px; }
}

@media (max-width: 785px) {
  body { font-size: 15px; }
  .iv-hero-grid { padding: 34px 20px; }
  .iv-hero h1 { font-size: 26px; }
  .iv-hero-stats { padding: 18px; grid-template-columns: 1fr 1fr; }
  .iv-columns, .iv-detail-grid { gap: 24px; padding-bottom: 120px; }
  .iv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .iv-section-head, .iv-strip-head { flex-wrap: wrap; }
  .iv-apphead { flex-direction: column; align-items: center; text-align: center; }
  .iv-apphead img { width: 64px; height: 64px; }
  .iv-apphead-main { display: flex; flex-direction: column; align-items: center; }
  .iv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-comment-grid { grid-template-columns: 1fr; }
  .iv-article { padding: 20px 16px; }
  .iv-copy h2 { font-size: 19px; }
  .iv-dockbtn { padding: 8px 13px; font-size: 12.5px; }
  .iv-footgrid { display: block; }
  .iv-footcol { margin-top: 18px; }
  .iv-footcol:first-child { margin-top: 0; }
}

@media (max-width: 480px) {
  .iv-shell { padding: 0 14px; }
  .iv-brandtext { font-size: 16px; }
  .iv-mode span[data-theme-label] { display: none; }
  .iv-hero { border-bottom: 1px solid var(--iv-border); }
  .iv-hero-grid { padding: 26px 14px; }
  .iv-hero-stats strong { font-size: 20px; }
  .iv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-breadcrumb { padding-top: 14px; }
}

/* Collapsible FAQ entries (materialized article Q:/A: pairs) */
details.sv-faqentry {
  border: 1px solid var(--iv-line);
  border-radius: 12px;
  background: var(--iv-surface);
  padding: 0.85rem 1.1rem;
  margin: 0 0 0.75rem;
}
details.sv-faqentry summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--iv-ink);
  list-style: none;
  position: relative;
  padding-right: 1.4rem;
}
details.sv-faqentry summary::-webkit-details-marker { display: none; }
details.sv-faqentry summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--iv-accent, var(--iv-ink));
}
details.sv-faqentry[open] summary::after { content: '\2212'; }
details.sv-faqentry p { margin: 0.6rem 0 0; color: var(--iv-ink); }
/* ---------- v2 detail contract: chips, description, download modes ---------- */
.iv-version-chip {
  display: inline-block; margin-right: 8px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--iv-chip); color: var(--iv-red-deep);
  font-size: 12.5px; font-weight: 800;
}
[data-theme="dark"] .iv-version-chip { color: #ff8a8a; }
.iv-catchip {
  margin-left: 8px; padding: 2px 10px;
  border: 1px solid var(--iv-border); border-radius: 999px;
  color: var(--iv-blue); font-size: 12.5px; font-weight: 700;
  text-decoration: none;
}
[data-theme="dark"] .iv-catchip { color: #7fb2ea; }
.iv-catchip:hover { border-color: var(--iv-blue); }

.iv-tagrow { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; }
.iv-tagrow a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 15px;
  border: 1px solid var(--iv-border); border-radius: 999px;
  background: var(--iv-surface); color: var(--iv-body);
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.iv-tagrow a:hover { color: var(--iv-red); border-color: var(--iv-red); }
.iv-tagrow a.is-active { color: #fff; background: var(--iv-red); border-color: var(--iv-red); }

.iv-descbox {
  margin: 22px 0 0; padding: 18px 20px;
  border-left: 4px solid var(--iv-red);
  background: var(--iv-surface-2);
  border-radius: var(--iv-radius);
}
.iv-descbox b { display: block; margin-bottom: 8px; color: var(--iv-heading); font-size: 14px; }
.iv-descbox p { margin: 0; line-height: 1.9; color: var(--iv-body); }

.app-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin-top: 6px; padding: 0 22px;
  border: 1px solid var(--iv-red); border-radius: var(--iv-radius);
  background: var(--iv-red); color: #fff;
  font: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px rgba(215, 25, 32, 0.28);
}
.app-dl-btn:hover { background: var(--iv-red-dark); border-color: var(--iv-red-dark); }
.app-dl-zone {
  margin: 0 auto 40px; max-width: 1280px;
  padding: 22px 48px;
}
.app-dl-progress { display: flex; align-items: center; gap: 14px; color: var(--iv-heading); font-weight: 700; }
.app-dl-bar {
  display: inline-block; flex: 1 1 auto; max-width: 320px; height: 10px;
  background: var(--iv-border); border-radius: 999px; overflow: hidden; font-style: normal;
}
.app-dl-bar b {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--iv-red), var(--iv-red-deep));
  border-radius: 999px;
}
.app-dl-zone[data-dl-state="ready"] .app-dl-progress { display: none; }
.app-dl-install {
  margin-top: 16px; padding: 16px 18px;
  background: var(--iv-surface-2); border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
}
.app-dl-install > b { display: block; margin-bottom: 10px; color: var(--iv-heading); }
.app-dl-install ol { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--iv-body); }
.app-dl-final {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 16px; padding: 0 22px;
  border-radius: var(--iv-radius);
  background: var(--iv-red); color: #fff; font-weight: 800; text-decoration: none;
}
.app-dl-final[hidden] { display: none; }
.app-dl-final.is-ready { box-shadow: 0 10px 26px rgba(215, 25, 32, 0.35); }

/* Landing page (/{locale}/app/{slug}/download) */
.iv-landing .iv-tagrow { margin-top: 18px; }
.iv-landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.iv-dl-install {
  margin-top: 26px; padding: 18px 20px;
  background: var(--iv-surface-2); border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
}
.iv-dl-install > b { display: block; margin-bottom: 10px; color: var(--iv-heading); }
.iv-dl-install ol { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--iv-body); }

/* ---------- Language pill ---------- */
.iv-lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--iv-border); border-radius: 999px;
  background: var(--iv-surface-2);
}
.iv-lang-seg {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 26px; padding: 0 12px; border-radius: 999px;
  color: var(--iv-dim); font-size: 12.5px; font-weight: 700; line-height: 1;
  text-decoration: none;
}
.iv-lang-seg:hover { color: var(--iv-red); }
.iv-lang-seg.is-active { background: var(--iv-red); color: #fff; }

/* Dark-mode safe FAQ entries (materialized Q:/A: pairs) */
[data-theme="dark"] details.sv-faqentry { border-color: var(--iv-border); background: var(--iv-surface-2); }
[data-theme="dark"] details.sv-faqentry summary { color: var(--iv-heading); }
[data-theme="dark"] details.sv-faqentry summary::after { color: var(--iv-red); }
[data-theme="dark"] details.sv-faqentry p { color: var(--iv-body); }

/* ---------- RTL (Urdu) ---------- */
[dir="rtl"] body { direction: rtl; text-align: right; }
[dir="rtl"] .iv-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .iv-tools { flex-direction: row-reverse; }
[dir="rtl"] .iv-lang, [dir="rtl"] .iv-hero-actions, [dir="rtl"] .iv-tagrow,
[dir="rtl"] .iv-detail-grid, [dir="rtl"] .iv-columns, [dir="rtl"] .iv-footgrid,
[dir="rtl"] .iv-apphead, [dir="rtl"] .iv-apphead-meta, [dir="rtl"] .iv-breadcrumb,
[dir="rtl"] .iv-facts, [dir="rtl"] .iv-landing-actions, [dir="rtl"] .iv-comment-grid,
[dir="rtl"] .iv-search, [dir="rtl"] .iv-socialrow { direction: rtl; }
[dir="rtl"] .iv-apphead-meta .iv-version-chip { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .iv-apphead-meta .iv-catchip { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .iv-iconwrap em { right: auto; left: 6px; }
[dir="rtl"] .iv-descbox { border-left: 0; border-right: 4px solid var(--iv-red); }
[dir="rtl"] .iv-toc { border-left: 0; border-right: 4px solid var(--iv-red); }
[dir="rtl"] .iv-copy ul, [dir="rtl"] .iv-copy ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .iv-toc ol, [dir="rtl"] .iv-toc ol ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .app-dl-install ol, [dir="rtl"] .iv-dl-install ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] details.sv-faqentry summary { padding-right: 0; padding-left: 1.4rem; }
[dir="rtl"] details.sv-faqentry summary::after { right: auto; left: 0; }
[dir="rtl"] .iv-footlegal, [dir="rtl"] .iv-notfound { text-align: right; }

@media (max-width: 785px) {
  .app-dl-zone { padding: 18px 20px; }
  .iv-tagrow a { font-size: 12.5px; padding: 0 12px; }
  .iv-landing-actions .iv-btn { flex: 1 1 auto; }
}
