/* PHXDriven Feed — uses the portal's colour tokens (--phx-*) */
.phxf-feed { display: grid; gap: 12px; }
.phxf-feed > .phx-featured { margin: 0; }

.phxf-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); padding: 14px 16px; }
.phxf-item__avatar { display: block; }
.phx-portal .phxf-item__avatar img { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; display: block; margin: 0; border: 0; }
.phxf-item__body { min-width: 0; }
.phxf-item__text { margin: 0; color: var(--phx-text); line-height: 1.45; font-size: 15px; }
.phx-portal .phxf-item__text a { color: #fff; font-weight: 700; }
.phx-portal .phxf-item__text a.phxf-obj { color: var(--phx-accent); }
.phxf-item__meta { margin-top: 3px; font-size: 13px; color: var(--phx-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phxf-price { color: var(--phx-accent); font-weight: 700; }
.phxf-was { text-decoration: line-through; color: var(--phx-muted); font-size: .9em; }
.phxf-tag { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; border: 1px solid var(--phx-line); border-radius: 999px; padding: 2px 8px; color: var(--phx-muted); }
.phxf-tag--sold { color: var(--phx-err); border-color: #4a2523; }

.phxf-remove { margin: 0 0 0 auto; }
.phx-portal .phxf-remove button { background: none; border: 0; padding: 4px 0; color: var(--phx-muted); font-size: 13px; cursor: pointer; font-family: inherit; }
.phx-portal .phxf-remove button:hover { color: var(--phx-err); }

.phxf-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 520px; }
.phxf-thumbs--1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
.phxf-thumbs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.phxf-thumbs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phxf-thumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--phx-panel-2); }
.phxf-thumbs--1 .phxf-thumb { aspect-ratio: 16 / 10; }
.phx-portal .phxf-thumb img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.phxf-thumb__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: 18px; }

.phxf-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #1d1b24, var(--phx-panel)); border: 1px solid var(--phx-line); border-left: 3px solid var(--phx-accent); border-radius: var(--phx-r); padding: 14px 16px; margin-bottom: 16px; }
.phxf-prompt strong { color: #fff; }
.phxf-prompt p { margin: 2px 0 0; }

.phxf-upcoming { margin-bottom: 20px; }
.phxf-upcoming__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.phx-portal .phxf-upcoming__head h2 { margin: 0; font-size: 20px; }
.phxf-upcoming__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.phx-portal a.phxf-event { display: grid; gap: 4px; align-content: start; background: var(--phx-panel); border: 1px solid var(--phx-line); border-radius: var(--phx-r); padding: 12px 14px; color: #fff; }
.phx-portal a.phxf-event:hover { border-color: var(--phx-accent); text-decoration: none; }
.phxf-event .phx-eyebrow { margin: 0; }
.phxf-event strong { font-size: 15px; line-height: 1.3; font-weight: 700; }

.phxf-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* Comments */
.phxf-comments { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--phx-line); display: grid; gap: 8px; }
.phxf-comments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phxf-comments__all > summary { cursor: pointer; color: var(--phx-muted); font-size: 13px; font-weight: 600; list-style: none; }
.phxf-comments__all > summary::-webkit-details-marker { display: none; }
.phxf-comments__all > summary:hover { color: var(--phx-accent); }
.phxf-comments__all[open] > summary { margin-bottom: 8px; }
.phxf-c { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; scroll-margin-top: 120px; }
.phx-portal .phxf-c img, .phx-portal .phxf-comments__form img { width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; margin: 0; border: 0; }
.phxf-c__bubble { background: var(--phx-panel-2); border-radius: 12px; padding: 7px 11px; min-width: 0; }
.phxf-c__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.phx-portal a.phxf-c__name { color: #fff; font-weight: 700; font-size: 13px; }
.phxf-c__head .phxc-rank { font-size: 9.5px; padding: 1px 6px; }
.phxf-c__time { color: var(--phx-muted); font-size: 12px; }
.phxf-c__text { color: var(--phx-text); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; margin-top: 1px; }
.phxf-c__actions { grid-column: 2; display: flex; gap: 12px; margin: -2px 0 0 11px; }
.phxf-c__del { margin: 0; }
.phx-portal .phxf-c__edit { background: none; border: 0; padding: 0; color: var(--phx-muted); font-size: 12px; cursor: pointer; font-family: inherit; }
.phx-portal .phxf-c__edit:hover { color: var(--phx-accent); }
.phxf-c__edited { color: var(--phx-muted); font-size: 11px; font-style: italic; }
.phxf-c.is-pending { opacity: .6; }
.phxf-c.is-editing .phxf-c__actions { display: none; }
.phxf-c__editor { margin-top: 4px; display: grid; gap: 6px; }
.phx-portal .phxf-c__editor textarea { min-height: 38px; resize: none; padding: 8px 10px; border-radius: 10px; font-size: 15px; line-height: 1.35; overflow: hidden; }
.phxf-c__editbar { display: flex; gap: 12px; }
.phx-portal .phxf-c__save, .phx-portal .phxf-c__cancel { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.phx-portal .phxf-c__save { color: var(--phx-accent); }
.phx-portal .phxf-c__cancel { color: var(--phx-muted); }
.phxf-c__err { margin: 0; color: var(--phx-err); font-size: 13px; }
.phxf-comments__latest:empty { display: none; }
.phx-portal .phxf-c__del button { background: none; border: 0; padding: 0; color: var(--phx-muted); font-size: 12px; cursor: pointer; font-family: inherit; }
.phx-portal .phxf-c__del button:hover { color: var(--phx-err); }
.phxf-comments__form { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 0; }
.phx-portal .phxf-comments__form textarea { min-height: 38px; max-height: 160px; resize: none; padding: 8px 12px; border-radius: 18px; font-size: 15px; line-height: 1.35; overflow: hidden; }
.phx-portal .phxf-comments__send { background: none; border: 0; color: var(--phx-accent); font-weight: 700; font-size: 14px; padding: 9px 4px; cursor: pointer; font-family: inherit; }
.phx-portal .phxf-comments__send:hover { text-decoration: underline; }
.phxf-item:target { border-color: var(--phx-accent); }

@media (max-width: 640px) {
	.phxf-upcoming__row { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.phxf-upcoming__row::-webkit-scrollbar { display: none; }
	.phx-portal a.phxf-event { flex: 0 0 72%; }
	.phxf-item { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; }
	.phx-portal .phxf-item__avatar img { width: 40px !important; height: 40px !important; }
	.phxf-thumbs { gap: 4px; }
	.phxf-prompt .phx-btn { width: 100%; }
}
.phxf-back { margin: 0 0 12px; }
