:root {
    --app-bg: #eef3f7;
    --app-surface: #ffffff;
    --app-surface-soft: #f7fafb;
    --app-surface-muted: #f2f7f8;
    --app-text: #17212f;
    --app-text-strong: #112d3e;
    --app-text-muted: #5e7989;
    --app-text-faint: #788c96;
    --app-border: #dce4ea;
    --app-border-strong: #cddbe1;
    --app-accent: #178f77;
    --app-accent-dark: #0e695c;
    --app-accent-soft: #e7f7f2;
    --app-accent-border: #b7dcd4;
    --app-info: #315d85;
    --app-info-soft: #e3eef8;
    --app-warning: #8b5b17;
    --app-warning-soft: #fff0d8;
    --app-danger: #b2433a;
    --app-danger-soft: #fff0ee;
    --app-shadow: 0 18px 42px rgba(29, 48, 57, 0.08);
    --app-shadow-hover: 0 22px 48px rgba(29, 48, 57, 0.12);
    --app-radius: 10px;
    --app-radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--app-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--app-text);
    background: var(--app-bg);
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--app-accent);
}

a:hover {
    color: var(--app-accent-dark);
}

button,
input,
textarea {
    font: inherit;
}

.min-w-0 {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    min-height: 78px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(16px);
}

.app-topbar .container-xl {
    min-height: 78px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--app-text);
    text-decoration: none;
}

.app-brand:hover {
    color: var(--app-text);
}

.app-brand-mark,
.app-icon-plate {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border: 1px solid var(--app-accent-border);
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    font-size: 21px;
}

.app-icon-plate {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    font-size: 23px;
}

.app-brand-eyebrow,
.page-eyebrow {
    margin: 0 0 2px;
    color: var(--app-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.app-brand-name {
    display: block;
    color: var(--app-text);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.app-navbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-nav-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #48616f;
    border-radius: var(--app-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link.active {
    color: var(--app-accent-dark);
    background: var(--app-accent-soft);
}

.token-field {
    width: 166px;
}

.token-field .input-group-text,
.token-field .form-control {
    min-height: 38px;
    border-color: var(--app-border-strong);
    background: var(--app-surface-soft);
    font-size: 12px;
}

.token-field .input-group-text {
    color: var(--app-text-muted);
}

.token-field .form-control {
    color: var(--app-text);
}

.token-field .form-control:focus {
    background: var(--app-surface);
}

.navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--app-text-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(23, 143, 119, 0.14);
}

.app-main {
    padding-top: 30px;
    padding-bottom: 56px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.page-header h1 {
    margin: 0;
    color: var(--app-text-strong);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-header-copy {
    max-width: 660px;
}

.page-subtitle {
    margin: 7px 0 0;
    color: var(--app-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
}

.breadcrumb-item a {
    color: var(--app-text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--app-text);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #99aab3;
}

.app-panel,
.card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

.card {
    overflow: hidden;
}

.card-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 15px 18px;
    color: var(--app-text-strong);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
}

.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--app-text-strong);
    font-weight: 800;
}

.card-body {
    padding: 20px;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
}

.summary-item {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
}

.summary-item + .summary-item {
    border-left: 1px solid var(--app-border);
}

.summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border-radius: 8px;
    font-size: 17px;
}

.summary-label {
    display: block;
    margin-bottom: 2px;
    color: var(--app-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.summary-value {
    display: block;
    overflow: hidden;
    color: var(--app-text-strong);
    font-size: 19px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-value.compact {
    font-size: 14px;
}

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

.apk-card {
    position: relative;
    min-height: 238px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.apk-card:hover {
    transform: translateY(-3px);
    border-color: #b9d3d5;
    box-shadow: var(--app-shadow-hover);
}

.apk-card .card-body {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.apk-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.apk-card-title {
    margin: 0;
    color: var(--app-text-strong);
    font-size: 17px;
    font-weight: 800;
}

.apk-package {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    color: var(--app-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apk-description {
    min-height: 42px;
    margin: 16px 0 17px;
    color: var(--app-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.apk-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e8eef0;
}

.apk-card-meta {
    color: var(--app-text-faint);
    font-size: 11px;
    font-weight: 700;
}

.apk-card-actions {
    display: flex;
    gap: 6px;
}

.apk-card-badges {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}

.fixed-entry-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    color: var(--app-text-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 7px;
}

.fixed-entry-row > a {
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 7px;
    color: var(--app-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    text-decoration: none;
}

.fixed-entry-row > a:hover {
    color: var(--app-accent-dark);
}

.fixed-entry-row > a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixed-download-row {
    margin-top: 7px;
    background: var(--app-accent-soft);
    border-color: var(--app-accent-border);
}

.fixed-download-row > a {
    color: var(--app-accent-dark);
}

.status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: #516873;
    background: #e8eff2;
    border: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.status-pill.success,
.badge.text-bg-success,
.badge.bg-success {
    color: #0b685b !important;
    background: var(--app-accent-soft) !important;
}

.status-pill.info,
.badge.text-bg-primary,
.badge.bg-primary {
    color: var(--app-info) !important;
    background: var(--app-info-soft) !important;
}

.status-pill.warning {
    color: var(--app-warning);
    background: var(--app-warning-soft);
}

.btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--app-radius-sm);
    font-size: 13px;
    font-weight: 750;
    box-shadow: none !important;
}

.btn-sm {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 12px;
}

.btn-lg {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary {
    color: #fff;
    background: var(--app-accent);
    border-color: var(--app-accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff !important;
    background: var(--app-accent-dark) !important;
    border-color: var(--app-accent-dark) !important;
}

.btn-primary:disabled {
    color: #fff;
    background: var(--app-accent);
    border-color: var(--app-accent);
    opacity: 0.48;
}

.btn-outline-primary {
    color: var(--app-accent);
    background: #fff;
    border-color: var(--app-accent-border);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: var(--app-accent-dark) !important;
    background: var(--app-accent-soft) !important;
    border-color: var(--app-accent-border) !important;
}

.btn-secondary,
.btn-outline-secondary {
    color: #315365;
    background: #eef4f7;
    border-color: #d3e0e6;
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    color: #253f4d;
    background: #e5eef2;
    border-color: #c8d8df;
}

.btn-outline-danger {
    color: var(--app-danger);
    background: #fff;
    border-color: #efc7c2;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #96382f;
    background: var(--app-danger-soft);
    border-color: #e8b6b0;
}

.btn-icon {
    width: 32px;
    min-width: 32px;
    padding: 0;
}

.form-label {
    margin-bottom: 7px;
    color: #48616f;
    font-size: 12px;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 42px;
    color: #1d3039;
    background: #fff;
    border-color: var(--app-border-strong);
    border-radius: 5px;
    font-size: 13px;
}

.form-control::placeholder {
    color: #9aabb3;
}

.form-control:focus,
.form-select:focus {
    color: #1d3039;
    background: #fff;
    border-color: #159985;
    box-shadow: 0 0 0 3px rgba(21, 153, 133, 0.12);
}

.form-text {
    color: var(--app-text-faint);
    font-size: 11px;
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: 0 22px 64px rgba(29, 48, 57, 0.2);
}

.modal-header,
.modal-footer {
    border-color: var(--app-border);
}

.modal-title {
    color: var(--app-text-strong);
    font-weight: 800;
}

.alert {
    color: #2f5c55;
    background: #e4f3ef;
    border-color: #c1e1d9;
    border-radius: var(--app-radius-sm);
    font-size: 12px;
    line-height: 1.55;
}

.alert-info {
    color: var(--app-info);
    background: var(--app-info-soft);
    border-color: #c8ddec;
}

.alert-warning {
    color: #805d1f;
    background: #fff4df;
    border-color: #ecd7ad;
}

.empty-state {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 44px 24px;
    text-align: center;
}

.empty-state-inner {
    max-width: 420px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    display: grid;
    margin: 0 auto 18px;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border: 1px solid var(--app-accent-border);
    border-radius: 14px;
    font-size: 29px;
}

.empty-state h2,
.empty-state h4,
.empty-state h5 {
    margin-bottom: 8px;
    color: var(--app-text-strong);
    font-weight: 800;
}

.empty-state p {
    color: var(--app-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    margin-bottom: 18px;
}

.detail-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-identity h1 {
    margin: 0;
    color: var(--app-text-strong);
    font-size: 25px;
    font-weight: 800;
}

.detail-package {
    margin: 5px 0 0;
    color: var(--app-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.app-info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

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

.app-info-row dt {
    color: var(--app-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.app-info-row dd {
    margin: 0;
    color: var(--app-text);
    font-size: 13px;
    line-height: 1.55;
}

.entry-link-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.entry-link-line a {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 固定下载入口 */
.entry-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.7fr);
    gap: 28px;
    padding: 30px;
    margin-bottom: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 8%, rgba(23, 143, 119, 0.11), transparent 34%),
        var(--app-surface);
}

.entry-hero-copy {
    min-width: 0;
}

.entry-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
}

.entry-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.entry-app-icon {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    font-size: 29px;
}

.entry-identity h1 {
    margin: 0;
    color: var(--app-text-strong);
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.entry-description {
    max-width: 650px;
    margin: 19px 0;
    color: var(--app-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.entry-url-box {
    max-width: 690px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 13px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.entry-url-box > span {
    min-width: 0;
    display: grid;
    flex: 1;
    gap: 3px;
}

.entry-url-box small {
    color: var(--app-text-muted);
    font-size: 10px;
    font-weight: 800;
}

.entry-url-box strong {
    overflow: hidden;
    color: var(--app-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-release-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: #123546;
    border: 1px solid #224b5d;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(18, 53, 70, 0.18);
}

.entry-release-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7d4db;
    font-size: 11px;
    font-weight: 800;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4cd0af;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(76, 208, 175, 0.12);
}

.entry-version {
    margin-top: 12px;
    color: #fff;
    font-size: 31px;
    letter-spacing: -0.02em;
}

.entry-version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 5px 0 20px;
    color: #aac1cc;
    font-size: 11px;
}

.entry-primary-actions {
    display: flex;
    gap: 8px;
}

.entry-primary-actions .btn-primary {
    flex: 1;
}

.entry-install-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    color: #aac1cc;
    font-size: 10px;
    line-height: 1.5;
}

.entry-qr-label {
    display: none;
}

.entry-release-panel .btn-outline-secondary {
    color: #d4e4e9;
    background: rgba(255, 255, 255, 0.06);
    border-color: #5f7c88;
}

.entry-release-panel .btn-outline-secondary:hover {
    color: #123546;
    background: #e7f7f2;
    border-color: #e7f7f2;
}

.entry-link-stack {
    min-width: 0;
    display: grid;
    align-self: end;
    gap: 8px;
}

.entry-download-url-box {
    max-width: none;
}

.entry-page-address {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--app-text-faint);
    font-size: 10px;
}

.entry-page-address span {
    min-width: 0;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.entry-no-release {
    display: grid;
    justify-items: start;
    color: #fff;
}

.entry-no-release .empty-state-icon {
    color: #68cdb7;
    background: rgba(104, 205, 183, 0.12);
}

.entry-no-release strong {
    margin-top: 12px;
    font-size: 18px;
}

.entry-no-release p {
    margin: 4px 0 0;
    color: #aac1cc;
    font-size: 12px;
}

.entry-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.entry-release-notes {
    min-height: 94px;
}

.entry-help-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 21px;
}

.entry-help-icon {
    width: 40px;
    height: 40px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border-radius: 8px;
    font-size: 18px;
}

.entry-help-card h2 {
    margin: 0 0 7px;
    color: var(--app-text-strong);
    font-size: 15px;
    font-weight: 800;
}

.entry-help-card p:last-child {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 12px;
    line-height: 1.65;
}

.entry-history-card {
    margin-bottom: 10px;
}

.entry-version-table tbody tr {
    cursor: default;
}

.latest-version-box {
    display: grid;
    gap: 3px;
    padding: 13px 14px;
    margin-top: 18px;
    color: #0b685b;
    background: var(--app-accent-soft);
    border: 1px solid var(--app-accent-border);
    border-radius: 7px;
}

.latest-version-box small {
    font-size: 10px;
    font-weight: 800;
}

.latest-version-box strong {
    font-size: 20px;
}

.table-shell {
    width: 100%;
    overflow: auto;
}

.table {
    min-width: 690px;
    margin: 0;
    color: #304852;
    font-size: 12px;
}

.table > :not(caption) > * > * {
    padding: 13px 14px;
    border-bottom-color: #e8eef0;
    vertical-align: middle;
}

.table thead th {
    color: #536b77;
    background: var(--app-surface-muted);
    border-bottom-color: var(--app-border);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover > * {
    background: #f7fbfa;
}

.table tbody tr.latest-row > * {
    background: #f1faf7;
}

.table tbody tr.selected-row > * {
    background: var(--app-info-soft);
}

.version-primary-cell {
    position: sticky;
    z-index: 2;
    left: 0;
    min-width: 116px;
    background: var(--app-surface);
    box-shadow: 7px 0 10px -11px rgba(26, 52, 63, 0.56);
}

.version-action-cell {
    position: sticky;
    z-index: 2;
    right: 0;
    min-width: 126px;
    background: var(--app-surface);
    box-shadow: -7px 0 10px -11px rgba(26, 52, 63, 0.56);
}

.table thead .version-primary-cell,
.table thead .version-action-cell {
    z-index: 3;
    background: var(--app-surface-muted);
}

.table tbody tr:hover .version-primary-cell,
.table tbody tr:hover .version-action-cell {
    background: #f7fbfa;
}

.table tbody tr.latest-row .version-primary-cell,
.table tbody tr.latest-row .version-action-cell {
    background: #f1faf7;
}

.table tbody tr.selected-row .version-primary-cell,
.table tbody tr.selected-row .version-action-cell {
    background: var(--app-info-soft);
}

.table code {
    padding: 3px 6px;
    color: #315365;
    background: #edf4f5;
    border-radius: 4px;
    font-size: 11px;
}

.pagination {
    gap: 4px;
}

.page-link {
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 5px 8px;
    color: #48616f;
    background: #fff;
    border-color: var(--app-border);
    border-radius: 5px !important;
    font-size: 11px;
    font-weight: 700;
}

.page-link:hover {
    color: var(--app-accent-dark);
    background: var(--app-accent-soft);
    border-color: var(--app-accent-border);
}

.page-item.active .page-link {
    color: #fff;
    background: var(--app-accent);
    border-color: var(--app-accent);
}

.version-log {
    min-height: 104px;
    margin: 0;
    color: #39515d;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.api-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    color: var(--app-text-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.api-details summary::-webkit-details-marker {
    display: none;
}

.api-details[open] summary {
    border-bottom: 1px solid var(--app-border);
}

.api-details .details-chevron {
    transition: transform 0.18s ease;
}

.api-details[open] .details-chevron {
    transform: rotate(180deg);
}

.code-block {
    overflow: auto;
    padding: 15px;
    margin: 0;
    color: #d9edf2;
    background: #0c1f2a;
    border: 1px solid #203d4c;
    border-radius: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.7;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 18px;
}

.drop-zone {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: var(--app-text-muted);
    background: var(--app-surface-soft);
    border: 1px dashed #a9c7c8;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    background: var(--app-accent-soft);
    border-color: var(--app-accent);
}

.drop-zone.is-dragging {
    transform: scale(0.995);
}

.drop-zone-icon {
    width: 56px;
    height: 56px;
    display: grid;
    margin: 0 auto 14px;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border: 1px solid var(--app-accent-border);
    border-radius: 12px;
    font-size: 26px;
}

.drop-zone h3 {
    margin: 0 0 6px;
    color: var(--app-text-strong);
    font-size: 16px;
    font-weight: 800;
}

.drop-zone p {
    margin: 0 0 17px;
    font-size: 12px;
}

.file-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-top: 12px;
    color: #0b685b;
    background: var(--app-accent-soft);
    border: 1px solid var(--app-accent-border);
    border-radius: 7px;
}

.file-summary i {
    font-size: 22px;
}

.file-summary strong,
.file-summary small {
    display: block;
}

.file-summary small {
    margin-top: 2px;
    color: var(--app-text-muted);
    font-size: 11px;
}

.upload-sidebar {
    display: grid;
    gap: 14px;
}

.release-context {
    padding: 18px;
}

.release-context-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--app-border);
}

.release-context h2 {
    margin: 0;
    color: var(--app-text-strong);
    font-size: 15px;
    font-weight: 800;
}

.release-context code {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--app-text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-checklist {
    display: grid;
    gap: 12px;
    padding: 17px 0 0;
    margin: 0;
    list-style: none;
}

.release-checklist li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 9px;
    color: var(--app-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.release-checklist span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.toast-container {
    z-index: 1085;
}

.app-toast {
    color: var(--app-text);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: var(--app-shadow-hover);
}

.qr-modal img {
    max-width: min(300px, 100%);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .app-topbar .navbar-collapse {
        padding: 10px 0 16px;
        border-top: 1px solid var(--app-border);
    }

    .app-navbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-nav-link {
        width: 100%;
    }

    .token-field {
        width: 100%;
        max-width: 310px;
    }

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

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

    .entry-hero,
    .entry-content-grid {
        grid-template-columns: 1fr;
    }

    .entry-release-panel {
        grid-column: auto;
        grid-row: auto;
    }

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

@media (max-width: 767.98px) {
    .app-main {
        padding-top: 22px;
        padding-bottom: 36px;
    }

    .page-header,
    .detail-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .page-header .btn,
    .detail-actions .btn-primary {
        width: 100%;
    }

    .summary-strip {
        grid-template-columns: 1fr;
    }

    .summary-item {
        min-height: 74px;
    }

    .summary-item + .summary-item {
        border-top: 1px solid var(--app-border);
        border-left: 0;
    }

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

    .apk-card {
        min-height: 220px;
    }

    .detail-actions {
        justify-content: stretch;
    }

    .detail-actions .btn {
        flex: 1 1 auto;
    }

    .upload-sidebar {
        grid-template-columns: 1fr;
    }

    .entry-hero {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .app-brand-eyebrow {
        display: none;
    }

    .app-brand-name {
        font-size: 17px;
    }

    .app-main {
        padding-right: 14px;
        padding-bottom: 108px;
        padding-left: 14px;
    }

    .public-entry-topbar,
    .public-entry-topbar .container-xl {
        min-height: 62px;
    }

    .public-entry-topbar .app-brand-mark {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .public-entry-topbar .navbar-toggler,
    .public-entry-topbar .navbar-collapse {
        display: none !important;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .card-body,
    .detail-hero {
        padding: 17px;
    }

    .apk-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .apk-card-actions {
        width: 100%;
    }

    .apk-card-actions .btn:not(.btn-icon) {
        flex: 1;
    }

    .apk-card-badges {
        align-items: flex-start;
    }

    .apk-card-header {
        flex-direction: column;
    }

    .entry-identity {
        align-items: flex-start;
        gap: 12px;
    }

    .entry-hero {
        gap: 18px;
        padding: 18px;
        border-radius: 9px;
    }

    .entry-kicker-row {
        margin-bottom: 15px;
    }

    .entry-app-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .entry-identity h1 {
        font-size: 25px;
    }

    .entry-description {
        margin: 14px 0 0;
        font-size: 13px;
    }

    .entry-release-panel {
        padding: 20px;
    }

    .entry-version {
        font-size: 34px;
    }

    .entry-version-meta {
        margin-bottom: 16px;
    }

    .entry-primary-actions .btn-primary {
        min-height: 54px;
        font-size: 15px;
    }

    .entry-primary-actions .entry-qr-action {
        display: none;
    }

    .entry-url-box,
    .entry-primary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .entry-url-box .btn {
        min-height: 44px;
    }

    .entry-primary-actions .btn-icon {
        width: 100%;
    }

    .entry-qr-label {
        display: inline;
    }

    .entry-page-address {
        align-items: flex-start;
    }

    .mobile-download-dock {
        position: fixed;
        z-index: 1010;
        right: 14px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 14px;
        min-height: 66px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 15px;
        color: #fff;
        background: #123546;
        border: 1px solid #28566a;
        border-radius: 13px;
        box-shadow: 0 18px 36px rgba(12, 38, 51, 0.3);
        text-decoration: none;
    }

    .mobile-download-dock:hover,
    .mobile-download-dock:focus-visible {
        color: #fff;
        background: #0e2d3d;
    }

    .mobile-download-dock > span:not(.mobile-download-icon) {
        display: grid;
        gap: 1px;
    }

    .mobile-download-dock strong {
        font-size: 14px;
    }

    .mobile-download-dock small {
        color: #b9cdd5;
        font-size: 10px;
    }

    .mobile-download-icon {
        width: 40px;
        height: 40px;
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        color: #0e695c;
        background: #dff5ee;
        border-radius: 9px;
        font-size: 18px;
    }

    .entry-history-card .table-shell {
        overflow: visible;
    }

    .entry-version-table {
        min-width: 0;
    }

    .entry-version-table,
    .entry-version-table tbody,
    .entry-version-table tr {
        display: block;
    }

    .entry-version-table thead {
        display: none;
    }

    .entry-version-table tbody tr {
        position: relative;
        padding: 15px 66px 15px 16px;
        border-bottom: 1px solid var(--app-border);
    }

    .entry-version-table tbody tr:last-child {
        border-bottom: 0;
    }

    .entry-version-table tbody tr > * {
        display: block;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .entry-version-table .version-primary-cell {
        position: static;
        min-width: 0;
        margin-bottom: 7px;
        box-shadow: none;
        font-size: 14px;
    }

    .entry-version-table td[data-label] {
        margin-top: 4px;
        color: var(--app-text-muted);
        font-size: 11px;
    }

    .entry-version-table td[data-label]::before {
        content: attr(data-label) " · ";
        color: var(--app-text-faint);
        font-weight: 700;
    }

    .entry-version-table .version-action-cell {
        position: absolute;
        top: 50%;
        right: 15px;
        min-width: 0;
        transform: translateY(-50%);
        box-shadow: none;
    }

    .entry-version-table .version-action-cell .btn {
        width: 44px;
        height: 44px;
    }

    .entry-version-table .version-action-cell button {
        display: none;
    }

    .detail-identity {
        align-items: flex-start;
    }

    .detail-package {
        overflow-wrap: anywhere;
    }

    .drop-zone {
        min-height: 210px;
        padding: 22px 16px;
    }
}

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