.heading-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.heading-actions form { margin: 0; }
.heading-actions .button { white-space: nowrap; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.stat-card, .chart-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.stat-card { padding: 24px; }
.stat-card strong {
  display: block;
  font: 400 38px Georgia, serif;
  margin-top: 7px;
}
.chart-panel {
  padding: 28px;
  margin: 24px 0;
}
.chart {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 24px;
}
.bar-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bar {
  width: 100%;
  max-width: 30px;
  min-height: 4px;
  background: linear-gradient(var(--accent), #7164a4);
  border-radius: 5px 5px 2px 2px;
}
.bar-count { font-size: 11px; color: var(--ink); }
.bar-label { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.bar-level-0 { height: 4px; }
.bar-level-1 { height: 10%; }
.bar-level-2 { height: 20%; }
.bar-level-3 { height: 30%; }
.bar-level-4 { height: 40%; }
.bar-level-5 { height: 50%; }
.bar-level-6 { height: 60%; }
.bar-level-7 { height: 70%; }
.bar-level-8 { height: 80%; }
.bar-level-9 { height: 90%; }
.bar-level-10 { height: 100%; }
.analytics-table { width: 100%; border-collapse: collapse; }
.analytics-table th, .analytics-table td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.analytics-table th {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.analytics-table td:last-child, .analytics-table th:last-child { text-align: right; }
.release-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feedback-link { margin-top: 10px; }
.feedback-compose, .feedback-locked, .forum {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 28px;
  margin: 24px 0;
}
.feedback-compose { display: grid; grid-template-columns: 180px 1fr; gap: 35px; }
.feedback-compose h2 { margin-top: 0; }
.feedback-compose form { min-width: 0; }
.compose-identity { text-align: center; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--accent), #786ba9); color: #211c35; font: 700 21px Georgia, serif; box-shadow: 0 7px 22px #0004; }
.avatar-large { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px; font-size: 28px; }
textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #4a5563;
  border-radius: 7px;
  background: #121921;
  color: var(--ink);
  font: inherit;
}
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.attachment-picker { margin-top: 15px; padding: 14px; border: 1px dashed #566170; border-radius: 9px; background: #141b24; }
.attachment-picker label { margin-top: 0; }
.attachment-picker label span { color: var(--muted); font-weight: 400; }
.attachment-picker input { padding: 9px; background: transparent; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compose-footer button { width: auto; }
.feedback-locked .button { display: inline-flex; margin-top: 12px; }
.discussion-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.forum { background: transparent; padding: 0; border: 0; }
.forum .discussion-heading { padding: 0 4px 15px; }
.feedback-post { display: grid; grid-template-columns: 145px minmax(0, 1fr); margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 10px 28px #0002; }
.feedback-post.is-resolved { border-color: #49685a; }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; border-right: 1px solid var(--line); background: #161e27; text-align: center; }
.post-author strong { overflow-wrap: anywhere; }
.post-author span { color: var(--muted); font-size: 8px; letter-spacing: 1.5px; }
.post-content { min-width: 0; padding: 24px 28px; }
.post-meta { display: flex; justify-content: space-between; gap: 20px; }
.post-meta time { color: var(--muted); font-size: 11px; }
.post-number { color: var(--muted); font-size: 11px; }
.feedback-post p { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body { min-height: 42px; margin: 17px 0 0; font-size: 15px; }
.post-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.post-images a { display: block; overflow: hidden; border: 1px solid #485361; border-radius: 9px; background: #0d1218; }
.post-images img { display: block; width: 100%; height: 180px; object-fit: cover; transition: transform .18s ease, filter .18s ease; }
.post-images a:hover img { transform: scale(1.025); filter: brightness(1.08); }
.delete-button { width: auto; padding: 6px 10px; margin: 0; background: transparent; border-color: #6e454d; color: #e9aab0; font-size: 11px; }
.fixed-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 7px 11px; border: 1px solid #49685a; border-radius: 30px; background: #263f35; color: #b7dccb; font-size: 12px; font-weight: 700; }
.fixed-badge a { color: #d6f4e6; }
.admin-reply { margin: 20px 0 0 34px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #141b24; }
.admin-reply p { margin-top: 10px; }
.admin-badge { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #211c35; font-size: 9px; letter-spacing: 1px; }
.moderation { display: grid; grid-template-columns: minmax(280px, 1fr) 220px; gap: 16px; align-items: end; margin-top: 22px; padding-top: 20px; border-top: 1px dashed #47515d; }
.moderation form { margin: 0; }
.reply-form textarea { min-height: 80px; }
.reply-form button, .fixed-form button { width: auto; margin-top: 10px; }
.fixed-form select { width: 100%; padding: 12px; border: 1px solid #4a5563; border-radius: 7px; background: #121921; color: var(--ink); }
.fixed-button { background: #b7dccb; color: #193027; }
.delete-form { grid-column: 1 / -1; }
.empty-discussion { text-align: center; padding: 36px 10px 20px; }
@media (max-width: 620px) {
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr; }
  .chart { gap: 3px; }
  .bar-label { font-size: 7px; }
  .chart-panel { padding: 18px; }
  .analytics-table th:nth-child(2), .analytics-table td:nth-child(2) { display: none; }
  .feedback-compose { grid-template-columns: 1fr; gap: 8px; }
  .compose-footer, .post-meta { align-items: flex-start; flex-direction: column; }
  .compose-footer button { width: 100%; }
  .moderation { grid-template-columns: 1fr; }
  .admin-reply { margin-left: 12px; }
  .feedback-post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .post-content { padding: 20px; }
  .post-images { grid-template-columns: 1fr; }
  .post-images img { height: auto; max-height: 360px; object-fit: contain; }
}
