/**
 * App detail demo — live WordPress storefront type scale only.
 * Source of truth: home-catalog.css (.store-panel__*, .store-app-card_*, .store-promo_*).
 */

.appd-page,
.appd {
	--appd-ink: #0b1220;
	--appd-text: #1e293b;
	--appd-muted: #334155;
	--appd-soft: #475569;
	--appd-faint: #64748b;
	--appd-blue: #1d4ed8;
	--appd-blue-bright: #2563eb;
	--appd-blue-ink: #1e3a8a;
	--appd-green: #15803d;
	--appd-green-bright: #16a34a;
	--appd-star: #eab308;
	--appd-line: #e2e8f0;
	--appd-panel: #f1f5f9;
	--appd-section-gap: 32px;

	display: flex;
	flex-direction: column;
	gap: 28px;
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	color: var(--appd-ink);
	-webkit-font-smoothing: antialiased;
	min-width: 0;
	box-sizing: border-box;
}

/*
 * Keep container-slim max-width (1280px). Never set max-width:100% on
 * .appd-page — it shares the container-slim class and would go full-bleed.
 */
.appd {
	max-width: 100%;
}

.appd-page {
	gap: 28px;
	/* Match .py-6 / platform archives — do not tighten around the crumb */
	padding-top: 0 !important;
	padding-bottom: 32px !important;
	/* Restore theme container width when both classes are on one node */
	max-width: 1280px;
}

/* Crumb owns its 12px air; cancel flex gap so space below matches non-flex pages */
.appd-page > .edu-breadcrumb {
	margin: 0 0 -28px;
	padding: 12px 0;
	min-height: 0;
	line-height: 1.4;
}

.appd-main {
	display: flex;
	flex-direction: column;
	gap: var(--appd-section-gap);
	min-width: 0;
}

/* Hero — Uptodown-style identity + stats strip */

.appd-hero {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0 !important;
	overflow: hidden;
	background: #fff;
}

.appd-hero__main {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 14px;
	min-width: 0;
}

.appd-hero .store-icon--lg,
.appd-hero .store-icon--xl,
.appd-hero__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .1);
}

.appd-hero .store-icon--lg img,
.appd-hero .store-icon--xl img,
.appd-hero__icon img {
	width: 56px;
	height: 56px;
	border-radius: 12px;
}

.appd-hero__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.appd-hero__title {
	margin: 0;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.35;
	color: var(--appd-ink);
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	letter-spacing: 0;
}

.appd-hero__developer {
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.3;
}

.appd-hero__meta-line {
	margin: 6px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.appd-hero__meta-line.app-dl-hero__badges {
	gap: 6px;
	line-height: 1.2;
}

.appd-hero__facts {
	margin: 7px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	line-height: 1;
	color: #334155;
}

.appd-hero__fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #334155;
}

.appd-hero__fact-value {
	line-height: 1.2;
}

.appd-hero__fact-icon {
	flex-shrink: 0;
	color: #94a3b8;
}

.appd-hero__fact-icon--star {
	color: #f59e0b;
}

.appd-hero__version {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	color: #475569;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.appd-hero__chip {
	display: none; /* replaced by app-dl-badge row */
}

.appd-hero__cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	flex-shrink: 0;
	width: min(240px, 100%);
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.appd-rate-card {
	flex-shrink: 0;
	width: min(148px, 100%);
	padding: 10px 12px 9px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	position: relative;
	overflow: hidden;
}

.appd-rate-card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	background: #64748b;
}

.appd-rate-card .appd-rate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.appd-rate__score {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	color: var(--appd-ink);
	font-variant-numeric: tabular-nums;
}

.appd-rate__score-star {
	color: #eab308;
	font-size: 15px;
	line-height: 1;
}

.appd-rate__count {
	font-size: 11px;
	font-weight: 600;
	color: var(--appd-faint);
	line-height: 1.2;
	text-align: center;
}

.appd-download {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--appd-blue);
	color: #fff !important;
	text-decoration: none;
	border: 0;
	box-shadow: 0 4px 14px rgba(29, 78, 216, .28);
	transition: background .12s, box-shadow .12s;
}

.appd-download:hover {
	background: #1e40af;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(29, 78, 216, .36);
}

.appd-download__svg {
	flex-shrink: 0;
}

.appd-download__label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.appd-versions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 10px;
	border-radius: 10px;
	border: 1.5px solid #fdba74;
	background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
	color: #c2410c;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
	font-family: inherit;
	line-height: 1.2;
	text-align: center;
	box-shadow: 0 4px 12px -8px rgba(234, 88, 12, .45);
	transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}

.appd-versions:hover {
	background: linear-gradient(135deg, #f59e0b, #ea580c);
	border-color: #ea580c;
	color: #fff;
	box-shadow: 0 8px 18px -10px rgba(234, 88, 12, .75);
}

.appd-versions__icon {
	flex-shrink: 0;
	color: #ea580c;
}

.appd-versions:hover .appd-versions__icon {
	color: #fff;
}

.appd-versions__text {
	white-space: nowrap;
}

.appd-versions__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #fed7aa;
	color: #c2410c;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.appd-versions:hover .appd-versions__count {
	background: rgba(255, 255, 255, .22);
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}

.appd-hero__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 12px 14px 14px;
	border-top: 1px solid var(--appd-line);
	background: #fff;
}

/* Mobile trial: duplicate under specs — hidden on desktop */
.appd-hero__stats--after-specs {
	display: none;
}

.appd-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 10px 8px;
	text-align: center;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	background: #f8fafc;
}

.appd-hero__stat::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	border-radius: 0 0 4px 4px;
	background: #94a3b8;
}

.appd-hero__stat:first-child {
	border-inline-start: 1px solid #e2e8f0;
}

.appd-hero__stat--os,
.appd-hero__stat--license,
.appd-hero__stat--date {
	background: #f8fafc;
	align-items: stretch;
	min-width: 0;
	padding-block: 8px;
	gap: 4px;
}

@media (min-width: 641px) {
	.appd-hero__stat--os,
	.appd-hero__stat--license,
	.appd-hero__stat--date {
		min-width: 7.5rem;
	}
}

.appd-rate__stars {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 1px;
}

.appd-rate__star {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: #cbd5e1;
	transition: color .12s ease, transform .12s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
}

.appd-rate__star.is-on,
.appd-rate__star.is-hover {
	color: #eab308;
}

.appd-rate__star:hover:not(:disabled),
.appd-rate__star:focus-visible:not(:disabled) {
	transform: scale(1.12);
	outline: none;
}

.appd-rate__star:disabled {
	cursor: default;
	opacity: .95;
}

.appd-rate.is-busy .appd-rate__star {
	pointer-events: none;
	opacity: .7;
}

.appd-rate__hint {
	font-size: 10px;
	font-weight: 700;
	color: #94a3b8;
	line-height: 1.25;
	text-align: center;
	min-height: 1.1em;
}

.appd-rate.is-rated .appd-rate__hint {
	color: #15803d;
}

.appd-hero__stat--os::before,
.appd-hero__stat--license::before,
.appd-hero__stat--date::before {
	background: #94a3b8;
}

.appd-hero__stat--os .appd-hero__stat-value,
.appd-hero__stat--license .appd-hero__stat-value,
.appd-hero__stat--date .appd-hero__stat-value {
	color: var(--appd-ink);
}

.appd-hero__stat--security {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.appd-hero__stat--security::before {
	background: #16a34a;
}

.appd-hero__stat-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 700;
	color: var(--appd-ink);
	line-height: 1.2;
	font-family: inherit;
}

.appd-hero__stat-value--ok {
	color: var(--appd-green);
}

.appd-hero__stat-star {
	color: #ca8a04;
	font-size: 11px;
}

.appd-hero__stat-label {
	font-size: 10px;
	font-weight: 600;
	color: var(--appd-soft);
	line-height: 1.3;
}

/* Keep pills available for other sections if needed */
.appd-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.appd-pill--slate {
	background: #e2e8f0;
	color: #1e293b;
	border-color: #cbd5e1;
}

.appd-pill--green {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}

.appd-pill--blue {
	background: #dbeafe;
	color: #1e40af;
	border-color: #93c5fd;
}

.appd-pill--violet {
	background: #ede9fe;
	color: #5b21b6;
	border-color: #c4b5fd;
}

.appd-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

.appd-star {
	font-size: 13px;
	color: #cbd5e1;
	line-height: 1;
}

.appd-star.is-on {
	color: var(--appd-star);
}

.appd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 28px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.appd-side {
	position: sticky;
	top: 72px; /* sticky header ~56px + gap */
	align-self: start;
	max-height: calc(100vh - 88px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	z-index: 5;
	min-width: 0;
	max-width: 100%;
}

body.admin-bar .appd-side {
	top: 104px; /* WP admin bar 32px + header */
	max-height: calc(100vh - 120px);
}

@media (max-width: 960px) {
	.appd-side {
		position: static;
		max-height: none;
		overflow: visible;
		z-index: auto;
	}
}

.appd-side .store-panel__head,
.appd-related .store-panel__head,
.appd-block .store-panel__head,
.appd-security .store-panel__head {
	margin-bottom: 12px;
}

.appd-related {
	padding: 16px;
}

/* Titles use .store-panel__title (16/700) — no override */

.appd-desc-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: var(--appd-ink);
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	line-height: 1.4;
}

.appd-tabs-panel {
	padding: 0 !important;
	overflow: hidden;
}

.appd-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--appd-line);
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 6px 10px 0;
}

.appd-tab {
	appearance: none;
	position: relative;
	border: 0;
	background: transparent;
	padding: 12px 18px 14px;
	font-size: 13px;
	font-weight: 800;
	color: var(--appd-soft);
	cursor: pointer;
	font-family: inherit;
	border-radius: 12px 12px 0 0;
	transition: color .18s ease, background .18s ease;
}

.appd-tab::after {
	content: "";
	position: absolute;
	inset-inline: 18px;
	bottom: 0;
	height: 3px;
	border-radius: 999px 999px 0 0;
	background: transparent;
	transform: scaleX(0.35);
	opacity: 0;
	transition: transform .22s ease, opacity .18s ease, background .18s ease;
}

.appd-tab:hover {
	color: #334155;
	background: rgba(255, 255, 255, .55);
}

.appd-tab.is-active {
	color: var(--appd-blue);
	background: #fff;
	box-shadow: 0 -1px 0 #fff;
}

.appd-tab.is-active::after {
	background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
	transform: scaleX(1);
	opacity: 1;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, .08);
}

.appd-tab-panel {
	padding: 24px 18px 28px;
	display: none;
	min-width: 0;
	max-width: 100%;
}

.appd-tab-panel.is-active {
	display: flex;
	flex-direction: column;
	gap: var(--appd-section-gap);
}

.appd-desc {
	max-height: 7.2em;
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.appd-desc.is-open {
	max-height: none;
}

.appd-desc p {
	margin: 0 0 14px;
	font-size: 13px; /* match .store-promo__desc */
	font-weight: 500;
	line-height: 1.75;
	color: var(--appd-text);
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

.appd-desc p:last-child {
	margin-bottom: 0;
}

.appd-more-desc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	margin: 14px 0 22px;
	border-radius: 10px;
	border: 1px solid #93c5fd;
	background: #eff6ff;
	color: var(--appd-blue);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.appd-block {
	margin-bottom: 0;
	min-width: 0;
	max-width: 100%;
}

.appd-block:last-child {
	margin-bottom: 0;
}

.appd-block .store-panel__head {
	margin-bottom: 16px;
}

.appd-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

.appd-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--appd-text);
	line-height: 1.6;
	padding: 8px 10px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid var(--appd-line);
}

.appd-feature-list svg {
	color: var(--appd-green-bright);
	flex-shrink: 0;
	margin-top: 2px;
	width: 14px;
	height: 14px;
}

.appd-block:has(.appd-feature-list) .store-panel__title {
	font-size: 16px;
}

.appd-shots__row {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 6px 2px 10px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	min-width: 0;
	overscroll-behavior-x: contain;
}

.appd-shot {
	margin: 0;
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	cursor: zoom-in;
	font: inherit;
	color: inherit;
	text-align: start;
	appearance: none;
	-webkit-appearance: none;
}

.appd-shot:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
	border-radius: 12px;
}

.appd-shot__device {
	position: relative;
	display: block;
	background: #0f172a;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}

.appd-shot__badge {
	position: absolute;
	z-index: 2;
	bottom: 14px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .72);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
}

.appd-shot__badge svg {
	display: block;
	flex-shrink: 0;
	opacity: .95;
}

.appd-shot--android .appd-shot__badge {
	bottom: 10px;
	inset-inline-end: 6px;
	min-height: 18px;
	padding: 0 6px;
	font-size: 9px;
	gap: 3px;
}

.appd-shot--ios .appd-shot__badge {
	bottom: 8px;
	inset-inline-end: 6px;
	min-height: 18px;
	padding: 0 6px;
	font-size: 9px;
	gap: 3px;
}

.appd-shot--desktop .appd-shot__badge {
	bottom: 8px;
	inset-inline-end: 8px;
	min-height: 22px;
	padding: 0 8px;
	font-size: 11px;
}

.appd-shot__screen {
	display: block;
	overflow: hidden;
	background: #111827;
	/* Reserve vertical space before frame modifiers / image decode. */
	width: 100%;
	aspect-ratio: 9 / 19.5;
}

.appd-shot__screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	background: #111827;
}

/* Android phone frame — half size on desktop (>640 uses this base) */
.appd-shot--android .appd-shot__device {
	width: 94px;
	padding: 7px 5px 6px;
	border-radius: 14px;
	border: 1.5px solid #1e293b;
	background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #020617 100%);
}

.appd-shot--android .appd-shot__speaker {
	display: block;
	width: 16px;
	height: 2px;
	margin: 0 auto 5px;
	border-radius: 999px;
	background: #334155;
}

.appd-shot--android .appd-shot__cam {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #64748b, #0f172a 70%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.appd-shot--android .appd-shot__screen {
	width: 100%;
	aspect-ratio: 9 / 19.5;
	height: auto;
	border-radius: 6px;
}

.appd-shot--android .appd-shot__bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 5px auto 0;
	border-radius: 999px;
	background: #475569;
}

/* iPhone frame — half size on desktop */
.appd-shot--ios .appd-shot__device {
	width: 92px;
	padding: 6px 4px 6px;
	border-radius: 16px;
	border: 1.5px solid #111827;
	background: linear-gradient(165deg, #334155 0%, #0f172a 40%, #020617 100%);
	box-shadow:
		0 6px 16px rgba(15, 23, 42, .18),
		inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.appd-shot--ios .appd-shot__island {
	display: block;
	width: 32px;
	height: 9px;
	margin: 0 auto 5px;
	border-radius: 999px;
	background: #020617;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
	position: relative;
	z-index: 2;
}

.appd-shot--ios .appd-shot__island::after {
	content: "";
	position: absolute;
	inset-block-start: 2px;
	inset-inline-end: 6px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #475569, #0f172a 65%);
}

.appd-shot--ios .appd-shot__screen {
	width: 100%;
	aspect-ratio: 9 / 19.5;
	height: auto;
	border-radius: 8px;
}

.appd-shot--android:hover .appd-shot__device,
.appd-shot--ios:hover .appd-shot__device {
	transform: translateY(-3px);
	transition: transform .18s ease;
}

/* Windows / Linux — large landscape cards */
.appd-shots__row--desktop {
	gap: 16px;
}

.appd-shot--desktop .appd-shot__device {
	width: min(180px, 78vw);
	padding: 0;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .1);
}

.appd-shot--desktop .appd-shot__screen {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 10px;
}

.appd-shot--desktop .appd-shot__screen img {
	object-fit: cover;
	object-position: center;
}

.appd-shot--desktop .appd-shot__speaker,
.appd-shot--desktop .appd-shot__cam,
.appd-shot--desktop .appd-shot__island,
.appd-shot--desktop .appd-shot__bar {
	display: none;
}

.appd-shot--desktop:hover .appd-shot__device {
	transform: translateY(-2px);
	transition: transform .18s ease;
	box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}

@media (max-width: 640px) {
	.appd-shot--android .appd-shot__device,
	.appd-shot--ios .appd-shot__device {
		/* ~112px keeps phones readable without dominating the scroll rhythm */
		width: 112px;
		padding: 10px 7px 9px;
		border-radius: 22px;
		border-width: 2px;
	}

	.appd-shot--ios .appd-shot__device {
		padding: 9px 6px 9px;
		border-radius: 24px;
	}

	.appd-shot--android .appd-shot__speaker {
		width: 22px;
		height: 3px;
		margin-bottom: 7px;
	}

	.appd-shot--android .appd-shot__cam {
		top: 12px;
		inset-inline-end: 12px;
		width: 6px;
		height: 6px;
	}

	.appd-shot--android .appd-shot__screen {
		border-radius: 10px;
	}

	.appd-shot--android .appd-shot__bar {
		width: 28px;
		height: 3px;
		margin-top: 7px;
	}

	.appd-shot--ios .appd-shot__island {
		width: 42px;
		height: 12px;
		margin-bottom: 7px;
	}

	.appd-shot--ios .appd-shot__island::after {
		inset-block-start: 3px;
		inset-inline-end: 8px;
		width: 6px;
		height: 6px;
	}

	.appd-shot--ios .appd-shot__screen {
		border-radius: 12px;
	}

	.appd-shots__row {
		gap: 12px;
		padding: 4px 2px 8px;
	}

	.appd-shot--desktop .appd-shot__device {
		width: min(260px, 78vw);
	}

	.appd-shot__badge {
		height: 22px;
		min-height: 22px;
		padding: 0 8px;
		font-size: 11px;
	}

	.appd-shot--android .appd-shot__badge {
		bottom: 16px;
		inset-inline-end: 10px;
	}

	.appd-shot--ios .appd-shot__badge {
		bottom: 14px;
		inset-inline-end: 10px;
	}
}

/* Captions under screenshots — images only */
.appd-shot__cap,
.appd-shot figcaption {
	display: none !important;
}

.appd-specs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.appd-spec {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid #e8eaed;
	background: #f8fafc;
	text-align: start;
	transition: border-color .15s, background .15s;
}

.appd-spec:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	box-shadow: none;
}

.appd-spec__label {
	font-size: 11px;
	font-weight: 600;
	color: var(--appd-soft);
	flex-shrink: 0;
}

.appd-spec__value {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--appd-blue);
	word-break: break-word;
	text-align: end;
	min-width: 0;
	line-height: 1.35;
}

.appd-block--scan {
	margin-top: 4px;
}

.appd-block--scan .app-dl-scan {
	margin-top: 0;
}

.appd-security {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #bbf7d0;
	background: linear-gradient(180deg, #f0fdf4 0%, #fff 72%);
}

.appd-security__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.appd-security__list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .85);
	font-size: 12px;
	font-weight: 600;
	color: var(--appd-soft);
}

.appd-security__list strong {
	font-size: 12px;
	font-weight: 700;
	color: var(--appd-ink);
	font-family: inherit;
}

.appd-security__hash-row {
	align-items: flex-start;
}

.appd-security__hash {
	display: block;
	max-width: min(100%, 420px);
	margin: 0;
	padding: 4px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.45;
	color: #0f172a;
	word-break: break-all;
	text-align: start;
}

.appd-security__ok {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #bbf7d0;
	color: #14532d !important;
	font-size: 11px !important;
}

.appd-reqs {
	margin: 0;
	padding: 0 16px 0 0;
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--appd-text);
	line-height: 1.7;
}

.appd-side .store-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.appd-side .store-list--popular > li + li {
	margin-block-start: 0;
	padding-block-start: 0;
	border-block-start: none;
}

.appd-side .store-list-row--popular {
	align-items: flex-start;
	gap: 10px;
	padding: 10px 6px;
	min-height: 0;
	border-radius: 0;
	border: 0;
	border-block-end: 1px solid #eef2f7;
}

.appd-side .store-list > li:last-child .store-list-row--popular {
	border-block-end: 0;
}

.appd-side .store-list-row--popular:hover {
	background: #fafbfc;
	border-color: transparent;
}

.appd-side .store-list-row--popular .store-list-row__body {
	gap: 2px;
	padding-block: 0;
	min-width: 0;
}

.appd-side .store-list-row--popular .store-icon--sm,
.appd-side .store-list-row--popular .store-icon--md,
.appd-side .store-list-row--popular .store-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
}

.appd-side .store-list-row--popular .store-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.appd-side .store-list-row--popular .store-list-row__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	-webkit-line-clamp: unset;
	direction: ltr;
	unicode-bidi: isolate;
}

.appd-side .store-list-row--popular .store-list-row__cat {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	-webkit-line-clamp: unset;
}

.appd-side .store-list-row--popular .store-list-row__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-block-start: 2px;
	width: 100%;
	min-width: 0;
}

.appd-side .store-list-row--popular .store-stars {
	margin-block-start: 0;
	gap: 1px;
	line-height: 1;
	letter-spacing: 0;
	flex-shrink: 0;
}

.appd-side .store-list-row--popular .store-star {
	font-size: 11px;
	color: #f59e0b;
}

.appd-side .store-list-row--popular .store-star:not(.is-on) {
	color: #e2e8f0;
}

.appd-side .store-list-row--popular .store-list-row__ver {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	min-width: 0;
}

.appd-side .store-list-row--popular .store-list-row__ver svg {
	flex-shrink: 0;
	opacity: .75;
}

.appd-side .store-list-row--popular .store-list-row__downloads {
	display: block;
	margin-block-start: 0;
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.appd-block--shots {
	margin-block: 0;
}

/* Versions panel nested in overview — keep clear air around it */
.appd-tab-panel > .app-dl-versions,
.appd-tab-panel > .app-dl-panel.app-dl-versions {
	margin: 0;
	padding: 18px 16px;
	scroll-margin-top: 96px;
}

/* ---- Versions log ---- */

.appd-versions-log {
	padding: 16px;
	scroll-margin-top: 96px;
}

.appd-ver-box {
	border: 1px solid #e8eaed;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.appd-ver-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
	transition: background .12s;
}

.appd-ver-row:hover {
	background: #f8fafc;
}

.appd-ver-row.is-latest {
	background: linear-gradient(90deg, #eff6ff 0%, #fff 55%);
}

.appd-ver-row:last-child {
	border-bottom: 0;
}

.appd-ver-row__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.appd-ver-row__name {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--appd-ink);
}

.appd-ver-latest {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 999px;
	background: #bfdbfe;
	color: var(--appd-blue-ink);
	font-size: 10px;
	font-weight: 700;
}

.appd-ver-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--appd-soft);
}

.appd-ver-tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid #4ade80;
	color: var(--appd-green);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
	background: #dcfce7;
}

.appd-ver-row__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.appd-ver-flag {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid #e8eaed;
	background: #f8fafc;
	color: var(--appd-faint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: not-allowed;
	opacity: .85;
}

.appd-ver-dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--appd-green);
	color: #fff !important;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(21, 128, 61, .22);
}

.appd-ver-dl:hover {
	background: #166534;
	color: #fff !important;
}

.appd-ver-more {
	width: 100%;
	margin-top: 12px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid #86efac;
	background: #f0fdf4;
	color: var(--appd-green);
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: not-allowed;
}

/* ---- Guide article ---- */

.appd-article {
	padding: 22px 20px 18px;
}

.appd-article--in-tab {
	padding: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.appd-article__body {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.appd-article__body.is-collapsed {
	max-height: 280px;
	overflow: hidden;
	position: relative;
}

.appd-article__body.is-collapsed::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 80px;
	background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
	pointer-events: none;
}

.appd-article__section p {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.75;
	color: var(--appd-text);
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
}

.appd-article__section p:last-child {
	margin-bottom: 0;
}

.appd-article__heading {
	margin: 0 0 12px;
	padding-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--appd-ink);
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	line-height: 1.4;
	border-bottom: 1px solid var(--appd-line);
}

/* Editor post content (the_content) — match old BackVersion article rhythm */
.appd-article__section--editor {
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	color: var(--appd-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.85;
}

.appd-article__section--editor > *:first-child {
	margin-top: 0;
}

.appd-article__section--editor > *:last-child {
	margin-bottom: 0;
}

.appd-article__section--editor p {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.85;
	color: var(--appd-text);
}

.appd-article__section--editor h2,
.appd-article__section--editor h3,
.appd-article__section--editor h4,
.appd-article__section--editor h5 {
	margin: 28px 0 12px;
	padding-bottom: 8px;
	color: var(--appd-ink);
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
	font-weight: 700;
	line-height: 1.45;
	border-bottom: 1px solid var(--appd-line);
}

.appd-article__section--editor h2 {
	font-size: 17px;
}

.appd-article__section--editor h3 {
	font-size: 15px;
}

.appd-article__section--editor h4,
.appd-article__section--editor h5 {
	font-size: 14px;
	border-bottom-color: transparent;
	padding-bottom: 0;
}

.appd-article__section--editor h2:first-child,
.appd-article__section--editor h3:first-child,
.appd-article__section--editor h4:first-child {
	margin-top: 0;
}

.appd-article__section--editor ul,
.appd-article__section--editor ol {
	margin: 0 0 16px;
	padding: 0 1.25em 0 0;
	display: grid;
	gap: 10px;
}

.appd-article__section--editor li {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.75;
	color: var(--appd-text);
}

.appd-article__section--editor ul {
	list-style: disc;
}

.appd-article__section--editor ol {
	list-style: decimal;
}

.appd-article__section--editor li::marker {
	color: var(--appd-blue, #2563eb);
}

.appd-article__section--editor strong,
.appd-article__section--editor b {
	font-weight: 700;
	color: var(--appd-ink);
}

.appd-article__section--editor a {
	color: var(--appd-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.appd-article__section--editor a:hover {
	color: var(--appd-blue-ink);
}

.appd-article__section--editor blockquote {
	margin: 16px 0;
	padding: 12px 16px;
	border-inline-start: 3px solid var(--appd-blue, #2563eb);
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	color: var(--appd-text);
}

.appd-article__checks {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.appd-article__checks li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--appd-text);
	line-height: 1.6;
	font-family: Tajawal, "Tajawal Fallback", system-ui, sans-serif;
}

.appd-article__checks svg {
	color: var(--appd-green-bright);
	flex-shrink: 0;
	margin-top: 2px;
}

.appd-article__toggle {
	margin-top: 16px;
	width: 100%;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 10px;
	border: 1px solid #93c5fd;
	background: #eff6ff;
	color: var(--appd-blue);
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.appd-article__toggle:hover {
	background: #dbeafe;
	color: var(--appd-blue-ink);
}

/* Keep homepage storefront type scale (no heavier overrides) */

.appd .store-panel__title,
.appd-page .store-panel__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.appd .store-panel__more,
.appd-page .store-panel__more {
	font-size: 13px;
	color: var(--appd-blue);
	font-weight: 700;
}

.appd-side .store-list-row__title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.appd-side .store-list-row__cat {
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
}

.appd-related .store-app-card__title {
	font-size: 13px;
	color: #0f172a;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	line-height: 1.35;
	-webkit-line-clamp: unset;
	direction: ltr;
	unicode-bidi: isolate;
}

.appd-related .store-app-card__dev {
	font-size: 10px;
	color: #64748b;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	direction: ltr;
	unicode-bidi: isolate;
}

.appd-related .store-app-card__cat {
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
}

.appd-block .store-panel__title {
	color: #0f172a;
}

@media (max-width: 960px) {
	.appd-layout { grid-template-columns: 1fr; }
	.appd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.appd-feature-list { grid-template-columns: 1fr; }
	.appd-ver-row { flex-wrap: wrap; }
	.appd-hero__stats {
		grid-template-columns: repeat(4, minmax(88px, 1fr));
		gap: 6px;
		padding: 10px 12px 12px;
		overflow-x: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
		min-width: 0;
		overscroll-behavior-x: contain;
	}
	/* Phone/tablet stack: chips leave hero → under المواصفات التقنية */
	.appd .appd-hero__stats--in-hero {
		display: none !important;
	}
	.appd .appd-hero__stats--after-specs {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 7px;
		margin-top: 12px;
		padding: 0;
		border-top: 0;
		background: transparent;
		overflow-x: auto;
		max-width: 100%;
		min-width: 0;
		overscroll-behavior-x: contain;
	}
	.appd-hero__stat {
		padding: 7px 6px;
		border-radius: 10px;
		gap: 2px;
	}
	.appd-hero__stat::before { height: 2px; }
	.appd-hero__stat-value { font-size: 11px; }
	.appd-hero__stat-label { font-size: 9px; }
	.appd-hero__stat-star { font-size: 10px; }
}

@media (max-width: 640px) {
	/* —— One mobile rhythm: 16 / 12 / 8 —— */
	.appd-page,
	.appd {
		--appd-section-gap: 16px;
		gap: 16px;
	}

	.appd-page {
		padding-bottom: 20px !important;
	}

	.appd-page > .edu-breadcrumb {
		margin: 0 0 -16px;
		padding: 8px 0;
	}

	.appd-main {
		gap: 16px;
	}

	.appd-page .home-panel.store-panel,
	.appd .home-panel.store-panel,
	.appd-page .home-panel,
	.appd .home-panel {
		padding: 10px 12px;
		border-radius: 12px;
	}

	.appd-side .store-panel__head,
	.appd-related .store-panel__head,
	.appd-block .store-panel__head,
	.appd-security .store-panel__head {
		margin-bottom: 10px;
	}

	.appd-related {
		padding: 10px;
	}

	.appd-block .store-panel__badge,
	.appd-related .store-panel__badge,
	.appd-side .store-panel__badge {
		width: 24px;
		height: 24px;
		border-radius: 7px;
	}

	.appd-block .store-panel__badge svg,
	.appd-related .store-panel__badge svg,
	.appd-side .store-panel__badge svg {
		width: 12px;
		height: 12px;
	}

	.appd-block .store-panel__title,
	.appd-related .store-panel__title,
	.appd-side .store-panel__title {
		font-size: 14px !important;
		line-height: 1.35;
	}

	/* Hero data card — +10% vs previous mobile scale (component-only) */
	.appd-hero__main {
		flex-wrap: wrap;
		align-items: center;
		gap: 9px 11px;
		padding: 11px;
	}

	.appd-hero .store-icon--lg,
	.appd-hero .store-icon--xl,
	.appd-hero__icon,
	.appd-hero .store-icon--lg img,
	.appd-hero .store-icon--xl img,
	.appd-hero__icon img {
		width: 53px;
		height: 53px;
		border-radius: 13px;
	}

	.appd-hero__title {
		font-size: 15px !important;
		line-height: 1.3;
	}

	.appd-hero__info {
		flex: 1 1 calc(100% - 70px);
		gap: 5px;
	}

	.appd-hero__meta-line {
		gap: 6px;
	}

	.appd-hero__facts {
		gap: 10px;
		margin-top: 5px;
	}

	.appd-hero__fact {
		font-size: 11px;
		gap: 4px;
	}

	.appd-hero__fact-icon {
		width: 12px;
		height: 12px;
	}

	.appd-hero__version {
		font-size: 10.5px;
	}

	.appd-hero__chip {
		height: 24px;
		min-height: 24px;
		max-height: 24px;
		padding: 0 9px;
		font-size: 11.5px;
		border-radius: 8px;
		box-sizing: border-box;
	}

	.appd-hero__cta {
		width: 100%;
		order: 3;
		gap: 7px;
	}

	.appd-download {
		min-height: 44px;
		padding: 8px 13px;
		border-radius: 11px;
		gap: 7px;
		box-shadow: 0 2px 8px rgba(29, 78, 216, .18);
	}

	.appd-download__svg {
		width: 18px;
		height: 18px;
	}

	.appd-download__label {
		font-size: 14px;
	}

	.appd-versions {
		min-height: 33px;
		padding: 5px 10px;
		font-size: 12.5px;
	}

	.appd-rate-card {
		width: 100%;
		order: 4;
		max-width: none;
		padding: 6px 8px;
	}

	.appd-hero__stats {
		display: flex;
		flex-wrap: nowrap;
		gap: 7px;
		padding: 9px 11px 11px;
		overflow-x: auto;
		max-width: 100%;
		min-width: 0;
		overscroll-behavior-x: contain;
	}

	/* Move quick-fact chips under المواصفات التقنية on phone */
	.appd-hero__stats--in-hero {
		display: none !important;
	}

	.appd-hero__stats--after-specs {
		display: flex !important;
		flex-wrap: nowrap;
		gap: 7px;
		margin-top: 12px;
		padding: 0;
		border-top: 0;
		background: transparent;
		overflow-x: auto;
		max-width: 100%;
		min-width: 0;
		overscroll-behavior-x: contain;
	}

	.appd-hero__stat,
	.appd-hero__stat--os,
	.appd-hero__stat--license,
	.appd-hero__stat--date {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		min-height: 48px;
		padding: 7px 5px;
		border-radius: 10px;
		box-sizing: border-box;
		justify-content: center;
	}

	.appd-hero__stat-value {
		font-size: 11px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.appd-hero__stat-label {
		font-size: 10px;
		white-space: nowrap;
	}

	/* Tabs — 10% smaller labels */
	.appd-tabs {
		padding: 4px 8px 0;
		gap: 2px;
	}

	.appd-tab {
		padding: 8px 11px 9px;
		font-size: 11.5px;
		border-radius: 10px 10px 0 0;
	}

	.appd-tab::after {
		inset-inline: 11px;
		height: 2px;
	}

	.appd-tab-panel {
		padding: 12px;
		gap: 14px;
	}

	.appd-tab-panel.is-active {
		gap: 14px;
	}

	.appd-desc-title {
		margin: 0 0 10px;
		font-size: 13px;
	}

	.appd-desc p {
		margin: 0 0 10px;
		font-size: 12.5px;
		line-height: 1.65;
	}

	/* Overview / editor content — match page rhythm (was 14px) */
	.appd-article__section p,
	.appd-article__section--editor,
	.appd-article__section--editor p,
	.appd-article__section--editor li {
		font-size: 12.5px;
		line-height: 1.7;
	}

	.appd-article__heading,
	.appd-article__section--editor h3 {
		font-size: 13.5px;
	}

	.appd-article__section--editor h2 {
		font-size: 14px;
	}

	.appd-article__section--editor h4,
	.appd-article__section--editor h5 {
		font-size: 12.5px;
	}

	/* Specs — boxed card + −15% type (mobile only) */
	.appd-block--specs {
		padding: 12px;
		border: 1px solid #e8eaed;
		border-radius: 12px;
		background: #fff;
		box-sizing: border-box;
	}

	.appd-block--specs .store-panel__head {
		margin-bottom: 10px;
	}

	.appd-block--specs .store-panel__title {
		font-size: 12px !important;
		line-height: 1.35;
	}

	.appd-block--specs .store-panel__badge {
		width: 20px;
		height: 20px;
		border-radius: 6px;
	}

	.appd-block--specs .store-panel__badge svg {
		width: 10px;
		height: 10px;
	}

	.appd-specs {
		gap: 6px;
	}

	.appd-spec {
		padding: 7px 9px;
		border-radius: 9px;
		gap: 6px;
		min-height: 0;
		align-items: center;
	}

	.appd-spec__label {
		font-size: 9.5px;
	}

	.appd-spec__value {
		font-size: 10px;
		line-height: 1.35;
	}

	/* Popular list — slight air so it doesn't feel crushed vs rating */
	.appd-side .store-list-row--popular {
		padding: 10px 4px;
		gap: 10px;
	}

	/* Similar cards — denser so they don't dwarf the popular list */
	.appd-related .store-app-grid {
		gap: 8px;
	}

	.appd-related .store-app-card {
		padding: 8px 6px 6px;
		border-radius: 11px;
	}

	.appd-related .store-app-card__icon-wrap {
		margin-bottom: 4px;
	}

	.appd-related .store-icon--lg,
	.appd-related .store-icon--lg img {
		width: 44px;
		height: 44px;
		border-radius: 11px;
	}

	.appd-related .store-app-card__title {
		font-size: 12px;
		margin: 0 0 1px;
		line-height: 1.3;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.appd-related .store-app-card__dev {
		font-size: 9px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.appd-related .store-app-card__cat {
		font-size: 10px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.appd-related .store-app-card__dev {
		font-size: 9px;
		margin-bottom: 0;
	}

	.appd-related .store-app-card__cat {
		font-size: 10px;
		margin: 0 0 4px;
	}

	.appd-related .store-app-card__foot {
		padding-top: 5px;
		gap: 4px;
	}

	.appd-ver-row__actions { width: 100%; justify-content: flex-start; }

	.appd-tab-panel > .app-dl-versions,
	.appd-tab-panel > .app-dl-panel.app-dl-versions {
		padding: 12px;
	}

	/* Features + versions log — match page type scale on mobile */
	.appd-feature-list {
		gap: 8px;
	}

	.appd-feature-list li {
		font-size: 11px;
		font-weight: 500;
		line-height: 1.5;
		padding: 7px 9px;
		border-radius: 10px;
		gap: 6px;
	}

	.appd-feature-list svg {
		width: 12px;
		height: 12px;
		margin-top: 1px;
	}

	.appd-block:has(.appd-feature-list) .store-panel__title {
		font-size: 14px;
		font-weight: 700;
	}

	.appd-versions-log {
		padding: 10px 12px;
	}

	.appd-versions-log .store-panel__title,
	.appd-block:has(.appd-ver-box) .store-panel__title {
		font-size: 14px;
		font-weight: 700;
	}

	.appd-ver-row {
		gap: 10px;
		padding: 10px 12px;
	}

	.appd-ver-row__name {
		font-size: 12px;
		font-weight: 600;
		gap: 6px;
	}

	.appd-ver-row__meta {
		font-size: 10px;
		font-weight: 500;
		gap: 6px;
	}

	.appd-ver-latest,
	.appd-ver-tag {
		height: 18px;
		padding: 0 6px;
		font-size: 9px;
		font-weight: 700;
	}

	.appd-ver-flag {
		width: 32px;
		height: 32px;
		border-radius: 8px;
	}
}

/* —— Screenshots lightbox (Mobizil-style) —— */

html.appd-lb-open,
html.appd-lb-open body {
	overflow: hidden;
}

.appd-lb {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.appd-lb[hidden] {
	display: none !important;
}

.appd-lb__backdrop {
	position: absolute;
	inset: 0;
	background: #fff;
}

.appd-lb__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 1fr;
	width: 100%;
	height: 100%;
	margin: 0;
	background: #fff;
}

.appd-lb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #eef2f7;
	min-height: 56px;
}

.appd-lb__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #0f172a;
	cursor: pointer;
	flex-shrink: 0;
	margin-inline-start: auto;
}

.appd-lb__close:hover {
	background: #e2e8f0;
}

.appd-lb__close:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.appd-lb__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	text-align: end;
	line-height: 1.35;
}

.appd-lb__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 20px 64px;
	background: #fff;
}

.appd-lb__img {
	display: block;
	max-width: 100%;
	max-height: min(68vh, 720px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .12);
}

.appd-lb__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: #f8fafc;
	color: #0f172a;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}

.appd-lb__nav:hover {
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .16);
}

.appd-lb__nav:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.appd-lb__nav--prev {
	inset-inline-start: 16px;
}

.appd-lb__nav--next {
	inset-inline-end: 16px;
}

.appd-lb__thumbs {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 18px 20px;
	border-top: 1px solid #eef2f7;
	background: #fff;
}

.appd-lb__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #f8fafc;
	overflow: hidden;
	cursor: pointer;
	width: 64px;
	height: 64px;
	flex: 0 0 auto;
	box-shadow: 0 0 0 1px #e8eaed;
}

.appd-lb__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.appd-lb__thumb.is-active {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

.appd-lb__thumb:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

@media (max-width: 720px) {
	.appd-lb__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.appd-lb__stage {
		padding: 12px 52px;
	}

	.appd-lb__img {
		max-height: min(58vh, 560px);
	}

	.appd-lb__nav {
		width: 40px;
		height: 40px;
	}

	.appd-lb__nav--prev {
		inset-inline-start: 8px;
	}

	.appd-lb__nav--next {
		inset-inline-end: 8px;
	}

	.appd-lb__thumb {
		width: 52px;
		height: 52px;
	}
}

