.home-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(300px, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  width: min(100%, 1400px);
  margin-inline: auto;
  align-items: start;
}
.home-feed,
.feed-stream {
  width: min(100%, 800px);
  min-width: 0;
}
.home-feed .section-heading h1 { margin-bottom: 0; }
.home-current-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.home-current-content .plugin-grid { grid-template-columns: 1fr; }
.feed-list { display: grid; gap: 18px; }
.feed-post { overflow: hidden; }
.feed-post h2 { margin-bottom: 0; }
.feed-post-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 5px;
  margin-bottom: 18px;
}
.feed-post-header > .feed-author-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.feed-post-author-name {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
}
.feed-post-header > .feed-post-header-meta {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.feed-post-heading {
  grid-column: 2 / -1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.feed-post-header-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}
.feed-post-header time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.feed-post-body {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.feed-images {
  display: flex;
  width: calc(100% + 2 * clamp(18px, 2.2vw, 30px));
  height: clamp(190px, 31vw, 360px);
  margin: 22px calc(-1 * clamp(18px, 2.2vw, 30px)) 0;
  gap: 3px;
  overflow: hidden;
  background: rgba(0,0,0,.18);
}
.feed-image {
  display: block;
  flex: var(--image-ratio) 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
}
.feed-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.feed-image:hover img { transform: scale(1.02); }
.media-picker{margin:12px 0}.media-picker summary{cursor:pointer;color:var(--accent)}.media-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.media-picker-grid label{display:grid;gap:5px;margin:0;padding:6px;border:1px solid var(--border);border-radius:8px}.media-picker-grid input{position:absolute;opacity:0}.media-picker-grid label:has(input:checked){border-color:var(--accent);background:rgba(101,168,255,.12)}.media-picker-grid img{width:100%;height:75px;object-fit:cover;border-radius:6px}.media-picker-grid span{font-size:11px;overflow-wrap:anywhere}
.feed-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.feed-post-targets {
  position: relative;
  display: flex;
  min-width: 0;
  line-height: 1.45;
}
.feed-post-targets-label {
  flex: 0 0 auto;
  margin-right: .35em;
  color: var(--muted);
}
.feed-post-targets-list {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.feed-post-targets.is-overflowing .feed-post-targets-list {
  padding-right: 76px;
}
.feed-post-targets-more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 1.8em;
  background: linear-gradient(90deg, transparent, var(--surface) 24%);
  white-space: nowrap;
}
.feed-post-targets-more button {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed-targets-full-list {
  margin: 20px 0 0;
  padding-left: 22px;
}
.feed-targets-full-list li + li {
  margin-top: 8px;
}
.feed-targets-dialog {
  width: min(620px, 100%);
}
.feed-target-filter {
  color: #9fcaff;
  text-decoration: underline;
  text-decoration-color: rgba(159, 202, 255, .45);
  text-underline-offset: 3px;
}
.feed-target-filter:hover,
.feed-target-filter:focus-visible {
  color: #d8eaff;
  text-decoration-color: currentColor;
}
@media (max-width: 650px) {
  .feed-post-meta { align-items: flex-start; }
  .feed-post-targets { flex: 1 1 auto; }
}
.feed-active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid rgba(101,168,255,.35);
  border-radius: 10px;
  background: rgba(101,168,255,.1);
  color: var(--muted);
  font-size: 14px;
}
.feed-active-filter strong {
  color: var(--text);
}
.feed-active-filter a {
  flex: 0 0 auto;
}
.feed-post-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.feed-post-actions a,
.feed-post-actions button {
  font-size: 13px;
}
.feed-delete { color: var(--danger); }
.feed-management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 800px);
  justify-content: center;
  gap: 28px;
  align-items: start;
}
.feed-composer { position: sticky; top: 96px; }
.feed-target-section {
  min-width: 0;
  margin: 22px 0;
  padding: 18px;
  border: 2px solid color-mix(in srgb, var(--accent) 62%, var(--border));
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), color-mix(in srgb, var(--accent) 5%, var(--surface)));
  box-shadow: 0 14px 34px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.05);
}
.feed-target-section legend {
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 850;
}
.feed-target-section > label {
  margin-top: 0;
  font-weight: 750;
}
.feed-target-control {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.feed-target-control input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  border-radius: 12px 0 0 12px;
}
.feed-target-control button {
  flex: 0 0 auto;
  margin: 0;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  white-space: nowrap;
}
.feed-target-control .feed-target-add {
  padding-inline: 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--button-text);
  font-weight: 850;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feed-target-control .feed-target-add:hover,
.feed-target-control .feed-target-add:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 42%, transparent);
}
.feed-target-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.feed-target-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #77aee8;
  border-radius: 999px;
  background: #d9ebff;
  color: #172033;
  font-size: 13px;
}
.feed-target-remove {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  color: #172033;
  line-height: 1;
}
.feed-existing-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feed-existing-images legend {
  color: var(--muted);
  font-size: 14px;
}
.feed-existing-images label { margin: 0; }
.feed-existing-images img {
  display: block;
  width: 100%;
  height: 80px;
  border-radius: 7px;
  object-fit: cover;
}
.feed-existing-images span {
  display: block;
  margin-top: 6px;
}
.feed-load-sentinel {
  min-height: 72px;
  display: grid;
  place-items: center;
  text-align: center;
}

body.feed-lightbox-open {
  overflow: hidden;
}
.feed-lightbox[hidden] {
  display: none;
}
.feed-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(5, 10, 18, .62);
}
.feed-lightbox-content {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}
.feed-lightbox-image {
  display: block;
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.feed-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.feed-lightbox-close:hover,
.feed-lightbox-close:focus-visible {
  background: rgba(0, 0, 0, .88);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .home-feed-layout,
  .feed-management-grid { grid-template-columns: 1fr; }
  .home-feed,
  .feed-stream { margin-inline: auto; }
  .home-current-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 22px;
  }
  .home-current-content .plugin-space { margin-top: 0; }
  .feed-composer {
    position: static;
    width: min(100%, 800px);
    margin-inline: auto;
  }
}
@media (max-width: 800px) {
  .home-current-content { grid-template-columns: 1fr; }
  .home-current-content .plugin-space { margin-top: clamp(28px, 4vw, 52px); }
  .feed-post-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .feed-post-header-meta {
    width: 100%;
    justify-content: space-between;
  }
  .feed-post-meta {
    align-items: center;
    gap: 12px;
  }
  .feed-images { height: clamp(170px, 55vw, 300px); }
}
@media (max-width: 600px) {
  .feed-lightbox {
    padding: 12px;
  }
  .feed-lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

.feed-rating {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.feed-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 153, 255, .72);
  border-radius: 8px;
  background: rgba(0, 153, 255, .13);
  color: #0099ff;
  line-height: 1;
}
.feed-rating-summary:hover,
.feed-rating-summary:focus-visible {
  border-color: rgba(72, 163, 255, .72);
  background: rgba(72, 163, 255, .12);
  color: #a8d1ff;
}
.feed-rating.is-rated .feed-rating-summary {
  border-color: rgba(0, 153, 255, .72);
  background: rgba(0, 153, 255, .13);
  color: #0099ff;
}
.feed-rating-icon {
  font-size: 21px;
  line-height: 1;
}
.feed-rating-average {
  min-width: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.feed-rating-panel {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 218px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface, #17202b);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}
.feed-rating-panel[hidden] {
  display: none;
}
.feed-rating-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.feed-rating-stars {
  display: flex;
  gap: 3px;
}
.feed-rating-star {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #617d9a;
  font-size: 28px;
  line-height: 1;
}
.feed-rating-star:hover,
.feed-rating-star:focus-visible,
.feed-rating-star.is-selected {
  color: #0099ff;
  background: transparent;
}
.feed-rating-star:disabled {
  opacity: .55;
  cursor: wait;
}
.feed-rating-count {
  color: var(--muted);
}

.feed-post-author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.feed-author-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(101,168,255,.16);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}
.feed-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-author-name {
  color: inherit;
  text-decoration: none;
}
.feed-author-name:hover,
.feed-author-name:focus-visible { color: var(--accent-strong); }

.feed-post-engagement {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.feed-post-engagement .feed-rating { margin-left: 0; }

@media (hover: hover) {
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip] {
    position: relative;
  }
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]::before,
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]::after {
    position: absolute;
    z-index: 120;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .14s ease, transform .14s ease;
  }
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]::before {
    content: "";
    bottom: calc(100% + 3px);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: var(--text);
    transform: translate(-50%, 3px);
  }
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 13px);
    width: max-content;
    max-width: min(260px, 75vw);
    padding: 7px 9px;
    border-radius: 7px;
    background: var(--text);
    color: var(--surface, #17202b);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, 3px);
  }
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]:hover::before,
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]:hover::after,
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]:focus-visible::before,
  :where(.feed-post-engagement, .feed-share-panel) [data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .feed-share-panel [data-tooltip]::before {
    left: 18px;
  }
  .feed-share-panel [data-tooltip]::after {
    left: 0;
    transform: translateY(3px);
  }
  .feed-share-panel [data-tooltip]:hover::after,
  .feed-share-panel [data-tooltip]:focus-visible::after {
    transform: translateY(0);
  }
}
.feed-comments-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 153, 255, .72);
  border-radius: 8px;
  background: rgba(0, 153, 255, .13);
  color: #0099ff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.feed-comments-toggle:hover,
.feed-comments-toggle:focus-visible,
.feed-comments-toggle[aria-expanded="true"] {
  border-color: rgba(72, 163, 255, .72);
  background: rgba(72, 163, 255, .12);
  color: #a8d1ff;
}
.feed-comments-icon { font-size: 18px; line-height: 1; }
.feed-comments {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feed-comments[hidden] { display: none; }
.feed-comments-list {
  display: grid;
  gap: 12px;
  max-height: 330px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.feed-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feed-comment-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(101,168,255,.16);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.feed-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-comment-content {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(101,168,255,.07);
}
.feed-comment-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.feed-comment-header a { color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }
.feed-comment-header time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.feed-comment-content p { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.feed-comment-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.feed-comment-form textarea { min-height: 52px; max-height: 150px; resize: vertical; }
.feed-comment-form button { flex: 0 0 auto; }
.feed-comment-error { margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.feed-comments-empty { margin: 0; }

@media (max-width: 600px) {
  .feed-post-meta { align-items: flex-start; flex-direction: column; }
  .feed-post-engagement { width: 100%; margin-left: 0; }
  .feed-rating { margin-left: 0; }
  .feed-comment-form { align-items: stretch; flex-direction: column; }
  .feed-comment-form button { align-self: flex-end; }
  .feed-comment-header { align-items: flex-start; flex-direction: column; gap: 2px; }
}

.feed-advanced-settings {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feed-advanced-settings summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.feed-advanced-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
}
.feed-advanced-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.feed-share-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid rgba(0, 153, 255, .72);
  border-radius: 8px;
  background: rgba(0, 153, 255, .13);
  color: #0099ff;
  text-decoration: none;
  font-size: 19px;
  line-height: 1;
}
.feed-share-toggle:hover,
.feed-share-toggle:focus-visible {
  border-color: rgba(72, 163, 255, .72);
  background: rgba(72, 163, 255, .12);
  color: #a8d1ff;
}
.feed-share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.feed-share-panel[hidden] { display: none; }
.feed-share-panel input {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.feed-share-panel [data-share-copy] {
  margin: 0;
  white-space: nowrap;
}
.feed-report-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0;
  padding: 5px 8px;
  min-height: 0;
  white-space: nowrap;
  font-size: .72rem;
  line-height: 1.2;
  background: transparent;
  color: var(--danger, #c01818);
  border: 1px solid currentColor;
}
.feed-report-button:hover,
.feed-report-button:focus-visible {
  background: color-mix(in srgb, var(--danger, #c01818) 12%, transparent);
}
.feed-report-button.is-reported {
  border-color: var(--success, #238636);
  color: var(--success, #238636);
}
.feed-report-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}
.feed-shared-post {
  width: min(100%, 800px);
  margin-inline: auto;
}
@media (max-width: 600px) {
  .feed-share-panel { grid-template-columns: minmax(0, 1fr) auto; }
}

.feed-comment.is-reply {
  margin-left: calc(min(var(--comment-depth), 4) * 28px);
}
.feed-comment.is-reply .feed-comment-content {
  border-left: 2px solid rgba(0, 153, 255, .35);
}
.feed-comment-reply {
  width: auto;
  min-height: 0;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0099ff;
  font-size: 12px;
  font-weight: 600;
}
.feed-comment-reply:hover,
.feed-comment-reply:focus-visible {
  background: transparent;
  color: #a8d1ff;
}
.feed-comment-replying {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 13px;
}
.feed-comment-replying[hidden] { display: none; }
.feed-comment-replying .text-button {
  width: auto;
  margin-left: 8px;
  color: #0099ff;
}
.feed-comment-form { flex-wrap: wrap; }
@media (max-width: 600px) {
  .feed-comment.is-reply {
    margin-left: calc(min(var(--comment-depth), 4) * 14px);
  }
}

.feed-pin-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 153, 255, .72);
  border-radius: 8px;
  background: rgba(0, 153, 255, .13);
  color: #0099ff;
  font-size: 21px;
  line-height: 1;
}
.feed-pin-toggle:hover,
.feed-pin-toggle:focus-visible,
.feed-pin-toggle.is-pinned {
  border-color: rgba(72, 163, 255, .85);
  background: rgba(72, 163, 255, .24);
  color: #cbe5ff;
}
.feed-pin-toggle:disabled { opacity: .55; cursor: wait; }
.pinned-posts { margin-bottom: 0; }
.pinned-posts .section-heading { margin-bottom: 14px; }
.pinned-posts-preview {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
}
.pinned-posts-preview a,
.pinned-posts-results a {
  color: var(--text);
  text-decoration: none;
}
.pinned-posts-preview a:hover,
.pinned-posts-results a:hover { color: var(--accent-strong); }
.pinned-posts-preview li { position: relative; }
.pinned-posts-preview li > a { padding-right: 38px !important; }
.pinned-post-remove {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px;
  min-height: 24px !important;
  margin: 0;
  padding: 0 !important;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.pinned-post-remove:hover,
.pinned-post-remove:focus-visible {
  background: rgba(214, 51, 108, .12);
  color: #d6336c;
}
.pinned-post-remove:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.pinned-post-remove:disabled { opacity: .45; cursor: wait; }
.pinned-posts-more { margin-top: 16px; }
.pinned-posts-more summary { cursor: pointer; color: #0099ff; font-weight: 600; }
.pinned-posts-filter {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.pinned-posts-filter label { margin: 0; }
.pinned-posts-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pinned-posts-results a {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pinned-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.pinned-pagination a {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  text-decoration: none;
}
.pinned-pagination a.is-current {
  border-color: #0099ff;
  background: rgba(0, 153, 255, .15);
  color: #cbe5ff;
}


.feed-existing-attachments {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feed-existing-attachments legend {
  color: var(--muted);
  font-size: 14px;
}
.feed-existing-attachments label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.feed-existing-attachment-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}
.feed-existing-attachments label > span:last-child {
  flex: 0 0 auto;
}
.feed-attachments {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.feed-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(101,168,255,.08);
}
.feed-attachment-icon { font-size: 19px; }
.feed-attachment-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.feed-attachment-name:hover,
.feed-attachment-name:focus-visible { color: var(--accent-strong); }
.feed-attachment-meta,
.feed-attachment-downloads {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.feed-attachment-history-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(101,168,255,.4);
  border-radius: 8px;
  color: var(--accent-strong);
  text-decoration: none;
}
.feed-attachment-history-link:hover,
.feed-attachment-history-link:focus-visible {
  border-color: rgba(101,168,255,.75);
  background: rgba(101,168,255,.14);
}
.feed-attachment-history-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.feed-attachment-history-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.feed-attachment-history-list time { color: var(--muted); white-space: nowrap; }
@media (max-width: 650px) {
  .feed-attachment { grid-template-columns: auto minmax(0, 1fr) auto; }
  .feed-attachment-meta,
  .feed-attachment-downloads { grid-column: 2; }
  .feed-attachment-history-link { grid-column: 3; grid-row: 1 / span 3; }
  .feed-attachment-history-list li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .feed-existing-attachments label { align-items: flex-start; flex-direction: column; }
}


.feed-special-content-settings {
  margin: .9rem 0;
  border: 1px solid #8bb8e8;
  border-radius: .75rem;
  background: #eaf4ff;
  color: #17324d;
}
.feed-special-content-settings > summary {
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #0f2f4f;
}
.feed-special-content-settings[open] > summary {
  border-bottom: 1px solid #b8d5f2;
  margin-bottom: .85rem;
}
.feed-special-content-options {
  display: grid;
  gap: .8rem;
  padding: 0 1rem 1rem;
  color: #17324d;
}
.feed-special-content-options label,
.feed-special-content-options .hint {
  color: #17324d;
}
.feed-special-content-options select {
  background: #fff;
  color: #172b4d;
  border-color: #719dca;
}
.feed-special-content-options select:focus {
  border-color: #1769aa;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .18);
}
.feed-special-content {
  margin: 1rem 0;
}
.feed-special-content .poll-embedded {
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border, #dfe3e8);
  box-shadow: none;
}
.feed-special-content .poll-embedded h3 {
  margin-top: .25rem;
}

.feed-vote { display: grid; gap: 12px; }
.feed-vote-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feed-vote-buttons form { margin: 0; }
.feed-vote-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border-radius: 10px; }
.feed-vote-button strong { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.feed-vote-agree { background: #217a45; border-color: #217a45; }
.feed-vote-abstain { background: #6b7280; border-color: #6b7280; }
.feed-vote-disagree { background: #a83232; border-color: #a83232; }
.feed-vote-button.is-selected { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
.feed-vote-button:disabled { cursor: default; opacity: .68; }
.feed-vote-button.is-selected:disabled { opacity: 1; }
.feed-voters-open { width: auto; justify-self: start; margin: 0; padding: 0; border: 0; background: transparent; color: var(--accent-strong); text-decoration: underline; }
.feed-voters-modal[hidden] { display: none; }
.feed-voters-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3,8,16,.76); backdrop-filter: blur(6px); }
.feed-voters-dialog { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.feed-voters-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feed-voters-dialog > header h3 { margin: 0; }
.feed-voters-dialog > header button { width: 38px; min-height: 38px; margin: 0; padding: 0; border-radius: 50%; }
.feed-voters-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.feed-voters-columns h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.feed-voters-columns ul { margin: 0; padding-left: 20px; }
@media (max-width: 650px) { .feed-vote-buttons, .feed-voters-columns { grid-template-columns: 1fr; } }

.feed-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.feed-header-actions .button {
  margin-top: 0;
}
body.feed-composer-open {
  overflow: hidden;
}
.feed-composer-modal[hidden] {
  display: none;
}
.feed-composer-modal {
  position: fixed;
  z-index: 950;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  overflow-y: auto;
  background: rgba(3, 8, 16, .76);
  backdrop-filter: blur(8px);
}
.feed-composer-dialog.feed-composer {
  position: relative;
  top: auto;
  width: min(760px, 100%);
  max-height: calc(100vh - clamp(24px, 6vw, 72px));
  overflow-y: auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}
.feed-composer-dialog-header {
  position: sticky;
  z-index: 2;
  top: calc(-1 * clamp(18px, 2.2vw, 30px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: calc(-1 * clamp(18px, 2.2vw, 30px)) calc(-1 * clamp(18px, 2.2vw, 30px)) 22px;
  padding: 18px clamp(18px, 2.2vw, 30px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.feed-composer-dialog-header h2 {
  margin: 0;
}
.feed-composer-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.feed-composer-close:hover,
.feed-composer-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.feed-stream {
  margin-inline: auto;
}
@media (max-width: 800px) {
  .feed-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* Public Feed uses the full width provided by np-main. The complete plugin
   wrapper must stretch too; otherwise an imported theme can shrink the main
   column and the sidebar together to their intrinsic content width. */
.np-content.np-context-feed,
.np-component-scope.np-context-feed,
.np-context-feed .plugin-public-main,
.np-context-feed .feed-stream {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.np-context-feed .plugin-public-layout-feed {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  gap: clamp(12px, 1.5vw, 22px);
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  align-items: start;
}

.np-context-feed .feed-stream {
  margin-inline: 0 !important;
}

@media (max-width: 900px) {
  .np-context-feed .plugin-public-layout-feed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.feed-post-body-collapsible [hidden] {
  display: none;
}

.feed-post .feed-text-toggle {
  width: auto !important;
  min-height: 0 !important;
  display: inline !important;
  margin: 0 0 0 .2em !important;
  padding: 0 !important;
  vertical-align: baseline;
  border: 0 !important;
  background: transparent !important;
  color: var(--accent-strong, #0f4f85) !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed-post .feed-text-toggle:hover,
.feed-post .feed-text-toggle:focus-visible {
  background: transparent !important;
  color: var(--accent, #1769aa) !important;
}

.public-main.public-feed-content {
  padding-block: clamp(1rem, 2.5vw, 2.5rem);
}

.feed-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.feed-page-heading h1 {
  margin: 0;
}

.feed-compose-button {
  flex: 0 0 auto;
  margin: 0;
}

/* Rating details stay hidden until the compact rating control is opened. */
.feed-rating-modal .feed-rating-dialog {
  width: min(580px, 100%);
}
.feed-rating-popup-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(101,168,255,.08);
}
.feed-rating-popup-summary strong {
  color: var(--text);
  font-size: 22px;
}
.feed-rating-own {
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.feed-rating-details {
  margin-top: 18px;
}
.feed-rating-details-empty {
  margin: 0;
}
.feed-rating-details-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed-rating-details-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.feed-rating-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.feed-rating-user strong {
  overflow-wrap: anywhere;
}
.feed-rating-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(101,168,255,.16);
  color: var(--accent-strong);
  font-weight: 800;
}
.feed-rating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-rating-detail-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #0099ff;
  font-size: 18px;
  letter-spacing: 1px;
}
.feed-rating-detail-value small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}
.feed-rating-detail-empty {
  color: #617d9a;
}
.feed-rating-error {
  margin: 0;
  color: var(--danger);
}
@media (max-width: 520px) {
  .feed-rating-popup-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .feed-rating-details-list li {
    align-items: flex-start;
    flex-direction: column;
  }
  .feed-rating-detail-value {
    padding-left: 48px;
  }
}



.feed-body-link {
  color: var(--accent-strong);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.feed-link-preview {
  margin: 1rem 0;
}

.feed-link-preview-remove {
  width: auto;
  min-height: 0;
  margin: .55rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .85rem;
}

.feed-link-preview-remove:hover,
.feed-link-preview-remove:focus-visible {
  color: var(--danger, #c01818);
}

.feed-link-preview-option {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.feed-link-preview[hidden] {
  display: none;
}

.feed-link-preview-loading {
  display: block;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #cfd8e6;
  border-radius: 14px;
  background: #f7faff;
  box-shadow: none;
  color: var(--muted);
  text-decoration: none;
}

.feed-link-preview-card {
  display: grid;
  grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #cfd8e6;
  border-radius: 14px;
  background: #f7faff;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.feed-link-preview-card:hover,
.feed-link-preview-card:focus-visible {
  border-color: var(--accent);
  background: #f3f7fd;
  box-shadow: none;
  transform: none;
}

.feed-link-preview-card-no-image {
  grid-template-columns: minmax(0, 1fr);
}

.feed-link-preview-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
}

.feed-link-preview-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  padding: 0;
}

.feed-link-preview-site {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-link-preview-title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.feed-link-preview-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feed-link-preview-url {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .feed-link-preview-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .feed-link-preview-image {
    max-height: 220px;
  }
}

/* Listování mezi fotografiemi jednoho příspěvku ve Feed lightboxu */
.feed-lightbox-nav{position:absolute;z-index:1;top:50%;display:grid;width:48px;height:64px;margin:0;padding:0;place-items:center;border:1px solid rgba(255,255,255,.5);border-radius:12px;background:rgba(0,0,0,.66);color:#fff;font-size:44px;line-height:1;transform:translateY(-50%);cursor:pointer}
.feed-lightbox-prev{left:10px}
.feed-lightbox-next{right:10px}
.feed-lightbox-nav:hover,.feed-lightbox-nav:focus-visible{background:rgba(0,0,0,.88);outline:2px solid #fff;outline-offset:2px}
.feed-lightbox-nav[hidden],.feed-lightbox-counter[hidden]{display:none}
.feed-lightbox-counter{position:absolute;z-index:1;bottom:10px;left:50%;padding:6px 11px;border-radius:999px;background:rgba(0,0,0,.68);color:#fff;font-size:.85rem;font-weight:700;transform:translateX(-50%)}
@media(max-width:600px){.feed-lightbox-nav{width:42px;height:56px}.feed-lightbox-prev{left:6px}.feed-lightbox-next{right:6px}}

@media (max-width: 600px) {
  .feed-post-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .feed-post-header > .feed-post-header-meta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .feed-post-heading {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 4px;
  }
}
