.mod-panel,
.mod-tools,
.reply-head-main,
.reply-admin-tools,
.thread-state-note,
.thread-state-tags,
.report-progress-flow,
.forum-confirm-actions,
.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-shell {
  display: grid;
  gap: 0.85rem;
}

.detail-header {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.detail-actions {
  justify-content: flex-end;
  align-items: center;
}

.report-btn {
  border-color: var(--forum-line);
  background: #f1dfb5;
}

.report-btn:hover {
  background: #e8cf95;
}

.detail-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.detail-body,
.resource-panel,
.reply-panel,
.board-thread-head,
.board-reply-box {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.mod-panel {
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--forum-line);
  border-left: 6px solid var(--forum-accent);
  background: rgba(0, 0, 0, 0.05);
}

.mod-panel-copy {
  display: grid;
  gap: 0.2rem;
}

.mod-panel-copy span,
.reply-head-main span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #444;
}

.mod-tools.inline {
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.reply-item {
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
}

.reply-list {
  display: block;
  margin-top: 0.25rem;
  border-top: 1px solid var(--forum-line);
}

.reply-item {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  box-shadow: none;
  padding: 0.7rem 0;
}

.reply-item:first-child {
  border-top: 0;
}

.reply-item header {
  justify-content: space-between;
  align-items: flex-start;
}

.reply-head-main {
  display: grid;
  gap: 0.12rem;
}

.reply-head-main strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.reply-body {
  font-size: 0.93rem;
  line-height: 1.65;
}

.reply-body p {
  margin: 0;
}

.reply-admin-tools .small-btn {
  padding: 0.28rem 0.55rem;
}

.attachment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.download-price-tag {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--forum-line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  background: rgba(0, 0, 0, 0.06);
}

.download-price-tag.free {
  background: transparent;
}

.thread-state-note {
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--forum-line);
  background: rgba(0, 0, 0, 0.04);
}

.thread-state-note p {
  margin: 0.35rem 0 0;
  color: #444;
}

.thread-state-chip {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--forum-line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.thread-state-chip.danger,
.thread-state-chip.active {
  background: rgba(0, 0, 0, 0.08);
}

.thread-state-chip.warning { background: #f1dfb5; }
.thread-state-chip.success { background: #dce9d6; }
.thread-state-chip.muted { background: transparent; opacity: 0.72; }
.report-progress-note { background: #f7f0df; }
.report-progress-flow { justify-content: flex-end; }

.forum-confirm-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.forum-confirm-overlay.open {
  display: flex;
}

.forum-confirm-box {
  width: min(420px, 100%);
  padding: 1rem;
  border: 1px solid var(--forum-line);
  background: #fff;
}

.forum-confirm-box h3,
.forum-confirm-box p {
  margin: 0 0 0.75rem;
}

@media (max-width: 920px) {
  .mod-panel,
  .detail-actions,
  .reply-item header,
  .thread-state-note,
  .forum-confirm-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-shell {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .reply-panel,
  .resource-panel,
  .detail-body,
  .board-reply-box,
  .board-thread-head {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .reply-item,
  .board-floor-main,
  .board-floor-side {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .attachment-actions,
  .mod-tools,
  .report-progress-flow,
  .forum-confirm-actions {
    width: 100%;
  }

  .attachment-actions,
  .forum-confirm-actions {
    align-items: stretch;
  }

  .attachment-actions .ghost-btn,
  .mod-tools .ghost-btn,
  .mod-tools .btn-danger,
  .reply-form .btn-primary,
  .forum-confirm-actions button {
    width: 100%;
  }

  .reply-item {
    gap: 0.45rem;
    padding: 0.55rem 0;
  }

  .reply-head-main strong {
    font-size: 0.88rem;
  }

  .reply-head-main span,
  .reply-admin-tools .small-btn,
  .download-price-tag,
  .detail-meta {
    font-size: 0.72rem;
  }

  .reply-body {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .forum-confirm-box {
    padding: 0.9rem;
  }
}
