.bulletin-shell {
  display: grid;
  gap: 14px;
}

.view-tools,
.gantt-export-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.gantt-export-tools {
  padding-left: 8px;
  border-left: 1px solid #d8dee8;
}

.gantt-export-tools select {
  width: 82px;
  min-width: 0;
}

#exportGantt {
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.bulletin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  box-shadow: 0 2px 8px #1720330d;
}

.bulletin-head h2 {
  margin: 0 0 5px;
}

.bulletin-head p {
  margin: 0;
}

.bulletin-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulletin-controls select {
  min-width: 150px;
}

.category-manage-button {
  color: #374151;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.bulletin-table-wrap {
  overflow: auto;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
}

.bulletin-table-wrap table {
  min-width: 720px;
}

.bulletin-title {
  color: #1f2937;
  font-weight: 700;
  cursor: pointer;
}

.bulletin-title:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.category-badge {
  display: inline-block;
  padding: 4px 8px;
  color: #3730a3;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.attachment-count {
  color: #475569;
  white-space: nowrap;
}

.post-content-input {
  min-height: 180px;
  resize: vertical;
}

.post-detail-meta {
  padding-bottom: 12px;
  color: #64748b;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.post-detail-content {
  min-height: 150px;
  padding: 18px 2px;
  color: #273244;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.attachment-item a {
  flex: 1;
  overflow: hidden;
  color: #1d4ed8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-delete {
  padding: 5px 8px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 11px;
}

.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.category-chip {
  padding: 7px 10px;
  color: #374151;
  background: #f1f5f9;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  font-size: 12px;
}

.category-chip.system {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

#categoryForm {
  display: grid;
  gap: 12px;
}

@media (max-width: 800px) {
  .view-tools {
    align-items: stretch;
  }

  .gantt-export-tools {
    width: 100%;
    padding: 8px 0 0;
    border-top: 1px solid #d8dee8;
    border-left: 0;
  }

  .bulletin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .bulletin-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .bulletin-controls select,
  .bulletin-controls button {
    width: 100%;
  }
}
