:root {
  --board-surface: #fff;
}

.board-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.board-toolbar h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.category-tabs a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: transparent;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--board-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.board-table th,
.board-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.board-table th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.board-table tr:last-child td {
  border-bottom: none;
}

.board-table a {
  color: var(--ink);
  font-weight: 600;
}

.board-table a:hover {
  color: var(--blue);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination a,
.pagination span {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination a:hover,
.pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fbfcfe;
  color: var(--ink);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 1.25rem;
}

.post-body {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.02rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

@media (max-width: 720px) {
  .board-table .col-author,
  .board-table .col-date {
    display: none;
  }
}
