.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;
}

.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-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);
}

@media (max-width: 520px) {
  .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;
  }
}