/* Android Ports: isolated presentation. Shared site header and discussion own their styles. */
.apk-port{--p-bg:var(--apk-ui-bg,#fff);--p-soft:var(--apk-ui-soft,#f4f5f7);--p-line:var(--apk-ui-line,#e3e5e8);--p-text:var(--apk-ui-text,#19202c);--p-muted:var(--apk-ui-muted,#697281);--p-accent:#f43f4e;--p-tint:#fff0f1;background:var(--p-bg);color:var(--p-text);font:16px/1.5 "roboto condensed",Arial,sans-serif}
.apk-port *{box-sizing:border-box}.apk-port .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.apk-port [hidden]{display:none!important}.apk-port :is(h1,h2,h3,p){padding:0}.apk-port :is(h1,h2,h3){font-family:inherit;color:var(--p-text);font-weight:700;letter-spacing:normal}.apk-port a{text-decoration:none}.apk-port :is(a,button,input,select,textarea):focus-visible{outline:3px solid #f43f4e88;outline-offset:3px}.apk-port button{font:inherit;cursor:pointer}.apk-port button:disabled{opacity:.5;cursor:wait}.apk-port svg{width:20px;height:20px;flex:none}.port-shell{max-width:1160px;margin:auto;padding:24px 28px 48px}.port-kicker{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--p-accent)}
.port-hero{position:relative;padding:4px 0 25px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.port-hero h1{font-size:46px;line-height:1.08;margin:0 0 10px}.port-hero p{margin:0;color:var(--p-muted);font-size:17px}.port-hero-actions{display:flex;gap:24px;align-items:center;margin-top:14px}.apk-port .port-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 19px;background:var(--p-accent);color:#fff;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:650;text-align:center;text-decoration:none;box-shadow:none}.apk-port .port-button:hover{background:#da2d3c;color:#fff}.apk-port .port-button-quiet{background:var(--p-bg);border-color:var(--p-line);color:var(--p-text)}.apk-port .port-button-quiet:hover{background:var(--p-soft);color:var(--p-text)}.port-text-link{color:var(--p-accent);font-size:13px;font-weight:600}.port-text-link:hover{text-decoration:underline}.port-section-nav{display:flex;border-bottom:1px solid var(--p-line);gap:16px;overflow-x:auto;scrollbar-width:none;margin:0 0 25px}.port-section-nav::-webkit-scrollbar,.port-genres::-webkit-scrollbar{display:none}.port-section-nav a{position:relative;flex:1;padding:14px 18px;text-align:center;color:var(--p-muted);font-size:14px;white-space:nowrap;min-height:48px}.port-section-nav a[aria-current]{color:var(--p-text);font-weight:650}.port-section-nav a[aria-current]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--p-accent)}.port-count,.port-section-nav a>span{display:inline-block;padding:1px 7px;border-radius:12px;background:var(--p-soft);font-size:11px;vertical-align:middle;margin-left:5px;letter-spacing:0;color:var(--p-muted)}
.port-section{scroll-margin-top:90px;margin-top:28px}.port-section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.port-section-heading h2{font-size:25px;margin:0;line-height:1.25}.port-section-heading p{font-size:14px;color:var(--p-muted);margin:8px 0 0;max-width:570px}.port-search{display:flex;align-items:center;background:var(--p-bg);border:1px solid var(--p-line);border-radius:9px;width:320px;max-width:100%;flex-shrink:0}.apk-port .port-search input{padding:11px 13px;width:100%;min-width:0;border:0;background:transparent;color:var(--p-text);font:inherit;font-size:14px;box-shadow:none;border-radius:9px}.port-search button{background:transparent;color:var(--p-muted);border:0;padding:11px}.port-search input:focus-visible{outline-offset:0}.port-genres{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:3px 0 14px;margin-bottom:8px}.port-genres a{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:4px 14px;min-height:34px;border:1px solid var(--p-line);border-radius:24px;background:var(--p-soft);color:var(--p-text);font-size:13px}.port-genres a>span{font-size:10px;border-radius:8px;background:var(--p-bg);padding:0 5px}.port-genres a[aria-current]{background:var(--p-accent);border-color:var(--p-accent);color:#fff}.port-genres a[aria-current]>span{background:#ffffff30;color:#fff}
.port-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:27px 22px}.port-card{min-width:0;padding:12px;border:1px solid var(--p-line);border-radius:14px;background:var(--p-soft)}.port-card-link{color:var(--p-text);display:block;height:100%}.port-card-art{width:100%;max-width:170px;margin:auto;aspect-ratio:1;overflow:hidden;border-radius:13px;background:var(--p-soft)}.port-card-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s}.port-card-link:hover .port-card-art img{transform:scale(1.035)}.port-card-link:hover h3{color:var(--p-accent)}.port-cover-placeholder{display:grid;place-items:center;height:100%;background:linear-gradient(145deg,var(--p-soft),#f43f4e15)}.port-cover-placeholder svg{width:40%;height:40%;color:var(--p-muted);opacity:.4}.port-card-body{padding:10px 0 0;display:grid;gap:3px}.port-card h3{font-size:20px;line-height:1.3;margin:0;letter-spacing:normal;overflow-wrap:anywhere}.port-card-version{font-size:12px;color:var(--p-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.port-availability{display:flex;align-items:center;gap:6px;color:#168347;font-size:11px}.port-availability:before{content:"";width:7px;height:7px;flex:none;background:currentColor;border-radius:50%}.port-availability-waiting{color:var(--p-muted)}
.port-catalog-controls{margin:28px 0 0}.port-community{border-top:1px solid var(--p-line);padding-top:30px;margin-top:36px}.port-community .port-kicker{display:block;margin-bottom:8px}.port-filters{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-bottom:18px;padding:2px 0 6px}.port-filters a{flex:none;white-space:nowrap;color:var(--p-muted);font-size:12px;padding:9px 12px;border:1px solid transparent;border-radius:9px}.port-filters a[aria-current]{color:var(--p-text);border-color:var(--p-line);background:var(--p-bg)}.port-filters .port-sort{margin-left:auto}.port-community-list{display:grid;gap:12px}.port-suggestion{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:16px;background:var(--p-bg);border:1px solid var(--p-line);border-radius:12px;padding:14px}.port-suggestion-monogram{width:80px;height:80px;display:grid;place-items:center;border-radius:10px;background:var(--p-soft);color:var(--p-accent);overflow:hidden;font-size:28px}.port-suggestion-monogram img{width:100%;height:100%;object-fit:cover}.port-suggestion h3{margin:0 0 4px;font-size:21px;line-height:1.3;letter-spacing:normal;overflow-wrap:anywhere}.port-suggestion h3 a{color:var(--p-text)}.port-suggestion-main .port-kicker{font-size:10px;color:var(--p-muted);letter-spacing:0;display:block;margin:0 0 4px}.port-suggestion-main .port-developer{font-size:12px;color:var(--p-muted)}.port-suggestion-main p{display:none}.port-discussion-link{display:inline-block;font-size:11px;color:var(--p-muted);margin-left:12px}.apk-port .port-support{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 14px;border:1px solid transparent;border-radius:10px;background:var(--p-tint);color:var(--p-accent);font-size:14px;font-weight:600;white-space:nowrap}.port-support>span:first-child{font-size:21px;line-height:1}.port-support[aria-pressed=true]{border-color:var(--p-accent)}.port-voting-off{font-size:11px;color:var(--p-muted)}.port-empty{padding:32px 20px;border:1px dashed var(--p-line);border-radius:12px;text-align:center;background:var(--p-bg)}.port-empty h3{font-size:22px;margin:10px 0}.port-empty p{font-size:14px;color:var(--p-muted);max-width:460px;margin:10px auto 20px}.port-empty-symbol{font-size:30px;color:var(--p-muted)}
.port-page-heading{margin:0 0 25px;max-width:710px}.port-page-heading h1{font-size:38px;line-height:1.15;margin:8px 0 10px}.port-page-heading p{color:var(--p-muted);margin:0;font-size:15px}.port-form-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:40px;align-items:start}.port-form-layout>div{min-width:0}.port-form-tabs{display:flex;background:var(--p-soft);border:1px solid var(--p-line);border-radius:9px;padding:3px;margin-bottom:18px}.port-form-tabs a{flex:1;display:grid;place-items:center;text-align:center;min-height:40px;padding:8px;color:var(--p-text);font-size:13px;border:1px solid transparent;border-radius:6px}.port-form-tabs a[aria-current]{background:var(--p-bg);border-color:var(--p-accent);color:var(--p-accent)}.port-form{display:grid;gap:26px;min-width:0;background:var(--p-bg);border:1px solid var(--p-line);border-radius:14px;padding:26px}.port-form-progress{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--p-line);padding-bottom:20px}.port-form-progress a{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--p-muted)}.port-form-progress span{display:grid;place-items:center;width:24px;height:24px;background:var(--p-soft);color:var(--p-text);border-radius:50%}.port-form-progress a:first-child span{background:var(--p-accent);color:#fff}.port-form-step{display:grid;gap:16px;min-width:0;scroll-margin-top:90px}.port-form-step h2{margin:0;font-size:19px;letter-spacing:-.02em}.port-form h2 small{font-size:12px;font-weight:400;color:var(--p-muted);letter-spacing:0}.port-form label{display:grid;gap:6px;font-weight:600;font-size:13px;color:var(--p-text);min-width:0}.port-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){width:100%;min-width:0;padding:11px 12px;min-height:44px;border:1px solid var(--p-line);border-radius:8px;background:var(--p-bg);color:var(--p-text);font:inherit;font-weight:400;font-size:14px;line-height:1.5;box-shadow:none}.port-form textarea{min-height:130px;resize:vertical}.port-form label>small,.port-form-hint{color:var(--p-muted);font-size:11px;font-weight:400;line-height:1.5;margin:0}.port-field-label{color:var(--p-text)}.port-field-label em{font-style:normal;color:var(--p-accent)}.port-source-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.port-check-button{background:none;border:0;padding:2px 0;color:var(--p-accent);font-size:12px;text-align:left;justify-self:start}.port-check-button:hover{text-decoration:underline}.port-field-status{color:#168347;font-size:12px;margin:0;overflow-wrap:anywhere}.port-field-status:empty{display:none}.port-field-status.is-error,.port-message.is-error{color:var(--p-accent)}.port-import-summary{display:flex;gap:12px;align-items:center;border-radius:9px;background:var(--p-soft);padding:12px}.port-import-summary>img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none}.port-import-summary strong{font-size:13px}.port-import-summary p{font-size:11px;color:var(--p-muted);margin:4px 0}.port-project-fields{border-top:1px solid var(--p-line);padding-top:14px}.port-project-fields summary{font-size:13px;font-weight:600;cursor:pointer;padding:5px 0;min-height:40px}.port-project-fields summary span{font-size:11px;font-weight:400;color:var(--p-muted);margin-left:6px}.port-project-fields[open]>div{padding-top:14px}.port-media-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.port-media-option{min-width:0;padding:6px;background:var(--p-soft);border-radius:8px}.port-media-option img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px;display:block}.port-form .port-media-option label{display:flex;align-items:center;font-size:11px;margin-top:6px;gap:5px;font-weight:400}.port-media-option input{accent-color:var(--p-accent);width:15px;height:15px;margin:0}.port-form .port-check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400}.port-check input{width:18px;height:18px;flex:none;accent-color:var(--p-accent)}.port-form-notice{color:var(--p-muted);font-size:12px;margin:0}.port-submit{width:100%}.port-cancel{justify-self:center;color:var(--p-muted);font-size:12px}.port-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.port-form-aside{padding:25px;border-radius:14px;background:var(--p-tint)}.port-form-aside h2{font-size:20px;margin:0}.port-form-aside p{font-size:13px;color:var(--p-muted)}.port-form-aside ol{list-style:none;counter-reset:step;padding:0;display:grid;gap:20px;margin:24px 0}.port-form-aside li{counter-increment:step;padding-left:34px;position:relative;font-size:13px}.port-form-aside li:before{content:counter(step);display:grid;place-items:center;position:absolute;left:0;top:1px;width:23px;height:23px;border:1px solid var(--p-accent);border-radius:50%;color:var(--p-accent);background:var(--p-bg)}.port-form-aside li span{display:block;font-size:12px;color:var(--p-muted);margin-top:4px}.port-form-aside>a{font-size:12px;color:var(--p-accent)}.port-message{font-size:13px;margin:0;overflow-wrap:anywhere;color:var(--p-muted)}.port-message:not(:empty){margin:14px 0}.port-message .port-button{margin:8px}.port-success h2{font-size:26px}.port-success p{color:var(--p-muted)}
.port-proposal-hero{height:300px;overflow:hidden;border-radius:16px;margin-bottom:24px;background:var(--p-soft)}.port-proposal-hero img{width:100%;height:100%;object-fit:cover;display:block}.port-proposal-heading{display:flex;gap:22px;align-items:center}.port-proposal-heading>.port-suggestion-monogram{width:112px;height:112px;flex:none;border-radius:13px}.port-proposal-heading>div:last-child{min-width:0}.port-proposal-heading h1{font-size:34px;line-height:1.15;margin:6px 0}.port-proposal-heading p{margin:0;color:var(--p-muted);font-size:14px}.port-proposal-state{display:inline-block;background:var(--p-soft);border-radius:6px;padding:5px 8px;margin-top:10px;font-size:11px;color:var(--p-muted)}.port-proposal-actions{display:flex;gap:12px;margin:24px 0}.apk-port .port-proposal-actions .port-support{background:var(--p-accent);color:#fff;min-width:190px}.port-proposal-actions [data-support-label]{order:-1}.port-proposal-actions+.port-message:empty{display:none}.port-proposal-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:40px}.port-proposal-content{min-width:0}.port-proposal-content>section{scroll-margin-top:90px;margin-bottom:28px}.port-proposal-layout h2,.port-discussion>h2{font-size:21px;margin:0 0 15px}.port-description{overflow-wrap:anywhere}.port-description p{margin:0 0 16px}.port-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/3);gap:12px;overflow-x:auto;padding:2px 0 10px}.port-gallery a{display:block;overflow:hidden;border-radius:9px;background:var(--p-soft)}.port-gallery img{width:100%;height:100%;aspect-ratio:1.4;object-fit:cover;display:block}.port-proposal-source{min-width:0}.port-credits{margin:0 0 28px}.port-credits>div{display:flex;gap:20px;justify-content:space-between;border-bottom:1px solid var(--p-line);padding:10px 0;font-size:13px}.port-credits dt{color:var(--p-muted);flex-shrink:0}.port-credits dd{margin:0;text-align:right;overflow-wrap:anywhere}.port-source-links{display:grid;border:1px solid var(--p-line);border-radius:9px;overflow:hidden}.port-source-links a{display:flex;justify-content:space-between;gap:12px;padding:13px;color:var(--p-text);background:var(--p-bg);font-size:13px}.port-source-links a+a{border-top:1px solid var(--p-line)}.port-source-links a:hover{color:var(--p-accent)}.port-source-note,.port-proposal-source>p{display:block;color:var(--p-muted);font-size:11px;margin:12px 0 0}.port-discussion{margin-top:30px;scroll-margin-top:90px}.port-discussion>p{color:var(--p-muted);font-size:14px}.port-read-comment{padding:20px 0;border-bottom:1px solid var(--p-line)}.port-read-comment p{margin:6px 0}.port-image-dialog{position:fixed;inset:0;margin:auto;width:min(1100px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:12px;border:1px solid var(--p-line);border-radius:12px;background:var(--p-bg);color:var(--p-text);box-shadow:0 20px 80px #0006}.port-image-dialog::backdrop{background:#080e18d9}.port-image-dialog:not([open]){display:none}.port-image-dialog[open]{display:flex;flex-direction:column}.port-image-dialog-tools{display:flex;align-items:center;gap:10px;margin-bottom:12px}.port-image-dialog-tools p{flex:1;text-align:center;margin:0;font-size:13px}.port-image-dialog button{display:grid;place-items:center;min-width:42px;min-height:42px;border:1px solid var(--p-line);border-radius:8px;background:var(--p-soft);color:var(--p-text);font-size:25px;flex:none}.port-image-dialog>img{display:block;width:100%;height:auto;min-height:0;object-fit:contain;max-height:calc(100dvh - 110px);border-radius:6px}
@media(min-width:901px){.port-hero-actions{position:absolute;right:0;bottom:31px}.port-section-nav{max-width:500px}.port-view-proposal .port-section-nav{max-width:none}}
@media(max-width:900px){.port-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.port-form-layout,.port-proposal-layout{gap:24px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.port-form{padding:20px}.port-form-aside{padding:20px}.port-proposal-heading h1{font-size:30px}}
@media(max-width:640px){.apk-port{font-size:14px}.port-shell{padding:18px 18px 32px}.port-hero h1{font-size:34px}.port-hero p{font-size:14px}.port-hero-actions{gap:22px;margin-top:12px}.port-hero{padding-bottom:20px}.port-section-nav{gap:6px;margin-bottom:20px}.port-section{margin-top:22px}.port-section-heading{flex-direction:column;align-items:stretch;gap:17px;margin-bottom:14px}.port-section-heading h2{font-size:22px}.port-section-heading p{font-size:12px;margin-top:6px}.port-search{width:100%}.port-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.port-card h3{font-size:19px}.port-card-art{border-radius:10px}.port-card-body{padding-top:8px}.port-card-version{font-size:11px}.port-availability{font-size:10px}.port-genres a{font-size:13px;padding:4px 12px;min-height:32px}.port-community{margin-top:30px;padding-top:26px}.port-community .port-section-heading{flex-direction:row;align-items:center;gap:12px}.port-community .port-section-heading p{display:none}.port-community .port-kicker{font-size:9px}.port-community .port-section-heading .port-text-link{font-size:11px;text-align:right;flex:none}.port-suggestion{grid-template-columns:72px minmax(0,1fr) auto;gap:11px;padding:11px}.port-suggestion-monogram{width:72px;height:72px;border-radius:8px}.port-suggestion h3{font-size:20px}.port-suggestion-main .port-kicker{font-size:10px}.port-suggestion-main .port-developer{display:none}.port-discussion-link{display:block;font-size:10px;margin:0}.port-suggestion .port-support{padding:8px 10px;min-width:55px;font-size:12px}.port-suggestion [data-support-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.port-page-heading h1{font-size:28px}.port-page-heading p{font-size:14px}.port-form-layout,.port-proposal-layout{grid-template-columns:1fr;gap:24px}.port-form{padding:0;border:0;border-radius:0;background:transparent;gap:25px}.port-form-tabs{margin-bottom:22px}.port-form-step h2{font-size:18px}.port-form-aside{margin-top:0}.port-form-aside ol{gap:15px;margin:18px 0}.port-form-aside h2{font-size:18px}.port-media-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.port-proposal-hero{height:180px;border-radius:11px;margin-bottom:18px}.port-proposal-heading{gap:14px;align-items:flex-start}.port-proposal-heading>.port-suggestion-monogram{width:94px;height:94px;border-radius:10px}.port-proposal-heading h1{font-size:25px;margin:3px 0 6px}.port-proposal-heading p{font-size:12px}.port-proposal-heading .port-kicker{font-size:8px}.port-proposal-state{font-size:9px;padding:4px 6px;margin-top:8px}.port-proposal-actions{margin:19px 0 7px}.apk-port .port-proposal-actions .port-support{flex:1;min-width:0}.port-proposal-actions .port-button{min-width:70px}.port-discuss-label{display:none}.port-proposal-layout h2,.port-discussion>h2{font-size:19px}.port-gallery{gap:8px;grid-auto-columns:calc((100% - 16px)/3)}.port-proposal-content>section{margin-bottom:24px}.port-credits{margin-bottom:24px}}
@media(max-width:360px){.port-shell{padding-left:14px;padding-right:14px}.port-hero h1{font-size:31px}.port-hero-actions{gap:16px}.apk-port .port-button{padding:10px 13px;font-size:13px}.port-grid{gap:18px 12px}.port-suggestion{gap:8px;padding:10px;grid-template-columns:62px minmax(0,1fr) auto}.port-suggestion-monogram{width:62px;height:62px}.port-suggestion h3{font-size:18px}.port-suggestion .port-support{padding:8px}.port-project-fields summary span{display:block;margin:3px 0}.port-proposal-heading>.port-suggestion-monogram{width:80px;height:80px}.port-proposal-heading h1{font-size:22px}}
html[data-theme=dark] .apk-port,body.dark .apk-port{--p-tint:#f43f4e15}.apk-port .port-form ::placeholder{color:var(--p-muted);opacity:.8}
@media(prefers-reduced-motion:reduce){.port-card-art img{transition:none}.port-card-link:hover .port-card-art img{transform:none}}

/* Proposal pages use the theme font and the native, separate comment card. */
.apk-port.port-view-proposal{font-family:inherit;background:transparent}
.port-view-proposal :is(h1,h2,h3){letter-spacing:normal}
.port-view-proposal>.port-shell{background:var(--p-bg);border-radius:4px}
.port-view-proposal>.port-discussion{max-width:1160px;margin:28px auto 12px;padding:0;scroll-margin-top:90px}
.port-view-proposal>.port-discussion>.apk-comments-shell{margin-top:0!important}
.port-view-proposal>.port-discussion>p,.port-view-proposal .port-read-comment{padding:20px;background:var(--p-bg);border-radius:4px}

/* Native breadcrumb typography and mutually exclusive catalog/community panels. */
.apk-port #breadcrumbs{font-family:"roboto condensed",Arial,sans-serif}
.port-section-nav[data-port-sections]{scroll-margin-top:78px}
.port-view-catalog .port-community{border-top:0;padding-top:0;margin-top:0}

/* Full-width native breadcrumb row, separated from the proposal content. */
.apk-port:not(.port-view-catalog)>#breadcrumbs.port-native-breadcrumbs{max-width:1160px;margin:0 auto!important;padding-inline:15px!important;background:var(--p-bg);border-bottom:1px solid var(--p-line)}
/* Clear vote action and separate total; busy and confirmed states stay distinct. */
.port-support [data-support-icon]{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;position:relative;flex:none}
.port-support [data-support-icon] svg{width:21px;height:21px}
.port-proposal-actions [data-support-icon]{order:-2}
.port-proposal-actions [data-support-count]{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:7px;background:#ffffff26;font-size:13px}
.port-support[aria-busy=true] [data-support-icon] svg{visibility:hidden}
.port-support[aria-busy=true] [data-support-icon]:after{content:"";position:absolute;inset:2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:port-vote-pending .7s linear infinite}
.port-proposal-actions .port-support[aria-pressed=true]{background:#16804b}
@keyframes port-vote-pending{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.port-support[aria-busy=true] [data-support-icon]:after{animation:none}}

/* Proposal identity overlays its own softly blurred artwork. */
.port-proposal-intro{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;background:#192332;margin-bottom:22px}
.port-proposal-backdrop{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(12px);transform:scale(1.12);opacity:.75}
.port-proposal-intro:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(110deg,#0b142dcc,#0b142d66 65%,#0b142db3)}
.port-proposal-intro .port-proposal-heading{min-height:245px;padding:30px;align-items:center;gap:24px}
.port-proposal-intro .port-proposal-heading h1{color:#fff;font-size:36px;line-height:1.12;text-shadow:0 2px 10px #0006}
.port-proposal-intro .port-proposal-heading p{color:#e8edf5;font-size:16px}
.port-proposal-intro .port-kicker{color:#ffd8dd}
.port-proposal-intro .port-suggestion-monogram{box-shadow:0 6px 24px #0005;border:2px solid #ffffff80}
.port-proposal-intro .port-proposal-state{display:inline-flex;align-items:center;gap:7px;background:#fff1cf;color:#674100;border:1px solid #ffd17c;font-size:14px;font-weight:600;padding:6px 10px;white-space:normal}
.port-proposal-state>span{font-size:10px;color:#b47700}
.port-card-version{font-size:13px}.port-availability{font-size:12px}
.port-suggestion .port-discussion-link{font-size:13px}
.port-guide{margin-top:36px;padding-top:28px;border-top:1px solid var(--p-line)}
.port-guide h2{font-size:26px;line-height:1.2;margin:0 0 14px}
.port-guide>p{color:var(--p-muted);max-width:850px;margin:0 0 14px}
.port-faq{margin-top:28px;max-width:900px}
.port-faq details{border-bottom:1px solid var(--p-line);padding:0}
.port-faq summary{cursor:pointer;list-style:none;font-size:18px;font-weight:600;padding:16px 30px 16px 0;position:relative}
.port-faq summary::-webkit-details-marker{display:none}


.port-faq details>p{margin:0 0 18px;color:var(--p-muted)}
.port-faq a{color:var(--p-accent);text-decoration:underline}
@media(max-width:640px){.port-proposal-intro .port-proposal-heading{min-height:215px;padding:22px 18px;gap:16px}.port-proposal-intro .port-proposal-heading h1{font-size:29px}.port-proposal-intro .port-proposal-heading p{font-size:15px}.port-proposal-intro .port-proposal-state{font-size:13px}.port-card{padding:10px}.port-card-art{max-width:150px}.port-guide h2{font-size:23px}}
@media(max-width:360px){.port-proposal-intro .port-proposal-heading{padding:20px 14px;gap:12px}.port-proposal-intro .port-proposal-heading h1{font-size:25px}.port-proposal-intro .port-proposal-heading>.port-suggestion-monogram{width:72px;height:72px}.port-proposal-intro .port-proposal-state{font-size:12px;padding:5px 7px}.port-card h3{font-size:18px}.port-suggestion{gap:9px}.port-suggestion .port-support{min-width:44px;padding:7px}}

/* Confirmed-vote ranking and compact sort control. */
.port-community-list{overflow-anchor:none}
.port-filters .port-sort{display:inline-flex;align-items:center;gap:6px;color:var(--p-text);background:var(--p-soft);border-color:var(--p-line)}
.port-sort svg{width:16px;height:16px;flex:none}

/* Catalog identity panel and more legible community cards. */
.port-hero{padding:28px;border:1px solid var(--p-line);border-radius:18px;background:linear-gradient(120deg,var(--p-bg),var(--p-soft));display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:28px;margin:0 0 24px;box-shadow:0 4px 20px #19202c04}
.port-hero-copy{min-width:0}.port-hero-title{display:flex;align-items:center;gap:15px;margin-bottom:14px}
.port-hero-symbol{display:grid;place-items:center;flex:none;width:60px;height:60px;border:1px solid var(--p-line);border-radius:16px;color:var(--p-accent);background:var(--p-bg)}
.port-hero-symbol svg{width:38px;height:38px}.port-hero .port-kicker{font-size:11px;letter-spacing:.1em;margin:0 0 5px}.port-hero h1{margin:0;font-size:39px;line-height:1.1}.port-hero p{font-size:16px;line-height:1.5}
.port-hero-actions{position:static;display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;flex:none;min-width:184px}.port-hero-actions .port-button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:46px;font-size:16px;white-space:nowrap}
.port-community-list{gap:14px}.port-suggestion{grid-template-columns:104px minmax(0,1fr) auto;padding:16px;gap:18px;border-radius:15px}.port-suggestion>.port-suggestion-monogram{width:104px;height:104px;border-radius:11px}.port-suggestion h3{font-size:25px;line-height:1.2;margin-bottom:7px}.port-suggestion-main .port-kicker{font-size:12px;margin-bottom:7px}.port-suggestion .port-discussion-link{font-size:14px}
@media(max-width:700px){.port-hero{flex-direction:column;align-items:stretch;padding:22px;gap:20px}.port-hero h1{font-size:34px}.port-hero-title{gap:12px;margin-bottom:12px}.port-hero-symbol{width:52px;height:52px;border-radius:14px}.port-hero-symbol svg{width:34px;height:34px}.port-hero .port-kicker{font-size:10px}.port-hero p{font-size:15px}.port-hero-actions{flex-direction:row;min-width:0;gap:10px}.port-hero-actions .port-button{flex:1;min-width:0;padding:11px 8px;font-size:15px}.port-suggestion{grid-template-columns:96px minmax(0,1fr) auto;padding:14px;gap:14px}.port-suggestion>.port-suggestion-monogram{width:96px;height:96px}.port-suggestion h3{font-size:23px}.port-suggestion-main .port-kicker{font-size:11px}.port-suggestion .port-discussion-link{font-size:14px}}
@media(max-width:400px){.port-hero{padding:18px;gap:18px}.port-hero h1{font-size:30px}.port-hero-symbol{width:46px;height:46px;border-radius:12px}.port-hero-symbol svg{width:30px;height:30px}.port-hero .port-kicker{font-size:9px}.port-hero p{font-size:14px}.port-hero-actions{gap:8px}.port-hero-actions .port-button{font-size:14px;gap:4px;padding:10px 6px}.port-suggestion{grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto auto;gap:9px 12px;padding:12px;align-items:start}.port-suggestion>.port-suggestion-monogram{grid-column:1;grid-row:1 / 3;width:84px;height:84px}.port-suggestion-main{grid-column:2;grid-row:1}.port-suggestion-action{grid-column:2;grid-row:2}.port-suggestion h3{font-size:21px}.port-suggestion .port-support{min-height:34px;padding:6px 12px;font-size:13px}.port-suggestion .port-discussion-link{font-size:13px}}

/* Full-width section switch, aligned search and edge-to-edge catalog covers. */
.port-view-catalog [data-port-sections]{max-width:none;display:flex;gap:6px;padding:5px;background:var(--p-soft);border:1px solid var(--p-line);border-radius:12px;margin:0 0 24px}
.port-view-catalog [data-port-sections] a{flex:1;padding:12px 16px;border:0;border-radius:8px;text-align:center;font-size:17px;color:var(--p-muted)}
.port-view-catalog [data-port-sections] a[aria-current]{background:var(--p-bg);color:var(--p-accent);box-shadow:0 1px 5px #19202c0b}
.port-view-catalog #catalog>.port-section-heading{margin-bottom:14px}.port-view-catalog #catalog>.port-search{width:100%;max-width:none;margin:0 0 18px}
.port-view-catalog .port-card{padding:0;background:var(--p-bg);border-radius:14px;overflow:hidden}.port-view-catalog .port-card-art{width:100%;max-width:none;border-radius:0;aspect-ratio:1}.port-view-catalog .port-card-body{padding:12px 14px 15px}.port-view-catalog .port-card h3{font-size:21px}
.port-community-controls:empty{display:none}.port-community-controls{margin:26px 0 0}.port-community-controls 
.port-suggestion.is-appended{animation:port-community-enter .25s ease-out both}@keyframes port-community-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:640px){.port-view-catalog [data-port-sections] a{font-size:16px;padding:10px}.port-view-catalog .port-card-body{padding:10px 11px 13px}.port-view-catalog .port-card h3{font-size:20px}.port-view-catalog .port-card-art{max-width:none}}
@media(prefers-reduced-motion:reduce){.port-suggestion.is-appended{animation:none}}

/* The section switch already uses a selected pill; avoid a second underline. */
.port-view-catalog [data-port-sections] a[aria-current]::after{display:none}

/* Catalog controls use the same component and theme variables as the Games archive. */
.apk-port{--games-bg:var(--p-bg);--games-soft:var(--p-soft);--games-line:var(--p-line);--games-text:var(--p-text);--games-muted:var(--p-muted);--games-active:var(--p-text)}
.port-view-catalog .port-card{border:1px solid var(--p-line);border-radius:16px;background:var(--p-bg);padding:9px;box-shadow:0 3px 12px #17213405}
.port-view-catalog .port-card-art{width:100%;max-width:none;border-radius:10px;aspect-ratio:1;overflow:hidden}
.port-view-catalog .port-card-body{padding:12px 3px 7px}.port-view-catalog .port-card h3{font-size:22px;line-height:1.25;margin:0 0 10px}
.port-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px;color:var(--p-muted);font-size:13px;line-height:1.5}
.port-card-meta .port-card-version{display:inline;font-size:inherit;margin:0;color:inherit}.port-card-meta time{white-space:nowrap}.port-card-meta time:not(:first-child)::before{content:"·";margin-right:8px}
.port-view-catalog .port-availability{display:flex;gap:7px;align-items:center;margin:0;font-size:13px}.port-view-catalog .port-availability::before{display:none}.port-availability svg{width:17px;height:17px;flex:none}
.port-faq details{border:1px solid var(--p-line);border-radius:12px;background:var(--p-bg);margin:10px 0;overflow:hidden}
.port-faq details[open]{background:var(--p-soft)}.port-faq summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;font-size:18px;line-height:1.4}
.port-faq summary>span{flex:1;min-width:0}.port-faq-icon{display:block;flex:none;width:20px;height:20px;color:var(--p-muted)}.port-faq details[open] .port-faq-vertical{display:none}
.port-faq details>p{padding:0 18px 18px;margin:0;line-height:1.65}
@media(max-width:640px){.port-view-catalog .port-card{padding:7px;border-radius:13px}.port-view-catalog .port-card h3{font-size:20px}.port-card-meta{font-size:12px;gap:3px 5px}.port-faq summary{padding:16px;font-size:18px}.port-faq details>p{padding:0 16px 16px}}

/* Vector hero: transparent illustration, live accessible copy and links. */
.port-hero.port-hero-illustrated{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:18px 28px;padding:30px 34px;border-color:#e7e3f0;border-radius:22px;background:radial-gradient(ellipse at 78% 35%,#eae4f7aa,transparent 66%),linear-gradient(120deg,#fbf9ff,#f7f7fc);box-shadow:0 3px 18px #433a6105;overflow:hidden}
.port-hero-illustrated .port-hero-copy{grid-column:1;grid-row:1;align-self:end;padding-top:10px;z-index:1}.port-hero-illustrated .port-kicker{display:block;font-size:12px;letter-spacing:.06em;line-height:1.5;margin-bottom:10px}.port-hero-illustrated h1{font-size:46px;line-height:1.12;letter-spacing:-.02em;margin:0 0 14px}.port-hero-illustrated p{font-size:20px;line-height:1.45;color:var(--p-muted);margin:0}
.port-hero-illustrated .port-hero-art{grid-column:2;grid-row:1 / span 2;display:block;width:100%;height:auto;max-width:450px;max-height:310px;object-fit:contain;justify-self:center;pointer-events:none}
.port-hero-illustrated .port-hero-actions{grid-column:1;grid-row:2;position:static;display:grid;grid-template-columns:1.25fr 1fr;gap:12px;align-self:start;min-width:0;width:100%;margin:0 0 10px}
.port-hero-illustrated .port-hero-actions .port-button{min-width:0;min-height:48px;padding:11px 13px;border-radius:12px;font-size:16px;font-weight:600;gap:9px}.port-hero-illustrated .port-hero-actions svg{display:block;width:21px;height:21px;flex:none}.port-hero-illustrated .port-button-quiet{background:#ffffffbd;border-color:#dce0e9;color:var(--p-text)}
[data-theme=dark] .port-hero.port-hero-illustrated{background:radial-gradient(ellipse at 78% 35%,#42395566,transparent 66%),linear-gradient(120deg,#20232d,#272a38);border-color:#404250}[data-theme=dark] .port-hero-illustrated .port-button-quiet{background:#252a35;border-color:#4a5261;color:var(--p-text)}
@media(max-width:700px){.port-hero.port-hero-illustrated{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px 4px;padding:24px 22px;border-radius:20px}.port-hero-illustrated .port-hero-copy{align-self:center;padding-top:0}.port-hero-illustrated .port-kicker{font-size:10px;letter-spacing:.025em;margin-bottom:9px}.port-hero-illustrated h1{font-size:34px;margin-bottom:12px}.port-hero-illustrated p{font-size:16px}.port-hero-illustrated .port-hero-art{grid-column:2;grid-row:1;width:112%;max-width:none;max-height:230px;margin-left:-5%}.port-hero-illustrated .port-hero-actions{grid-column:1 / -1;grid-row:2;margin:0;grid-template-columns:1fr 1fr;gap:10px}.port-hero-illustrated .port-hero-actions .port-button{font-size:15px;padding:11px 8px;min-height:46px}}
@media(max-width:400px){.port-hero.port-hero-illustrated{padding:20px 18px;grid-template-columns:minmax(0,1fr);gap:4px}.port-hero-illustrated .port-hero-copy{grid-column:1;grid-row:1;text-align:center}.port-hero-illustrated .port-kicker{font-size:10px}.port-hero-illustrated h1{font-size:36px;margin-bottom:8px}.port-hero-illustrated p{font-size:15px}.port-hero-illustrated p br{display:none}.port-hero-illustrated .port-hero-art{grid-column:1;grid-row:2;width:90%;max-width:290px;max-height:180px;margin:0}.port-hero-illustrated .port-hero-actions{grid-row:3;gap:8px;margin-top:8px}.port-hero-illustrated .port-hero-actions .port-button{font-size:14px;padding:10px 6px;gap:6px}.port-hero-illustrated .port-hero-actions svg{width:18px;height:18px}}

/* Compact Community previews: one row, two mutually exclusive votes. */
.port-view-catalog [data-port-sections]{padding:7px;border-radius:17px;background:var(--p-soft);gap:7px}
.port-view-catalog [data-port-sections] a{min-height:51px;border-radius:12px;color:var(--p-muted);font-size:19px;font-weight:500}
.port-view-catalog [data-port-sections] a[aria-current]{background:var(--p-bg);color:var(--p-text);box-shadow:0 2px 8px #171e3310;font-weight:600}
.port-view-catalog [data-port-sections] a[aria-current] span{background:#fff0f1;color:#c72f48}
.port-community .port-section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
.port-community .port-section-heading h2{font-size:32px;line-height:1.2;margin:5px 0 8px}.port-community .port-section-heading p{display:block;font-size:16px;line-height:1.4;margin:0}
.port-community-symbol{display:block;width:42px;height:42px;flex:none;color:var(--p-text)}.port-community-symbol svg{width:100%;height:100%}
.port-community .port-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:22px 0}.port-community .port-filters a{border:1px solid var(--p-line);background:var(--p-bg);color:var(--p-muted);border-radius:22px;padding:9px 17px;min-height:42px;font-size:15px;line-height:1.4}
.port-community .port-filters a[aria-current]{background:var(--p-text);border-color:var(--p-text);color:var(--p-bg)}.port-community .port-filters .port-sort{margin-left:auto;border-radius:10px;color:var(--p-text);background:var(--p-soft)}
.port-community-list{gap:14px}.port-community-list .port-suggestion{display:grid;grid-template-columns:88px minmax(0,1fr) 72px;grid-template-rows:auto;gap:18px;padding:18px;align-items:center;background:var(--p-bg);border:1px solid var(--p-line);border-radius:16px;box-shadow:0 2px 9px #16223b04}
.port-community-list .port-suggestion>.port-suggestion-monogram{grid-column:1;grid-row:1;width:88px;height:88px;border-radius:11px;overflow:hidden;display:grid;place-items:center;text-decoration:none}
.port-community-list .port-suggestion-main{grid-column:2;grid-row:1;min-width:0}.port-community-list .port-suggestion h3{font-size:26px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}.port-community-list .port-suggestion-main .port-kicker{display:block;margin:0 0 6px;font-size:14px;line-height:1.3;font-weight:400;letter-spacing:0;text-transform:none;color:var(--p-muted)}
.port-community-list .port-discussion-link{display:inline-flex;align-items:center;gap:7px;font-size:14px;line-height:1.4;margin:0;color:var(--p-muted)}.port-community-list .port-discussion-link svg{width:17px;height:17px;flex:none}
.port-community-list .port-suggestion-action{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0}
.apk-port .port-vote-controls{display:flex;flex-direction:column;gap:7px;min-width:0}
.apk-port .port-vote-controls .port-support{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;min-width:72px;padding:8px 12px;border:1px solid #c1e8cf;border-radius:11px;background:#effaf3;color:#148347;font-size:16px;font-weight:600;line-height:1.2;box-shadow:none;white-space:nowrap;transition:background .15s,border-color .15s}
.apk-port .port-vote-controls .port-support [data-support-icon]{display:flex;background:none;padding:0;margin:0;border-radius:0;width:22px;height:22px}.apk-port .port-vote-controls .port-support svg{width:22px;height:22px}.apk-port .port-vote-controls .port-support [data-support-count],.apk-port .port-vote-controls .port-support [data-oppose-count]{background:none;padding:0;margin:0;border-radius:0;min-width:12px}
.apk-port .port-vote-controls .port-vote-for:hover{background:#dff5e7;border-color:#8bd2a5}.apk-port .port-vote-controls .port-vote-for[aria-pressed=true]{background:#148347;border-color:#148347;color:#fff}
.apk-port .port-vote-controls .port-vote-against{background:var(--p-soft);border-color:var(--p-line);color:var(--p-muted)}.apk-port .port-vote-controls .port-vote-against svg{transform:rotate(180deg)}.apk-port .port-vote-controls .port-vote-against:hover{background:var(--p-bg);border-color:var(--p-muted)}.apk-port .port-vote-controls .port-vote-against[aria-pressed=true]{background:#5e6675;border-color:#5e6675;color:#fff}
.apk-port .port-vote-controls .port-support:focus-visible{outline:2px solid currentColor;outline-offset:3px}.apk-port .port-vote-controls .port-support:disabled{opacity:.6;cursor:wait}.apk-port .port-vote-controls .port-support::before,.apk-port .port-vote-controls .port-support::after{display:none}
.apk-port .port-proposal-actions .port-vote-controls{flex:1;flex-direction:row}.apk-port .port-proposal-actions .port-vote-controls .port-vote-for{flex:1}.apk-port .port-proposal-actions .port-vote-controls .port-vote-against{flex:none}.port-vote-controls-detailed [data-support-label]{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
[data-theme=dark] .port-view-catalog [data-port-sections] a[aria-current] span{background:#422d35;color:#ff9aad}[data-theme=dark] .apk-port .port-vote-controls .port-vote-for{background:#183a29;border-color:#2e6144;color:#83d9a6}[data-theme=dark] .apk-port .port-vote-controls .port-vote-for:hover{background:#214b35}[data-theme=dark] .apk-port .port-vote-controls .port-vote-for[aria-pressed=true]{background:#287b4e;color:#fff}
@media(max-width:700px){.port-community .port-section-heading h2{font-size:28px}.port-community .port-section-heading p{font-size:14px}.port-community-symbol{width:34px;height:34px}.port-community .port-filters{gap:7px;margin:18px 0}.port-community .port-filters a{font-size:13px;min-height:38px;padding:8px 12px}.port-community .port-filters .port-sort{margin-left:0}.port-community-list .port-suggestion{grid-template-columns:78px minmax(0,1fr) 64px;gap:13px;padding:14px}.port-community-list .port-suggestion>.port-suggestion-monogram{width:78px;height:78px}.port-community-list .port-suggestion h3{font-size:23px}.port-community-list .port-suggestion-main .port-kicker{font-size:12px}.port-community-list .port-discussion-link{font-size:13px}.port-community-list .port-vote-controls .port-support{min-width:64px;min-height:38px;padding:7px 10px;gap:7px;font-size:14px}.port-community-list .port-vote-controls .port-support svg{width:20px;height:20px}}
@media(max-width:400px){.port-view-catalog [data-port-sections] a{font-size:17px;min-height:44px}.port-community .port-section-heading h2{font-size:25px}.port-community-list .port-suggestion{grid-template-columns:60px minmax(0,1fr) 49px;gap:9px;padding:11px}.port-community-list .port-suggestion>.port-suggestion-monogram{width:60px;height:60px;border-radius:8px}.port-community-list .port-suggestion h3{font-size:20px}.port-community-list .port-suggestion-main .port-kicker{font-size:11px}.port-community-list .port-discussion-link{font-size:12px;gap:4px}.port-community-list .port-vote-controls{gap:5px}.port-community-list .port-vote-controls .port-support{min-width:49px;min-height:34px;padding:6px;gap:5px;font-size:13px}.port-community-list .port-vote-controls .port-support [data-support-icon]{width:17px;height:17px}.port-community-list .port-vote-controls .port-support svg{width:17px;height:17px}.apk-port .port-proposal-actions .port-vote-controls-detailed [data-support-label]{font-size:13px}}
@media(min-width:1000px){.port-community-list{grid-template-columns:repeat(2,minmax(0,1fr))}.port-community-list .port-empty{grid-column:1 / -1}.port-community-list .port-suggestion h3{font-size:24px}}

/* Keep post actions compact as well; Follow remains inside the post only. */
.apk-port .port-proposal-actions .port-vote-controls-detailed [data-support-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.apk-port .port-proposal-actions .port-vote-controls .port-support{flex:1;min-width:55px;min-height:44px}
.apk-port .port-proposal-actions button.port-follow{color:var(--p-text);background:var(--p-soft);border-color:var(--p-line);font-size:14px;min-height:44px;margin:0}
.apk-port .port-proposal-actions button.port-follow[aria-pressed=true]{color:#c72f49;background:#fff0f3;border-color:#edafbc}
[data-theme=dark] .apk-port .port-proposal-actions button.port-follow[aria-pressed=true]{color:#ffa2b3;background:#402d36;border-color:#855363}

/* Catalog polish: same outer edges as the header/post content, fixed card titles. */
.port-view-catalog .port-faq{max-width:none;width:100%}
.port-view-catalog .port-guide>p{max-width:none}
.port-view-catalog .port-card{padding:12px}
.port-view-catalog .port-card-link{display:flex;flex-direction:column;height:100%;min-width:0}
.port-view-catalog .port-card-body{padding:16px 6px 14px;min-width:0}
.port-view-catalog .port-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;height:2.5em;min-height:2.5em;max-height:2.5em;line-height:1.25;overflow-wrap:anywhere;word-break:normal;margin:0 0 10px}
.port-view-catalog .port-card-meta{margin-bottom:0}
@media(max-width:640px){.port-view-catalog .port-card{padding:9px}.port-view-catalog .port-card-body{padding:13px 4px 10px}}

/* Reserve the date/version second line only on very narrow cards. */
@media(max-width:360px){.port-view-catalog .port-card-meta{min-height:39px;align-content:flex-start}}

/* Compact discovery layout, with the shared thumbnails retained. */
.apk-port .port-shell{border-radius:4px}
.apk-port .port-card{padding:14px}
.apk-port .port-card-body{padding:18px 8px 16px}
.apk-port .port-search{min-height:46px}
.apk-port .port-search input{height:46px;min-height:46px;padding:10px 13px}
.apk-port .port-search button{padding:10px 13px}
.port-hero-illustrated .port-hero-actions{grid-template-columns:minmax(0,280px)}
@media(min-width:992px){
 .apk-port .port-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}
 .apk-port .port-hero.port-hero-illustrated{padding:22px 30px;gap:12px 24px}
 .port-hero-illustrated .port-hero-art{max-height:240px;max-width:360px}
 .port-hero-illustrated h1{font-size:42px;margin-bottom:10px}
 .port-hero-illustrated p{font-size:18px}
}
@media(max-width:600px){.apk-port .port-card{padding:10px}.apk-port .port-card-body{padding:16px 4px 12px}.port-hero-illustrated .port-hero-actions{grid-template-columns:1fr}}

main.apk-port{border-radius:4px;overflow:hidden}
.apk-port .port-search input{box-sizing:border-box}

.apk-port .port-card-art{width:120px;max-width:calc(100% - 16px);aspect-ratio:1;height:auto;margin:12px auto 0;border-radius:12px}
.apk-port .port-card-art img{width:100%;height:100%;object-fit:cover}
.apk-port .port-card-body{display:flex;flex-direction:column;gap:6px;padding:10px 10px 12px}
.apk-port .port-card-meta{min-height:0;margin:0;font-size:11px;gap:3px 5px}
.apk-port .port-card-body h3{margin:0}
#catalog [data-port-load-status]:not(.is-error){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:600px){.apk-port .port-card-art{width:112px}.port-community .port-filters .port-sort{margin-left:auto;min-width:38px;justify-content:center;padding:8px}.port-community .port-filters .port-sort>span{display:none}}

/* Three compact cards on wider phones; retain readable cards below 440px. */
@media(min-width:440px) and (max-width:640px){
 .apk-port .port-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}
 .apk-port .port-card{padding:7px}
 .apk-port .port-card-art{max-width:100%;margin-top:7px}
 .apk-port .port-card-body{padding:9px 2px 7px}
 .apk-port .port-card h3{font-size:16px}
}

/* The Games hub owns outer spacing; nested catalog results do not repeat it. */
#catalog .port-catalog-results.apk-games-hub{padding:0}
#catalog .port-catalog-controls{margin-top:0}

/* Match Games archives: distinct cards on the page canvas. */
.apk-port.port-view-catalog{background:transparent}

/* Use the Games hub container and breadcrumb spacing without a second inset. */
.port-view-catalog>.port-shell{max-width:none;padding:0}

.port-catalog-sort{margin:0 0 18px;display:flex;gap:6px;padding:5px;background:#e1e5e9;border-radius:12px;width:fit-content;max-width:100%;overflow:auto}.port-catalog-sort a{display:flex;align-items:center;gap:8px;padding:9px 15px;border-radius:9px;color:#6c7683;white-space:nowrap}.port-catalog-sort a[aria-current]{background:#fff;color:#242a32}.port-catalog-sort svg{width:20px;height:20px}.port-updated-badge{display:flex;align-items:center;gap:5px;width:fit-content;color:#287653;font-size:12px;line-height:1.4}.port-updated-badge svg{width:13px;height:13px}[data-theme=dark] .port-catalog-sort{background:#292e34}[data-theme=dark] .port-catalog-sort a{color:#adb5c0}[data-theme=dark] .port-catalog-sort a[aria-current]{background:#1b1e21;color:#edf0f3}[data-theme=dark] .port-updated-badge{color:#7ccca4}
