:root {
  --board-bg: #f6f7fb;
  --board-surface: #ffffff;
  --board-border: #e5e8ef;
  --board-shadow: 0 20px 50px rgba(17, 38, 146, 0.08);
  --board-primary: #2d6cdf;
  --board-accent: #3dc7a3;
  --board-text: #1f2937;
  --board-muted: #6b7280;
}

.board-page {
  background: radial-gradient(circle at 15% 18%, rgba(61, 199, 163, 0.16), transparent 25%),
    radial-gradient(circle at 78% 8%, rgba(45, 108, 223, 0.2), transparent 22%),
    var(--board-bg);
  padding: 24px 0 48px;
  font-family: 'Pretendard', 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.board-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.board-hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1d2b64 100%);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--board-shadow);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.board-hero__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-hero__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.board-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.board-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 13px;
}

.board-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.board-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-btn--primary {
  background: #fff;
  color: #1f2d5c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.board-btn--ghost {
  background: #eef1f7;
  color: #1f2d5c;
  border: 1px solid #d5dae5;
}

.board-card {
  margin-top: 16px;
  background: var(--board-surface);
  border: 1px solid var(--board-border);
  border-radius: 16px;
  box-shadow: var(--board-shadow);
  padding: 16px;
}

.board-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.board-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--board-text);
  margin: 0;
}

.board-card__subtitle {
  margin: 0;
  color: var(--board-muted);
  font-size: 13px;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--board-border);
  border-radius: 12px;
  background: #f9fbff;
  align-items: center;
}

.board-list__row:nth-child(odd) {
  background: #fff;
}

.board-list__title {
  font-weight: 800;
  color: var(--board-text);
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

.board-list__title:hover {
  color: var(--board-primary);
  text-decoration: underline;
}

.board-list__meta {
  color: var(--board-muted);
  font-size: 13px;
  margin-top: 4px;
}

.board-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.14);
  color: #1f2d5c;
  font-weight: 700;
  font-size: 12px;
  justify-self: end;
}

.board-empty {
  padding: 20px;
  text-align: center;
  color: var(--board-muted);
  font-weight: 700;
}

.attachment-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--board-border);
  border-radius: 12px;
  background: #f7f9fc;
}

.attachment-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe4f5, #eef2f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1f2d5c;
  border: 1px solid #e0e6f1;
}

.attachment-thumb.clickable {
  cursor: pointer;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.attachment-name {
  flex: 1;
  font-weight: 600;
  color: var(--board-text);
  word-break: break-all;
  white-space: normal;
}

.attachment-remove {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.attachment-remove:hover {
  background: #fecdd3;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-overlay.active {
  display: flex;
}

.image-overlay__inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-overlay__inner img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.image-overlay__close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.board-pagination {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .board-list__row {
    grid-template-columns: 1fr;
  }
  .board-pill {
    justify-self: start;
  }

  .board-list__title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
}
