:root {
    --bg: #f3f6f9;
    --surface: #ffffff;
    --surface-muted: #eaf0f5;
    --ink: #101820;
    --ink-soft: #53606c;
    --line: #d8e0e7;
    --line-strong: #bdc9d4;
    --accent: #0b5ed7;
    --accent-deep: #0748a7;
    --accent-soft: #e8f1ff;
    --success: #137a4b;
    --danger: #b42318;
    --radius: 10px;
    --radius-small: 7px;
    --shadow: 0 16px 40px rgba(23, 42, 58, 0.08);
    --font: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 8px 12px;
    background: var(--ink);
    color: white;
    border-radius: var(--radius-small);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(216, 224, 231, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(240px, 380px);
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: white;
    font-weight: 800;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    padding: 9px 12px;
    border-radius: var(--radius-small);
    color: var(--ink-soft);
    font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: var(--surface-muted);
    color: var(--ink);
}

.header-search,
.catalog-search {
    display: flex;
    gap: 8px;
}

.header-search input,
.catalog-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--ink);
    outline: none;
}

.header-search input {
    height: 40px;
    padding: 0 12px;
}

.header-search button {
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--ink);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.header-search input:focus,
.catalog-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.catalog-hero {
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
}

.catalog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    padding-block: 48px 42px;
}

.section-kicker,
.modal-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.catalog-lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.catalog-summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 210px;
    padding-left: 24px;
    border-left: 1px solid var(--line-strong);
}

.catalog-summary strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.catalog-summary span {
    color: var(--ink-soft);
    font-size: 13px;
}

.catalog-shell {
    padding-block: 30px 72px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.catalog-search {
    flex: 1;
    max-width: 720px;
}

.catalog-search input {
    height: 46px;
    padding: 0 14px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background: var(--surface-muted);
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

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

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--primary {
    background: var(--accent);
    color: white;
}

.button--primary:hover {
    background: var(--accent-deep);
}

.button--light {
    background: white;
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.5);
}

.sort-switch {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

.sort-switch a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.sort-switch a.is-active {
    background: var(--ink);
    color: white;
}

.category-strip {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-strip a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 650;
}

.category-strip a span {
    color: #778491;
    font-size: 11px;
}

.category-strip a.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.category-strip a.is-active span {
    color: rgba(255, 255, 255, 0.72);
}

.featured-app {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #103f78;
    border-radius: var(--radius);
    background: #0d2f57;
    color: white;
}

.featured-app-icon {
    display: grid;
    width: 92px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 34px;
    font-weight: 800;
}

.featured-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-app-copy h2 {
    margin: 8px 0 5px;
    font-size: 29px;
    letter-spacing: -0.03em;
}

.featured-app-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.section-heading > span {
    color: var(--ink-soft);
    font-size: 13px;
}

.section-heading--compact {
    margin: 0 0 14px;
}

.section-heading--compact h2 {
    font-size: 20px;
}

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

.app-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(16, 24, 32, 0.02);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.app-card-main {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 16px 16px 13px;
}

.app-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 32, 0.07);
    border-radius: 14px;
    color: white;
    font-size: 23px;
    font-weight: 800;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon--1 {
    background: #155d91;
}

.app-icon--2 {
    background: #137a4b;
}

.app-icon--3 {
    background: #a34814;
}

.app-icon--4 {
    background: #394c94;
}

.app-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-card-copy strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-copy > span:nth-child(2) {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-card-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    color: #687582;
    font-size: 11px;
}

.app-card-meta b {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-meta i {
    width: 3px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #9aa6b1;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 9px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
}

.status-label {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: #40505e;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.status-label--accent {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.status-label--muted {
    background: #f2f4f6;
    color: #77828c;
}

.empty-state {
    display: grid;
    justify-items: center;
    padding: 64px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.empty-mark {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 16px;
    background: var(--ink);
    color: white;
    font-size: 25px;
    font-weight: 800;
}

.empty-state h2 {
    margin: 0;
    font-size: 23px;
}

.empty-state p {
    max-width: 480px;
    margin: 9px 0 20px;
    color: var(--ink-soft);
}

.pagination-wrap,
.admin-pagination {
    margin-top: 24px;
}

.pagination-wrap svg {
    width: 18px;
    height: 18px;
}

.pagination-wrap nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pagination-wrap a,
.pagination-wrap span[aria-current] > span,
.pagination-wrap span[aria-disabled] > span {
    display: grid;
    min-width: 37px;
    height: 37px;
    place-items: center;
    padding-inline: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    font-size: 13px;
}

.pagination-wrap span[aria-current] > span {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.detail-shell {
    padding-block: 24px 80px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 13px;
}

.breadcrumbs strong {
    color: var(--ink);
}

.app-masthead {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.app-masthead-icon {
    display: grid;
    width: 128px;
    height: 128px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: #174f7e;
    color: white;
    font-size: 43px;
    font-weight: 800;
}

.app-masthead-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-masthead h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.app-masthead-copy > p {
    max-width: 750px;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.app-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 21px;
}

.app-facts div {
    padding-right: 12px;
    border-right: 1px solid var(--line);
}

.app-facts div:last-child {
    border-right: 0;
}

.app-facts span,
.app-facts strong {
    display: block;
}

.app-facts span {
    color: #74818d;
    font-size: 11px;
}

.app-facts strong {
    margin-top: 2px;
    font-size: 14px;
}

.app-developer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 12px;
}

.app-developer code {
    color: #586673;
    font-family: var(--mono);
}

.download-panel {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.button--download {
    width: 100%;
    min-height: 62px;
    justify-content: flex-start;
    background: var(--accent);
    color: white;
    text-align: left;
}

.button--download:hover {
    background: var(--accent-deep);
}

.button--download > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.button--download strong {
    font-size: 16px;
}

.button--download small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 550;
}

.button-download-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    font-size: 19px;
}

.download-panel > p {
    margin: 9px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    margin-top: 24px;
}

.detail-main {
    display: grid;
    gap: 18px;
}

.detail-section,
.info-block,
.safety-note {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.screenshot-rail {
    display: grid;
    grid-auto-columns: minmax(180px, 32%);
    grid-auto-flow: column;
    gap: 10px;
    padding-bottom: 8px;
    overflow-x: auto;
}

.screenshot-item {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-muted);
    cursor: zoom-in;
}

.screenshot-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.rich-copy {
    color: #35424e;
    line-height: 1.85;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 14px;
}

.info-block h2 {
    margin: 0 0 13px;
    font-size: 18px;
}

.info-block dl {
    margin: 0;
}

.info-block dl div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.info-block dt {
    color: var(--ink-soft);
    font-size: 12px;
}

.info-block dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.safety-note {
    border-color: #c9d9ec;
    background: #f3f8ff;
}

.safety-note strong {
    font-size: 14px;
}

.safety-note p {
    margin: 6px 0 0;
    color: #4d637b;
    font-size: 12px;
}

.related-section {
    margin-top: 34px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #eaf0f5;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    padding-block: 34px 26px;
}

.footer-grid strong {
    font-size: 17px;
}

.footer-grid p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px 26px;
    border-top: 1px solid var(--line-strong);
    color: #66737f;
    font-size: 11px;
}

.download-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0.01;
    pointer-events: none;
}

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(9, 18, 27, 0.62);
    backdrop-filter: blur(8px);
}

.download-modal-panel {
    position: relative;
    width: min(470px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    background: white;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
    animation: modal-in 180ms ease-out both;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--ink-soft);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.download-orbit {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
}

.download-orbit span {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: orbit 1s linear infinite;
}

.download-orbit span:nth-child(2) {
    inset: 7px;
    border-top-color: #78a9ee;
    animation-duration: 1.35s;
}

.download-orbit span:nth-child(3) {
    inset: 15px;
    border-top-color: var(--ink);
    animation-duration: 1.7s;
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

.download-modal h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.03em;
}

.modal-copy {
    margin: 7px 0 22px;
    color: var(--ink-soft);
    font-size: 13px;
}

.download-steps {
    display: grid;
    gap: 8px;
}

.download-step {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfc;
    color: #74808b;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.download-step.is-active {
    border-color: #95bcf2;
    background: var(--accent-soft);
    color: var(--ink);
}

.download-step.is-done {
    border-color: #a8d7be;
    background: #eff9f3;
    color: #185c3e;
}

.download-step.is-error {
    border-color: #e4aaa5;
    background: #fff2f1;
    color: #8f2118;
}

.download-step strong,
.download-step small {
    display: block;
}

.download-step strong {
    font-size: 13px;
}

.download-step small {
    margin-top: 2px;
    font-size: 11px;
}

.step-dot {
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.download-step.is-active .step-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

.download-step.is-done .step-dot {
    border-color: var(--success);
    background: var(--success);
}

.modal-progress {
    height: 5px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-muted);
}

.modal-progress span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 320ms ease;
}

.modal-result {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.modal-result.is-success {
    background: #eff9f3;
    color: #185c3e;
}

.modal-result.is-error {
    background: #fff2f1;
    color: #8f2118;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5, 10, 14, 0.88);
}

.lightbox img {
    max-width: min(920px, 92vw);
    max-height: 88dvh;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.mobile-download-bar {
    display: none;
}

@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: auto minmax(220px, 1fr);
    }

    .primary-nav {
        display: none;
    }

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

    .app-masthead {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .app-masthead-icon {
        width: 116px;
        height: 116px;
    }

    .download-panel {
        grid-column: 1 / -1;
        padding: 20px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 24px, 1240px);
    }

    .catalog-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-block: 34px;
    }

    .catalog-summary {
        padding: 18px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search {
        max-width: none;
    }

    .sort-switch {
        align-self: flex-start;
    }

    .featured-app {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .featured-app-icon {
        width: 76px;
        border-radius: 15px;
    }

    .featured-app .button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 14px;
        padding-bottom: 78px;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: 60px;
    }

    .brand > span:last-child {
        display: none;
    }

    .header-search {
        display: none;
    }

    .catalog-hero h1 {
        font-size: 36px;
    }

    .catalog-lead {
        font-size: 15px;
    }

    .catalog-search {
        flex-wrap: wrap;
    }

    .catalog-search input {
        flex: 1 0 100%;
    }

    .catalog-search .button {
        width: 100%;
    }

    .app-grid {
        gap: 10px;
    }

    .app-card-main {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 12px 10px;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        font-size: 19px;
    }

    .app-card-copy strong {
        font-size: 14px;
    }

    .app-card-copy > span:nth-child(2) {
        min-height: 35px;
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .app-card-meta {
        gap: 4px;
        font-size: 10px;
    }

    .app-card-meta b:nth-of-type(3),
    .app-card-meta i:nth-of-type(2) {
        display: none;
    }

    .app-card-footer {
        padding: 8px 12px;
        font-size: 10px;
    }

    .featured-app {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        padding: 17px;
    }

    .featured-app-icon {
        width: 64px;
        border-radius: 14px;
    }

    .featured-app-copy h2 {
        font-size: 22px;
    }

    .meta-row {
        gap: 5px 10px;
        font-size: 11px;
    }

    .detail-shell {
        padding-block: 18px 40px;
    }

    .app-masthead {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .app-masthead-icon {
        width: 82px;
        height: 82px;
        border-radius: 17px;
        font-size: 31px;
    }

    .app-masthead h1 {
        font-size: 28px;
    }

    .app-masthead-copy > p {
        font-size: 13px;
    }

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

    .app-facts div:nth-child(2) {
        border-right: 0;
    }

    .download-panel {
        display: none;
    }

    .detail-aside {
        grid-template-columns: 1fr;
    }

    .detail-section,
    .info-block,
    .safety-note {
        padding: 17px;
    }

    .screenshot-rail {
        grid-auto-columns: 76%;
    }

    .mobile-download-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 14px max(11px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
    }

    .mobile-download-bar > div {
        min-width: 0;
    }

    .mobile-download-bar strong,
    .mobile-download-bar span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-download-bar strong {
        font-size: 13px;
    }

    .mobile-download-bar span {
        color: var(--ink-soft);
        font-size: 10px;
    }

    .button--compact {
        width: auto;
        min-width: 100px;
        min-height: 46px;
    }

    .download-modal-panel {
        padding: 23px 18px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
