.apkreq {
    --apkreq-bg: #fff;
    --apkreq-soft: #f5f6f7;
    --apkreq-soft-2: #eceef0;
    --apkreq-text: #17191c;
    --apkreq-muted: #6d7279;
    --apkreq-line: #e3e5e8;
    --apkreq-accent: #16883f;
    --apkreq-accent-soft: #eaf6ee;
    --apkreq-danger: #d43a36;
    --apkreq-danger-soft: #fff0ef;
    --apkreq-focus: #4f8cff;
    color: var(--apkreq-text);
    font-size: 15px;
    line-height: 1.45;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

[data-theme="dark"] .apkreq {
    --apkreq-bg: #1d1f21;
    --apkreq-soft: #25282b;
    --apkreq-soft-2: #303438;
    --apkreq-text: #f2f3f4;
    --apkreq-muted: #a7abb1;
    --apkreq-line: #34383c;
    --apkreq-accent: #49bd70;
    --apkreq-accent-soft: #20372a;
    --apkreq-danger: #ee625d;
    --apkreq-danger-soft: #3b2424;
    --apkreq-focus: #76a7ff;
}

.apkreq *,
.apkreq *::before,
.apkreq *::after { box-sizing: border-box; }

.apkreq .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.apkreq button,
.apkreq input { font: inherit; }

.apkreq button {
    -webkit-appearance: none;
    appearance: none;
    top: auto;
}

.apkreq button:focus,
.apkreq button:focus-visible,
.apkreq input:focus,
.apkreq input:focus-visible {
    outline: none;
}

.apkreq button:active { transform: none !important; }

.apkreq button:focus-visible,
.apkreq input:focus-visible,
.apkreq a:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--apkreq-focus) 32%, transparent);
}

.apkreq svg {
    position: static !important;
    top: auto !important;
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apkreq-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--apkreq-line);
}

.apkreq-eyebrow {
    margin: 0 0 5px;
    color: var(--apkreq-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.apkreq-intro h1,
.apkreq-toolbar h2 {
    margin: 0;
    color: var(--apkreq-text);
    line-height: 1.16;
}

.apkreq-intro h1 { font-size: clamp(27px, 4vw, 40px); }
.apkreq-intro__copy > p:last-child { max-width: 620px; margin: 9px 0 0; color: var(--apkreq-muted); }

.apkreq-total {
    min-width: 92px;
    padding-left: 20px;
    border-left: 1px solid var(--apkreq-line);
    text-align: right;
}

.apkreq-total strong { display: block; font-size: 26px; line-height: 1; color: var(--apkreq-text); }
.apkreq-total span { display: block; margin-top: 5px; color: var(--apkreq-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.apkreq-submit {
    margin: 22px 0 36px;
    padding: 18px;
    border: 1px solid var(--apkreq-line);
    border-radius: 7px;
    background: var(--apkreq-soft);
}

.apkreq-submit > label { display: block; margin-bottom: 8px; color: var(--apkreq-text); font-size: 13px; font-weight: 700; }
.apkreq-submit__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.apkreq-submit input[type="url"] {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px 0 43px;
    border: 1px solid var(--apkreq-line);
    border-radius: 5px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    box-shadow: none;
}
.apkreq-submit input[type="url"]::placeholder { color: color-mix(in srgb, var(--apkreq-muted) 72%, transparent); }
.apkreq-submit input[type="url"]:focus { border-color: var(--apkreq-focus); }
.apkreq-field-icon { position: absolute; z-index: 1; left: 14px; top: 14px; color: var(--apkreq-muted); pointer-events: none; }
.apkreq-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.apkreq-primary,
.apkreq-load,
.apkreq-details,
.apkreq-admin-sync,
.apkreq-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease;
}

.apkreq-primary {
    min-width: 148px;
    padding: 0 18px;
    background: var(--apkreq-accent);
    color: #fff;
}
.apkreq-primary:hover { background: color-mix(in srgb, var(--apkreq-accent) 88%, #000); color: #fff; }
.apkreq-primary:disabled { cursor: wait; opacity: .72; }

.apkreq-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: apkreq-spin .7s linear infinite;
}
.is-loading > .apkreq-spinner,
.apkreq-modal-loader .apkreq-spinner { display: block; }
.apkreq-primary.is-loading > span:first-child,
.apkreq-load.is-loading > span:first-child { display: none; }

.apkreq-message { margin: 10px 0 0; color: var(--apkreq-muted); font-size: 13px; }
.apkreq-message:empty { display: none; }
.apkreq-message:not(:empty) { padding: 10px 12px; border: 1px solid var(--apkreq-line); border-radius: 5px; background: var(--apkreq-bg); }
.apkreq-message[data-tone="success"] { border-color: color-mix(in srgb, var(--apkreq-accent) 34%, var(--apkreq-line)); background: var(--apkreq-accent-soft); color: var(--apkreq-accent); }
.apkreq-message[data-tone="error"] { border-color: color-mix(in srgb, var(--apkreq-danger) 34%, var(--apkreq-line)); background: var(--apkreq-danger-soft); color: var(--apkreq-danger); }
.apkreq-message a { color: var(--apkreq-accent); font-weight: 700; }
.apkreq-submit__challenge { margin-top: 12px; }

.apkreq-available { margin-top: 10px; }
.apkreq-available__link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--apkreq-accent) 38%, var(--apkreq-line));
    border-radius: 6px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}
.apkreq-available__link:hover { border-color: var(--apkreq-accent); background: color-mix(in srgb, var(--apkreq-accent-soft) 48%, var(--apkreq-bg)); color: var(--apkreq-text); }
.apkreq-available__image { position: relative; display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border-radius: 7px; background: var(--apkreq-soft); color: var(--apkreq-muted); }
.apkreq-available__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease; }
.apkreq-available__image svg { width: 27px; height: 27px; }
.apkreq-available__copy { display: block; min-width: 0; }
.apkreq-available__copy strong { display: block; overflow: hidden; color: var(--apkreq-text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.apkreq-available__eyebrow { display: block; margin-bottom: 3px; color: var(--apkreq-accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.apkreq-available__hint { display: block; margin-top: 4px; color: var(--apkreq-muted); font-size: 12px; }
.apkreq-available__link > .apkreq-js-icon { color: var(--apkreq-accent); }

.apkreq-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.apkreq-toolbar h2 { font-size: clamp(22px, 3vw, 29px); }
.apkreq-admin-sync { padding: 0 13px; border-color: var(--apkreq-line); background: var(--apkreq-bg); color: var(--apkreq-text); }
.apkreq-admin-sync:hover { border-color: var(--apkreq-muted); }

.apkreq-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
    margin-bottom: 14px;
}
.apkreq-filters { display: flex; width: 100%; min-width: 0; max-width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.apkreq-filters::-webkit-scrollbar { display: none; }
.apkreq-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--apkreq-muted);
    font-weight: 700;
    cursor: pointer;
}
.apkreq-filter:hover { color: var(--apkreq-text); background: var(--apkreq-soft); }
.apkreq-filter.is-active { border-color: var(--apkreq-line); background: var(--apkreq-bg); color: var(--apkreq-text); }

.apkreq-search { position: relative; display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; }
.apkreq-search__icon { position: absolute; z-index: 1; left: 13px; top: 50%; display: grid; color: var(--apkreq-muted); pointer-events: none; transform: translateY(-50%); }
.apkreq-search__icon svg { width: 18px; height: 18px; }
.apkreq .apkreq-search input[type="search"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px 0 39px;
    border: 1px solid var(--apkreq-line);
    border-radius: 5px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    box-shadow: none;
}

.apkreq-live {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid var(--apkreq-line);
    border-left: 3px solid var(--apkreq-focus);
    border-radius: 5px;
    background: var(--apkreq-soft);
    color: var(--apkreq-text);
    font-size: 13px;
    font-weight: 700;
}
.apkreq-live::before { width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--apkreq-focus); content: ""; }
.apkreq-live[data-tone="success"] { border-left-color: var(--apkreq-accent); }
.apkreq-live[data-tone="success"]::before { background: var(--apkreq-accent); }
.apkreq-live[data-tone="error"] { border-left-color: var(--apkreq-danger); color: var(--apkreq-danger); }
.apkreq-live[data-tone="error"]::before { background: var(--apkreq-danger); }
.apkreq-live.is-updated { animation: apkreq-feedback .28s ease; }

.apkreq-toast {
    position: fixed;
    z-index: 1000001;
    top: max(16px, calc(env(safe-area-inset-top) + 16px));
    left: 50%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 38px;
    align-items: center;
    width: min(440px, calc(100vw - 24px));
    min-height: 58px;
    padding: 9px 9px 9px 15px;
    border: 1px solid var(--apkreq-line);
    border-left: 4px solid var(--apkreq-focus);
    border-radius: 7px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    box-shadow: 0 12px 34px rgb(0 0 0 / 18%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity .18s ease, transform .18s ease;
}
.admin-bar .apkreq-toast { top: max(48px, calc(env(safe-area-inset-top) + 16px)); }
.apkreq-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.apkreq-toast[data-tone="success"] { border-left-color: var(--apkreq-accent); }
.apkreq-toast[data-tone="error"] { border-left-color: var(--apkreq-danger); }
.apkreq-toast__mark { width: 9px; height: 9px; margin-right: 11px; border-radius: 50%; background: var(--apkreq-focus); }
.apkreq-toast[data-tone="success"] .apkreq-toast__mark { background: var(--apkreq-accent); }
.apkreq-toast[data-tone="error"] .apkreq-toast__mark { background: var(--apkreq-danger); }
.apkreq-toast__message { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.apkreq-toast__close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--apkreq-muted);
    cursor: pointer;
}
.apkreq-toast__close svg { width: 18px; height: 18px; }
.apkreq-toast__close:hover { background: var(--apkreq-soft); color: var(--apkreq-text); }

.apkreq-list { display: grid; gap: 8px; }
.apkreq-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 94px;
    padding: 11px 12px;
    border: 1px solid var(--apkreq-line);
    border-radius: 6px;
    background: var(--apkreq-bg);
    transition: border-color .16s ease, background-color .16s ease, opacity .24s ease var(--apkreq-delay, 0ms), transform .24s ease var(--apkreq-delay, 0ms);
}
.apkreq-card:hover { border-color: color-mix(in srgb, var(--apkreq-muted) 52%, var(--apkreq-line)); }
.apkreq-card.is-entering { opacity: 0; transform: translateY(8px); }
.apkreq-card__app { position: relative; z-index: 2; display: flex; align-items: center; min-width: 0; gap: 13px; }
.apkreq-icon-wrap,
.apkreq-detail__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: var(--apkreq-soft);
    color: var(--apkreq-muted);
}
.apkreq-icon-wrap { position: relative; width: 72px; height: 72px; }
.apkreq-icon-wrap img,
.apkreq-detail__icon img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease; }
.apkreq-icon-wrap.is-image-loading img,
.apkreq-detail__icon.is-image-loading img,
.apkreq-available__image.is-image-loading img { opacity: 0; }
.apkreq-icon-wrap.is-image-loading::after,
.apkreq-detail__icon.is-image-loading::after,
.apkreq-available__image.is-image-loading::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 34%) 45%, transparent 70%) var(--apkreq-soft); content: ""; animation: apkreq-shimmer 1.1s linear infinite; }
.apkreq-icon-wrap svg { width: 27px; height: 27px; }
.apkreq-card__identity { min-width: 0; }
.apkreq-card__heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.apkreq-card h3 { overflow: hidden; margin: 0; color: var(--apkreq-text); font-size: 17px; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.apkreq-card__identity > p { overflow: hidden; margin: 4px 0 0; color: var(--apkreq-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.apkreq-card__meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 7px; color: var(--apkreq-muted); font-size: 12px; }
.apkreq-card__meta > span:first-child { flex: 0 0 auto; }
.apkreq-package { overflow: hidden; padding-left: 8px; border-left: 1px solid var(--apkreq-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.apkreq-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.apkreq-status--waiting { background: var(--apkreq-soft); color: var(--apkreq-muted); }
.apkreq-status--added { background: var(--apkreq-accent-soft); color: var(--apkreq-accent); }

.apkreq-card__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.apkreq-votes { display: flex; align-items: center; gap: 5px; }
.apkreq-vote {
    display: inline-grid;
    grid-template-columns: 20px auto;
    align-items: center;
    gap: 7px;
    min-width: 64px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--apkreq-line);
    border-radius: 5px;
    background: var(--apkreq-bg);
    color: var(--apkreq-muted);
    font-weight: 700;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.apkreq-vote:hover { border-color: var(--apkreq-muted); color: var(--apkreq-text); }
.apkreq-vote--like.is-selected { border-color: color-mix(in srgb, var(--apkreq-accent) 45%, var(--apkreq-line)); background: var(--apkreq-accent-soft); color: var(--apkreq-accent); }
.apkreq-vote--dislike.is-selected { border-color: color-mix(in srgb, var(--apkreq-danger) 45%, var(--apkreq-line)); background: var(--apkreq-danger-soft); color: var(--apkreq-danger); }
.apkreq-vote:disabled { cursor: wait; opacity: .66; }
.apkreq-details { min-width: 98px; padding: 0 12px; border-color: var(--apkreq-line); background: var(--apkreq-soft); color: var(--apkreq-text); }
.apkreq-details:hover { border-color: var(--apkreq-muted); color: var(--apkreq-text); }
.apkreq-details svg { width: 16px; height: 16px; }
.apkreq-card-admin {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--apkreq-line);
    border-radius: 5px;
    background: var(--apkreq-bg);
    color: var(--apkreq-muted);
    cursor: pointer;
}
.apkreq-card-admin:hover { border-color: var(--apkreq-danger); color: var(--apkreq-danger); }

.apkreq-card__cover-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.apkreq-card.is-added .apkreq-card__app,
.apkreq-card.is-added .apkreq-card__actions { pointer-events: none; }
.apkreq-card.is-added .apkreq-card-admin { position: relative; z-index: 3; pointer-events: auto; }
.apkreq-card.is-added:focus-within { border-color: var(--apkreq-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--apkreq-focus) 25%, transparent); }
.apkreq-load-wrap { display: flex; justify-content: center; padding-top: 20px; }
.apkreq-load { min-width: 118px; padding: 0 17px; border-color: var(--apkreq-line); background: var(--apkreq-bg); color: var(--apkreq-text); }
.apkreq-load:hover { border-color: var(--apkreq-muted); }
.apkreq-empty { display: grid; justify-items: center; padding: 42px 20px; border: 1px dashed var(--apkreq-line); border-radius: 6px; color: var(--apkreq-muted); text-align: center; }
.apkreq-empty svg { width: 36px; height: 36px; margin-bottom: 10px; }
.apkreq-empty strong { color: var(--apkreq-text); }
.apkreq-empty span { margin-top: 3px; font-size: 13px; }

body.apkreq-modal-open { overflow: hidden; }
.apkreq-modal,
.apkreq-confirm { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 18px; }
.apkreq-modal[hidden],
.apkreq-confirm[hidden],
.apkreq [hidden] { display: none !important; }
.apkreq-modal__backdrop,
.apkreq-confirm__backdrop { position: absolute; inset: 0; background: rgb(8 10 12 / 68%); opacity: 0; transition: opacity .18s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.apkreq-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    border: 1px solid var(--apkreq-line);
    border-radius: 8px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    box-shadow: 0 22px 65px rgb(0 0 0 / 25%);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}
.apkreq-modal__dialog:focus { outline: none; }
.apkreq-modal.is-open .apkreq-modal__backdrop,
.apkreq-confirm.is-open .apkreq-confirm__backdrop { opacity: 1; }
.apkreq-modal.is-open .apkreq-modal__dialog { opacity: 1; transform: none; }
.apkreq-modal__close {
    position: sticky;
    z-index: 3;
    top: 12px;
    float: right;
    display: grid;
    width: 42px;
    height: 42px;
    margin: 12px 12px -54px 0;
    place-items: center;
    padding: 0;
    border: 1px solid var(--apkreq-line);
    border-radius: 50%;
    background: var(--apkreq-bg) !important;
    color: var(--apkreq-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.apkreq-modal__close:hover { color: var(--apkreq-text); border-color: var(--apkreq-muted); }
.apkreq-modal__close:focus,
.apkreq-modal__close:focus-visible,
.apkreq-modal__close:active { background: var(--apkreq-bg) !important; color: var(--apkreq-text); }
.apkreq-modal__content { min-height: 300px; }
.apkreq-modal-loader { display: grid; min-height: 300px; place-items: center; color: var(--apkreq-accent); }
.apkreq-modal-loader .apkreq-spinner { width: 32px; height: 32px; }
.apkreq-modal-error { padding: 90px 24px; color: var(--apkreq-danger); text-align: center; }

.apkreq-media-viewer {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}
.apkreq-media-viewer__backdrop { position: absolute; inset: 0; background: rgb(5 6 7 / 88%); opacity: 0; transition: opacity .16s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.apkreq-media-viewer__dialog {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    width: min(1120px, 100%);
    height: min(820px, calc(100dvh - 36px));
    padding: 54px 10px 12px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 8px;
    background: #101214;
    color: #fff;
    box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
    opacity: 0;
    transform: scale(.985);
    transition: opacity .16s ease, transform .16s ease;
}
.apkreq-media-viewer.is-open .apkreq-media-viewer__backdrop { opacity: 1; }
.apkreq-media-viewer.is-open .apkreq-media-viewer__dialog { opacity: 1; transform: none; }
.apkreq-media-viewer__dialog:focus { outline: none; }
.apkreq-media-viewer__close,
.apkreq-media-viewer__nav {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(255 255 255 / 8%);
    color: #fff;
    cursor: pointer;
}
.apkreq-media-viewer__close {
    position: absolute !important;
    z-index: 20;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: auto !important;
    width: 44px;
    height: 44px;
    transform: none !important;
    touch-action: manipulation;
}
.apkreq-media-viewer__nav { width: 42px; height: 42px; justify-self: center; }
.apkreq-media-viewer__nav.is-prev { transform: rotate(180deg); }
.apkreq-media-viewer__close:hover,
.apkreq-media-viewer__nav:hover { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 14%); }
.apkreq-media-viewer__close svg,
.apkreq-media-viewer__nav svg { position: static; width: 20px; height: 20px; transform: none; }
.apkreq-media-viewer__content {
    position: relative;
    display: grid;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #090a0b;
}
.apkreq-media-viewer__content.is-loading::before,
.apkreq-media-viewer__content.is-loading::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.apkreq-media-viewer__content.is-loading::before { background: #181b1e; }
.apkreq-media-viewer__content.is-loading::after { background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 8%) 48%, transparent 64%); transform: translateX(-100%); animation: apkreq-media-viewer-shimmer 1.2s ease-in-out infinite; }
.apkreq-media-viewer__content img { position: relative; z-index: 1; display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.apkreq-media-viewer__content iframe { position: relative; z-index: 1; display: block; width: min(100%, 960px); aspect-ratio: 16 / 9; border: 0; background: #000; }
.apkreq-media-viewer__caption { grid-column: 1 / -1; min-height: 20px; margin: 10px 48px 0; overflow: hidden; color: rgb(255 255 255 / 68%); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
@keyframes apkreq-media-viewer-shimmer { to { transform: translateX(100%); } }

.apkreq-detail { padding: 26px; }
.apkreq-detail__header { display: flex; align-items: center; gap: 17px; padding-right: 50px; }
.apkreq-detail__icon { width: 96px; height: 96px; }
.apkreq-detail__icon svg { width: 34px; height: 34px; }
.apkreq-detail__title { min-width: 0; }
.apkreq-detail__title h2 { margin: 7px 0 3px; color: var(--apkreq-text); font-size: clamp(23px, 4vw, 31px); line-height: 1.16; }
.apkreq-detail__title p { margin: 0; color: var(--apkreq-muted); }

.apkreq-media {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--apkreq-line);
    border-radius: 6px;
    background: var(--apkreq-soft);
}
.apkreq-media__heading { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 14px; }
.apkreq-media__copy { display: flex; flex-direction: column; min-width: 0; }
.apkreq-media__copy strong { color: var(--apkreq-text); font-size: 13px; }
.apkreq-media__copy span { margin-top: 2px; color: var(--apkreq-muted); font-size: 11px; }
.apkreq-media__load {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--apkreq-line);
    border-radius: 5px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    font-weight: 700;
    cursor: pointer;
}
.apkreq-media__load:hover { border-color: var(--apkreq-muted); }
.apkreq-media__load svg { width: 17px; height: 17px; }
.apkreq-media__load.is-loading > .apkreq-js-icon { display: none; }
.apkreq-media__body:empty { display: none; }
.apkreq-media__strip {
    display: flex;
    gap: 8px;
    margin: 10px -2px 0;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--apkreq-muted) transparent;
}
.apkreq-media__tile,
.apkreq-media__skeleton {
    position: relative;
    display: block;
    flex: 0 0 142px;
    width: 142px;
    height: 80px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--apkreq-soft-2);
    scroll-snap-align: start;
}
.apkreq-media__tile {
    padding: 0;
    border: 1px solid var(--apkreq-line);
    color: #fff;
    cursor: zoom-in;
}
.apkreq-media__tile:hover { border-color: var(--apkreq-muted); }
.apkreq-media__tile img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .2s ease, transform .2s ease; }
.apkreq-media__tile:hover img { transform: scale(1.025); }
.apkreq-media__tile.is-image-loading img { opacity: 0; }
.apkreq-media__tile.is-image-loading::before,
.apkreq-media__skeleton::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--apkreq-soft-2) 20%, color-mix(in srgb, var(--apkreq-soft-2) 58%, #fff) 45%, var(--apkreq-soft-2) 70%);
    background-size: 220% 100%;
    content: "";
    animation: apkreq-skeleton 1.15s ease-in-out infinite;
}
.apkreq-media__shade { position: absolute; inset: 0; background: rgb(0 0 0 / 30%); }
.apkreq-media__tile.is-video { cursor: pointer; }
.apkreq-media__tile.is-video > .apkreq-js-icon { position: absolute; z-index: 2; inset: 50% auto auto 50%; display: grid; width: 36px; height: 28px; place-items: center; border-radius: 6px; background: rgb(202 22 22 / 92%); color: #fff; transform: translate(-50%, -50%); }
.apkreq-media__tile.is-video > .apkreq-js-icon svg { width: 19px; height: 19px; }
.apkreq-media__hint,
.apkreq-media__empty,
.apkreq-media__error { margin: 5px 0 0; color: var(--apkreq-muted); font-size: 11px; }
.apkreq-media__empty,
.apkreq-media__error { padding: 10px 2px 1px; }
.apkreq-media__error { color: var(--apkreq-danger); }

.apkreq-detail__summary { display: grid; grid-template-columns: 1fr 1fr auto; align-items: stretch; gap: 8px; margin-top: 18px; }
.apkreq-rating,
.apkreq-total-votes { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 12px 15px; border: 1px solid var(--apkreq-line); border-radius: 6px; background: var(--apkreq-soft); }
.apkreq-rating strong,
.apkreq-total-votes strong { color: var(--apkreq-text); font-size: 23px; line-height: 1; }
.apkreq-rating span,
.apkreq-total-votes span { margin-top: 6px; color: var(--apkreq-muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.apkreq-votes--modal { align-self: center; padding-left: 3px; }
.apkreq-votes--modal .apkreq-vote { min-height: 76px; grid-template-columns: 22px auto; }
.apkreq-votes--modal svg { width: 22px; height: 22px; }
.apkreq-detail__grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border-top: 1px solid var(--apkreq-line); border-left: 1px solid var(--apkreq-line); }
.apkreq-detail-row { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--apkreq-line); border-bottom: 1px solid var(--apkreq-line); }
.apkreq-detail-row > span { display: block; margin-bottom: 3px; color: var(--apkreq-muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.apkreq-detail-row > strong { display: block; overflow-wrap: anywhere; color: var(--apkreq-text); font-size: 14px; }
.apkreq-detail-row.is-wide { grid-column: 1 / -1; }
.apkreq-detail-row.is-wide strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
.apkreq-detail__links { display: flex; gap: 8px; margin-top: 20px; }
.apkreq-link { flex: 1; padding: 0 15px; border-color: var(--apkreq-line); background: var(--apkreq-soft); color: var(--apkreq-text); }
.apkreq-link:hover { border-color: var(--apkreq-muted); color: var(--apkreq-text); }
.apkreq-link.is-primary { border-color: var(--apkreq-accent); background: var(--apkreq-accent); color: #fff; }
.apkreq-link.is-primary:hover { color: #fff; }
.apkreq-detail__admin { display: flex; gap: 8px; margin: 20px -26px -26px; padding: 14px 26px; border-top: 1px solid var(--apkreq-line); background: var(--apkreq-soft); }
.apkreq-detail__admin button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--apkreq-line); border-radius: 5px; background: var(--apkreq-bg); color: var(--apkreq-text); font-weight: 700; cursor: pointer; }
.apkreq-detail__admin button.is-danger { margin-left: auto; color: var(--apkreq-danger); }

.apkreq-confirm__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 25px;
    border: 1px solid var(--apkreq-line);
    border-radius: 8px;
    background: var(--apkreq-bg);
    color: var(--apkreq-text);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .16s ease, transform .16s ease;
}
.apkreq-confirm.is-open .apkreq-confirm__dialog { opacity: 1; transform: none; }
.apkreq-confirm__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--apkreq-danger-soft); color: var(--apkreq-danger); }
.apkreq-confirm h2 { margin: 14px 0 7px; color: var(--apkreq-text); font-size: 21px; }
.apkreq-confirm p { margin: 0; color: var(--apkreq-muted); }
.apkreq-confirm strong { display: block; margin-top: 12px; overflow-wrap: anywhere; }
.apkreq-confirm__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.apkreq-confirm__actions button { min-height: 42px; padding: 0 14px; border: 1px solid var(--apkreq-line); border-radius: 5px; background: var(--apkreq-bg); color: var(--apkreq-text); font-weight: 700; cursor: pointer; }
.apkreq-confirm__actions button.is-danger { border-color: var(--apkreq-danger); background: var(--apkreq-danger); color: #fff; }

.apkreq-rules { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--apkreq-line); }
.apkreq-rules h2 { margin-bottom: 12px; }
.apkreq-rules ol { margin: 0; padding-left: 20px; }
.apkreq-rules li + li { margin-top: 7px; }
.is-counting { animation: apkreq-count .3s ease; }

@keyframes apkreq-spin { to { transform: rotate(360deg); } }
@keyframes apkreq-count { 50% { color: var(--apkreq-accent); transform: translateY(-2px); } }
@keyframes apkreq-shimmer { to { transform: translateX(100%); } }
@keyframes apkreq-skeleton { to { background-position: -220% 0; } }
@keyframes apkreq-feedback { 50% { transform: translateY(-1px); border-color: color-mix(in srgb, var(--apkreq-focus) 44%, var(--apkreq-line)); } }

.apkreq .apkreq-primary:is(:hover, :focus, :active) { background-color: color-mix(in srgb, var(--apkreq-accent) 88%, #000); color: #fff; }
.apkreq .apkreq-filter:is(:hover, :focus, :active) { background-color: var(--apkreq-soft); color: var(--apkreq-text); }
.apkreq .apkreq-filter.is-active:is(:hover, :focus, :active) { background-color: var(--apkreq-bg); color: var(--apkreq-text); }
.apkreq .apkreq-vote:is(:hover, :focus, :active),
.apkreq .apkreq-details:is(:hover, :focus, :active),
.apkreq .apkreq-load:is(:hover, :focus, :active),
.apkreq .apkreq-admin-sync:is(:hover, :focus, :active),
.apkreq .apkreq-card-admin:is(:hover, :focus, :active),
.apkreq .apkreq-toast__close:is(:hover, :focus, :active),
.apkreq .apkreq-detail__admin button:is(:hover, :focus, :active),
.apkreq .apkreq-confirm__actions button:is(:hover, :focus, :active) { background-color: var(--apkreq-bg); color: var(--apkreq-text); }
.apkreq .apkreq-media__load:is(:hover, :focus, :active) { background-color: var(--apkreq-bg); color: var(--apkreq-text); }
.apkreq .apkreq-media__tile:is(:hover, :focus, :active) { background-color: var(--apkreq-soft-2); color: #fff; }
.apkreq .apkreq-media-viewer__close:is(:hover, :focus, :active),
.apkreq .apkreq-media-viewer__nav:is(:hover, :focus, :active) { background-color: rgb(255 255 255 / 14%); color: #fff; }
.apkreq .apkreq-vote--like.is-selected:is(:hover, :focus, :active) { background-color: var(--apkreq-accent-soft); color: var(--apkreq-accent); }
.apkreq .apkreq-vote--dislike.is-selected:is(:hover, :focus, :active) { background-color: var(--apkreq-danger-soft); color: var(--apkreq-danger); }
.apkreq .apkreq-toast__close:is(:hover, :focus, :active) { background-color: var(--apkreq-soft); color: var(--apkreq-text); }
.apkreq .apkreq-card-admin:is(:hover, :focus, :active) { color: var(--apkreq-danger); }
.apkreq .apkreq-confirm__actions button.is-danger:is(:hover, :focus, :active) { background-color: var(--apkreq-danger); color: #fff; }

@media (max-width: 760px) {
    .admin-bar .apkreq-toast { top: max(60px, calc(env(safe-area-inset-top) + 16px)); }
    .apkreq { width: 100%; }
    .apkreq-intro { align-items: flex-start; }
    .apkreq-total { min-width: 72px; padding-left: 13px; }
    .apkreq-total strong { font-size: 21px; }
    .apkreq-submit { padding: 13px; }
    .apkreq-submit__row { grid-template-columns: 1fr; }
    .apkreq-primary { width: 100%; }
    .apkreq-controls { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; }
    .apkreq-search { width: 100%; }
    .apkreq-toolbar { align-items: flex-start; }
    .apkreq-admin-sync span { display: none; }
    .apkreq-admin-sync { width: 44px; padding: 0; }
    .apkreq-card { grid-template-columns: 1fr; gap: 11px; padding: 11px; }
    .apkreq-card__actions { padding-left: 85px; }
    .apkreq-card.is-added .apkreq-card__actions { padding-left: 85px; }
    .apkreq-votes { flex: 1; }
    .apkreq-vote { flex: 1; }
    .apkreq-details { min-width: 44px; width: 44px; padding: 0; }
    .apkreq-details > span:first-child { display: none; }
    .apkreq-modal { align-items: end; padding: 0; }
    .apkreq-modal__dialog { width: 100%; max-height: 92dvh; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 10px 10px 0 0; transform: translateY(24px); }
    .apkreq-detail { padding: 20px 16px; }
    .apkreq-detail__header { align-items: flex-start; gap: 13px; padding-right: 43px; }
    .apkreq-detail__icon { width: 76px; height: 76px; }
    .apkreq-media { padding: 10px; }
    .apkreq-media__heading { align-items: flex-start; }
    .apkreq-media__load { min-height: 40px; padding: 0 10px; }
    .apkreq-media__tile,
    .apkreq-media__skeleton { flex-basis: 122px; width: 122px; height: 70px; }
    .apkreq-detail__summary { grid-template-columns: 1fr 1fr; }
    .apkreq-votes--modal { grid-column: 1 / -1; padding: 0; }
    .apkreq-votes--modal .apkreq-vote { min-height: 52px; }
    .apkreq-detail__grid { grid-template-columns: 1fr; }
    .apkreq-detail-row.is-wide { grid-column: auto; }
    .apkreq-detail__links { flex-direction: column; }
    .apkreq-detail__admin { margin: 18px -16px -20px; padding: 12px 16px; flex-wrap: wrap; }
    .apkreq-detail__admin button { flex: 1; justify-content: center; }
    .apkreq-detail__admin button.is-danger { margin-left: 0; }
    .apkreq-media-viewer { padding: 0; }
    .apkreq-media-viewer__dialog { grid-template-columns: minmax(0, 1fr); width: 100%; height: 100dvh; padding: 52px 8px 9px; border: 0; border-radius: 0; }
    .apkreq-media-viewer__content { grid-column: 1; }
    .apkreq-media-viewer__nav { position: absolute; z-index: 4; top: 50%; background: rgb(0 0 0 / 58%); }
    .apkreq-media-viewer__nav.is-prev { left: 10px; }
    .apkreq-media-viewer__nav.is-next { right: 10px; }
    .apkreq-media-viewer__caption { grid-column: 1; margin: 9px 44px 0; }
}

@media (max-width: 480px) {
    .apkreq-intro h1 { font-size: 26px; }
    .apkreq-intro__copy > p:last-child { font-size: 13px; }
    .apkreq-total span { font-size: 10px; }
    .apkreq-card__actions { padding-left: 0; }
    .apkreq-icon-wrap { width: 64px; height: 64px; }
    .apkreq-card h3 { font-size: 16px; }
    .apkreq-package { max-width: 130px; }
    .apkreq-card__actions { gap: 5px; }
    .apkreq-card.is-added .apkreq-card__actions { padding-left: 0; }
    .apkreq-vote { min-width: 0; padding: 0 8px; }
    .apkreq-available__link { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .apkreq-available__image { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .apkreq *,
    .apkreq *::before,
    .apkreq *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .apkreq-modal__backdrop,
    .apkreq-confirm__backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
