.loved-scents-feed-page,
.for-loved-page {
 --feed-border: color-mix(in srgb, var(--border) 85%, transparent);
}

.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}

.loved-scents-shell,
.for-loved-shell {
 max-width: 600px;
 margin: 0 auto;
 padding: 0 1rem 4rem;
}

.feed-policy-gate {
 margin: 1rem 0;
 padding: 1.15rem;
 border-radius: 16px;
 border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
 background: var(--accent-soft);
 text-align: center;
}

.feed-policy-gate h2 {
 margin: 0 0 0.35rem;
 font-size: 1.1rem;
}

.feed-policy-gate .btn {
 margin: 0.35rem;
}

.loved-scents-top,
.for-loved-top {
 padding: 1.25rem 0 0.5rem;
 border-bottom: 1px solid var(--feed-border);
}

.loved-scents-top h1,
.for-loved-top h1 {
 margin: 0 0 0.35rem;
 font-family: "Playfair Display", Georgia, serif;
 font-size: clamp(1.45rem, 4vw, 1.85rem);
 letter-spacing: -0.02em;
}

.loved-scents-top p,
.for-loved-top p {
 margin: 0;
 font-size: 0.92rem;
}

.feed-tabs {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 0;
 margin: 0;
 border-bottom: 1px solid var(--feed-border);
}

.feed-tab {
 border: none;
 border-bottom: 2px solid transparent;
 background: transparent;
 border-radius: 0;
 padding: 0.9rem 0.5rem;
 font: inherit;
 font-weight: 600;
 font-size: 0.9rem;
 cursor: pointer;
 color: var(--muted);
 min-height: 2.75rem;
 transition: color 0.15s ease, border-color 0.15s ease;
}

.feed-tab:hover {
 color: var(--text);
 background: color-mix(in srgb, var(--text) 4%, transparent);
}

.feed-tab.is-active {
 color: var(--text);
 border-bottom-color: var(--accent);
 background: transparent;
}

.feed-compose {
 border-bottom: 1px solid var(--feed-border);
 padding: 1rem 0 1.1rem;
}

.feed-compose-form textarea {
 width: 100%;
 border: none;
 border-radius: 0;
 padding: 0.25rem 0;
 font: inherit;
 font-size: 1.05rem;
 resize: none;
 min-height: 4.5rem;
 background: transparent;
 color: var(--text);
}

.feed-compose-form textarea:focus {
 outline: none;
}

.feed-compose-form textarea::placeholder {
 color: color-mix(in srgb, var(--muted) 90%, transparent);
}

.feed-compose-footer {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
 margin-top: 0.65rem;
}

.feed-compose-tools {
 display: flex;
 gap: 0.35rem;
}

.feed-tool-btn {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 padding: 0.45rem 0.85rem;
 border-radius: 999px;
 border: 1px solid var(--feed-border);
 background: color-mix(in srgb, var(--surface) 70%, transparent);
 font-size: 0.82rem;
 font-weight: 600;
 color: var(--text);
 cursor: pointer;
 transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.feed-tool-btn:hover {
 border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
 background: color-mix(in srgb, var(--accent) 10%, var(--surface));
 color: var(--accent);
}

.feed-tool-icon {
 display: inline-flex;
 color: var(--accent);
}

.feed-tool-icon .feed-svg {
 width: 1.05rem;
 height: 1.05rem;
}

.feed-share-btn {
 min-width: 5.5rem;
 border-radius: 999px;
}

.feed-compose-post {
 display: flex;
 align-items: center;
 gap: 0.65rem;
}

.feed-char-count {
 font-size: 0.8rem;
 color: var(--muted);
}

.feed-char-count.is-over {
 color: #e8a87c;
 font-weight: 700;
}

.feed-policy-check {
 display: flex;
 align-items: flex-start;
 gap: 0.55rem;
 margin: 0.85rem 0 0;
 font-size: 0.8rem;
 line-height: 1.45;
 color: var(--muted);
 cursor: pointer;
}

.feed-policy-check input {
 margin-top: 0.15rem;
 flex-shrink: 0;
}

.feed-policy-note {
 margin: 0.45rem 0 0;
 font-size: 0.78rem;
}

.feed-policy-note a {
 color: var(--accent);
}

.feed-compose-status {
 margin: 0.55rem 0 0;
 font-size: 0.85rem;
}

.feed-compose-status.feed-status--error {
 color: #e8a87c;
}

.feed-media-preview {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
 margin-top: 0.65rem;
}

.feed-preview-thumb {
 position: relative;
 margin: 0;
 width: 88px;
 height: 88px;
 border-radius: 12px;
 overflow: hidden;
 border: 1px solid var(--feed-border);
}

.feed-preview-thumb img,
.feed-preview-thumb video {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}

.feed-preview-thumb--video {
 width: 120px;
}

.feed-preview-badge {
 position: absolute;
 left: 0.35rem;
 bottom: 0.35rem;
 font-size: 0.65rem;
 font-weight: 700;
 padding: 0.15rem 0.4rem;
 border-radius: 999px;
 background: rgba(0, 0, 0, 0.65);
 color: #fff;
}

.feed-preview-remove {
 position: absolute;
 top: 3px;
 right: 3px;
 width: 1.35rem;
 height: 1.35rem;
 border: none;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.7);
 color: #fff;
 cursor: pointer;
 font-size: 1rem;
 line-height: 1;
}

.feed-timeline {
 padding-top: 0.35rem;
}

.feed-list {
 display: flex;
 flex-direction: column;
}

.feed-card {
 padding: 0.95rem 0;
 border-bottom: 1px solid var(--feed-border);
 background: transparent;
 border-radius: 0.5rem;
 transition: background 0.35s ease, box-shadow 0.35s ease;
}

.feed-card--highlight {
 background: color-mix(in srgb, var(--accent) 12%, transparent);
 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
 border-radius: 0;
}

.feed-card-head {
 display: flex;
 gap: 0.7rem;
 align-items: flex-start;
 position: relative;
}

.feed-delete-btn {
 margin-left: auto;
 flex-shrink: 0;
 border: none;
 background: transparent;
 border-radius: 999px;
 width: 2.15rem;
 height: 2.15rem;
 display: inline-grid;
 place-items: center;
 color: var(--muted);
 cursor: pointer;
 transition: color 0.15s ease, background 0.15s ease;
}

.feed-delete-btn:hover {
 color: #e8a87c;
 background: color-mix(in srgb, #e8a87c 12%, transparent);
}

.feed-delete-btn .feed-svg {
 width: 1rem;
 height: 1rem;
}

.feed-delete-btn--admin {
 color: #b71c1c;
 background: color-mix(in srgb, #b71c1c 10%, transparent);
}

.feed-delete-btn--admin:hover {
 color: #fff;
 background: #b71c1c;
}

.feed-admin-banner {
 margin: 0 0 1rem;
 padding: 0.75rem 1rem;
 border-radius: 12px;
 border: 1px solid color-mix(in srgb, #b71c1c 28%, var(--border));
 background: color-mix(in srgb, #b71c1c 8%, var(--surface));
 font-size: 0.88rem;
 color: var(--muted);
}

.feed-admin-banner a {
 font-weight: 700;
}

.feed-avatar {
 width: 2.65rem;
 height: 2.65rem;
 border-radius: 50%;
 background: var(--accent-soft);
 display: grid;
 place-items: center;
 font-weight: 800;
 overflow: hidden;
 flex-shrink: 0;
 text-decoration: none;
 color: var(--accent);
}

.feed-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.feed-card-meta {
 min-width: 0;
 flex: 1;
}

.feed-card-meta-top {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 0.2rem 0.35rem;
}

.feed-author-name {
 font-weight: 700;
 color: var(--text);
 text-decoration: none;
 font-size: 0.95rem;
}

.feed-author-name:hover {
 text-decoration: underline;
}

.feed-author-handle,
.feed-time,
.feed-meta-dot {
 font-size: 0.82rem;
 color: var(--muted);
}

.feed-card-type {
 display: inline-block;
 margin-top: 0.15rem;
 font-size: 0.72rem;
 color: var(--accent);
 font-weight: 600;
}

.feed-card-content {
 margin-left: calc(2.65rem + 0.7rem);
}

.feed-body {
 margin: 0.35rem 0 0;
 line-height: 1.55;
 white-space: pre-wrap;
 word-break: break-word;
 font-size: 0.98rem;
}

.feed-rescent-quote {
 margin: 0.35rem 0 0;
 padding: 0.6rem 0.75rem;
 border: 1px solid var(--feed-border);
 border-radius: 12px;
 background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.feed-rescent-quote p {
 margin: 0.3rem 0 0;
 color: var(--muted);
 font-size: 0.9rem;
}

.feed-rescent-label {
 font-size: 0.75rem;
 font-weight: 700;
 color: var(--accent);
}

.feed-media {
 display: grid;
 gap: 0.35rem;
 margin-top: 0.65rem;
 border-radius: 14px;
 overflow: hidden;
 border: 1px solid var(--feed-border);
}

.feed-media--video video {
 width: 100%;
 max-height: 420px;
 display: block;
 background: #000;
}

.feed-media--single img {
 width: 100%;
 max-height: 420px;
 object-fit: cover;
}

.feed-media--duo {
 grid-template-columns: 1fr 1fr;
}

.feed-media--grid {
 grid-template-columns: repeat(2, 1fr);
}

.feed-media img {
 width: 100%;
 aspect-ratio: 1;
 object-fit: cover;
 display: block;
}

.feed-card-actions {
 display: flex;
 align-items: center;
 gap: 0.15rem;
 margin-top: 0.55rem;
 margin-left: calc(2.65rem + 0.7rem);
 max-width: 18rem;
}

.feed-comments {
 margin-top: 0.65rem;
 margin-left: calc(2.65rem + 0.7rem);
 padding-top: 0.65rem;
 border-top: 1px solid var(--feed-border);
}

.feed-comments-list {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 margin-bottom: 0.75rem;
}

.feed-comments-empty {
 margin: 0 0 0.75rem;
 font-size: 0.85rem;
}

.feed-comment {
 display: flex;
 gap: 0.55rem;
 align-items: flex-start;
}

.feed-comment-avatar {
 width: 1.85rem;
 height: 1.85rem;
 border-radius: 50%;
 background: var(--accent-soft);
 display: grid;
 place-items: center;
 font-weight: 700;
 font-size: 0.75rem;
 overflow: hidden;
 flex-shrink: 0;
 text-decoration: none;
 color: var(--accent);
}

.feed-comment-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.feed-comment-body {
 min-width: 0;
 flex: 1;
}

.feed-comment-meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.25rem 0.45rem;
 margin-bottom: 0.15rem;
}

.feed-comment-author {
 font-weight: 700;
 font-size: 0.82rem;
 color: var(--text);
 text-decoration: none;
}

.feed-comment-meta time {
 font-size: 0.75rem;
 color: var(--muted);
}

.feed-comment-delete {
 margin-left: auto;
 border: none;
 background: transparent;
 border-radius: 999px;
 width: 1.65rem;
 height: 1.65rem;
 display: inline-grid;
 place-items: center;
 color: var(--muted);
 cursor: pointer;
}

.feed-comment-delete:hover {
 color: #e8a87c;
 background: color-mix(in srgb, #e8a87c 10%, transparent);
}

.feed-comment-delete .feed-svg {
 width: 0.85rem;
 height: 0.85rem;
}

.feed-comment-body p {
 margin: 0;
 font-size: 0.9rem;
 line-height: 1.45;
 white-space: pre-wrap;
 word-break: break-word;
}

.feed-comment-form {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}

.feed-comment-form textarea {
 width: 100%;
 border: 1px solid var(--feed-border);
 border-radius: 12px;
 padding: 0.6rem 0.75rem;
 font: inherit;
 font-size: 0.9rem;
 resize: vertical;
 min-height: 2.75rem;
 background: color-mix(in srgb, var(--surface) 80%, transparent);
 color: var(--text);
}

.feed-comment-form textarea:focus {
 outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
 outline-offset: 1px;
}

.feed-comment-form .btn {
 align-self: flex-end;
 border-radius: 999px;
}

.feed-action-btn {
 border: none;
 background: transparent;
 border-radius: 999px;
 padding: 0.45rem 0.55rem;
 font: inherit;
 cursor: pointer;
 color: var(--muted);
 display: inline-flex;
 align-items: center;
 gap: 0.2rem;
 min-width: 2.5rem;
 min-height: 2.5rem;
 justify-content: center;
 transition: color 0.15s ease, background 0.15s ease;
}

.feed-action-btn:hover {
 color: var(--accent);
 background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.feed-action-btn.is-active {
 color: var(--accent);
}

.feed-svg {
 display: block;
 flex-shrink: 0;
}

.feed-action-icon {
 display: inline-flex;
 line-height: 0;
}

.feed-action-count {
 font-size: 0.72rem;
 font-weight: 700;
 min-width: 0.65rem;
 text-align: left;
}

.feed-load-more {
 width: 100%;
 margin-top: 1rem;
 border-radius: 999px;
}

.feed-brag-card {
 margin-top: 0.65rem;
 border: 1px solid var(--feed-border);
 border-radius: 16px;
 padding: 1rem 1.05rem;
 background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.feed-brag-card--purchase,
.feed-brag-card--sale {
 display: grid;
 grid-template-columns: 88px 1fr;
 gap: 0.85rem;
 align-items: center;
}

.feed-brag-photo {
 width: 88px;
 height: 88px;
 border-radius: 12px;
 object-fit: cover;
 border: 1px solid var(--feed-border);
}

.feed-brag-eyebrow {
 margin: 0 0 0.25rem;
 font-size: 0.72rem;
 font-weight: 700;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: var(--accent);
}

.feed-brag-stat {
 margin: 0;
 font-family: "Playfair Display", Georgia, serif;
 font-size: clamp(1.65rem, 5vw, 2.1rem);
 font-weight: 700;
 letter-spacing: -0.02em;
 color: var(--text);
}

.feed-brag-stat-sm {
 margin: 0.2rem 0 0;
 font-size: 1rem;
 font-weight: 700;
 color: var(--text);
}

.feed-brag-title {
 margin: 0;
 font-size: 1rem;
 font-weight: 700;
 line-height: 1.35;
}

.feed-brag-sub {
 margin: 0.2rem 0 0;
 font-size: 0.88rem;
 color: var(--muted);
}

.feed-brag-details {
 display: flex;
 flex-wrap: wrap;
 gap: 0.35rem 0.75rem;
 margin-top: 0.55rem;
 font-size: 0.82rem;
}

.feed-brag-change--up {
 color: #7cb87c;
 font-weight: 700;
}

.feed-brag-change--down {
 color: #e8a87c;
 font-weight: 700;
}

.feed-brag-change--flat {
 color: var(--muted);
}

.feed-tabs--four {
 grid-template-columns: repeat(4, 1fr);
}

.feed-tabs--four .feed-tab {
 font-size: 0.82rem;
 padding-inline: 0.35rem;
}

.feed-influencers {
 padding: 1rem 0 2rem;
 border-bottom: 1px solid var(--feed-border);
}

.feed-influencer-intro {
 margin-bottom: 1rem;
}

.feed-influencer-intro h2 {
 margin: 0.2rem 0 0.35rem;
 font-family: "Playfair Display", Georgia, serif;
 font-size: 1.35rem;
}

.feed-influencer-join,
.feed-influencer-manage {
 margin-bottom: 1.25rem;
 max-width: none;
}

.feed-influencer-join label,
.feed-influencer-join textarea,
.feed-influencer-join input {
 display: block;
 width: 100%;
 margin-top: 0.65rem;
}

.feed-influencer-policies {
 margin-top: 1rem;
 padding-top: 0.75rem;
 border-top: 1px solid var(--feed-border);
}

.feed-influencer-policies-title {
 margin: 0 0 0.5rem;
 font-size: 0.88rem;
 font-weight: 600;
}

.feed-influencer-shields {
 margin: 0.75rem 0 0;
 padding-left: 1.1rem;
 font-size: 0.9rem;
 color: var(--muted);
}

.feed-influencer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
 gap: 1rem;
}

.feed-influencer-card {
 position: relative;
 border: 1px solid var(--feed-border);
 border-radius: 14px;
 overflow: hidden;
 background: var(--card, #fff);
}

.feed-influencer-card-top {
 height: 3.5rem;
 background: linear-gradient(135deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 35%, var(--card-bg)));
}

.feed-influencer-card-link {
 display: block;
 color: inherit;
 text-decoration: none;
}

.feed-influencer-card-body {
 padding: 0 1rem 0.85rem;
 margin-top: -1.6rem;
}

.feed-influencer-avatar {
 width: 3rem;
 height: 3rem;
 border-radius: 50%;
 border: 2px solid var(--card-bg, #fff);
 background: var(--card-bg, #fff);
 display: grid;
 place-items: center;
 font-weight: 700;
 overflow: hidden;
}

.feed-influencer-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.feed-influencer-card h3 {
 margin: 0.55rem 0 0.1rem;
 font-size: 1rem;
}

.feed-influencer-handle {
 margin: 0;
 font-size: 0.82rem;
 color: var(--muted);
}

.feed-influencer-pitch {
 margin: 0.45rem 0 0;
 font-size: 0.88rem;
 line-height: 1.4;
}

.feed-influencer-shop {
 margin: 0 1rem 1rem;
 width: calc(100% - 2rem);
 text-align: center;
}

.feed-influencer-badge {
 position: absolute;
 top: 0.55rem;
 right: 0.55rem;
 font-size: 0.68rem;
 font-weight: 600;
 letter-spacing: 0.02em;
 text-transform: uppercase;
 color: var(--accent);
 background: color-mix(in srgb, var(--accent) 10%, transparent);
 padding: 0.2rem 0.45rem;
 border-radius: 999px;
}

@media (max-width: 520px) {
 .feed-tabs--four {
  grid-template-columns: repeat(2, 1fr);
 }

 .feed-card-content,
 .feed-card-actions,
 .feed-comments {
  margin-left: 0;
 }

 .feed-card-actions {
  max-width: none;
 }

 .feed-brag-card--purchase,
 .feed-brag-card--sale {
  grid-template-columns: 1fr;
 }

 .feed-brag-photo {
  width: 100%;
  height: 160px;
 }
}