.board-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.board-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-list-panel {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.board-section-header {
  margin-bottom: 18px;
}

.board-list-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-head-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.board-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.board-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-field span,
.board-filter span,
.board-search span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.board-field input,
.board-field select,
.board-field textarea,
.board-filter select,
.board-search input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6dde8;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.board-field input:focus,
.board-field select:focus,
.board-field textarea:focus,
.board-filter select:focus,
.board-search input:focus {
  outline: none;
  border-color: #2a9d8f;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.12);
}

.board-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.65;
}

.board-editor {
  border: 1px solid #d6dde8;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.board-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.board-editor .ql-container.ql-snow {
  border: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
}

.board-editor .ql-editor {
  min-height: 260px;
  line-height: 1.72;
  color: #0f172a;
}

.board-editor .ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}

.board-field-wide {
  grid-column: 1 / -1;
}

.board-field-file small {
  color: #64748b;
}

.board-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-size: 12px;
  font-weight: 600;
}

.board-pin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.board-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.board-inline-status {
  min-height: 22px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
}

.board-inline-status.error {
  color: #b91c1c;
}

.board-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.board-modal.is-open {
  display: block;
}

.board-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.board-modal-card {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 24px;
  overflow: auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.3);
}

.board-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.board-modal-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #0f766e;
}

.board-modal-head h3 {
  margin: 6px 0 0;
  font-size: 26px;
  color: #0f172a;
}

.board-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.board-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.board-toolbar {
  display: grid;
  grid-template-columns: 180px 180px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.board-filter,
.board-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.board-card {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.board-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.board-card-clickable:hover {
  transform: translateY(-2px);
  border-color: #bfd7f5;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.board-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.board-card-title {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.board-card-detail .board-card-title {
  font-size: 28px;
}

.board-detail-preview {
  margin-top: 22px;
}

.board-detail-preview-label {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.board-image-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.board-image-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  padding: 18px 62px;
  border: 1px solid #dbe2ea;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(219, 234, 254, 0.7), transparent 48%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.board-image-stage-button {
  width: 100%;
  min-height: 400px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.board-image-stage-img {
  width: 100%;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.board-image-nav,
.board-image-lightbox-nav,
.board-image-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.board-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.board-image-nav.prev {
  left: 14px;
}

.board-image-nav.next {
  right: 14px;
}

.board-image-slider-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.board-image-slider-name,
.board-image-lightbox-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.board-image-slider-size {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.board-image-slider-count,
.board-image-lightbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

.board-image-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.board-image-thumb-button {
  flex: 0 0 110px;
  height: 110px;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.board-image-thumb-button.is-active {
  border-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.16);
}

.board-image-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.board-lightbox-open {
  overflow: hidden;
}

.board-image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2200;
}

.board-image-lightbox.is-open {
  display: block;
}

.board-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
}

.board-image-lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 20px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.board-image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.board-image-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 28px 64px;
}

.board-image-lightbox-img {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
}

.board-image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.board-image-lightbox-nav.prev {
  left: 8px;
}

.board-image-lightbox-nav.next {
  right: 8px;
}

.board-image-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}

.board-detail-pdf-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.board-detail-pdf {
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}

.board-detail-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe2ea;
  background: #ffffff;
}

.board-detail-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.board-detail-open-btn {
  white-space: nowrap;
}

.board-detail-pdf-viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.board-detail-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-detail-pdf-nav {
  min-width: 108px;
  justify-content: center;
}

.board-detail-pdf-page {
  min-width: 88px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.board-detail-pdf-canvas-wrap {
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}

.board-detail-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

.board-detail-pdf-status {
  min-height: 20px;
  font-size: 13px;
  color: #64748b;
}

.board-floating-back {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.board-floating-back:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.board-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.board-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.board-badge.category-planning { background: #dbeafe; color: #1d4ed8; }
.board-badge.category-material { background: #dcfce7; color: #15803d; }
.board-badge.category-feedback { background: #fef3c7; color: #b45309; }
.board-badge.category-meeting { background: #fee2e2; color: #be123c; }
.board-badge.status-draft { background: #e2e8f0; color: #475569; }
.board-badge.status-review { background: #ede9fe; color: #6d28d9; }
.board-badge.status-published { background: #ccfbf1; color: #0f766e; }
.board-badge.status-archived { background: #f1f5f9; color: #475569; }
.board-badge.pin { background: #1f2937; color: #ffffff; }

.board-card-body {
  margin-top: 16px;
  color: #334155;
  line-height: 1.75;
}

.board-card-body p,
.board-card-body ul,
.board-card-body ol,
.board-card-body blockquote,
.board-card-body pre,
.board-card-body h1,
.board-card-body h2,
.board-card-body h3 {
  margin: 0 0 12px;
}

.board-card-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 10px 0;
}

.board-card-body a {
  color: #1d4ed8;
  text-decoration: underline;
}

.board-card-body blockquote {
  padding-left: 14px;
  border-left: 4px solid #cbd5e1;
  color: #475569;
}

.board-card-tags,
.board-card-images,
.board-card-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.board-card-images {
  gap: 10px;
}

.board-image-thumb {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  display: inline-flex;
}

.board-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-tag,
.board-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.board-tag {
  background: #eff6ff;
  color: #1d4ed8;
}

.board-attachment {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #dbe2ea;
  text-decoration: none;
}

.board-attachment:hover {
  background: #eef2ff;
}

.board-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-delete-btn {
  border: 0;
  background: #fff1f2;
  color: #be123c;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}

.board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.board-empty.loading i {
  font-size: 22px;
}

.board-muted {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .board-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .board-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .board-list-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .board-form-grid {
    grid-template-columns: 1fr;
  }

  .board-card-head,
  .board-list-head,
  .board-form-actions,
  .board-modal-head,
  .board-list-head-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .board-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 18px;
    border-radius: 20px;
  }

  .board-detail-preview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .board-image-stage {
    min-height: 280px;
    padding: 14px 46px;
  }

  .board-image-stage-button {
    min-height: 240px;
  }

  .board-image-slider-meta,
  .board-image-lightbox-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .board-image-thumb-button {
    flex-basis: 88px;
    height: 88px;
  }

  .board-image-lightbox-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 16px;
    border-radius: 20px;
  }

  .board-image-lightbox-stage {
    min-height: 52vh;
    padding: 24px 40px;
  }

  .board-detail-pdf-toolbar {
    flex-wrap: wrap;
  }

  .board-detail-pdf-nav {
    min-width: 0;
    flex: 1 1 0;
  }

  .board-floating-back {
    left: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }
}
