/* v56.9.7: eight genuinely different public download-page compositions.
 * Loaded after layout-v46.css and download-desktop-v47.css so each template can
 * own its structure instead of inheriting one normalized desktop layout.
 */
.download-shell .download-normal-card{box-sizing:border-box}
.download-shell .download-normal-card .download-hero,
.download-shell .download-normal-card .download-install,
.download-shell .download-normal-card .download-qr,
.download-shell .download-normal-card .download-details{min-width:0}
.download-shell .download-normal-card .download-details{width:100%;box-sizing:border-box}
.download-shell .download-normal-card .download-identity h1{margin-top:0}

/* 1. Classic: centered premium card. */
.download-shell.download-theme-classic{
  background:radial-gradient(circle at 50% -10%,#dff4e9 0,#f5fbf7 36%,#fff 78%);
}
.download-shell.download-theme-classic .download-normal-card{
  width:min(760px,100%);max-width:760px;margin:38px auto 0;padding:44px 50px;
  background:#fff;border:1px solid #d9e9e1;border-radius:26px;
  box-shadow:0 22px 60px rgba(21,72,54,.12);text-align:center;
}
.download-shell.download-theme-classic .download-normal-card .download-hero .app-icon{
  width:108px;height:108px;margin:0 auto 22px;border-radius:26px;
  box-shadow:0 10px 24px rgba(17,78,57,.12);
}
.download-shell.download-theme-classic .download-install{max-width:500px}
.download-shell.download-theme-classic .download-qr{
  max-width:500px;padding:24px;border-radius:18px;background:#f4faf7;border:1px solid #e1eee7;
}
.download-shell.download-theme-classic .download-details{max-width:620px;margin:34px auto 0}
.download-shell.download-theme-classic .download-details .release-notes{border-top-color:#e0ece6}

/* 2. Data: dashboard-like split layout, statistics are the visual anchor. */
.download-shell.download-theme-data{
  background:#f0f4f2;
  background-image:linear-gradient(rgba(21,89,65,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(21,89,65,.035) 1px,transparent 1px);
  background-size:28px 28px;
}
.download-shell.download-theme-data .download-normal-card{
  width:min(1120px,100%);max-width:1120px;margin:30px auto 0;padding:28px;
  background:#fff;border:1px solid #d5e2dc;border-radius:14px;box-shadow:0 10px 34px rgba(23,59,47,.08);text-align:left;
}
.download-shell.download-theme-data .download-overview,
.download-shell.download-theme-data .download-overview.has-qr{
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  grid-template-areas:"hero qr" "stats qr" "install qr";gap:20px 28px;align-items:start;text-align:left;
}
.download-shell.download-theme-data .download-hero{grid-area:hero;display:flex;align-items:center;gap:20px;padding:4px 0 18px;border-bottom:1px solid #e3ece7}
.download-shell.download-theme-data .download-card .download-hero .app-icon{width:82px;height:82px;margin:0;flex:0 0 82px;border-radius:18px}
.download-shell.download-theme-data .download-card h1{font-size:30px;text-align:left}
.download-shell.download-theme-data .download-meta{margin:10px 0 0;text-align:left}
.download-shell.download-theme-data .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-data .download-stats{grid-area:stats;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;margin:0;padding:0;gap:10px;background:transparent;border:0}
.download-shell.download-theme-data .download-stats>span{padding:16px;border:1px solid #dce9e2;border-radius:10px;background:#f8fbf9;color:#6b8177}
.download-shell.download-theme-data .download-stats strong{font-size:22px;color:#124f3a;margin-top:7px}
.download-shell.download-theme-data .download-install{grid-area:install;max-width:none;margin:0}
.download-shell.download-theme-data .download-install>.install-button{width:min(320px,100%)}
.download-shell.download-theme-data .download-qr{grid-area:qr;align-self:stretch;justify-content:center;max-width:none;margin:0;padding:26px 20px;border:1px solid #dce9e2;border-radius:12px;background:#f8fbf9}
.download-shell.download-theme-data .download-qr>.qr{width:196px;height:196px}
.download-shell.download-theme-data .download-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:30px 0 0;padding-top:4px;border-top:1px solid #e2ebe6}
.download-shell.download-theme-data .download-details>.release-notes{margin-top:24px;padding:20px;border:1px solid #e1ebe6;border-radius:10px;background:#fcfefd}
.download-shell.download-theme-data .download-details>.download-intro{grid-column:1/-1}

/* 3. Phone: the whole page becomes an actual device frame. */
.download-shell.download-theme-phone{
  background:linear-gradient(145deg,#e7eee9 0,#f8faf9 45%,#dbe8e1 100%);
  padding-top:36px;
}
.download-shell.download-theme-phone .download-normal-card{
  position:relative;width:min(440px,100%);max-width:440px;margin:18px auto 0;padding:64px 26px 34px;
  background:#fbfdfc;border:11px solid #163b2d;border-radius:54px;box-shadow:0 30px 80px rgba(19,55,43,.24);text-align:center;overflow:hidden;
}
.download-shell.download-theme-phone .download-normal-card::before{
  content:"";position:absolute;top:15px;left:50%;width:92px;height:24px;transform:translateX(-50%);border-radius:20px;background:#163b2d;
}
.download-shell.download-theme-phone .download-normal-card::after{
  content:"";position:absolute;bottom:12px;left:50%;width:108px;height:5px;transform:translateX(-50%);border-radius:999px;background:#c1d0c8;
}
.download-shell.download-theme-phone .download-card .download-hero::before{content:none}
.download-shell.download-theme-phone .download-card .download-hero .app-icon{width:96px;height:96px;margin:0 auto 18px;border-radius:24px}
.download-shell.download-theme-phone .download-card h1{font-size:28px}
.download-shell.download-theme-phone .download-meta{font-size:13px}
.download-shell.download-theme-phone .download-install{max-width:none;margin-top:22px}
.download-shell.download-theme-phone .download-install>.install-button{border-radius:14px;min-height:54px}
.download-shell.download-theme-phone .download-qr{margin-top:24px;padding:18px;border-radius:18px;background:#edf6f1}
.download-shell.download-theme-phone .download-qr>.qr{width:150px;height:150px}
.download-shell.download-theme-phone .download-details{margin-top:26px;text-align:left}
.download-shell.download-theme-phone .download-details .release-notes{margin-top:18px;padding:18px;border:1px solid #e1ebe6;border-radius:14px;background:#fff}
.download-shell.download-theme-phone .download-details .release-notes:first-child{margin-top:0}

/* 4. Minimal: no card, strong typography and horizontal action rail. */
.download-shell.download-theme-minimal{background:#fff;padding-top:50px}
.download-shell.download-theme-minimal .download-normal-card{
  width:min(980px,100%);max-width:980px;margin:0 auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:left;
}
.download-shell.download-theme-minimal .download-overview,
.download-shell.download-theme-minimal .download-overview.has-qr{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);grid-template-areas:"hero install" "qr install";gap:18px 56px;align-items:center;text-align:left;
  padding:38px 0;border-top:2px solid #153e2f;border-bottom:1px solid #d9e4de;
}
.download-shell.download-theme-minimal .download-hero{grid-area:hero;display:flex;align-items:center;gap:22px}
.download-shell.download-theme-minimal .download-card .download-hero .app-icon{width:74px;height:74px;margin:0;flex:0 0 74px;border-radius:16px}
.download-shell.download-theme-minimal .download-card h1{font-size:38px;text-align:left;letter-spacing:-.03em}
.download-shell.download-theme-minimal .download-meta{margin:8px 0 0}
.download-shell.download-theme-minimal .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-minimal .download-install{grid-area:install;max-width:none;margin:0}
.download-shell.download-theme-minimal .download-install>.install-button{border-radius:4px;min-height:50px}
.download-shell.download-theme-minimal .download-qr{grid-area:qr;display:flex;flex-direction:row;justify-content:flex-start;max-width:none;margin:0;gap:14px}
.download-shell.download-theme-minimal .download-qr>.qr{width:82px;height:82px;padding:4px;border:1px solid #e0e8e4;border-radius:4px}
.download-shell.download-theme-minimal .download-scan-caption{text-align:left;max-width:16em}
.download-shell.download-theme-minimal .download-details{max-width:760px;margin:42px 0 0}
.download-shell.download-theme-minimal .download-details .release-notes{margin-top:0;padding:26px 0;border-top:1px solid #d9e4de;border-radius:0;background:transparent}
.download-shell.download-theme-minimal .download-details .release-notes h3{font-size:18px;text-transform:none}

/* 5. QR: poster/ticket layout with QR as the first-class element. */
.download-shell.download-theme-qr{
  background-color:#eff8f3;
  background-image:radial-gradient(#a7cbbb 1.2px,transparent 1.2px);
  background-size:18px 18px;
}
.download-shell.download-theme-qr .download-normal-card{
  width:min(1040px,100%);max-width:1040px;margin:34px auto 0;padding:0;overflow:hidden;background:#fff;border:1px solid #cfe2d8;border-radius:26px;box-shadow:0 24px 65px rgba(18,74,53,.14);text-align:left;
}
.download-shell.download-theme-qr .download-overview.has-qr{
  display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);grid-template-areas:"qr hero" "qr install";gap:0;align-items:center;text-align:left;
}
.download-shell.download-theme-qr .download-overview:not(.has-qr){padding:44px 48px}
.download-shell.download-theme-qr .download-qr{grid-area:qr;align-self:stretch;justify-content:center;max-width:none;margin:0;padding:50px 30px;background:#0c9f77;border:0;border-radius:0;color:#fff}
.download-shell.download-theme-qr .download-qr>.qr{width:228px;height:228px;padding:12px;border-radius:16px;background:#fff;box-shadow:0 16px 34px rgba(0,56,40,.18)}
.download-shell.download-theme-qr .download-scan-caption{color:#eafff6;text-align:center;font-weight:650}
.download-shell.download-theme-qr .download-hero{grid-area:hero;display:flex;align-items:center;gap:22px;padding:48px 48px 18px}
.download-shell.download-theme-qr .download-card .download-hero .app-icon{width:90px;height:90px;margin:0;flex:0 0 90px;border-radius:22px}
.download-shell.download-theme-qr .download-card h1{font-size:34px;text-align:left}
.download-shell.download-theme-qr .download-meta{margin:10px 0 0}
.download-shell.download-theme-qr .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-qr .download-install{grid-area:install;max-width:none;margin:0;padding:0 48px 48px}
.download-shell.download-theme-qr .download-install>.install-button{max-width:360px}
.download-shell.download-theme-qr .download-details{padding:10px 48px 44px}
.download-shell.download-theme-qr .download-details .release-notes{padding:22px 0;margin-top:0;border-top:1px dashed #cfe0d7}
.download-shell.download-theme-qr .download-details .release-notes:first-child{border-top:0}

/* 6. Intro: editorial / magazine composition, description comes forward. */
.download-shell.download-theme-intro{background:#f6f3ec}
.download-shell.download-theme-intro .download-normal-card{
  width:min(1120px,100%);max-width:1120px;margin:34px auto 0;padding:0;background:#fffdf9;border:1px solid #e4ded1;border-radius:6px;box-shadow:0 20px 52px rgba(72,62,44,.11);text-align:left;overflow:hidden;
}
.download-shell.download-theme-intro .download-overview,
.download-shell.download-theme-intro .download-overview.has-qr{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);grid-template-areas:"hero qr" "install qr";gap:0;align-items:center;text-align:left;padding:48px 52px;background:linear-gradient(120deg,#fffdf9 0,#fffdf9 66%,#eef7f1 66%,#eef7f1 100%);
}
.download-shell.download-theme-intro .download-hero{grid-area:hero;display:flex;align-items:center;gap:24px;padding:0;border:0}
.download-shell.download-theme-intro .download-card .download-hero .app-icon{width:104px;height:104px;margin:0;flex:0 0 104px;border-radius:12px}
.download-shell.download-theme-intro .download-card h1{font-size:42px;line-height:1.18;text-align:left;font-weight:760;letter-spacing:-.035em}
.download-shell.download-theme-intro .download-meta{margin:14px 0 0}
.download-shell.download-theme-intro .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-intro .download-install{grid-area:install;max-width:390px;margin:24px 0 0}
.download-shell.download-theme-intro .download-install>.install-button{border-radius:3px}
.download-shell.download-theme-intro .download-qr{grid-area:qr;max-width:none;margin:0;padding:22px;background:rgba(255,255,255,.72);border:1px solid #d9e6df;border-radius:6px}
.download-shell.download-theme-intro .download-qr>.qr{width:176px;height:176px}
.download-shell.download-theme-intro .download-details{display:grid;grid-template-columns:1.35fr .65fr;gap:0 42px;padding:38px 52px 48px}
.download-shell.download-theme-intro .download-details>.download-intro{grid-column:1;grid-row:1/span 3;margin:0;padding:0 40px 0 0;border:0;border-right:1px solid #e5dfd5}
.download-shell.download-theme-intro .download-intro h3{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:#0a8d68}
.download-shell.download-theme-intro .download-intro p{font-size:18px;line-height:2;color:#2f443b}
.download-shell.download-theme-intro .download-details>.release-notes:not(.download-intro){grid-column:2;margin:0;padding:18px 0;border-top:1px solid #e6e0d6}
.download-shell.download-theme-intro .download-details>.release-notes:not(.download-intro):first-of-type{border-top:0}
.download-shell.download-theme-intro .download-preview-gallery{grid-column:1/-1}

/* 7. Blue: airy glassmorphism with cyan/blue color system. */
.download-shell.download-theme-blue{
  background:
    radial-gradient(circle at 18% 14%,rgba(255,255,255,.95) 0 9%,transparent 27%),
    radial-gradient(circle at 85% 12%,rgba(35,187,201,.22),transparent 34%),
    linear-gradient(135deg,#dff5fb 0,#dff8ef 48%,#e8efff 100%);
}
.download-shell.download-theme-blue .download-normal-card{
  width:min(1000px,100%);max-width:1000px;margin:38px auto 0;padding:34px;
  background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.86);border-radius:32px;box-shadow:0 28px 70px rgba(37,105,121,.16);text-align:left;
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
}
.download-shell.download-theme-blue .download-overview,
.download-shell.download-theme-blue .download-overview.has-qr{
  display:grid;grid-template-columns:minmax(0,1.18fr) minmax(260px,.82fr);grid-template-areas:"hero qr" "install qr";gap:20px 30px;align-items:center;text-align:left;
}
.download-shell.download-theme-blue .download-hero{grid-area:hero;display:flex;align-items:center;gap:22px;padding:12px}
.download-shell.download-theme-blue .download-card .download-hero .app-icon{width:104px;height:104px;margin:0;flex:0 0 104px;border-radius:28px;box-shadow:0 12px 30px rgba(23,112,133,.16)}
.download-shell.download-theme-blue .download-card h1{font-size:36px;text-align:left;color:#124750}
.download-shell.download-theme-blue .download-meta{margin:12px 0 0;color:#557984}
.download-shell.download-theme-blue .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-blue .download-meta .tag{background:#d9f2f1;color:#087f87}
.download-shell.download-theme-blue .download-install{grid-area:install;max-width:none;margin:0;padding:0 12px 12px}
.download-shell.download-theme-blue .download-install>.install-button{max-width:390px;background:linear-gradient(90deg,#058da0,#08a67e);border:0;border-radius:14px;box-shadow:0 12px 26px rgba(5,141,160,.18)}
.download-shell.download-theme-blue .download-qr{grid-area:qr;max-width:none;margin:0;padding:28px;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:rgba(255,255,255,.58);box-shadow:inset 0 0 0 1px rgba(15,134,143,.05)}
.download-shell.download-theme-blue .download-qr>.qr{width:188px;height:188px;border-radius:16px}
.download-shell.download-theme-blue .download-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}
.download-shell.download-theme-blue .download-details>.release-notes{margin:0;padding:22px;border:1px solid rgba(255,255,255,.86);border-radius:18px;background:rgba(255,255,255,.58)}
.download-shell.download-theme-blue .download-details>.download-intro{grid-column:1/-1}
.download-shell.download-theme-blue .download-details>.download-preview-gallery{grid-column:1/-1}
.download-shell.download-theme-blue .download-details>.download-history{grid-column:1/-1}

/* 8. Game: cinematic dark stage with strong CTA. */
.download-shell.download-theme-game{
  min-height:100vh;color:#e9fff5;
  background:
    radial-gradient(circle at 80% 18%,rgba(14,204,132,.19),transparent 30%),
    radial-gradient(circle at 20% 8%,rgba(46,119,89,.32),transparent 35%),
    linear-gradient(145deg,#07150f 0,#0b2419 48%,#07130e 100%);
}
.download-shell.download-theme-game .download-normal-card{
  position:relative;width:min(1160px,100%);max-width:1160px;margin:34px auto 0;padding:44px;
  background:linear-gradient(135deg,rgba(20,62,44,.86),rgba(11,34,25,.9));border:1px solid rgba(93,208,151,.24);border-radius:28px;box-shadow:0 32px 90px rgba(0,0,0,.42);text-align:left;overflow:hidden;
}
.download-shell.download-theme-game .download-normal-card::before{
  content:"";position:absolute;width:360px;height:360px;right:-120px;top:-180px;border-radius:50%;background:radial-gradient(circle,rgba(15,210,134,.21),transparent 68%);pointer-events:none;
}
.download-shell.download-theme-game .download-overview,
.download-shell.download-theme-game .download-overview.has-qr{
  position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);grid-template-areas:"hero qr" "install qr";gap:24px 42px;align-items:center;text-align:left;
}
.download-shell.download-theme-game .download-hero{grid-area:hero;display:flex;align-items:center;gap:28px;padding:10px 0}
.download-shell.download-theme-game .download-card .download-hero .app-icon{width:132px;height:132px;margin:0;flex:0 0 132px;border-radius:30px;box-shadow:0 18px 42px rgba(0,0,0,.34),0 0 0 1px rgba(98,221,166,.26)}
.download-shell.download-theme-game .download-card h1{font-size:44px;line-height:1.16;text-align:left;color:#fff;letter-spacing:-.035em}
.download-shell.download-theme-game .download-meta{margin:14px 0 0;color:#a9cbbb}
.download-shell.download-theme-game .download-meta-line{justify-content:flex-start}
.download-shell.download-theme-game .download-meta .tag{background:rgba(15,199,130,.16);border:1px solid rgba(76,224,161,.28);color:#82efbd}
.download-shell.download-theme-game .download-install{grid-area:install;max-width:520px;margin:10px 0 0}
.download-shell.download-theme-game .download-install>.install-button{min-height:58px;border:0;border-radius:12px;background:linear-gradient(90deg,#0ad888,#05ad70);color:#062116;font-size:18px;font-weight:800;box-shadow:0 14px 34px rgba(4,196,123,.22)}
.download-shell.download-theme-game .download-qr{grid-area:qr;max-width:none;margin:0;padding:26px;border:1px solid rgba(116,222,173,.2);border-radius:22px;background:rgba(4,20,13,.4)}
.download-shell.download-theme-game .download-qr>.qr{width:196px;height:196px;padding:10px;border-radius:14px;background:#fff}
.download-shell.download-theme-game .download-scan-caption{color:#a9cbbb}
.download-shell.download-theme-game .download-details{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:38px}
.download-shell.download-theme-game .download-details>.release-notes{margin:0;padding:22px;border:1px solid rgba(116,222,173,.18);border-radius:16px;background:rgba(5,24,16,.42)}
.download-shell.download-theme-game .download-details>.download-intro,
.download-shell.download-theme-game .download-details>.download-preview-gallery,
.download-shell.download-theme-game .download-details>.download-history{grid-column:1/-1}
.download-shell.download-theme-game .download-details h3{color:#fff}
.download-shell.download-theme-game .download-details p,.download-shell.download-theme-game .download-version-row time,.download-shell.download-theme-game .download-checksum{color:#b9d7c8}
.download-shell.download-theme-game .download-version-row{border-color:rgba(116,222,173,.18)}
.download-shell.download-theme-game .textlink{color:#70e8b2}
.download-shell.download-theme-game~.footer-mini,.download-shell.download-theme-game .footer-mini{color:#a7c9b8}

/* Settings preview thumbnails now communicate the structural differences too. */
#extended-settings.settings-shell-v53 .template-mini{position:relative;overflow:hidden}
#extended-settings.settings-shell-v53 .mini-classic{border-radius:12px;background:linear-gradient(#e7f7ee 28%,#fff 28%)}
#extended-settings.settings-shell-v53 .mini-data{align-items:stretch;padding:9px 7px;gap:5px;background:#f4f7f5;border-radius:5px}
#extended-settings.settings-shell-v53 .mini-data i{width:100%;height:16px;border-radius:3px;background:linear-gradient(90deg,#0ca37b 22%,#dce9e2 22% 48%,#edf3f0 48%)}
#extended-settings.settings-shell-v53 .mini-data b{width:100%;height:22px;background:repeating-linear-gradient(90deg,#d8e8df 0 28%,transparent 28% 36%)}
#extended-settings.settings-shell-v53 .mini-data em{width:64%;align-self:flex-start}
#extended-settings.settings-shell-v53 .mini-phone{width:52px;border:5px solid #183d2e;border-radius:18px;padding-top:13px;background:#fff}
#extended-settings.settings-shell-v53 .mini-phone::before{content:"";position:absolute;top:5px;width:18px;height:4px;border-radius:3px;background:#183d2e}
#extended-settings.settings-shell-v53 .mini-minimal{align-items:flex-start;width:82px;height:64px;padding:9px 5px;border:0;border-radius:0;border-top:2px solid #183d2e;border-bottom:1px solid #cadbd2;background:#fff}
#extended-settings.settings-shell-v53 .mini-minimal i{width:18px;height:18px}
#extended-settings.settings-shell-v53 .mini-minimal b{width:60px}
#extended-settings.settings-shell-v53 .mini-minimal em{width:34px;height:7px}
#extended-settings.settings-shell-v53 .mini-qr{justify-content:center;width:76px;background:linear-gradient(90deg,#0ca37b 0 48%,#fff 48%)}
#extended-settings.settings-shell-v53 .mini-qr i{width:30px;height:30px;margin-left:-24px;background:repeating-conic-gradient(#143b2d 0 25%,#fff 0 50%) 0/7px 7px}
#extended-settings.settings-shell-v53 .mini-qr b,#extended-settings.settings-shell-v53 .mini-qr em{margin-left:34px;width:24px}
#extended-settings.settings-shell-v53 .mini-intro{align-items:flex-start;width:96px;padding:12px 9px;background:#fffdf8;border-radius:3px}
#extended-settings.settings-shell-v53 .mini-intro i{width:18px;height:18px;border-radius:2px}
#extended-settings.settings-shell-v53 .mini-intro b{width:68px;height:3px}
#extended-settings.settings-shell-v53 .mini-intro em{width:86%;height:22px;background:linear-gradient(#d7e5dd 0 3px,transparent 3px 7px,#d7e5dd 7px 10px,transparent 10px)}
#extended-settings.settings-shell-v53 .mini-blue{background:linear-gradient(135deg,#d4f1fa,#dcf7ed 55%,#e4eaff);border-color:#c7e5eb;border-radius:18px;box-shadow:inset 0 0 0 4px rgba(255,255,255,.36)}
#extended-settings.settings-shell-v53 .mini-blue i{border-radius:9px;background:#168fa0}
#extended-settings.settings-shell-v53 .mini-blue em{background:linear-gradient(90deg,#168fa0,#0aa477);border-radius:9px}
#extended-settings.settings-shell-v53 .mini-game{background:radial-gradient(circle at 75% 15%,#226c4c,#102d21 58%,#081a12);border-color:#315d49;border-radius:14px}
#extended-settings.settings-shell-v53 .mini-game i{width:30px;height:30px;border-radius:10px;background:#0cd68b;box-shadow:0 0 12px #0cd68b55}
#extended-settings.settings-shell-v53 .mini-game b{background:#789a8a}
#extended-settings.settings-shell-v53 .mini-game em{height:11px;background:#0cd68b;border-radius:8px}

@media(max-width:900px){
  .download-shell.download-theme-data .download-overview,.download-shell.download-theme-data .download-overview.has-qr,
  .download-shell.download-theme-minimal .download-overview,.download-shell.download-theme-minimal .download-overview.has-qr,
  .download-shell.download-theme-qr .download-overview.has-qr,
  .download-shell.download-theme-intro .download-overview,.download-shell.download-theme-intro .download-overview.has-qr,
  .download-shell.download-theme-blue .download-overview,.download-shell.download-theme-blue .download-overview.has-qr,
  .download-shell.download-theme-game .download-overview,.download-shell.download-theme-game .download-overview.has-qr{grid-template-columns:1fr;grid-template-areas:"hero" "install" "qr"}
  .download-shell.download-theme-data .download-hero,.download-shell.download-theme-data .download-card h1,.download-shell.download-theme-data .download-meta,
  .download-shell.download-theme-minimal .download-hero,.download-shell.download-theme-minimal .download-card h1,.download-shell.download-theme-minimal .download-meta,
  .download-shell.download-theme-qr .download-hero,.download-shell.download-theme-qr .download-card h1,.download-shell.download-theme-qr .download-meta,
  .download-shell.download-theme-intro .download-hero,.download-shell.download-theme-intro .download-card h1,.download-shell.download-theme-intro .download-meta,
  .download-shell.download-theme-blue .download-hero,.download-shell.download-theme-blue .download-card h1,.download-shell.download-theme-blue .download-meta,
  .download-shell.download-theme-game .download-hero,.download-shell.download-theme-game .download-card h1,.download-shell.download-theme-game .download-meta{text-align:center}
  .download-shell.download-theme-data .download-hero,.download-shell.download-theme-minimal .download-hero,.download-shell.download-theme-qr .download-hero,.download-shell.download-theme-intro .download-hero,.download-shell.download-theme-blue .download-hero,.download-shell.download-theme-game .download-hero{justify-content:center}
  .download-shell.download-theme-data .download-meta-line,.download-shell.download-theme-minimal .download-meta-line,.download-shell.download-theme-qr .download-meta-line,.download-shell.download-theme-intro .download-meta-line,.download-shell.download-theme-blue .download-meta-line,.download-shell.download-theme-game .download-meta-line{justify-content:center}
  .download-shell.download-theme-data .download-stats{grid-area:auto}
  .download-shell.download-theme-data .download-qr,.download-shell.download-theme-minimal .download-qr,.download-shell.download-theme-qr .download-qr,.download-shell.download-theme-intro .download-qr,.download-shell.download-theme-blue .download-qr,.download-shell.download-theme-game .download-qr{grid-area:qr;align-self:auto}
  .download-shell.download-theme-data .download-install,.download-shell.download-theme-minimal .download-install,.download-shell.download-theme-qr .download-install,.download-shell.download-theme-intro .download-install,.download-shell.download-theme-blue .download-install,.download-shell.download-theme-game .download-install{grid-area:install;margin-left:auto;margin-right:auto;width:100%}
  .download-shell.download-theme-data .download-details,.download-shell.download-theme-blue .download-details,.download-shell.download-theme-game .download-details{grid-template-columns:1fr}
  .download-shell.download-theme-data .download-details>* , .download-shell.download-theme-blue .download-details>* , .download-shell.download-theme-game .download-details>*{grid-column:1!important}
  .download-shell.download-theme-intro .download-details{display:block;padding:30px}
  .download-shell.download-theme-intro .download-details>.download-intro{padding:0 0 28px;border-right:0;border-bottom:1px solid #e5dfd5}
}

@media(max-width:650px){
  .download-shell.download-theme-classic .download-normal-card{padding:30px 20px;border-radius:20px}
  .download-shell.download-theme-data .download-normal-card{padding:18px;border-radius:10px}
  .download-shell.download-theme-data .download-hero{flex-direction:column;text-align:center}
  .download-shell.download-theme-data .download-stats{grid-template-columns:1fr;gap:8px}
  .download-shell.download-theme-data .download-stats>span{display:flex;align-items:center;justify-content:space-between;padding:12px 14px}
  .download-shell.download-theme-data .download-stats strong{margin:0;font-size:18px}
  .download-shell.download-theme-phone{padding:18px 10px 24px}
  .download-shell.download-theme-phone .download-normal-card{width:min(390px,100%);padding:58px 18px 30px;border-width:7px;border-radius:42px}
  .download-shell.download-theme-minimal{padding-top:26px}
  .download-shell.download-theme-minimal .download-overview,.download-shell.download-theme-minimal .download-overview.has-qr{padding:26px 0;gap:22px}
  .download-shell.download-theme-minimal .download-hero{flex-direction:column;align-items:flex-start}
  .download-shell.download-theme-minimal .download-card h1,.download-shell.download-theme-minimal .download-meta{text-align:left}
  .download-shell.download-theme-minimal .download-meta-line{justify-content:flex-start}
  .download-shell.download-theme-minimal .download-qr{flex-direction:column;align-items:flex-start}
  .download-shell.download-theme-qr .download-normal-card{border-radius:18px}
  .download-shell.download-theme-qr .download-hero{flex-direction:column;padding:30px 22px 12px}
  .download-shell.download-theme-qr .download-install{padding:0 22px 28px}
  .download-shell.download-theme-qr .download-qr{padding:28px 20px}
  .download-shell.download-theme-qr .download-qr>.qr{width:190px;height:190px}
  .download-shell.download-theme-qr .download-details{padding:8px 22px 30px}
  .download-shell.download-theme-intro .download-overview,.download-shell.download-theme-intro .download-overview.has-qr{padding:30px 22px;background:#fffdf9}
  .download-shell.download-theme-intro .download-hero{flex-direction:column}
  .download-shell.download-theme-intro .download-card h1{font-size:34px}
  .download-shell.download-theme-intro .download-details{padding:24px 22px 30px}
  .download-shell.download-theme-blue .download-normal-card{padding:20px;border-radius:24px}
  .download-shell.download-theme-blue .download-hero{flex-direction:column;padding:8px}
  .download-shell.download-theme-blue .download-qr{padding:22px}
  .download-shell.download-theme-game .download-normal-card{padding:26px 20px;border-radius:20px}
  .download-shell.download-theme-game .download-hero{flex-direction:column}
  .download-shell.download-theme-game .download-card .download-hero .app-icon{width:112px;height:112px;flex-basis:112px}
  .download-shell.download-theme-game .download-card h1{font-size:35px}
  .download-shell.download-theme-game .download-details{gap:12px}
  .download-shell.download-theme-game .download-details>.release-notes{padding:18px}
}

/* v56.9.8 polish: remove accidental empty bands, make no-QR states intentional,
 * and keep every theme usable on narrow download pages. */
.download-shell .download-normal-card .download-details>.release-notes:first-child{margin-top:0}

/* A theme must not reserve a QR column when the publisher disabled QR. */
.download-shell.download-theme-data .download-overview:not(.has-qr){grid-template-columns:1fr;grid-template-areas:"hero" "stats" "install";max-width:760px;margin-inline:auto}
.download-shell.download-theme-minimal .download-overview:not(.has-qr){grid-template-columns:minmax(0,1fr) minmax(250px,300px);grid-template-areas:"hero install";align-items:center}
.download-shell.download-theme-intro .download-overview:not(.has-qr){grid-template-columns:1fr;grid-template-areas:"hero" "install";background:#fffdf9}
.download-shell.download-theme-blue .download-overview:not(.has-qr){grid-template-columns:1fr;grid-template-areas:"hero" "install";max-width:760px;margin-inline:auto}
.download-shell.download-theme-game .download-overview:not(.has-qr){grid-template-columns:1fr;grid-template-areas:"hero" "install";max-width:820px}

/* The editorial template previously left a blank left column when no app intro existed. */
.download-shell.download-theme-intro .download-details.no-intro{grid-template-columns:1fr;gap:0;max-width:760px;margin-inline:auto}
.download-shell.download-theme-intro .download-details.no-intro>.release-notes:not(.download-intro){grid-column:1;padding:20px 0}
.download-shell.download-theme-intro .download-details.no-intro>.release-notes:first-child{border-top:0;padding-top:0}
.download-shell.download-theme-intro .download-details.no-intro>.download-preview-gallery,
.download-shell.download-theme-intro .download-details.no-intro>.download-previews{grid-column:1}

/* Minimal uses one separator only; no blank double-line band between QR and notes. */
.download-shell.download-theme-minimal .download-details{margin-top:30px}
.download-shell.download-theme-minimal .download-details>.release-notes:first-child{border-top:0;padding-top:0}
.download-shell.download-theme-minimal .download-details>.release-notes:first-child h3{margin-top:0}

@media(max-width:900px){
  .download-shell.download-theme-data .download-overview:not(.has-qr),
  .download-shell.download-theme-minimal .download-overview:not(.has-qr),
  .download-shell.download-theme-intro .download-overview:not(.has-qr),
  .download-shell.download-theme-blue .download-overview:not(.has-qr),
  .download-shell.download-theme-game .download-overview:not(.has-qr){grid-template-columns:1fr;grid-template-areas:"hero" "install"}
  .download-shell.download-theme-data .download-overview:not(.has-qr){grid-template-areas:"hero" "stats" "install"}
}

@media(max-width:650px){
  /* Classic stays a centered app card, but no longer feels oversized. */
  .download-shell.download-theme-classic{padding:16px 12px 24px}
  .download-shell.download-theme-classic .download-normal-card{margin:10px auto 0;padding:28px 20px 24px;border-radius:22px}
  .download-shell.download-theme-classic .download-normal-card .download-hero .app-icon{width:92px;height:92px;margin-bottom:18px}
  .download-shell.download-theme-classic .download-qr{padding:18px;margin-top:22px}
  .download-shell.download-theme-classic .download-qr>.qr{width:156px;height:156px}
  .download-shell.download-theme-classic .download-details{margin-top:26px}

  /* Dashboard: compact metrics, then action and QR; no long empty rail. */
  .download-shell.download-theme-data{padding:14px 10px 24px}
  .download-shell.download-theme-data .download-normal-card{margin:8px auto 0;padding:16px 14px 18px}
  .download-shell.download-theme-data .download-overview,.download-shell.download-theme-data .download-overview.has-qr{gap:14px}
  .download-shell.download-theme-data .download-hero{padding-bottom:14px}
  .download-shell.download-theme-data .download-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .download-shell.download-theme-data .download-stats>span{display:block;padding:10px 7px;text-align:center;font-size:10px}
  .download-shell.download-theme-data .download-stats strong{display:block;margin-top:5px;font-size:15px}
  .download-shell.download-theme-data .download-qr{padding:18px 14px}
  .download-shell.download-theme-data .download-qr>.qr{width:148px;height:148px}
  .download-shell.download-theme-data .download-details{margin-top:20px;padding-top:0;border-top:0;gap:10px}
  .download-shell.download-theme-data .download-details>.release-notes{margin-top:0;padding:16px}

  /* Phone frame still reads as a phone, without fighting the physical phone viewport. */
  .download-shell.download-theme-phone{padding:14px 8px 22px}
  .download-shell.download-theme-phone .download-normal-card{width:100%;max-width:372px;margin:6px auto 0;padding:52px 16px 28px;border-width:5px;border-radius:38px}
  .download-shell.download-theme-phone .download-normal-card::before{top:10px;width:78px;height:20px}
  .download-shell.download-theme-phone .download-normal-card::after{bottom:9px;width:88px;height:4px}
  .download-shell.download-theme-phone .download-card .download-hero .app-icon{width:82px;height:82px}
  .download-shell.download-theme-phone .download-qr{padding:15px;margin-top:20px}
  .download-shell.download-theme-phone .download-qr>.qr{width:138px;height:138px}
  .download-shell.download-theme-phone .download-details{margin-top:20px}

  /* Minimal: one clean reading rail. */
  .download-shell.download-theme-minimal{padding:22px 20px 26px}
  .download-shell.download-theme-minimal .download-normal-card{margin:0 auto}
  .download-shell.download-theme-minimal .download-overview,.download-shell.download-theme-minimal .download-overview.has-qr{display:flex;flex-direction:column;align-items:stretch;padding:22px 0 24px;gap:20px;border-bottom:1px solid #d9e4de}
  .download-shell.download-theme-minimal .download-hero{flex-direction:row;align-items:center;gap:16px}
  .download-shell.download-theme-minimal .download-card .download-hero .app-icon{width:66px;height:66px;flex-basis:66px}
  .download-shell.download-theme-minimal .download-card h1{font-size:31px}
  .download-shell.download-theme-minimal .download-install{width:100%;margin:0}
  .download-shell.download-theme-minimal .download-qr{flex-direction:row;align-items:center;gap:14px;width:100%;margin:0}
  .download-shell.download-theme-minimal .download-qr>.qr{width:76px;height:76px;flex:0 0 76px}
  .download-shell.download-theme-minimal .download-details{margin:26px 0 0}
  .download-shell.download-theme-minimal .download-details>.release-notes{padding:22px 0}
  .download-shell.download-theme-minimal .download-details>.release-notes:first-child{padding-top:0}

  /* QR poster: keep the poster identity, but avoid a giant full-width green slab. */
  .download-shell.download-theme-qr{padding:16px 10px 24px}
  .download-shell.download-theme-qr .download-normal-card{margin:8px auto 0;padding:10px;background:rgba(255,255,255,.76);border-radius:22px}
  .download-shell.download-theme-qr .download-overview.has-qr{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:22px 16px 18px;background:#fff;border-radius:16px}
  .download-shell.download-theme-qr .download-hero{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;padding:0;text-align:left}
  .download-shell.download-theme-qr .download-card .download-hero .app-icon{width:76px;height:76px;flex-basis:76px;margin:0}
  .download-shell.download-theme-qr .download-card h1,.download-shell.download-theme-qr .download-meta{text-align:left}
  .download-shell.download-theme-qr .download-meta-line{justify-content:flex-start}
  .download-shell.download-theme-qr .download-install{padding:0;margin:0}
  .download-shell.download-theme-qr .download-install>.install-button{max-width:none}
  .download-shell.download-theme-qr .download-qr{width:auto;max-width:none;margin:0;padding:20px 16px;border-radius:16px;background:linear-gradient(145deg,#079a74,#0bad83)}
  .download-shell.download-theme-qr .download-qr>.qr{width:154px;height:154px;padding:9px;border-radius:13px}
  .download-shell.download-theme-qr .download-details{padding:24px 10px 10px}
  .download-shell.download-theme-qr .download-details .release-notes{padding:19px 0}

  /* Editorial: graceful when description exists and equally valid when it does not. */
  .download-shell.download-theme-intro{padding:16px 12px 24px}
  .download-shell.download-theme-intro .download-normal-card{margin:8px auto 0;border-radius:4px}
  .download-shell.download-theme-intro .download-overview,.download-shell.download-theme-intro .download-overview.has-qr{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:26px 20px;background:#fffdf9;border-bottom:1px solid #e7e0d4}
  .download-shell.download-theme-intro .download-hero{flex-direction:row;align-items:center;gap:16px}
  .download-shell.download-theme-intro .download-card .download-hero .app-icon{width:80px;height:80px;flex-basis:80px;margin:0}
  .download-shell.download-theme-intro .download-card h1{font-size:32px}
  .download-shell.download-theme-intro .download-install{max-width:none;margin:0}
  .download-shell.download-theme-intro .download-qr{padding:16px;margin:0;background:#f4f8f5}
  .download-shell.download-theme-intro .download-qr>.qr{width:140px;height:140px}
  .download-shell.download-theme-intro .download-details,.download-shell.download-theme-intro .download-details.no-intro{display:block;padding:24px 20px 28px;margin:0}
  .download-shell.download-theme-intro .download-details>.download-intro{padding:0 0 22px;border:0;border-bottom:1px solid #e5dfd5}
  .download-shell.download-theme-intro .download-details>.release-notes:not(.download-intro){padding:20px 0}
  .download-shell.download-theme-intro .download-details.no-intro>.release-notes:first-child{padding-top:0}

  /* Glass and game keep their identities but use compact QR/details cards. */
  .download-shell.download-theme-blue{padding:16px 10px 24px}
  .download-shell.download-theme-blue .download-normal-card{margin:8px auto 0;padding:18px 16px;border-radius:24px}
  .download-shell.download-theme-blue .download-qr{padding:18px}
  .download-shell.download-theme-blue .download-qr>.qr{width:150px;height:150px}
  .download-shell.download-theme-blue .download-details{margin-top:20px;gap:10px}
  .download-shell.download-theme-blue .download-details>.release-notes{padding:17px}

  .download-shell.download-theme-game{padding:16px 10px 24px}
  .download-shell.download-theme-game .download-normal-card{margin:8px auto 0;padding:24px 16px 22px;border-radius:22px}
  .download-shell.download-theme-game .download-card .download-hero .app-icon{width:96px;height:96px;flex-basis:96px}
  .download-shell.download-theme-game .download-card h1{font-size:32px}
  .download-shell.download-theme-game .download-qr{padding:18px}
  .download-shell.download-theme-game .download-qr>.qr{width:150px;height:150px}
  .download-shell.download-theme-game .download-details{margin-top:22px;gap:10px}
  .download-shell.download-theme-game .download-details>.release-notes{padding:17px}
}

/* v56.9.13.1: public download-only footer and stat wrapping.
 * Keep these selectors in the download template sheet so administrator list styles
 * remain strictly scoped to the admin dialog. */
.download-shell .download-report-footer{width:100%;max-width:680px;margin:18px auto 0;padding:18px 0 6px;border-top:1px solid rgba(30,90,66,.12);text-align:center}
.download-shell .download-report-footer .report-trigger{margin:0;min-width:108px;background:transparent;box-shadow:none}
.download-shell.download-theme-game .download-report-footer{border-color:rgba(173,219,193,.23)}
.download-shell.download-theme-game .download-report-footer .report-trigger{color:#bedbca;border-color:rgba(173,219,193,.28)}
.download-shell .download-stats strong{overflow-wrap:anywhere}


/* v56.9.15: QR presentation is intentionally bare in all eight templates.
 * Keep only the QR bitmap and its caption; no panel, tint, border, radius,
 * padding or decorative shadow may surround either element. */
.download-shell .download-qr,
.download-shell.download-theme-classic .download-qr,
.download-shell.download-theme-data .download-qr,
.download-shell.download-theme-phone .download-qr,
.download-shell.download-theme-minimal .download-qr,
.download-shell.download-theme-qr .download-qr,
.download-shell.download-theme-intro .download-qr,
.download-shell.download-theme-blue .download-qr,
.download-shell.download-theme-game .download-qr{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.download-shell .download-qr>.qr,
.download-shell.download-theme-classic .download-qr>.qr,
.download-shell.download-theme-data .download-qr>.qr,
.download-shell.download-theme-phone .download-qr>.qr,
.download-shell.download-theme-minimal .download-qr>.qr,
.download-shell.download-theme-qr .download-qr>.qr,
.download-shell.download-theme-intro .download-qr>.qr,
.download-shell.download-theme-blue .download-qr>.qr,
.download-shell.download-theme-game .download-qr>.qr{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.download-shell.download-theme-qr .download-scan-caption{color:var(--muted)!important}
.download-shell.download-theme-game .download-scan-caption{color:#b5d4c3!important}

/* v56.9.16.2 FIX21: keep the primary download/status button optically centered on narrow screens. */
@media(max-width:650px){
  .download-shell .download-overview>.download-install,
  .download-shell .download-overview.has-qr>.download-install,
  .download-shell.download-theme-classic .download-install,
  .download-shell.download-theme-data .download-install,
  .download-shell.download-theme-phone .download-install,
  .download-shell.download-theme-minimal .download-install,
  .download-shell.download-theme-qr .download-install,
  .download-shell.download-theme-intro .download-install,
  .download-shell.download-theme-blue .download-install,
  .download-shell.download-theme-game .download-install{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    align-self:center!important;
    justify-self:center!important;
  }
  .download-shell .download-install>.install-button{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
}
