/* Page-level direction: a quiet platform workbench with the directory as the task. */
.home-page .topbar { width: min(1120px, calc(100% - 40px)); }
.home-page {
  --home-ink: #16263b;
  --home-muted: #647489;
  --home-blue: #2f5bff;
  background: #f3f6f8;
  color: var(--home-ink);
}
.home-page .topbar {
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 34px rgba(37,54,74,.09);
}
.home-page .home-hero-minimal {
  min-height: 390px;
  padding: 106px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: center;
  gap: 70px;
  position: relative;
}
.home-page .home-hero-minimal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: min(42vw, 520px);
  height: 1px;
  background: #d7e0e8;
}
.home-page .home-hero-minimal .hero-message { padding: 0 0 0 28px; border-left: 2px solid var(--home-blue); text-align: left; }
.home-page .home-hero-minimal .hero-message span { display: none; }
.home-page .home-hero-minimal .hero-message strong { max-width: none; margin: 0; font-size: clamp(42px, 5.8vw, 76px); line-height: 1.08; letter-spacing: -.05em; white-space: nowrap; color: #172b4d; }
.home-page .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 90px; }
.home-page .platform-card { min-height: 330px; padding: 28px; border: 0; border-radius: 22px; box-shadow: 0 18px 36px rgba(39,56,77,.1); transition: transform .22s ease, box-shadow .22s ease; }
.home-page .platform-android { background: linear-gradient(145deg, #d9e8ff 0%, #eef4ff 100%); }
.home-page .platform-ios { background: linear-gradient(145deg, #ffe5a5 0%, #fff4d6 100%); transform: translateY(24px); }
.home-page .platform-card:hover, .home-page .platform-card:focus-visible { transform: translateY(-7px); box-shadow: 0 24px 46px rgba(39,56,77,.16); outline: 3px solid rgba(47,91,255,.18); outline-offset: 3px; }
.home-page .platform-ios:hover, .home-page .platform-ios:focus-visible { transform: translateY(17px); }

.android-page .android-header { min-height: 132px; padding-top: 18px; padding-bottom: 18px; }
.android-page .android-header h1 { margin: 0; }
.android-page .android-directory { min-height: 270px; }
.android-page .directory-heading h2 { margin-bottom: 0; }
.android-page .directory-heading p { display: none; }

.ios-directory-page .android-header { min-height: 132px; }
.ios-directory-page .android-header h1 { font-size: clamp(48px, 5vw, 70px); }
.ios-directory-page .ios-directory { min-height: 360px; }
.ios-directory-page .ios-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  padding-top: 20px;
}
.ios-directory-page .ios-card {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e3ea;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f4f8fb 100%);
  box-shadow: 0 10px 24px rgba(50, 75, 95, .07);
  backdrop-filter: none;
}
.ios-directory-page {
  background: #f1f4f6;
}
.ios-directory-page .page-shell {
  background: transparent;
}
.ios-directory-page .ios-directory {
  background: rgba(255,255,255,.82);
  border: 1px solid #e0e6eb;
  box-shadow: 0 18px 42px rgba(30, 52, 72, .08);
}
.ios-directory-page .ios-title {
  background: #edf2f5;
  color: #172b3f;
  border-bottom: 1px solid #dbe3e8;
}
.ios-directory-page .ios-title small {
  color: #315bff;
  background: #e7edff;
  border-radius: 6px;
  padding: 5px 8px;
}

.directory-topbar { width: min(1120px, calc(100% - 40px)); margin: 18px auto 0; }
.android-page > .directory-topbar { display: flex; }
.android-page .android-shell { width: min(1440px, calc(100% - 28px)); }
.android-page .android-rail { padding-top: 32px; }
.android-page .category-nav { margin-top: 26px; }
.android-page .category-nav button { width: 100%; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--site-muted); font-size: 12px; }
.android-page .category-nav button:hover,
.android-page .category-nav button.is-active { background: var(--site-blue-soft); color: var(--site-blue); font-weight: 700; }
@media (max-width: 800px) {
  .directory-topbar { width: calc(100% - 28px); }
  .android-page .android-rail { padding-top: 13px; }
  .android-page .category-nav { margin-top: 0; }
}

/* Directory pages keep the platform switcher available on mobile. The home
   page intentionally keeps its compact header, but Android/iOS need a clear
   way back to the home page after the rail moves below the header. */
@media (max-width: 800px) {
  .android-page .directory-topbar .main-nav,
  .ios-directory-page .directory-topbar .main-nav {
    display: flex;
    min-width: 0;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .android-page .directory-topbar .main-nav::-webkit-scrollbar,
  .ios-directory-page .directory-topbar .main-nav::-webkit-scrollbar { display: none; }
  .android-page .directory-topbar .main-nav a,
  .ios-directory-page .directory-topbar .main-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    white-space: nowrap;
    font-size: 12px;
  }
  .android-page .directory-topbar .nav-community,
  .ios-directory-page .directory-topbar .nav-community {
    flex: 0 0 auto;
    padding-inline: 9px;
    white-space: nowrap;
    font-size: 11px;
  }
}

/* On narrow screens the platform switcher stays in the header, while the
   content categories remain a dedicated vertical rail beside the directory. */
@media (max-width: 800px) {
  .android-page .android-shell,
  .ios-directory-page .android-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }
  .android-page .android-rail,
  .ios-directory-page .android-rail {
    min-height: calc(100vh - 84px);
    height: calc(100vh - 84px);
    padding: 16px 8px;
    display: flex;
    position: sticky;
    top: 76px;
    border-right: 1px solid #dfe6eb;
    border-bottom: 0;
    background: rgba(255,255,255,.9);
  }
  .android-page .android-rail .rail-brand,
  .ios-directory-page .android-rail .rail-brand,
  .android-page .android-rail .rail-community,
  .ios-directory-page .android-rail .rail-community { display: none; }
  .android-page .android-rail .category-nav,
  .ios-directory-page .android-rail .category-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 0;
  }
  .android-page .android-rail .category-nav button,
  .ios-directory-page .android-rail .category-nav button {
    min-width: 0;
    min-height: 42px;
    padding: 7px 3px;
    font-size: 11px;
  }
  .android-page .android-main,
  .ios-directory-page .android-main { min-width: 0; padding: 18px 12px 40px; }
}
.ios-directory-page .ios-download {
  display: inline-flex;
  min-width: 190px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #315bff;
  box-shadow: 0 7px 14px rgba(49,91,255,.14);
}
.ios-directory-page .ios-app-name { display: block; margin-bottom: 5px; color: #172b3f; font-size: 16px; }
.ios-directory-page .ios-title { align-items: center; }
.ios-directory-page .ios-title-info { min-width: 0; display: flex; align-items: center; gap: 13px; }
.ios-directory-page .ios-title-info .app-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.ios-directory-page .ios-title-info p { margin: 0; max-width: 330px; color: #687681; font-size: 12px; line-height: 1.5; }
.ios-directory-page .steps { padding-left: 0; list-style: none; }
.ios-directory-page .steps > div { padding: 2px 0; }
.android-stats { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #edf1f4; }
.android-stats span { min-width: 0; }
.android-stats b, .android-stats small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.android-stats b { color: var(--site-ink); font-size: 11px; }
.android-stats small { margin-top: 3px; color: #9aa6af; font-size: 9px; }
.tile-comment { display: none; }
.android-app-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; }
.android-app-head > img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; background: #edf2f5; }
.android-app-head h3 { min-width: 0; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.android-rating { color: #d28b19; font-size: 10px; line-height: 1.4; }
.android-tile .tile-content { min-width: 0; }
.android-tile .tile-content p { height: auto; min-height: 36px; margin-top: 14px; }
.ios-directory-page .ios-title-info p { overflow-wrap: anywhere; }
.ios-directory-page .ios-title > small { flex: 0 0 auto; }
@media (max-width: 560px) {
  .android-app-head { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .android-app-head > img { width: 44px; height: 44px; }
  .android-app-head h3 { font-size: 14px; }
  .ios-directory-page .ios-title { align-items: flex-start; }
  .ios-directory-page .ios-title-info { width: 100%; }
  .ios-directory-page .ios-title > small { margin-left: 67px; }
}
.admin-extra-fields { display: grid; }
.ios-directory-page .ios-download:hover,
.ios-directory-page .ios-download:focus-visible {
  background: #2448d8;
}
.ios-directory-page .ios-title {
  padding: 16px 18px;
  background: linear-gradient(100deg, #ffe08a, #ffedbe);
}
.ios-directory-page .ios-title strong { font-size: 18px; }
.ios-directory-page .ios-body { padding: 18px; background: transparent; }
.ios-directory-page .ios-intro { min-height: 84px; padding-bottom: 16px; }
.ios-directory-page .ios-intro .app-logo { width: 58px; height: 58px; border-radius: 15px; }
.ios-directory-page .ios-field { padding: 11px 0; font-size: 13px; }
.ios-directory-page .ios-download { min-height: 44px; }

@media (max-width: 1180px) {
  .ios-directory-page .ios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .home-page .home-hero-minimal { min-height: 300px; padding: 78px 0 54px; grid-template-columns: 1fr; gap: 0; }
  .home-page .home-hero-minimal::before { top: auto; bottom: 26px; width: 100%; }
  .home-page .home-hero-minimal .hero-message { padding-left: 20px; }
  .home-page .platform-grid { margin-bottom: 48px; }
  .home-page .platform-ios { transform: none; }
  .home-page .platform-ios:hover, .home-page .platform-ios:focus-visible { transform: translateY(-7px); }
  .ios-directory-page .android-header { min-height: 0; padding-bottom: 22px; }
  .ios-directory-page .ios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .home-page .home-hero-minimal .hero-message strong { font-size: 42px; white-space: normal; }
  .home-page .platform-grid { grid-template-columns: 1fr; }
  .ios-directory-page .ios-grid { grid-template-columns: 1fr; }
  .ios-directory-page .ios-card { min-width: 0; }
}

/* Homepage v2: search-first app discovery surface. */
.home-v2 { background: #f5f7f8; color: #172536; }
.home-v2 .topbar { border-bottom: 1px solid #e1e7eb; background: rgba(245, 247, 248, .94); }
.home-v2 .home-main { width: min(1120px, calc(100% - 40px)); padding-bottom: 70px; }
.home-v2 .announcement-bar { margin-top: 18px; border-color: #dce4e8; background: #fff; color: #315bff; }
.home-search-panel { margin-top: 28px; padding: 36px 38px 30px; border: 1px solid #e0e7eb; border-radius: 14px; background: #fff; }
.home-search-copy h1 { margin: 8px 0 0; color: #172536; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: 0; }
.home-search-copy p { margin: 12px 0 0; color: #71808c; font-size: 14px; }
.home-search-box { display: flex; min-height: 56px; align-items: center; gap: 12px; margin-top: 28px; padding: 0 16px; border: 1px solid #cfd9df; border-radius: 10px; background: #f8fafb; transition: border-color .18s ease, box-shadow .18s ease; }
.home-search-box:focus-within { border-color: #315bff; box-shadow: 0 0 0 3px rgba(49, 91, 255, .1); }
.home-search-box > span { color: #315bff; font-size: 25px; line-height: 1; transform: rotate(-18deg); }
.home-search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #172536; font: inherit; font-size: 14px; }
.home-search-box input::placeholder { color: #9aa7b0; }
.home-search-box kbd { padding: 4px 8px; border: 1px solid #dce4e8; border-radius: 5px; background: #fff; color: #8997a3; font-size: 11px; }
.home-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-filter { min-height: 34px; padding: 7px 13px; border: 1px solid #dce4e8; border-radius: 999px; background: #fff; color: #64727e; cursor: pointer; font: inherit; font-size: 12px; transition: .16s ease; }
.home-filter:hover { border-color: #aebcf5; color: #315bff; }
.home-filter.is-active { border-color: #315bff; background: #315bff; color: #fff; }
.home-v2 .home-section-heading { margin-bottom: 18px; }
.home-v2 .home-section-heading h2 { color: #172536; font-size: 26px; line-height: 1.2; }
.home-today, .home-catalog { padding-top: 42px; }
.home-platform-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dce4e8; border-radius: 8px; background: #edf1f3; }
.home-platform-tabs button { min-height: 30px; padding: 5px 12px; border: 0; border-radius: 6px; background: transparent; color: #6f7e89; cursor: pointer; font: inherit; font-size: 12px; }
.home-platform-tabs button.is-active { background: #fff; color: #172536; box-shadow: 0 1px 3px rgba(28, 48, 66, .12); }
.home-today-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.home-today-card, .home-app-card { min-width: 0; border: 1px solid #e0e7eb; border-radius: 12px; background: #fff; }
.home-today-card { display: flex; min-height: 218px; flex-direction: column; padding: 20px; }
.home-today-card.is-featured { border-color: #d8c9b8; background: #fffaf3; }
.home-today-card-head, .home-app-card-head { display: flex; min-width: 0; align-items: center; gap: 11px; }
.home-today-card-head img, .home-app-card-head img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: #edf2f5; }
.home-app-card-head img { width: 46px; height: 46px; border-radius: 12px; }
.home-platform-label { color: #8997a3; font-size: 10px; }
.home-today-card h3, .home-app-card h3 { overflow: hidden; margin: 4px 0 0; color: #172536; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.home-today-card p, .home-app-card p { display: -webkit-box; overflow: hidden; margin: 15px 0 12px; color: #697985; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-today-card .app-tags, .home-app-card .app-tags { margin-top: auto; }
.home-today-card-foot, .home-app-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9aa7b0; font-size: 11px; }
.home-today-card-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid #eadfd2; }
.home-today-card:not(.is-featured) .home-today-card-foot { border-color: #e7edef; }
.home-today-card-foot a, .home-app-card-link { color: #315bff; font-size: 12px; font-weight: 700; }
.home-catalog .home-section-heading { align-items: center; }
.home-result-count { color: #8997a3; font-size: 12px; }
.home-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-app-card { display: flex; min-height: 204px; flex-direction: column; padding: 17px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.home-app-card:hover { border-color: #b9c8ff; box-shadow: 0 10px 24px rgba(49, 91, 255, .09); transform: translateY(-2px); }
.home-app-card .app-tags { margin-top: 14px; }
.home-app-card p { margin-top: 12px; }
.home-app-card-meta { margin-top: auto; }
.home-app-card-link { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e7edef; }
.home-trust-strip { display: flex; align-items: baseline; gap: 12px; margin-top: 38px; padding: 14px 16px; border-left: 3px solid #d97851; background: #fff; color: #75838d; font-size: 12px; }
.home-trust-strip strong { color: #384855; font-size: 12px; }
.home-v2 .footer { background: #f5f7f8; }
@media (max-width: 840px) { .home-today-grid, .home-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-today-card.is-featured { grid-column: 1 / -1; } }
@media (max-width: 600px) { .home-v2 .home-main { width: calc(100% - 24px); } .home-search-panel { margin-top: 18px; padding: 25px 18px 20px; } .home-search-copy h1 { font-size: 31px; } .home-search-box { margin-top: 21px; } .home-search-box kbd { display: none; } .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; } .home-platform-tabs { align-self: stretch; } .home-platform-tabs button { flex: 1; } .home-today, .home-catalog { padding-top: 32px; } .home-today-grid, .home-catalog-grid { grid-template-columns: 1fr; } .home-today-card.is-featured { grid-column: auto; } .home-trust-strip { display: block; } .home-trust-strip span { display: block; margin-top: 6px; line-height: 1.6; } }

/* Homepage platform split: two equal, low-noise directory cards. */
.home-platform-home { background: #f5f7f8; color: #172536; }
.home-platform-home .topbar { border-bottom: 1px solid #e1e7eb; background: rgba(245, 247, 248, .94); }
.home-platform-home .home-main { width: min(1120px, calc(100% - 40px)); padding-bottom: 60px; }
.home-platform-home .announcement-bar { margin-top: 18px; }
.home-platform-intro { padding: 54px 4px 52px; text-align: center; }
.home-platform-intro h1 { margin: 8px 0 0; color: #172536; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: 0; }
.home-title-focus { color: #d97851; }
.home-platform-intro p { margin: 11px 0 0; color: #71808c; font-size: 14px; }
.home-platform-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-platform-card { display: flex; min-width: 0; min-height: 420px; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, .78); border-radius: 18px; background: rgba(255, 255, 255, .46); box-shadow: 0 18px 40px rgba(46, 67, 83, .12), inset 0 1px 0 rgba(255, 255, 255, .86); backdrop-filter: blur(18px); }
.home-platform-card-android .home-platform-card-head { background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(225, 244, 236, .76)); }
.home-platform-card-ios .home-platform-card-head { background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(230, 234, 255, .78)); }
.home-platform-card-head { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 24px 22px 22px; border-bottom: 1px solid rgba(181, 196, 205, .54); color: inherit; }
.home-platform-card-head > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.home-platform-card-head small { color: #8997a3; font-size: 10px; letter-spacing: .12em; }
.home-platform-card-head strong { color: #172536; font-size: 22px; line-height: 1.1; }
.home-platform-card-head em { color: #788791; font-size: 12px; font-style: normal; }
.home-platform-card-head em b { color: #172536; font-size: 14px; }
.home-platform-logo { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; background: rgba(255, 255, 255, .64); box-shadow: 0 7px 16px rgba(47, 73, 87, .1); }
.home-platform-card-ios .home-platform-logo { background: rgba(255, 255, 255, .68); }
.home-platform-logo img { width: 32px; height: 32px; object-fit: contain; }
.home-platform-latest-heading { display: flex; align-items: center; justify-content: space-between; margin: 19px 22px 8px; }
.home-platform-latest-heading strong { color: #394b58; font-size: 13px; }
.home-platform-latest-heading a { color: #315bff; font-size: 11px; }
.home-latest-list { display: grid; flex: 1; gap: 0; margin: 0 22px 18px; padding: 0; list-style: none; }
.home-latest-list li { min-width: 0; }
.home-latest-list li > a { display: grid; grid-template-columns: 20px 34px minmax(0, 1fr) auto; min-height: 62px; align-items: center; gap: 9px; padding: 8px 7px; border-bottom: 1px solid rgba(181, 196, 205, .48); color: #2d3c47; transition: background .16s ease; }
.home-latest-list li:last-child > a { border-bottom: 0; }
.home-latest-list li > a:hover { background: rgba(255, 255, 255, .46); }
.home-latest-index { color: #94a2aa; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.home-latest-list img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #edf2f5; }
.home-latest-name { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-latest-copy { display: grid; min-width: 0; gap: 3px; }
.home-latest-rating { display: block; min-height: 13px; line-height: 1; }
.home-download-count { color: #8997a3; font-size: 11px; white-space: nowrap; }
.home-latest-empty { display: grid; min-height: 180px; place-items: center; color: #9aa7b0; font-size: 12px; }
.home-platform-home .footer { background: #f5f7f8; }
@media (max-width: 680px) { .home-platform-home .home-main { width: calc(100% - 24px); } .home-platform-intro { padding: 38px 0 42px; } .home-platform-cards { grid-template-columns: 1fr; gap: 12px; } .home-platform-card { min-height: 0; } .home-platform-card-head { padding: 20px 18px 18px; } .home-platform-latest-heading { margin-inline: 18px; } .home-latest-list { margin-inline: 18px; } .home-latest-list li > a { min-height: 58px; } }

.announcement-bar { display:flex; align-items:center; min-height:44px; margin:20px 0 0; padding:0 16px; border:1px solid #c8d7ee; border-radius:12px; background:#fff; color:var(--announcement-color, #315bff); overflow:hidden; }
.announcement-viewport { min-width:0; flex:1; overflow:hidden; }
.announcement-track { display:flex; width:max-content; align-items:center; animation:announcement-scroll var(--announcement-speed, 18s) linear infinite; color:inherit; font-family:var(--announcement-font, system-ui, sans-serif); font-size:13px; white-space:nowrap; }
.announcement-segment { display:flex; min-width:min(100vw, 1088px); flex:none; align-items:center; justify-content:flex-end; gap:26px; padding:0 40px 0 16px; }
.announcement-track:hover { animation-play-state:paused; }
.announcement-track, .announcement-track span, .announcement-track a { color:var(--announcement-color, #315bff) !important; }
.announcement-text { display:block; max-width:80vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@keyframes announcement-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.home-section { padding:64px 0; }
.home-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.home-section-heading h2 { margin:9px 0 0; font-size:clamp(26px,4vw,42px); line-height:1; }
.home-section-heading a { color:var(--site-blue); font-size:13px; }
.home-recommendation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.home-recommendation-card { min-width:0; padding:18px; border:1px solid var(--site-line); border-radius:14px; background:#ffffffd9; box-shadow:0 14px 28px #30455d0d; }
.home-recommendation-head { display:flex; align-items:center; gap:11px; }
.home-recommendation-head img { width:48px; height:48px; border-radius:13px; object-fit:cover; background:#edf2f5; }
.home-recommendation-head span { color:var(--site-muted); font-size:10px; }
.home-recommendation-head h3 { margin:3px 0 0; font-size:17px; }
.home-recommendation-card>p { min-height:42px; margin:15px 0 12px; color:var(--site-muted); font-size:12px; line-height:1.7; }
.home-recommendation-link { display:flex; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid var(--site-line); color:var(--site-blue); font-size:12px; font-weight:700; }
.home-recommendation-empty { padding:24px; border:1px dashed var(--site-line); border-radius:12px; color:var(--site-muted); text-align:center; }
.app-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.app-tag { display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; background:#edf2f5; color:#536574; font-size:10px; line-height:1; }
.app-tag-4k,.app-tag-2k { background:#e8efff; color:#315bff; }
.app-tag-可投屏 { background:#e4f7f2; color:#16856d; }
.app-tag-无广告 { background:#fff0dd; color:#b76b12; }
.app-tag-支持弹幕 { background:#f0e9ff; color:#7042c4; }
.app-tag-小窗口 { background:#fff7d7; color:#8a6c00; }
@media (max-width:800px) { .home-recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .announcement-bar { margin-top:12px; } .home-section { padding:45px 0; } .home-section-heading { align-items:start; flex-direction:column; gap:10px; } .home-recommendation-grid { grid-template-columns:1fr; } }

/* Home typography: tighter hierarchy and calmer reading rhythm. */
.home-page .home-hero-minimal .hero-message strong {
  max-width: 680px;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.home-page .home-hero-minimal .hero-message strong span + span { margin-top: 4px; }
.home-page .platform-card-top { font-size: 10px; letter-spacing: .12em; }
.home-page .platform-icon { width: 42px; height: 42px; border-radius: 13px; }
.home-page .platform-card-main { padding: 34px 0 26px; }
.home-page .platform-card-main h2 {
  margin: 0 0 13px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}
.home-page .platform-card-main p {
  max-width: 390px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.home-page .platform-card-foot {
  padding-top: 17px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}
@media (max-width: 520px) {
  .home-page .home-hero-minimal .hero-message strong { font-size: 42px; }
  .home-page .platform-card-main { padding-top: 28px; }
  .home-page .platform-card-main h2 { font-size: 46px; }
}

/* gpt-taste pass: wide Chinese typography, restrained color, purposeful motion. */
.home-page {
  --home-ink: #172536;
  --home-muted: #697686;
  --home-paper: #f1f3f1;
  --home-blue: #315bff;
  --home-coral: #d97851;
  background: var(--home-paper);
  font-family: Outfit, "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
}
.home-page .topbar {
  width: min(1160px, calc(100% - 56px));
  height: 64px;
  margin-top: 22px;
  padding-inline: 18px;
  border: 1px solid #dce2de;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(33,48,62,.06);
}
.home-page .home-main { width: min(1160px, calc(100% - 56px)); }
.home-page .home-hero-minimal {
  min-height: 0;
  padding: 132px 0 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  gap: 64px;
}
.home-page .home-hero-minimal .hero-message { min-width: 0; }
.home-page .home-hero-minimal .hero-message strong {
  max-width: 820px;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--home-ink);
}
.home-page .home-hero-minimal .hero-message strong span:first-child { color: var(--home-ink); }
.home-page .home-hero-minimal .hero-message strong span:last-child { color: var(--home-coral); }
.home-page .platform-grid {
  gap: 18px;
  margin-bottom: 104px;
}
.home-page .platform-card,
.home-page .platform-ios {
  min-height: 320px;
  padding: 28px;
  border: 1px solid #d8e0dc;
  border-top: 3px solid var(--home-blue);
  border-radius: 14px;
  background: #f8faf9;
  box-shadow: 0 8px 24px rgba(33,48,62,.05);
  animation: home-card-in .65s cubic-bezier(.22,1,.36,1) both;
}
.home-page .platform-ios {
  border-top-color: var(--home-coral);
  background: #fffaf7;
  animation-delay: .1s;
}
.home-page .platform-card:hover,
.home-page .platform-card:focus-visible,
.home-page .platform-ios:hover,
.home-page .platform-ios:focus-visible {
  transform: translateY(-8px);
  border-color: #b9c8c1;
  box-shadow: 0 18px 34px rgba(33,48,62,.11);
}
.home-page .platform-card-main h2 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--home-ink);
}
.home-page .platform-card-main p {
  max-width: 430px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}
.home-page .platform-card-foot {
  color: var(--home-muted);
  font-size: 12px;
}
@keyframes home-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .platform-card,
  .home-page .platform-ios { animation: none; transition: none; }
}
@media (max-width: 800px) {
  .home-page .topbar,
  .home-page .home-main { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .home-page .topbar { position: sticky; display: block; margin-inline: auto; }
  .home-page .main-nav { display: none; }
  .home-page .brand { min-width: 0; padding-right: 94px; }
  .home-page .top-actions { position: absolute; top: 50%; right: 12px; display: block !important; width: 78px; min-width: 78px; transform: translateY(-50%); }
  .home-page .top-actions .nav-community { display: block; width: 78px; }
  .home-page .brand > span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-page .home-hero-minimal { padding: 92px 0 70px; grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .home-page .home-hero-minimal .hero-message strong { font-size: 44px; line-height: 1.18; }
  .home-page .brand > span:last-child { max-width: 128px; }
  .home-page .nav-community { max-width: 100%; padding-inline: 10px; white-space: nowrap; }
  .home-page .platform-grid,
  .home-page .platform-card,
  .home-page .platform-card-main { min-width: 0; max-width: 100%; }
  .home-page .platform-card,
  .home-page .platform-ios { min-height: 280px; padding: 23px; }
}

/* Final iOS palette override: keep the card readable without a second accent color. */
.ios-directory-page .ios-title {
  background: #edf2f5;
  color: #172b3f;
  border-bottom: 1px solid #dbe3e8;
}
.ios-directory-page .ios-title small {
  color: #315bff;
  background: #e7edff;
}

/* Keep the two hero lines independent from the legacy hidden kicker rule. */
.home-page .home-hero-minimal .hero-message > strong {
  display: block !important;
  max-width: 820px !important;
  margin: 0 !important;
  color: #172536 !important;
  font-size: clamp(48px, 6.2vw, 84px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.012em !important;
  white-space: normal !important;
}
.home-page .home-hero-minimal .hero-message > strong span {
  display: block !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.home-page .home-hero-minimal .hero-message > strong span:first-child { color: #172536 !important; }
.home-page .home-hero-minimal .hero-message > strong span:last-child { color: #d97851 !important; }
@media (max-width: 520px) {
  .home-page .home-hero-minimal .hero-message > strong { font-size: 44px !important; }
}

/* Keep entry fade and hover lift independent so neither animation masks the other. */
@keyframes home-card-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.home-page .platform-card,
.home-page .platform-ios {
  animation: home-card-in .65s ease both;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home-page .platform-ios { animation-delay: .1s; }
.home-page .platform-card:hover,
.home-page .platform-card:focus-visible,
.home-page .platform-ios:hover,
.home-page .platform-ios:focus-visible {
  transform: translateY(-8px) !important;
}

/* Minimal home: content stays the same, visual noise is removed. */
.home-page {
  background: #f7f8fa;
  color: #142033;
}
.home-page .topbar {
  width: min(1120px, calc(100% - 40px));
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e5e9ef;
  box-shadow: 0 8px 24px rgba(24, 39, 58, .06);
  backdrop-filter: none;
}
.home-page .brand-dot {
  background: #142033;
  color: #fff;
}
.home-page .main-nav a { color: #6c7888; }
.home-page .main-nav a.active,
.home-page .main-nav a:hover { color: #142033; background: #eef2ff; }
.home-page .nav-community { background: #315bff; border-color: #315bff; color: #fff; }
.home-page .admin-link { color: #526174; border-color: #dce3eb; }
.home-contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffffd9, #eef5ffcc);
  box-shadow: 0 12px 28px #30455d0d;
}
.home-contact-heading { min-width: 0; }
.home-contact-kicker {
  display: block;
  margin-bottom: 8px;
  color: #6d7c8c;
  font-size: 11px;
  letter-spacing: .12em;
}
.home-contact h2 { margin: 0; color: #142033; font-size: 20px; line-height: 1.25; }
.home-telegram-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #ffffff80;
  border-radius: 14px;
  background: linear-gradient(135deg, #139bd3, #0878ba);
  box-shadow: 0 10px 20px #0878ba2b, inset 0 1px #ffffff45;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-telegram-button:hover { transform: translateY(-2px); box-shadow: 0 14px 24px #0878ba38, inset 0 1px #ffffff55; }
.home-telegram-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #0878ba;
  color: #0878ba;
}
.home-telegram-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
}
@media (max-width: 560px) {
  .home-contact { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px; }
  .home-telegram-button { width: 100%; }
}
.home-page .home-hero {
  min-height: 0;
  padding: 96px 0 76px;
}
.home-page .home-hero::after,
.home-page .home-hero-minimal::before { content: none; }
.home-page .home-hero-minimal {
  display: block;
  min-height: 0;
  padding: 96px 0 76px;
}
.home-page .home-hero-minimal .hero-message {
  padding: 0;
  border: 0;
  text-align: left;
}
.home-page .home-hero-minimal .hero-message strong {
  display: block;
  max-width: 560px;
  color: #142033;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -.045em;
  white-space: normal;
}
.home-page .home-hero-minimal .hero-message strong span {
  display: block;
}
.home-page .home-hero-minimal .hero-message strong span:first-child { color: #183b70; }
.home-page .home-hero-minimal .hero-message strong span:last-child { color: #d26b3f; }
.home-page .platform-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}
.home-page .platform-card,
.home-page .platform-ios,
.home-page .platform-card:hover,
.home-page .platform-card:focus-visible,
.home-page .platform-ios:hover,
.home-page .platform-ios:focus-visible {
  min-height: 300px;
  padding: 25px;
  border: 1px solid #e1e7ee;
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}
.home-page .platform-card:hover,
.home-page .platform-card:focus-visible {
  border-color: #315bff;
  box-shadow: 0 12px 28px rgba(49, 91, 255, .09);
}
.home-page .platform-card,
.home-page .platform-ios {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home-page .platform-card:hover,
.home-page .platform-card:focus-visible,
.home-page .platform-ios:hover,
.home-page .platform-ios:focus-visible {
  transform: translateY(-6px);
}
.home-page .platform-android { background: #eef4ff; }
.home-page .platform-ios { background: #fff; }
.home-page .platform-card-top { color: #6b7787; }
.home-page .platform-card-main h2 { color: #142033; }
.home-page .platform-card-main p,
.home-page .platform-card-foot { color: #69778a; }
.home-page .card-action { color: #315bff; }

@media (max-width: 800px) {
  .home-page .home-hero-minimal { padding: 72px 0 52px; }
}
@media (max-width: 520px) {
  .home-page .home-hero-minimal .hero-message strong { font-size: 43px; }
  .home-page .platform-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
  .home-page .platform-card,
  .home-page .platform-ios,
  .home-page .platform-card:hover,
  .home-page .platform-card:focus-visible,
  .home-page .platform-ios:hover,
  .home-page .platform-ios:focus-visible { min-height: 270px; }
}

/* Final directory pass: reserve the header, then lock card geometry so
   natural image dimensions and long Chinese copy cannot move neighboring items. */
.android-page > .directory-topbar {
  position: relative;
  top: auto;
  z-index: 2;
}
.android-page .android-header {
  min-height: 176px;
  padding: 56px 5px 28px;
  align-items: end;
}
.android-page .android-header h1 {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -.045em;
}
.ios-directory-page .android-header {
  min-height: 176px;
  padding-top: 56px;
}
.ios-directory-page .android-header h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -.045em;
}
.ios-directory-page .ios-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.ios-directory-page .ios-card {
  min-width: 0;
  align-self: start;
}
.ios-directory-page .ios-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 15px 18px;
}
.ios-directory-page .ios-title-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ios-directory-page .ios-title-info .app-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 14px;
  flex: 0 0 52px;
}
.ios-directory-page .ios-app-name {
  display: block;
  margin: 0 0 4px;
  color: #172b3f;
  font-size: 16px !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ios-directory-page .ios-title-info p {
  max-width: 300px;
  margin: 0;
  color: #687681;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ios-directory-page .ios-title > small {
  flex: 0 0 auto;
  align-self: start;
  padding: 5px 8px;
  color: #315bff;
  background: #e7edff;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.ios-directory-page .ios-body { padding: 18px 20px 20px; }
.ios-directory-page .ios-fields { margin-top: 0; }
.ios-directory-page .ios-field {
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.55;
}
.ios-directory-page .ios-field strong { font-size: 13px; }
.ios-directory-page .ios-download {
  width: 100%;
  max-width: 260px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
}
.ios-directory-page .steps { font-size: 13px; line-height: 1.7; }
.android-page .android-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.android-page .android-tile {
  display: flex;
  min-width: 0;
  min-height: 214px;
  flex-direction: column;
  align-self: start;
  overflow: hidden;
}
.android-page .android-app-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.android-page .android-app-head > img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  aspect-ratio: 1;
  border-radius: 13px;
  object-fit: cover;
}
.android-page .android-app-head h3 {
  min-width: 0;
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.android-page .android-rating { font-size: 11px; line-height: 1.4; }
.android-page .tile-content { min-width: 0; }
.android-page .tile-content p {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.android-page .android-stats { margin-top: auto; }
.android-page .tile-footer { margin-top: 10px; }
@media (max-width: 1180px) {
  .android-page .android-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .android-page > .directory-topbar { position: relative; top: auto; }
  .android-page .android-header,
  .ios-directory-page .android-header {
    min-height: 0;
    padding: 30px 0 24px;
  }
  .android-page .android-header h1,
  .ios-directory-page .android-header h1 { font-size: clamp(38px, 10vw, 52px); }
  .ios-directory-page .ios-grid { grid-template-columns: 1fr; }
  .android-page .android-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ios-directory-page .ios-title { display: block; min-height: 0; }
  .ios-directory-page .ios-title-info { width: 100%; }
  .ios-directory-page .ios-title > small { display: inline-block; margin-top: 10px; }
}
@media (max-width: 560px) {
  .android-page .android-grid { grid-template-columns: 1fr; }
  .android-page .android-tile { min-height: 202px; }
  .ios-directory-page .ios-title-info .app-logo { width: 48px !important; height: 48px !important; max-width: 48px !important; max-height: 48px !important; flex-basis: 48px; }
  .ios-directory-page .ios-field { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
}

/* Server-baseline mobile navigation: keep both wayfinding layers visible. */
@media (max-width: 800px) {
  .android-page > .directory-topbar,
  .ios-directory-page > .directory-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: calc(100% - 28px);
    margin-top: 10px;
    margin-bottom: 0;
    box-shadow: 0 8px 22px rgba(28, 47, 66, .12);
  }
  .android-page .android-rail,
  .ios-directory-page .android-rail {
    top: 78px;
    z-index: 20;
    align-self: start;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .android-page .android-main,
  .ios-directory-page .android-main { padding-top: 24px; }
  .android-page .android-shell,
  .ios-directory-page .android-shell { overflow: visible !important; }
}
@media (max-width: 560px) {
  .android-page > .directory-topbar,
  .ios-directory-page > .directory-topbar { width: calc(100% - 20px); margin-top: 6px; }
  .android-page .android-rail,
  .ios-directory-page .android-rail { top: 70px; max-height: calc(100vh - 82px); }
}

/* iOS uses the same compact directory tile as Android with one extra field. */
.home-page .platform-card-foot { display: none; }
.ios-directory-page .ios-directory-tile { cursor: pointer; }
.ios-directory-page .ios-directory-tile:focus-visible { outline: 3px solid rgba(49,91,255,.24); outline-offset: 2px; }
.ios-directory-page .ios-tile-meta { display: flex; gap: 18px; margin-top: auto; padding-top: 14px; }
.ios-directory-page .ios-tile-meta span { display: grid; gap: 2px; min-width: 0; }
.ios-directory-page .ios-tile-meta b { color: #172b3f; font-size: 12px; font-weight: 700; }
.ios-directory-page .ios-tile-meta small { color: #8997a3; font-size: 10px; }

.ios-modal[hidden] { display: none; }
.ios-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.ios-modal-backdrop { position: absolute; inset: 0; background: rgba(20,33,48,.5); backdrop-filter: blur(7px); }
.ios-modal-card { position: relative; width: min(390px,calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow: auto; padding: 48px 20px 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: linear-gradient(145deg,#f3fbfa 0%,#f8f5ec 100%); box-shadow: 0 24px 70px rgba(15,31,44,.24); text-align: center; animation: ios-modal-in .2s ease-out both; }
.ios-modal-close { position: absolute; top: 14px; right: 14px; min-height: 36px; padding: 7px 10px; border: 1px solid #d8e1e6; border-radius: 9px; background: rgba(255,255,255,.78); color: #61717d; font-size: 11px; }
.ios-modal-logo { width: 82px; height: 82px; margin: -78px auto 12px; border: 4px solid rgba(255,255,255,.96); border-radius: 23px; object-fit: cover; box-shadow: 0 11px 24px rgba(27,58,75,.2); }
.ios-modal-card h2 { margin: 0; color: #101820; font-size: 24px; line-height: 1.25; }
.ios-modal-summary { margin: 7px 0 18px; color: #6c7479; font-size: 13px; line-height: 1.6; }
.ios-modal-panel { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.78); text-align: left; }
.ios-modal-store-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e4eaec; }
.ios-modal-store-row strong { color: #17222c; font-size: 14px; }
.ios-modal-store-row a { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 9px; background: #3447a4; color: #fff; font-size: 12px; font-weight: 700; }
.ios-modal-store-row a.is-disabled { background: #adb8c0; pointer-events: none; }
.ios-modal-steps { display: grid; gap: 8px; padding: 13px 0 10px; color: #596873; font-size: 13px; line-height: 1.45; }
.ios-modal-steps > div { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 5px; }
.ios-modal-steps b { color: #3447a4; }
.ios-modal-code { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #e4eaec; color: #6b747b; font-size: 12px; }
.ios-modal-code strong { max-width: 70%; overflow-wrap: anywhere; color: #d63737; font-size: 15px; font-weight: 800; text-align: right; }
.ios-modal-date { margin: 13px 0 0; color: #8997a3; font-size: 11px; }
.ios-modal-feedback { width: 100%; margin: 14px 0 0; padding: 0; border: 0; background: transparent; color: #6f7b82; font-size: 12px; cursor: pointer; }
.ios-modal-feedback:hover, .ios-modal-feedback:focus-visible { color: #d63737; text-decoration: underline; outline: none; }
@keyframes ios-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ios-modal-card { animation: none; } }
@media (max-width: 560px) { .ios-directory-page .ios-tile-meta { gap: 13px; } .ios-modal { padding: 16px; } .ios-modal-card { padding-inline: 16px; } }

/* iOS details use the Android detail-card hierarchy: shared app identity first,
   then three compact iOS-only actions. */
.ios-modal-card {
  width: min(430px, calc(100vw - 28px));
  padding: 48px 20px 22px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.ios-modal-category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf2ff;
  color: #315bff;
  font-size: 11px;
  font-weight: 700;
}
.ios-modal-card h2 { margin-top: 10px; }
.ios-modal-summary { max-width: 330px; margin-inline: auto; }
.ios-modal-date { margin: 12px 0 16px; color: #315bff; font-size: 11px; font-weight: 600; }
.ios-modal-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  background: #f8fafb;
  text-align: left;
}
.ios-modal-transform-row,
.ios-modal-ipad-row {
  padding: 14px 15px;
}
.ios-modal-transform-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid #e2e8ec;
}
.ios-modal-label {
  flex: 0 0 auto;
  margin: 0;
  color: #172535;
  font-size: 12px;
  font-weight: 700;
}
.ios-modal-transform-row p {
  flex: 1 1 auto;
  margin: 0;
  color: #4f5d69;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.ios-modal-entry,
.ios-modal-code-inline {
  color: #c74444;
  font-weight: 800;
}
.ios-modal-ipad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #53616c;
  font-size: 12px;
}
.ios-modal-ipad-row strong { color: #2f8a68; font-size: 12px; }
.ios-modal-ipad-row strong.is-untested { color: #87939d; }
.ios-modal-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px 12px;
  border-top: 1px solid #e2e8ec;
  color: #53616c;
  font-size: 12px;
}
.ios-modal-download {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 6px 11px;
  border-radius: 8px;
  background: #315bff;
  color: #fff;
  box-shadow: 0 4px 10px rgba(49,91,255,.16);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ios-modal-download span { font-size: 12px; font-weight: 800; }
.ios-modal-download small { color: rgba(255,255,255,.82); font-size: 10px; }
.ios-modal-download:hover,
.ios-modal-download:focus-visible { background: #2448d8; box-shadow: 0 10px 22px rgba(49,91,255,.24); transform: translateY(-1px); outline: none; }
.ios-modal-download.is-disabled { background: #adb8c0; box-shadow: none; pointer-events: none; }
@media (max-width: 560px) {
  .ios-modal-card { width: calc(100vw - 24px); padding: 46px 16px 18px; }
  .ios-modal-transform-row,
  .ios-modal-ipad-row { padding-inline: 13px; }
  .ios-modal-download-row { padding-inline: 13px; }
  .ios-modal-transform-row { gap: 6px; }
}
/* iOS detail content deliberately reuses the Android detail-card shell. */
.ios-detail-section { margin-top: 24px; text-align: left; }
.ios-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(217, 227, 234, .9);
  color: var(--android-muted);
  font-size: 12px;
  line-height: 1.6;
}
.ios-detail-row:first-child { padding-top: 0; border-top: 0; }
.ios-detail-row > span:first-child { flex: 0 0 70px; color: var(--android-ink); font-weight: 700; }
.ios-transform-row p { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.ios-ipad-row { align-items: center; justify-content: space-between; }
.ios-ipad-row > span:first-child { flex: 0 0 auto; color: var(--android-muted); font-weight: 400; }
.ios-ipad-row strong { color: #2f8a68; font-size: 12px; }
.ios-ipad-row strong.is-untested { color: #87939d; }
.ios-disguise-row { align-items: center; }
.ios-disguise-row > span:first-child { color: var(--android-muted); font-weight: 400; }
.ios-disguise-row strong { color: var(--android-ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.ios-download-row { align-items: center; justify-content: space-between; }
.ios-download-row > span:first-child { color: var(--android-muted); font-weight: 400; }
.ios-download-row a {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--android-accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(49, 91, 255, .16);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ios-download-row a span { font-size: 12px; font-weight: 800; }
.ios-download-row a small { color: rgba(255, 255, 255, .82); font-size: 10px; }
.ios-download-row a:hover,
.ios-download-row a:focus-visible { background: #2448d8; box-shadow: 0 8px 16px rgba(49, 91, 255, .2); transform: translateY(-1px); outline: none; }
.ios-download-row a.is-disabled { background: #adb8c0; box-shadow: none; pointer-events: none; }
.ios-detail-section { padding: 12px 14px; border: 2px solid #b8c9d4; border-radius: 14px; background: rgba(255,255,255,.45); }
.detail-download-section { padding: 12px 14px; border: 2px solid #b8c9d4; border-radius: 14px; background: rgba(255,255,255,.45); }
.ios-detail-card .detail-meta {
  color: #315bff !important;
  font-weight: 600;
}
@media (max-width: 560px) {
  .ios-detail-row > span:first-child { flex-basis: 64px; }
  .ios-detail-section { margin-top: 22px; }
  .ios-download-row a { gap: 5px; padding-inline: 9px; }
}
.qr-grid figcaption small { display: block; margin-top: 4px; color: #8997a3; font-size: 10px; }

/* Current directory polish: compact ratings, one-line metrics, and shared
   glass download actions across Android and iOS detail views. */
.rating-stars {
  display: inline-flex;
  color: #e7a62b;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255,255,255,.72);
}
.android-rating { min-height: 16px; color: #e7a62b; }
.android-stats {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f4;
}
.android-stats .download-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.android-stats .download-stat b,
.android-stats .download-stat strong {
  display: inline;
  overflow: visible;
  color: var(--site-ink);
  font-size: 11px;
  font-weight: 700;
}
.android-stats .download-stat b { color: #8997a3; font-weight: 500; }
.android-stats .download-stat strong { color: #315bff; font-size: 13px; font-weight: 800; }
.ios-directory-page .ios-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 27px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf1f4;
}
.ios-directory-page .ios-tile-meta span { display: block; min-width: 0; }
.ios-directory-page .ios-tile-meta b {
  color: #53616c;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.ios-directory-page .ios-tile-meta > span:first-child b { color: #315bff; font-size: 11px; font-weight: 800; }
.ios-directory-page .ios-tile-disguise { 
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
}
.ios-directory-page .ios-tile-disguise span { flex: 0 0 auto; color: #8795a1; }
.ios-directory-page .ios-tile-disguise strong { min-width: 0; overflow: hidden; color: #315bff; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ios-directory-page .ios-tile-disguise[data-state="offline"] strong { color: #d14b4b; }
.ios-directory-page .android-app-head { min-height: 78px; align-items: center; }
.ios-directory-page .ios-tile-head-copy { min-width: 0; align-self: center; transform: translateY(9px); }
.ios-directory-page .ios-tile-head-copy h3 { margin-bottom: 0; }
.ios-directory-page .ios-tile-disguise { margin-top: 6px; }
.ios-directory-page .ios-tile-rating { margin-left: auto; text-align: right; }
.ios-directory-page .ios-tile-rating b { color: #e7a62b; font-size: 12px; letter-spacing: 1px; }
@media (max-width: 560px) {
  .ios-directory-page .android-app-head { min-height: 72px; }
  .ios-directory-page .ios-tile-head-copy { transform: translateY(8px); }
}
.android-detail-card .detail-download-section {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(174, 201, 218, .86);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(228,244,255,.48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 12px 26px rgba(42,67,87,.07);
}
.android-detail-card .detail-section-title {
  margin-bottom: 10px;
  color: var(--android-ink);
  font-size: 12px;
  font-weight: 800;
}
.android-detail-card .detail-downloads {
  display: grid;
  gap: 8px;
}
.android-detail-card .detail-download,
.ios-detail-card .ios-download-row a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background: linear-gradient(110deg, #2f7ff0 0%, #5aa9ff 48%, #edf8ff 150%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(49,91,255,.18), inset 0 1px 0 rgba(255,255,255,.55);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.android-detail-card .detail-download:hover,
.android-detail-card .detail-download:focus-visible,
.ios-detail-card .ios-download-row a:hover,
.ios-detail-card .ios-download-row a:focus-visible {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(49,91,255,.24), inset 0 1px 0 rgba(255,255,255,.72);
  outline: none;
}
.android-detail-card .detail-download span,
.ios-detail-card .ios-download-row a span { font-size: 12px; font-weight: 800; }
.android-detail-card .detail-download { justify-content: center; }
.android-detail-card .detail-download small,
.ios-detail-card .ios-download-row a small { color: rgba(255,255,255,.92); font-size: 11px; font-weight: 700; }
.ios-detail-card .ios-download-row a { min-width: 145px; justify-content: center; }
.ios-detail-card .ios-download-row a small:empty { display: none; }
.topbar .brand { min-width: 0; }
.topbar .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .topbar { gap: 7px; }
  .topbar .brand { flex: 1 1 auto; gap: 7px; }
  .topbar .brand > span:last-child { max-width: 112px; font-size: 13px; }
  .topbar .nav-community { flex: 0 0 auto; padding-inline: 10px; font-size: 11px; }
  .android-detail-card .detail-download-section { margin-top: 17px; padding: 12px; }
  .ios-detail-card .ios-download-row a { min-width: 132px; padding-inline: 11px; }
}

/* Admin workspaces keep APP, Logo and QR maintenance separate. */
.admin-page { background: #eef2f5; }
.admin-topbar { position: sticky; top: 14px; z-index: 20; }
.admin-shell { padding-top: 56px; }
.admin-section-nav { display: flex; gap: 6px; margin-bottom: 22px; padding: 5px; border: 1px solid #dce5eb; border-radius: 12px; background: rgba(255,255,255,.72); }
.admin-section-nav button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 8px; background: transparent; color: #697985; font-size: 13px; }
.admin-section-nav button.is-active { background: #315bff; color: #fff; font-weight: 700; }
.admin-section[hidden] { display: none; }
.admin-section { padding: 24px; border: 1px solid #fff; border-radius: 18px; background: rgba(255,255,255,.74); box-shadow: 0 16px 36px rgba(48,69,93,.08); }
.admin-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #dce5eb; }
.admin-section-heading h2 { margin: 6px 0 0; color: #142033; font-size: 26px; }
.admin-section-heading > p { max-width: 360px; margin: 0; color: #687681; font-size: 13px; line-height: 1.6; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.admin-subsection { display: grid; gap: 14px; margin-top: 8px; padding: 18px; border: 1px solid #dce5eb; border-radius: 14px; background: rgba(248,250,251,.78); }
.announcement-display-settings { display: grid; gap: 14px; margin-bottom: 22px; padding: 18px; border: 1px solid #dce5eb; border-radius: 14px; background: rgba(248,250,251,.78); }
.announcement-display-settings h2 { margin: 0; color: #172b3f; font-size: 15px; }
.announcement-display-settings .admin-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-subsection[hidden] { display: none !important; }
.directory-topbar .brand { min-width: 0; flex: 1 1 auto; }
.directory-topbar .brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-topbar .main-nav { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.directory-topbar .main-nav a { flex: 0 1 auto; white-space: nowrap; }
.directory-topbar .nav-community { flex: 0 0 auto; white-space: nowrap; }
.admin-subsection-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.admin-subsection-heading h3 { margin: 0; color: #172b3f; font-size: 15px; }
.admin-subsection-heading span { color: #8997a3; font-size: 11px; }
.admin-download-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-row-actions { display: inline-flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.logo-manager { max-width: 520px; }
.logo-manager-preview { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid #dce5eb; border-radius: 13px; background: #f8fafb; }
.logo-manager-preview img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #e5edf2; }
.logo-manager-preview strong,.logo-manager-preview small { display: block; }
.logo-manager-preview strong { color: #172b3f; font-size: 14px; }
.logo-manager-preview small { margin-top: 4px; color: #8997a3; font-size: 11px; }
@media (max-width: 700px) { .admin-shell { padding-top: 32px; } .admin-section { padding: 16px; } .admin-section-heading { display: block; } .admin-section-heading > p { margin-top: 10px; } .admin-form-grid,.admin-download-fields { grid-template-columns: 1fr; } .admin-section-nav { overflow-x: auto; } .admin-section-nav button { flex: 0 0 auto; } .admin-row { align-items: flex-start; flex-direction: column; } .admin-row-actions { justify-content: flex-start; } }

@media (max-width: 800px) {
  .android-page .android-shell,
  .ios-directory-page .android-shell {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: 76px minmax(0, calc(100vw - 76px));
    overflow-x: hidden;
  }
  .android-page .android-main,
  .android-page .android-directory,
  .ios-directory-page .android-main,
  .ios-directory-page .android-directory,
  .ios-directory-page .ios-grid,
  .ios-directory-page .ios-card { width: 100%; min-width: 0; }
  .android-page .android-main,
  .ios-directory-page .android-main { max-width: calc(100vw - 76px); overflow: hidden; }
  .ios-directory-page .ios-title-info > div,
  .ios-directory-page .ios-field > * { min-width: 0; }
  .ios-directory-page .ios-title-info p { max-width: none; }
  .ios-directory-page .ios-download { width: 100%; max-width: 100%; }
}

/* Mobile wayfinding: keep platform and category navigation available while
   scrolling, without covering the first row of directory content. */
@media (max-width: 800px) {
  .android-page > .directory-topbar,
  .ios-directory-page > .directory-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: calc(100% - 28px);
    margin-top: 10px;
    margin-bottom: 0;
    box-shadow: 0 8px 22px rgba(28, 47, 66, .12);
  }

  .android-page .android-shell,
  .ios-directory-page .android-shell {
    position: relative;
  }

  .android-page .android-rail,
  .ios-directory-page .android-rail {
    top: 78px;
    z-index: 20;
    align-self: start;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .android-page .android-main,
  .ios-directory-page .android-main {
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .directory-topbar { gap: 6px; padding-inline: 9px; }
  .directory-topbar .brand { gap: 6px; }
  .directory-topbar .brand > span:last-child { max-width: 82px; font-size: 12px; }
  .directory-topbar .main-nav { gap: 0; }
  .directory-topbar .main-nav a { padding-inline: 6px; font-size: 11px; }
  .directory-topbar .nav-community { padding-inline: 7px; font-size: 10px; }
  .android-page > .directory-topbar,
  .ios-directory-page > .directory-topbar {
    width: calc(100% - 20px);
    margin-top: 6px;
  }

  .android-page .android-rail,
  .ios-directory-page .android-rail {
    top: 70px;
    max-height: calc(100vh - 82px);
  }
}

/* Sticky navigation must use the document viewport as its scroll container.
   `overflow-x: hidden` on the grid shell implicitly creates an auto y-axis
   in mobile browsers and prevents the rail from sticking during page scroll. */
@media (max-width: 800px) {
  .android-page .android-shell,
  .ios-directory-page .android-shell {
    overflow: visible !important;
  }
}

/* Community modal: one clear title, two equal QR destinations, no helper copy. */
.community-modal {
  z-index: 80;
  padding: 20px;
}
.community-backdrop {
  background: rgba(20, 33, 48, .58);
  backdrop-filter: blur(9px);
}
.community-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  padding: 30px;
  border: 1px solid #dce5eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(25, 44, 62, .22);
  animation: community-card-in .2s ease-out both;
}
.community-card h2 {
  margin: 0 0 22px;
  padding-right: 64px;
  color: #172535;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #d5e0e7;
  border-radius: 9px;
  background: #f8fafb;
  color: #53616c;
  font-size: 12px;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus-visible {
  border-color: #315bff;
  background: #edf2ff;
  color: #315bff;
  outline: none;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.qr-grid figure {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  background: #f8fafb;
  text-align: center;
}
.qr-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.qr-grid figcaption {
  margin-top: 10px;
  color: #53616c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.qr-grid figcaption small {
  display: block;
  margin-top: 4px;
  color: #8997a3;
  font-size: 10px;
  font-weight: 400;
}
@keyframes community-card-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .community-card { animation: none; }
}
@media (max-width: 420px) {
  .community-card { padding: 24px 16px 18px; }
  .community-card h2 { margin-bottom: 16px; font-size: 26px; }
  .qr-grid { gap: 10px; }
  .qr-grid figure { padding: 8px; }
  .qr-grid figcaption { margin-top: 8px; font-size: 12px; }
}

/* iOS detail uses the same top composition as the Android detail card.
   Only the information module below the shared app header is platform-specific. */
.ios-detail-card {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 70px 24px 24px;
  overflow: visible;
}
.ios-detail-card .detail-logo {
  top: -42px;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
}
.ios-detail-card .detail-body {
  max-height: calc(100vh - 160px);
  overflow: auto;
  text-align: center;
}
.ios-detail-card .detail-body h2 {
  margin: 5px 0 8px;
  color: var(--android-ink);
  font-size: 28px;
  line-height: 1.25;
}
.ios-detail-card .detail-body > p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--android-muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 400;
}
.ios-detail-card .detail-meta {
  margin-top: 12px;
  color: #315bff !important;
  font-size: 11px;
  font-weight: 600;
}
.ios-detail-card .ios-detail-section {
  margin-top: 24px;
  padding: 16px;
  border: 2px solid #b8c9d4;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(235, 247, 255, .82), rgba(255, 255, 255, .74));
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(42, 67, 87, .08);
  text-align: left;
}
.ios-detail-card {
  background: linear-gradient(145deg, rgba(232, 247, 255, .96) 0%, rgba(255, 255, 255, .92) 54%, rgba(239, 249, 255, .95) 100%);
  backdrop-filter: blur(16px);
}
.ios-detail-card .ios-detail-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.ios-detail-card .ios-detail-row > span:first-child {
  flex: none;
  color: var(--android-ink);
  font-weight: 700;
  white-space: nowrap;
}
.ios-detail-card .ios-transform-row {
  align-items: start;
}
.ios-detail-card .ios-transform-row p {
  min-width: 0;
  font-weight: 400;
}
.ios-detail-card .ios-transformation-code {
  color: #c74444;
  font-weight: 800;
}
.ios-detail-card .ios-ipad-row,
.ios-detail-card .ios-disguise-row,
.ios-detail-card .ios-download-row {
  justify-content: initial;
}
.ios-detail-card .ios-ipad-row strong,
.ios-detail-card .ios-disguise-row strong {
  justify-self: end;
  font-weight: 400;
  text-align: right;
}
.ios-detail-card .ios-ipad-row strong { color: #87939d; }
.ios-detail-card .ios-ipad-row strong.is-untested { color: #87939d; }
.ios-detail-card .ios-disguise-row strong { color: #315bff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.ios-detail-card .ios-disguise-row strong[data-state="checking"] { color: #8a98a6; font-weight: 600; }
.ios-detail-card .ios-disguise-row strong[data-state="offline"] { color: #d14b4b; }
.ios-detail-card .ios-download-row a {
  justify-self: end;
}
@media (max-width: 560px) {
  .ios-detail-card {
    width: min(430px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    padding-inline: 18px;
  }
  .ios-detail-card .ios-detail-section { margin-top: 22px; }
  .ios-detail-card .ios-detail-row { grid-template-columns: 68px minmax(0, 1fr); gap: 6px; }
}

/* Admin workspace: stable left navigation, platform-separated lists, and
   compact operational rows. */
.admin-page .admin-shell {
  width: min(1420px, calc(100% - 32px));
  padding-top: 34px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 96px;
  min-height: calc(100vh - 130px);
  padding: 20px 14px;
  border: 1px solid #dce5eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 36px rgba(48, 69, 93, .08);
}
.admin-sidebar-title {
  display: grid;
  gap: 3px;
  padding: 2px 12px 18px;
  border-bottom: 1px solid #e5ebef;
}
.admin-sidebar-title span { color: #172b3f; font-size: 16px; font-weight: 800; }
.admin-sidebar-title small { color: #8997a3; font-size: 11px; }
.admin-sidebar-nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-sidebar-nav button { width: 100%; border: 0; border-radius: 9px; background: transparent; color: #687681; cursor: pointer; text-align: left; }
.admin-side-module { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.admin-side-module small,
.admin-side-subnav button small { color: #9aa7b0; font-size: 11px; font-weight: 600; }
.admin-side-module.is-active { background: #edf2ff; color: #315bff; }
.admin-side-module.is-active small { color: #315bff; }
.admin-side-subnav { display: grid; gap: 2px; margin: 1px 0 10px; padding: 2px 0 2px 14px; border-left: 1px solid #dce5eb; }
.admin-side-subnav button { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12px; }
.admin-side-subnav button.is-active { background: #315bff; color: #fff; font-weight: 700; }
.admin-side-subnav button.is-active small { color: rgba(255, 255, 255, .78); }
.admin-content { min-width: 0; }
.admin-content .admin-section { min-height: 560px; padding: 28px; border: 1px solid #fff; border-radius: 18px; background: rgba(255, 255, 255, .82); box-shadow: 0 16px 36px rgba(48, 69, 93, .08); }
.admin-content .admin-section[hidden] { display: none; }
.admin-content #form[hidden],
.admin-content #list[hidden] { display: none !important; }
.admin-section-heading { align-items: start; }
.admin-section-heading h1 { margin: 7px 0 0; color: #142033; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: 0; }
.admin-section-heading > div { min-width: 0; }
.admin-section-heading > p { margin-top: 8px; }
.admin-view-count { display: block; margin-top: 8px; color: #8997a3; font-size: 12px; }
.admin-list-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.admin-search, .admin-filter { display: grid; gap: 6px; }
.admin-search > span, .admin-filter > span { color: #8997a3; font-size: 11px; }
.admin-search input, .admin-filter select { min-height: 42px; width: 100%; padding: 10px 12px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; color: #17212b; font: inherit; }
.admin-list-toolbar > .button { min-height: 42px; white-space: nowrap; }
.admin-list { display: grid; gap: 8px; margin-top: 0; }
.admin-batch-toolbar { display: flex; min-height: 44px; align-items: center; gap: 12px; margin-bottom: 18px; padding: 8px 10px; border: 1px solid #dce5eb; border-radius: 10px; background: #f8fafb; }
.admin-batch-select { display: inline-flex; align-items: center; gap: 7px; color: #526174; font-size: 12px; white-space: nowrap; }
.admin-batch-select input, .admin-app-select input { width: 16px; height: 16px; margin: 0; accent-color: #315bff; }
.admin-batch-count { color: #8997a3; font-size: 12px; white-space: nowrap; }
.admin-batch-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.admin-batch-actions .button { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.admin-batch-actions .button:disabled { cursor: not-allowed; opacity: .52; }
.admin-app-row { display: grid; grid-template-columns: 18px 48px minmax(160px, 1.4fr) 120px 120px 90px 70px auto; gap: 13px; min-width: 0; align-items: center; padding: 12px 14px; border: 1px solid #e3eaee; border-radius: 12px; background: rgba(255, 255, 255, .78); }
.admin-app-select { display: grid; place-items: center; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-app-row:hover { border-color: #b9c8ff; box-shadow: 0 8px 18px rgba(49, 91, 255, .08); }
.admin-app-logo { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; background: #e7edf1; }
.admin-app-identity, .admin-app-date, .admin-app-metric { display: grid; gap: 4px; min-width: 0; }
.admin-app-identity strong { overflow: hidden; color: #172b3f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-app-identity span, .admin-app-date small, .admin-app-metric small { color: #8997a3; font-size: 11px; }
.admin-disguise-name { color: #315bff; font-size: 11px; font-weight: 700; }
.admin-disguise-name[data-state="offline"] { color: #d94b5b; }
.admin-app-date span, .admin-app-metric span { overflow: hidden; color: #526174; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-status { justify-self: start; padding: 5px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-status-published { background: #e9f7ef; color: #2f8a68; }
.admin-status-draft { background: #fff7e5; color: #b97916; }
.admin-status-offline { background: #fbeceb; color: #c24f4f; }
.admin-row-actions { display: inline-flex; justify-content: end; gap: 6px; flex-wrap: wrap; }
.admin-row-actions .button { min-height: 34px; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
.button.danger { background: #d63737; color: #fff; }
.admin-empty { padding: 64px 20px; border: 1px dashed #c7d5df; border-radius: 14px; color: #687681; text-align: center; }
.admin-empty strong { color: #344556; font-size: 14px; }
.admin-empty p { margin: 8px 0 0; font-size: 12px; }
.admin-editor { max-width: none; }
.admin-editor-bar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #dce5eb; }
.admin-editor-bar h2 { margin: 6px 0 0; color: #172b3f; font-size: 24px; }
.admin-editor-bar .button { flex: 0 0 auto; }
.admin-logo-reference { display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #dce5eb; border-radius: 12px; background: #f8fafb; }
.admin-logo-reference img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #e7edf1; }
.admin-logo-reference span { color: #8997a3; font-size: 11px; line-height: 1.5; }
.admin-content .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-content .admin-download-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-content .admin-subsection { margin-top: 0; }
.logo-manager { max-width: 640px; }
.logo-manager-preview { min-height: 92px; }
.logo-list { display: grid; gap: 8px; max-width: 640px; margin-top: 18px; }
.logo-list-row { display: flex; min-height: 70px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3eaee; border-radius: 12px; background: rgba(255, 255, 255, .78); color: #172b3f; cursor: pointer; text-align: left; }
.logo-list-row:hover, .logo-list-row:focus-visible { border-color: #b9c8ff; outline: none; }
.logo-list-row img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; background: #e7edf1; }
.logo-list-row span { display: grid; gap: 4px; min-width: 0; }
.logo-list-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.logo-list-row small { color: #8997a3; font-size: 11px; }
.qr-settings { max-width: 760px; }
.admin-menu-toggle { display: none; min-height: 38px; padding: 8px 10px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; color: #526174; font-size: 11px; }
.qr-expiry.is-valid { color: #8997a3; }
.qr-expiry.is-unknown { color: #8997a3; }
.qr-expiry.is-warning { color: #b97916; }
.qr-expiry.is-expired { color: #c24f4f; }
.field-checkbox { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #526174; font-size: 13px; }
.field-checkbox input { width: 16px; height: 16px; accent-color: #315bff; }
.tag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option { position: relative; cursor: pointer; }
.tag-option input { position: absolute; opacity: 0; pointer-events: none; }
.tag-option span { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border: 1px solid #dce5eb; border-radius: 999px; background: #fff; color: #687681; font-size: 12px; transition: .16s ease; }
.tag-option input:checked + span { border-color: #315bff; background: #edf2ff; color: #315bff; box-shadow: 0 0 0 2px rgba(49, 91, 255, .08); }
.tag-option input:focus-visible + span { outline: 2px solid rgba(49, 91, 255, .38); outline-offset: 2px; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.analytics-stat { padding: 14px 16px; border: 1px solid #e3eaee; border-radius: 12px; background: #fff; }
.analytics-stat strong { display: block; color: #172b3f; font-size: 24px; line-height: 1.1; }
.analytics-stat span { display: block; margin-top: 6px; color: #8997a3; font-size: 11px; }
.analytics-stat-today { border-color: #c8d5ff; background: #f7f9ff; }
.analytics-stat-today strong { color: #315bff; }
.analytics-chart-grid line { stroke: #e9eef2; stroke-width: 1; }
.analytics-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.analytics-chart-line-page { stroke: #315bff; }
.analytics-chart-line-app { stroke: #2aa98a; }
.analytics-chart-labels text { fill: #8997a3; font-size: 10px; }
.analytics-chart-legend text { font-size: 10px; }
.analytics-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 18px 0 14px; }
.analytics-toolbar label { display: grid; gap: 6px; min-width: 180px; }
.analytics-toolbar label span { color: #8997a3; font-size: 11px; }
.analytics-toolbar select { min-height: 40px; padding: 8px 11px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; color: #17212b; font: inherit; }
.analytics-toolbar .button { min-height: 40px; }
.analytics-data-status { margin-left: auto; padding-bottom: 11px; color: #8997a3; font-size: 11px; }
.analytics-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .95fr); gap: 12px; margin-top: 12px; }
.analytics-panel { min-width: 0; padding: 18px; border: 1px solid #e3eaee; border-radius: 14px; background: #fff; }
.analytics-panel-wide { margin-top: 12px; }
.analytics-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.analytics-panel-heading h2 { margin: 0; color: #172b3f; font-size: 15px; line-height: 1.3; }
.analytics-panel-heading p { margin: 5px 0 0; color: #8997a3; font-size: 11px; line-height: 1.5; }
.analytics-panel-heading > span { color: #315bff; font-size: 11px; white-space: nowrap; }
.analytics-trend { min-height: 238px; overflow: hidden; }
.analytics-trend svg { display: block; width: 100%; height: 238px; }
.analytics-trend-empty { display: grid; min-height: 238px; place-items: center; color: #8997a3; font-size: 12px; }
.analytics-channel-list { display: grid; gap: 12px; }
.analytics-channel-row { display: grid; grid-template-columns: minmax(84px, 1fr) auto; gap: 8px 14px; align-items: center; }
.analytics-channel-row > span { color: #526174; font-size: 12px; }
.analytics-channel-row strong { color: #172b3f; font-size: 14px; }
.analytics-channel-bar { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f5; }
.analytics-channel-bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #315bff, #54b8e8); }
.analytics-ranking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analytics-ranking-block h3 { margin: 0 0 10px; color: #526174; font-size: 12px; font-weight: 700; }
.analytics-ranking-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.analytics-ranking-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 8px 0; border-bottom: 1px solid #edf2f5; }
.analytics-ranking-list li:last-child { border-bottom: 0; }
.analytics-ranking-list em { color: #8997a3; font-size: 11px; font-style: normal; }
.analytics-ranking-list strong { overflow: hidden; color: #172b3f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-ranking-list span { color: #315bff; font-size: 12px; font-weight: 700; }
.analytics-details { overflow-x: auto; }
.analytics-details table { width: 100%; min-width: 760px; border-collapse: collapse; }
.analytics-details th, .analytics-details td { padding: 10px 9px; border-bottom: 1px solid #edf2f5; text-align: left; white-space: nowrap; }
.analytics-details th { color: #8997a3; font-size: 10px; font-weight: 700; }
.analytics-details td { color: #526174; font-size: 12px; }
.analytics-details td strong { color: #172b3f; font-weight: 700; }
.analytics-details td.analytics-number { color: #315bff; font-weight: 700; text-align: right; }
.analytics-details td.analytics-muted { color: #b0bbc3; }
.analytics-note { margin: 14px 0 0; color: #8997a3; font-size: 11px; line-height: 1.7; }
@media (max-width: 900px) { .analytics-dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .analytics-toolbar { align-items: stretch; }
  .analytics-toolbar label { flex: 1 1 100%; }
  .analytics-toolbar .button { flex: 0 0 auto; }
  .analytics-data-status { flex: 1 1 180px; margin-left: 0; padding-bottom: 0; align-self: center; }
  .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-ranking { grid-template-columns: 1fr; gap: 22px; }
  .analytics-panel { padding: 14px; }
}
.announcement-content { min-width: 0; }
.announcement-content strong { display: block; overflow: hidden; color: #172b3f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-content small { display: block; margin-top: 5px; overflow: hidden; color: #8997a3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .analytics-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .admin-app-row { grid-template-columns: 18px 48px minmax(140px, 1fr) 100px 100px 70px auto; }
  .admin-app-row .admin-app-date { display: none; }
}
@media (max-width: 800px) {
  .admin-page .admin-shell { width: calc(100% - 24px); padding-top: 22px; }
  .admin-layout { display: block; }
  .admin-sidebar { display: none; position: fixed; top: 82px; bottom: 14px; left: 12px; z-index: 50; width: min(270px, calc(100vw - 44px)); min-height: 0; overflow-y: auto; }
  .admin-menu-open .admin-sidebar { display: block; }
  .admin-menu-open::after { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(20, 33, 48, .28); backdrop-filter: blur(2px); }
  .admin-topbar { width: calc(100% - 24px); gap: 10px; }
  .admin-topbar .top-note { display: none; }
  .admin-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .admin-topbar .admin-link { flex: 0 0 auto; }
  .admin-content .admin-section { padding: 18px; }
  .admin-section-heading { display: block; }
  .admin-section-heading > p { margin-top: 12px; }
  .admin-list-toolbar { grid-template-columns: minmax(0, 1fr) 120px; }
  .admin-list-toolbar > .button { grid-column: 1 / -1; justify-self: start; }
  .admin-batch-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .admin-batch-actions { width: 100%; margin-left: 0; }
  .admin-app-row { grid-template-columns: 18px 48px minmax(0, 1fr) auto; gap: 10px; }
  .admin-app-date, .admin-app-metric, .admin-status { grid-column: 3; }
  .admin-app-date, .admin-app-metric { display: flex; gap: 8px; align-items: baseline; }
  .admin-app-row .admin-app-metric:nth-of-type(4) { grid-column: 4; }
  .admin-status { grid-column: 4; grid-row: 2; justify-self: end; }
  .admin-app-row .admin-row-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }
}
@media (max-width: 560px) {
  .admin-page .admin-shell { width: calc(100% - 16px); }
  .admin-topbar { width: calc(100% - 16px); margin-top: 8px; }
  .admin-topbar .brand span { max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-list-toolbar { grid-template-columns: 1fr; }
  .admin-list-toolbar > .button { grid-column: auto; }
  .admin-batch-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .admin-batch-actions .button { min-width: 0; }
  .admin-content .admin-form-grid, .admin-content .admin-download-fields { grid-template-columns: 1fr; }
  .admin-editor-bar { align-items: start; flex-direction: column; }
  .admin-editor-bar .button { width: 100%; }
  .admin-app-row { grid-template-columns: 18px 42px minmax(0, 1fr); }
  .admin-app-logo { width: 42px; height: 42px; }
  .admin-app-date, .admin-app-metric, .admin-status { grid-column: 3; }
  .admin-app-row .admin-app-metric:nth-of-type(4), .admin-status { grid-column: 3; justify-self: start; }
}

/* Final narrow-screen guard for the minimal home header and platform cards. */
@media (max-width: 800px) {
  .home-page .topbar,
  .home-page .home-main { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .home-page .topbar { position: sticky; display: block; margin-inline: auto; }
  .home-page .main-nav { display: none; }
  .home-page .brand { min-width: 0; padding-right: 94px; }
  .home-page .brand > span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-page .top-actions { position: absolute; top: 50%; right: 12px; min-width: 0; transform: translateY(-50%); }
}
@media (max-width: 520px) {
  .home-page .topbar { display: block !important; width: calc(100% - 32px) !important; max-width: calc(100% - 32px) !important; overflow: visible; }
  .home-page .brand { min-width: 0; padding-right: 94px; }
  .home-page .brand > span:last-child { display: inline; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-page .top-actions { position: absolute; top: 50%; right: 12px; display: block !important; width: 78px; min-width: 78px; transform: translateY(-50%); }
  .home-page .nav-community { display: block; width: 78px; max-width: 100%; padding-inline: 10px; white-space: nowrap; }
  .home-page .platform-grid,
  .home-page .platform-card,
  .home-page .platform-card-main { min-width: 0; max-width: 100%; }
}
