.psd-portal {
	--psd-ink: #17203a;
	--psd-muted: #667085;
	--psd-border: #e4e7ec;
	--psd-accent: #1f6b55;
	--psd-soft: #f4f8f6;
	max-width: 920px;
	margin: 28px auto;
	color: var(--psd-ink);
	font: inherit;
}

.psd-panel {
	background: #fff;
	border: 1px solid var(--psd-border);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(23, 32, 58, .06);
	margin: 0 0 18px;
	padding: clamp(20px, 4vw, 34px);
}

.psd-account { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.psd-account h2, .psd-panel h3, .psd-file h4 { color: var(--psd-ink); margin: 5px 0 0; }
.psd-eyebrow { color: var(--psd-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.psd-subscription-state { align-items: center; background: #fff1f0; border-radius: 999px; color: #9f2d27; display: inline-flex; font-size: .88rem; font-weight: 700; gap: 8px; padding: 9px 13px; white-space: nowrap; }
.psd-subscription-state.is-active { background: #eaf7f0; color: #14613f; }
.psd-state-dot { background: currentColor; border-radius: 50%; height: 8px; width: 8px; }
.psd-muted { color: var(--psd-muted); white-space: pre-wrap; }
.psd-file-list { display: grid; gap: 12px; margin-top: 24px; }
.psd-file { align-items: center; background: #fbfcfd; border: 1px solid var(--psd-border); border-radius: 12px; display: flex; gap: 15px; padding: 16px; }
.psd-file-icon { align-items: center; background: var(--psd-soft); border-radius: 10px; color: var(--psd-accent); display: flex; flex: 0 0 42px; font-size: 24px; font-weight: 800; height: 42px; justify-content: center; }
.psd-file-info { flex: 1 1 auto; min-width: 0; }
.psd-file-info h4 { margin: 0; }
.psd-file-info p { color: var(--psd-muted); margin: 5px 0; }
.psd-file-info span { color: var(--psd-muted); font-size: .82rem; overflow-wrap: anywhere; }
.psd-button { background: var(--psd-accent); border: 0; border-radius: 8px; color: #fff !important; cursor: pointer; display: inline-block; font-size: .92rem; font-weight: 700; line-height: 1.2; padding: 12px 18px; text-decoration: none !important; }
.psd-button:hover { background: #174f40; color: #fff; }
.psd-button:disabled { cursor: wait; opacity: .6; }
.psd-paypal-buttons { max-width: 470px; margin: 24px 0; min-height: 44px; }
.psd-package-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.psd-package-card { background: #fbfcfd; border: 1px solid var(--psd-border); border-radius: 14px; box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; padding: 20px; position: relative; }
.psd-package-card.is-featured { background: var(--psd-soft); border-color: #9bc8b5; }
.psd-package-card h4 { font-size: 1.18rem; margin: 2px 0 8px; }
.psd-package-description { color: var(--psd-muted); flex: 1 1 auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.psd-package-description p { margin: 0 0 .75em; }
.psd-package-description p:last-child { margin-bottom: 0; }
.psd-package-card .psd-paypal-buttons { margin: 18px 0 0; width: 100%; }
.psd-package-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.psd-package-badge { background: var(--psd-accent); border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 700; padding: 5px 8px; text-transform: uppercase; }
.psd-price { border-top: 1px solid var(--psd-border); margin-top: 12px; padding-top: 14px; }
.psd-price strong { font-size: 1.55rem; }
.psd-price span { color: var(--psd-muted); display: block; font-size: .82rem; margin-top: 2px; }
.psd-existing { border-top: 1px solid var(--psd-border); margin-top: 26px; padding-top: 22px; }
.psd-existing h4 { margin-bottom: 4px; }
.psd-confirm-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.psd-form-row { display: flex; gap: 8px; max-width: 550px; }
.psd-form-row input { border: 1px solid #cbd0d8; border-radius: 8px; flex: 1 1 auto; font: inherit; min-width: 0; padding: 10px 12px; }
.psd-recovery-fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; }
.psd-recovery-fields input { border: 1px solid #cbd0d8; border-radius: 8px; font: inherit; min-width: 0; padding: 10px 12px; }
.psd-files-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.psd-text-link { color: var(--psd-accent); font-size: .85rem; font-weight: 700; }
.psd-alert, .psd-message { border-radius: 8px; padding: 11px 13px; white-space: pre-wrap; }
.psd-alert { background: #fff8e5; color: #704c00; }
.psd-message { display: none; margin-top: 16px; }
.psd-message.is-visible { display: block; }
.psd-message.is-info { background: #eef4ff; color: #174ea6; }
.psd-message.is-success { background: #eaf7f0; color: #14613f; }
.psd-message.is-error { background: #fff1f0; color: #9f2d27; }

@media (max-width: 620px) {
	.psd-account, .psd-file { align-items: flex-start; flex-direction: column; }
	.psd-recovery-fields { grid-template-columns: 1fr; }
	.psd-files-heading { flex-direction: column; }
	.psd-download { text-align: center; width: 100%; box-sizing: border-box; }
	.psd-form-row { flex-direction: column; }
}

@media (max-width: 860px) {
	.psd-package-grid {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		padding-bottom: 10px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.psd-package-card { flex: 0 0 min(82vw, 330px); scroll-snap-align: start; }
}
