/* PHXDriven Members portal */
.phx-portal {
	--phx-bg: #0b090a;
	--phx-panel: #151318;
	--phx-panel-2: #1d1b21;
	--phx-line: #2c2a31;
	--phx-text: #ececee;
	--phx-muted: #9b99a1;
	--phx-accent: #fa8932;
	--phx-accent-ink: #0b090a;
	--phx-ok: #3fb97a;
	--phx-warn: #e8b440;
	--phx-err: #e5534b;
	--phx-r: 12px;
	background: var(--phx-bg);
	color: var(--phx-text);
	font-family: "Raleway", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	border-radius: var(--phx-r);
	padding: 0 0 40px;
	max-width: 1180px;
	margin: 24px auto;
	overflow: hidden;
}
.phx-portal *, .phx-portal *::before, .phx-portal *::after { box-sizing: border-box; }
.phx-portal a { color: var(--phx-accent); text-decoration: none; }
.phx-portal a:hover { text-decoration: underline; }
.phx-portal h1, .phx-portal h2, .phx-portal h3 { font-family: "Righteous", "Raleway", sans-serif; color: #fff; font-weight: 400; letter-spacing: .3px; margin: 0 0 8px; line-height: 1.2; }
.phx-portal h1 { font-size: clamp(26px, 4vw, 36px); }
.phx-portal h2 { font-size: 24px; }
.phx-portal h3 { font-size: 20px; }
.phx-portal img { max-width: 100%; height: auto; display: block; }
.phx-portal > *:not(.phx-nav) { margin-left: clamp(16px, 4vw, 40px); margin-right: clamp(16px, 4vw, 40px); }
.phx-muted { color: var(--phx-muted); }
.phx-small { font-size: 14px; }
.phx-eyebrow { color: var(--phx-accent); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; margin: 0 0 4px; }
.phx-count { font-family: "Raleway", sans-serif; font-size: .55em; color: var(--phx-muted); vertical-align: middle; margin-left: 6px; }
.phx-h2 { margin-top: 36px !important; }

/* Nav */
.phx-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--phx-line); background: #000; margin-bottom: 24px; }
.phx-nav__brand { font-family: "Righteous", sans-serif; color: #fff; font-size: 18px; }
.phx-nav__brand em { font-style: normal; color: var(--phx-accent); }
.phx-nav__links { display: flex; gap: 4px; flex-wrap: wrap; }
.phx-nav__links a { color: var(--phx-text); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.phx-nav__links a:hover { background: var(--phx-panel-2); text-decoration: none; }
.phx-nav__links a.is-active { background: var(--phx-accent); color: var(--phx-accent-ink); }
.phx-nav__links a.phx-nav__out { color: var(--phx-muted); }

/* Buttons */
.phx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--phx-accent); color: var(--phx-accent-ink) !important; border: 0; border-radius: 8px; padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; line-height: 1.2; text-decoration: none !important; }
.phx-btn:hover { filter: brightness(1.08); }
.phx-btn:disabled { opacity: .6; cursor: wait; }
.phx-btn--sm { padding: 8px 14px; font-size: 14px; }
.phx-btn--ghost { background: transparent; color: var(--phx-text) !important; border: 1px solid var(--phx-line); }
.phx-btn--ghost:hover { border-color: var(--phx-accent); }
.phx-btn--danger { background: transparent; color: var(--phx-err) !important; border: 1px solid #4a2523; }
.phx-inline { display: inline; margin: 0; }
.phx-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Notices */
.phx-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; border-left: 4px solid; background: var(--phx-panel); }
.phx-notice--ok { border-color: var(--phx-ok); }
.phx-notice--warn { border-color: var(--phx-warn); }
.phx-notice--err { border-color: var(--phx-err); }

/* Cards / forms */
.phx-card { background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.phx-form { display: grid; gap: 16px; }
.phx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .phx-grid2 { grid-template-columns: 1fr; } }
.phx-field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.phx-field > span, .phx-field legend { font-size: 13px; font-weight: 700; color: var(--phx-muted); text-transform: uppercase; letter-spacing: .8px; }
.phx-portal input[type=text], .phx-portal input[type=email], .phx-portal input[type=tel], .phx-portal input[type=number], .phx-portal input[type=search], .phx-portal input[type=password], .phx-portal select, .phx-portal textarea {
	width: 100%; background: var(--phx-bg); color: var(--phx-text); border: 1px solid var(--phx-line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 16px; min-height: 44px; box-shadow: none;
}
.phx-portal input:focus, .phx-portal select:focus, .phx-portal textarea:focus { outline: 2px solid var(--phx-accent); outline-offset: 1px; border-color: transparent; }
.phx-portal input:disabled { opacity: .6; }
.phx-portal input[type=file] { color: var(--phx-muted); font-size: 14px; max-width: 100%; }
.phx-portal input[type=file]::file-selector-button { background: var(--phx-panel-2); color: var(--phx-text); border: 1px solid var(--phx-line); border-radius: 8px; padding: 9px 14px; margin-right: 10px; cursor: pointer; font: inherit; }
.phx-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.phx-check input { width: 18px; height: 18px; accent-color: var(--phx-accent); }
.phx-portal img.phx-avatar { border-radius: 50%; object-fit: cover; background: var(--phx-panel-2); flex: none; aspect-ratio: 1 / 1; height: auto; }
.phx-avatar-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.phx-photos__current { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.phx-photos__item { display: grid; gap: 4px; font-size: 13px; color: var(--phx-muted); }
.phx-photos__item img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }

/* Login gate */
.phx-gate { max-width: 440px; margin: 48px auto !important; padding: 32px; background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); }
.phx-gate form p { margin: 0 0 14px; }
.phx-gate label { display: block; font-size: 13px; font-weight: 700; color: var(--phx-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.phx-gate .login-remember label { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; color: var(--phx-text); }
.phx-gate input[type=submit] { width: 100%; background: var(--phx-accent); color: var(--phx-accent-ink); border: 0; border-radius: 8px; padding: 13px; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; }
.phx-gate__links { margin-top: 8px; }

/* Portal header + tabs */
.phx-hero__who { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.phx-hero__who h1 { margin: 0 0 2px; }
.phx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--phx-line); margin-bottom: 24px; overflow-x: auto; }
.phx-tabs a { padding: 10px 16px; color: var(--phx-muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.phx-tabs a.is-active { color: #fff; border-bottom-color: var(--phx-accent); }
.phx-tabs a:hover { text-decoration: none; color: #fff; }
.phx-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.phx-section-head h1, .phx-section-head h2 { margin: 0; }
.phx-empty { border: 1px dashed var(--phx-line); border-radius: var(--phx-r); padding: 32px; text-align: center; color: var(--phx-muted); }

/* Garage list */
.phx-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.phx-car { background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); overflow: hidden; }
.phx-car__img, .phx-tile__img, .phx-member__cover { aspect-ratio: 16 / 10; background: var(--phx-panel-2); display: flex; align-items: center; justify-content: center; color: var(--phx-muted); font-size: 14px; position: relative; overflow: hidden; }
.phx-car__img img, .phx-tile__img img, .phx-member__cover img { width: 100%; height: 100%; object-fit: cover; }
.phx-car__body { padding: 14px 16px; display: grid; gap: 6px; }

/* Rows (my listings) */
.phx-rows { display: grid; gap: 10px; }
.phx-row { display: flex; gap: 14px; align-items: center; background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); padding: 10px 14px; flex-wrap: wrap; }
.phx-row__img { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--phx-panel-2); flex: none; }
.phx-row__img img { width: 100%; height: 100%; object-fit: cover; }
.phx-row__main { flex: 1; min-width: 180px; display: grid; }
.phx-status { font-weight: 700; }
.phx-status--available { color: var(--phx-ok); }
.phx-status--pending { color: var(--phx-warn); }
.phx-status--sold { color: var(--phx-err); }

/* Search + filters */
.phx-search { display: flex; gap: 8px; flex: 1; max-width: 420px; min-width: 240px; }
.phx-filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.phx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.phx-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--phx-line); color: var(--phx-text); font-size: 14px; font-weight: 600; }
.phx-chips a.is-active { background: var(--phx-accent); color: var(--phx-accent-ink); border-color: var(--phx-accent); }
.phx-chips a:hover { text-decoration: none; border-color: var(--phx-accent); }

/* Tiles (marketplace) */
.phx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.phx-tile { background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); overflow: hidden; color: var(--phx-text) !important; transition: border-color .15s, transform .15s; }
.phx-tile:hover { border-color: var(--phx-accent); text-decoration: none !important; transform: translateY(-2px); }
.phx-tile__body { padding: 12px 14px 16px; display: grid; gap: 3px; }
.phx-tile__cat { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--phx-muted); font-weight: 700; }
.phx-tile__title { color: #fff; font-size: 16px; line-height: 1.35; }
.phx-tile__price { color: var(--phx-accent); font-weight: 700; font-size: 18px; }
.phx-tile__seller { color: var(--phx-muted); font-size: 13px; }
.phx-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.phx-badge--pending { background: var(--phx-warn); color: #000; }
.phx-badge--sold { background: var(--phx-err); color: #fff; }
.phx-pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.phx-pager a { padding: 8px 14px; border: 1px solid var(--phx-line); border-radius: 8px; color: var(--phx-text); }
.phx-pager a.is-active { background: var(--phx-accent); color: var(--phx-accent-ink); }

/* Members directory */
.phx-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.phx-member { background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); overflow: hidden; color: var(--phx-text) !important; transition: border-color .15s; }
.phx-member:hover { border-color: var(--phx-accent); text-decoration: none !important; }
.phx-member__cover { aspect-ratio: 16 / 8; }
.phx-member__body { padding: 0 16px 16px; display: grid; gap: 2px; justify-items: start; }
.phx-member__body .phx-avatar { margin-top: -28px; border: 3px solid var(--phx-panel); margin-bottom: 6px; position: relative; }
.phx-member__body strong { color: #fff; font-size: 17px; }
.phx-member__cars { color: var(--phx-accent); font-size: 14px; font-weight: 600; margin-top: 4px; }

/* Profile */
.phx-profile { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.phx-profile > div { flex: 1; min-width: 240px; }
.phx-avatar--lg { width: 120px; height: 120px; border: 3px solid var(--phx-accent); }
.phx-meta { color: var(--phx-muted); font-size: 15px; margin: 0 0 12px; }
.phx-bio { max-width: 680px; }
.phx-ig { font-weight: 700; }
.phx-showcar, .phx-listing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); padding: 16px; margin-bottom: 16px; }
@media (max-width: 800px) { .phx-showcar, .phx-listing { grid-template-columns: 1fr; } }
.phx-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0; }
.phx-specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--phx-muted); font-weight: 700; }
.phx-specs dd { margin: 0; color: #fff; font-weight: 600; }
.phx-mods h4 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--phx-muted); }
.phx-mods p { margin: 0; }

/* Gallery */
.phx-gallery__main { aspect-ratio: 4 / 3; background: var(--phx-panel-2); border-radius: 8px; overflow: hidden; }
.phx-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.phx-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.phx-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; flex: none; overflow: hidden; }
.phx-gallery__thumbs button.is-active { border-color: var(--phx-accent); }
.phx-gallery__thumbs img { width: 72px; height: 54px; object-fit: cover; }
.phx-gallery--empty { aspect-ratio: 4 / 3; background: var(--phx-panel-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--phx-muted); }

/* Listing detail */
.phx-listing__info h1 { margin-top: 4px; }
.phx-price { font-size: 28px; font-weight: 700; color: var(--phx-accent); margin: 0 0 6px; }
.phx-desc { border-top: 1px solid var(--phx-line); padding-top: 12px; margin-top: 12px; }
.phx-seller { display: flex; gap: 12px; align-items: center; background: var(--phx-panel-2); border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.phx-seller > div { display: grid; }
.phx-contact { max-width: 720px; }

/* One heading per page: hide the theme's page title above the portal. */
body:has(.phx-portal) .entry-header { display: none; }

/* Theme override: keep form fields dark with light text (theme forces white backgrounds). */
.phx-portal input[type=text], .phx-portal input[type=email], .phx-portal input[type=tel], .phx-portal input[type=number], .phx-portal input[type=search], .phx-portal input[type=password], .phx-portal select, .phx-portal textarea,
.phx-portal input:focus, .phx-portal select:focus, .phx-portal textarea:focus { background: var(--phx-bg) !important; color: var(--phx-text) !important; -webkit-text-fill-color: var(--phx-text) !important; border: 1px solid var(--phx-line) !important; }
.phx-portal input:focus, .phx-portal select:focus, .phx-portal textarea:focus { border-color: var(--phx-accent) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(250, 137, 50, .35) !important; }
.phx-portal input::placeholder, .phx-portal textarea::placeholder { color: #6f6d75 !important; -webkit-text-fill-color: #6f6d75 !important; opacity: 1; }
.phx-portal input:-webkit-autofill, .phx-portal input:-webkit-autofill:hover, .phx-portal input:-webkit-autofill:focus { -webkit-text-fill-color: var(--phx-text) !important; -webkit-box-shadow: 0 0 0 1000px var(--phx-bg) inset !important; caret-color: var(--phx-text); }
.phx-portal select option { background: var(--phx-panel); color: var(--phx-text); }
.phx-portal .phx-check { color: var(--phx-text) !important; }

/* ---------------- Partners ---------------- */
.phx-portal { --phx-plat: #e6ecf7; --phx-club: #d4af37; --phx-gold: #b4b6be; }
.phx-pbadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.phx-pbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; line-height: 1.5; color: var(--phx-text) !important; background: rgba(255,255,255,.03); text-decoration: none !important; }
.phx-pbadge__tier { text-transform: uppercase; letter-spacing: .8px; font-size: 11px; }
.phx-pbadge--platinum { border-color: var(--phx-plat); } .phx-pbadge--platinum .phx-pbadge__tier { color: var(--phx-plat); }
.phx-pbadge--club { border-color: var(--phx-club); } .phx-pbadge--club .phx-pbadge__tier { color: var(--phx-club); }
.phx-pbadge--gold { border-color: var(--phx-gold); } .phx-pbadge--gold .phx-pbadge__tier { color: var(--phx-gold); }
.phx-member__body .phx-pbadges { margin: 4px 0 2px; }
.phx-member__body .phx-pbadge { font-size: 11px; padding: 2px 8px; }

.phx-featured { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px solid var(--phx-line); border-left: 4px solid var(--phx-gold); background: linear-gradient(90deg, rgba(255,255,255,.04), transparent); border-radius: var(--phx-r); padding: 14px 18px; margin-bottom: 24px; }
.phx-featured--platinum { border-left-color: var(--phx-plat); }
.phx-featured--club { border-left-color: var(--phx-club); }
.phx-featured__logo { width: 120px; height: 56px; display: flex; align-items: center; justify-content: center; flex: none; }
.phx-featured__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.phx-featured__text { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.phx-featured__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--phx-muted); font-weight: 700; }
.phx-featured__text strong { color: #fff; font-size: 17px; }
.phx-featured__line { color: var(--phx-muted); font-size: 14px; }
.phx-featured__line.is-perk { color: var(--phx-accent); font-weight: 700; }
.phx-featured__cta { display: flex; align-items: center; gap: 14px; }

.phx-ptier { margin-bottom: 36px; }
.phx-ptier__title { display: flex; align-items: center; gap: 10px; font-size: 22px !important; border-bottom: 1px solid var(--phx-line); padding-bottom: 10px; margin-bottom: 18px !important; }
.phx-pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--phx-gold); }
.phx-ptier--platinum .phx-pdot { background: var(--phx-plat); box-shadow: 0 0 12px var(--phx-plat); }
.phx-ptier--club .phx-pdot { background: var(--phx-club); }
.phx-pgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.phx-ptier--platinum .phx-pgrid { grid-template-columns: 1fr; }
.phx-ptier--club .phx-pgrid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 420px) { .phx-ptier--club .phx-pgrid { grid-template-columns: 1fr; } }
.phx-pcard { background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 120px; }
.phx-pcard:target { border-color: var(--phx-accent); box-shadow: 0 0 0 2px rgba(250,137,50,.35); }
.phx-ptier--platinum .phx-pcard { flex-direction: row; border-color: #4a4856; background: linear-gradient(135deg, #1d1b24, var(--phx-panel)); }
@media (max-width: 720px) { .phx-ptier--platinum .phx-pcard { flex-direction: column; } }
.phx-ptier--platinum .phx-pcard__logo { width: 38%; min-height: 200px; }
@media (max-width: 720px) { .phx-ptier--platinum .phx-pcard__logo { width: auto; } }
.phx-pcard__logo { background: #0e0d11; display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 140px; }
.phx-pcard__logo img { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.phx-ptier--platinum .phx-pcard__logo img { max-height: 150px; }
.phx-pcard__logo span { font-family: "Righteous", sans-serif; font-size: 22px; color: #fff; text-align: center; }
.phx-pcard__body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; flex: 1; }
.phx-pcard__body h3 { margin: 0 !important; }
.phx-perk { background: rgba(250,137,50,.12); border: 1px solid rgba(250,137,50,.5); border-radius: 8px; padding: 8px 12px; color: #fff; font-weight: 600; }
.phx-perk span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--phx-accent); font-weight: 700; }
.phx-pdesc { color: #c9c7cf; font-size: 15px; margin: 0; }
.phx-pdesc summary { cursor: pointer; list-style: none; }
.phx-pdesc summary::-webkit-details-marker { display: none; }
.phx-pdesc summary span { color: var(--phx-accent); font-weight: 700; white-space: nowrap; }
.phx-pdesc[open] summary { display: none; }
.phx-pdesc p { margin: 0; }
.phx-pinfo { list-style: none; margin: 0; padding: 0; color: var(--phx-muted); font-size: 14px; display: grid; gap: 2px; }
.phx-powner { font-size: 14px; color: var(--phx-muted); margin: 0; }
.phx-pcard .phx-actions { margin-top: 4px; }
.phx-pcard__body > .phx-pbadge { justify-self: start; }


/* ---------------- Mobile polish (v1.1.2) ---------------- */
/* Form grid never wider than its card (file inputs were forcing a 26px overflow). */
.phx-form { grid-template-columns: minmax(0, 1fr); }
.phx-portal input[type="file"] { max-width: 100%; min-width: 0; }
.phx-grid2 > .phx-card { margin-bottom: 0; }
.phx-empty { margin-bottom: 20px; }
.phx-portal form.phx-search { margin: 0; }
.phx-portal .phx-form > p { margin: 0; }
.phx-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--phx-accent); flex: none; margin: 0; }
.phx-check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }

@media (max-width: 640px) {
	/* Full-bleed dark app shell instead of a floating card on a white page */
	body:has(.phx-portal) { background: #0b090a; }
	body:has(.phx-portal) #primary { padding-top: 0; padding-bottom: 0; }
	.phx-portal { width: 100vw; max-width: none; margin: 0 calc(50% - 50vw); border-radius: 0; padding-bottom: 32px; }
	.phx-portal h1 { font-size: 26px; }
	.phx-portal h2 { font-size: 22px; }
	.phx-portal h3 { font-size: 18px; }

	/* Portal nav: brand + log out on one row, links as a swipeable strip */
	.phx-nav { position: relative; display: block; padding: 12px 16px 0; margin-bottom: 20px; }
	.phx-nav__brand { display: block; line-height: 34px; font-size: 18px; margin-bottom: 8px; }
	.phx-nav__links { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.phx-nav__links::-webkit-scrollbar { display: none; }
	.phx-nav__links a { flex: none; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--phx-panel-2); font-size: 14px; line-height: 1.2; }
	.phx-nav__links a.phx-nav__out { position: absolute; top: 12px; right: 16px; background: transparent; padding: 8px 0; line-height: 18px; font-size: 14px; }

	/* Account header + tabs */
	.phx-hero__who { gap: 14px; margin-bottom: 14px; }
	.phx-hero__who img { width: 56px !important; height: 56px !important; }
	.phx-hero__who h1 { font-size: 24px; }
	.phx-tabs { gap: 0; margin: 0 -16px 20px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
	.phx-tabs::-webkit-scrollbar { display: none; }
	.phx-tabs a { padding: 12px 12px; font-size: 15px; }

	/* Cards, buttons, headings */
	.phx-card { padding: 16px; }
	.phx-btn { min-height: 44px; }
	.phx-btn--sm { min-height: 40px; }
	.phx-section-head { margin-bottom: 14px; }
	.phx-section-head h1, .phx-section-head h2 { font-size: 24px; }
	.phx-empty { padding: 24px 16px; }

	/* Search + marketplace category chips (one swipeable row instead of three wrapped rows) */
	.phx-search { min-width: 0; max-width: none; width: 100%; flex: 1 1 100%; }
	.phx-search input { min-width: 0; flex: 1; }
	.phx-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.phx-chips::-webkit-scrollbar { display: none; }
	.phx-chips a { flex: none; white-space: nowrap; }

	/* Members directory: compact rows (was ~250px per member, 20,000px of scrolling) */
	.phx-members { grid-template-columns: 1fr; gap: 8px; }
	.phx-member__cover { display: none; }
	.phx-member__body { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 72px; padding: 12px 14px 12px 76px; }
	.phx-member__body .phx-avatar { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 48px !important; height: 48px !important; margin: 0; border: 0; }
	.phx-member__body strong { font-size: 16px; line-height: 1.3; }
	.phx-pbadges { max-width: 100%; }

	/* Partners: smaller logo panels */
	.phx-pcard__logo { min-height: 110px; padding: 16px; }
	.phx-pcard__logo img { max-height: 78px; }
	.phx-ptier--platinum .phx-pcard__logo { min-height: 140px; }

	/* Login gate */
	.phx-gate { margin: 24px 16px !important; padding: 22px; }
}
