.post-link,
.decision-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 730;
}

.post-link {
  max-width: 100%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post-link:hover { background: #d7ebdf; }
.post-link svg,
.decision-tag svg { width: 13px; height: 13px; }

.decision-tag {
  color: var(--yes);
  background: var(--yes-soft);
  white-space: nowrap;
}

.decision-tag[data-decision='passed'] {
  color: var(--no);
  background: var(--no-soft);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.post-actions .comments-trigger { min-width: 0; justify-content: flex-start; }
.post-actions .comment-count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-action {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
}

.post-action svg { width: 18px; height: 18px; }
.post-action:hover { background: var(--accent-soft); color: var(--accent-deep); }
.post-action:focus-visible { outline-offset: -2px; }
.post-footer .total-votes { white-space: nowrap; }

.topbar .notification-action {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
}

.topbar .notification-action:hover { background: var(--accent-soft); color: var(--accent-deep); }
.topbar .notification-action svg { width: 21px; height: 21px; }

.notification-count {
  position: absolute;
  inset: 2px 2px auto auto;
  min-width: 16px;
  min-height: 16px;
  padding: 1px 4px;
  border: 1px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--no);
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.notifications-list { display: grid; gap: 8px; }
.notifications-list:empty { display: none; }

.notification-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  text-align: start;
  overflow-wrap: anywhere;
}

.notification-item[data-unread='true'] {
  border-color: #d3e7da;
  background: var(--yes-soft);
  box-shadow: inset 3px 0 var(--accent);
}

.notification-item:hover { border-color: #bad9c4; background: var(--accent-soft); }
.notification-meta { display: block; font-size: 13px; line-height: 1.4; }
.notification-meta strong { font-weight: 800; }
.notification-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.notification-time { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.notification-more:not([hidden]) { margin-top: 12px; }
.notifications-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.notifications-status:empty { display: none; }
.notified-comment {
  padding: 8px 6px;
  border-radius: 9px;
  background: var(--accent-soft);
}

.decision-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.decision-form .button { min-width: 0; min-height: 44px; }
.decision-form [aria-pressed='true'] { border-color: #bad9c4; background: var(--yes-soft); color: var(--yes); }
.decision-form [data-decision='passed'][aria-pressed='true'] { border-color: #f3d4d8; background: var(--no-soft); color: var(--no); }
.decision-form :is(.decision-clear, [data-decision=''], .form-message) { grid-column: 1 / -1; }

.share-link {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  text-overflow: ellipsis;
}

.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-actions > .button { flex: 1 1 120px; min-height: 44px; }

.vote-result {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 4px 2px 7px;
  border: 1px solid #d3e7da;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.vote-result-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
}

.vote-result-icon svg { width: 13px; height: 13px; }
.vote-result-summary {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-result-comments {
  flex: none;
  min-height: 34px;
  padding-inline: 8px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.vote-result-comments:hover { background: var(--white); }
.vote-result-comments:focus-visible { outline-offset: -2px; }
.vote-indicator { display: none; }

.is-post-view :is(.feed-intro, .feed-nav, .category-rail) { display: none; }
.is-post-view .post-image { aspect-ratio: 16 / 10; max-height: 510px; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: 0 0 9px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--accent-deep);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.post-back:hover { background: var(--accent-soft); }
.post-back svg { width: 16px; height: 16px; }

@media (min-width: 901px) {
  .layout.is-post-view { grid-template-areas: 'nav main aside'; grid-template-rows: auto; }
}

@media (min-width: 651px) and (max-width: 900px) {
  .layout.is-post-view { grid-template-areas: 'nav main'; grid-template-rows: auto; }
}

@media (max-width: 650px) {
  .is-post-view .post-image { aspect-ratio: 4 / 3; }

  .vote-result { display: none; }
  .vote-indicator {
    position: absolute;
    inset: 3px 2px auto auto;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    background: var(--accent);
    pointer-events: none;
  }
  .vote-indicator svg { width: 11px; height: 11px; stroke-width: 2.5; }
}

@media (max-width: 450px) {
  .topbar .preview-indicator { display: none; }
}

@media (max-width: 650px) and (min-height: 440px) {
  .is-swipe-feed .post-footer:has(.post-actions) { grid-template-columns: minmax(0, 1fr) auto auto; }
}

@media (max-width: 355px) {
  .topbar .notification-action { width: 40px; }
  .post-action { width: 40px; }
  .is-swipe-feed .post-footer:has(.post-actions) { gap: 5px; }
  .is-swipe-feed .post-footer:has(.post-actions) .next-trigger { font-size: 0; }
  .is-swipe-feed .post-footer:has(.post-actions) .next-trigger svg { width: 18px; }
}

.post-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3px;
  margin-inline-end: -5px;
}

.content-actions .button { justify-content: flex-start; }
.content-actions .modal-copy,
.content-report .modal-copy { overflow-wrap: anywhere; }
.content-danger { color: var(--no); }
.content-danger:hover { border-color: #e7b8b5; background: var(--no-soft); }
.button-danger { color: var(--white); background: var(--no); }
.button-danger:hover { filter: brightness(1.1); }

.comment-copy {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.comment-heading { display: contents; }
.comment-heading > div { grid-area: 1 / 1; }
.comment-copy > p { grid-area: 2 / 1; }
.comment-options { grid-area: 1 / 2 / span 2; margin-block-start: -5px; }
.comment-feedback,
.comment-panel { grid-column: 1 / -1; margin-block-start: 9px; }
.comment-feedback { color: var(--accent-deep); font-size: 12px; }
.comment-feedback:empty,
.moderation-list:empty { display: none; }

.comment-panel {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.comment-panel-actions,
.comment-panel .form-secondary,
.moderation-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.comment-panel .modal-copy { padding: 0; }
.comment-panel .button { padding-inline: 10px; }
.moderator-link { margin-block-start: 15px; }
.moderation-list { display: grid; gap: 12px; }
.moderation-item {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow-wrap: anywhere;
}

.moderation-item :is(p, h3) { margin: 0; }
.moderation-item h3 { font-size: 15px; }
.moderation-item p { white-space: pre-wrap; }
.moderation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.moderation-actions { margin-block-start: 4px; }
