:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --bg: #f5f1e7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.82);
  --line: rgba(23, 48, 94, 0.1);
  --line-strong: rgba(23, 48, 94, 0.18);
  --text: #17305e;
  --muted: #66758d;
  --primary: #4d8df8;
  --primary-2: #6ca8ff;
  --success: #2f8c4d;
  --warning: #b97700;
  --danger: #c55647;
  --shadow: 0 18px 52px rgba(23, 48, 94, 0.08);
  --radius: 30px;
  --radius-sm: 22px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(108, 168, 255, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 184, 92, 0.14), transparent 22%),
    linear-gradient(180deg, #f7f4eb 0%, #f2efe6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

.board-page-shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding:
    calc(18px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(110px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}

.board-topbar,
.board-topbar-actions,
.section-head,
.board-list-actions,
.post-card-head,
.post-meta-row,
.post-action-row,
.detail-action-row,
.comment-head,
.modal-head,
.modal-actions,
.image-upload-row,
.preview-stat-row,
.board-hero-grid {
  display: flex;
  gap: 12px;
}

.board-topbar {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.board-topbar-actions,
.post-action-row,
.detail-action-row,
.modal-actions {
  flex-wrap: wrap;
}

.board-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.board-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #dce7ff);
  border: 1px solid rgba(77, 141, 248, 0.18);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(77, 141, 248, 0.14);
}

.board-brand-mark img {
  width: 34px;
  height: 34px;
}

.board-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.board-brand-copy strong {
  font-size: 26px;
  line-height: 1;
}

.board-brand-copy span {
  color: var(--muted);
  font-size: 14px;
}

.card,
.post-card,
.modal-card,
.post-detail-card,
.editor-section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.board-hero,
.board-access-card,
.filter-card,
.feed-card,
.editor-section-card,
.post-detail-card {
  padding: 20px;
  margin-bottom: 18px;
}

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

.board-feed-grid,
.board-grid,
.board-list,
.feed-list,
.editor-sections,
.detail-content-grid,
.comment-list,
.image-preview-grid {
  display: grid;
  gap: 14px;
}

.board-hero-grid {
  align-items: center;
  justify-content: space-between;
}

.board-hero-copy {
  flex: 1 1 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.board-hero-visual {
  flex: 0 0 min(40%, 320px);
}

.board-hero-visual img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(23, 48, 94, 0.08);
  background: #fbfaf6;
}

.board-hero-visual-small {
  flex-basis: min(34%, 260px);
}

.eyebrow,
.section-pill,
.status-badge,
.info-chip,
.choice-chip,
.type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(77, 141, 248, 0.14);
  background: rgba(77, 141, 248, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.status-badge.live {
  background: rgba(47, 140, 77, 0.12);
  border-color: rgba(47, 140, 77, 0.18);
  color: var(--success);
}

.status-badge.urgent {
  background: rgba(255, 184, 92, 0.18);
  border-color: rgba(255, 184, 92, 0.24);
  color: var(--warning);
}

.status-badge.closed,
.status-badge.draft {
  background: rgba(23, 48, 94, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.info-chip,
.type-chip {
  background: rgba(23, 48, 94, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.choice-chip {
  min-height: 42px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.choice-chip.active {
  border-color: rgba(77, 141, 248, 0.34);
  background: rgba(77, 141, 248, 0.12);
  color: var(--text);
}

.board-hero h1,
.section-title,
.post-title,
.detail-title {
  margin: 0;
  line-height: 1.06;
}

.board-hero h1,
.section-title {
  font-size: 30px;
}

.hero-copy,
.section-copy,
.access-copy,
.post-copy,
.detail-copy,
.empty-state,
.modal-copy,
.meta-copy,
.board-card-copy,
.feed-item-copy {
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.post-copy,
.detail-copy,
.preview-card .feed-item-copy {
  white-space: pre-line;
}

.section-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ghost-btn,
.primary-btn,
.secondary-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.ghost-btn:active,
.primary-btn:active,
.secondary-btn:active,
.choice-chip:active,
.post-card:active,
.feed-item:active {
  transform: scale(0.985);
}

.ghost-btn,
.secondary-btn {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.primary-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px rgba(77, 141, 248, 0.22);
}

.hidden {
  display: none !important;
}

.board-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.board-card,
.post-card,
.feed-item,
.comment-card,
.image-preview-card,
.permission-panel,
.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.board-card,
.post-card,
.feed-item,
.comment-card,
.preview-card {
  padding: 18px;
}

.board-card {
  display: grid;
  gap: 12px;
}

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

.board-card-copy {
  margin: 0;
}

.board-card-meta,
.post-chip-row,
.detail-chip-row,
.choice-chip-row,
.preview-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-card-actions,
.permission-actions,
.editor-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.feed-list,
.board-list,
.comment-list {
  grid-template-columns: minmax(0, 1fr);
}

.feed-item {
  display: grid;
  gap: 10px;
}

.feed-item-title,
.post-title,
.detail-title {
  font-size: 20px;
  margin: 0;
}

.feed-item-copy,
.post-copy {
  margin: 0;
}

.post-card {
  display: grid;
  gap: 12px;
}

.post-card-head {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.post-meta-row {
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.stack-field,
.editor-field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.input,
.select,
.textarea,
.file-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus,
.file-input:focus {
  border-color: rgba(77, 141, 248, 0.48);
  box-shadow: 0 0 0 4px rgba(77, 141, 248, 0.1);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.filter-grid,
.editor-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
}

.board-access-card {
  display: grid;
  gap: 14px;
}

.free-board-tabs,
.free-board-toolbar,
.board-sidebar-card {
  padding: 16px;
  margin-bottom: 16px;
}

.free-board-tab-row,
.free-board-toolbar-row,
.sidebar-link-list,
.sidebar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.free-board-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.free-board-tab.active {
  border-color: rgba(77, 141, 248, 0.34);
  background: rgba(77, 141, 248, 0.12);
}

.board-list-layout,
.board-list-main,
.board-sidebar,
.board-sidebar-card,
.sidebar-section,
.sidebar-stat-grid,
.sidebar-stat-card,
.free-post-main,
.free-post-body {
  display: grid;
  gap: 12px;
}

.sidebar-section-title {
  margin: 0;
  font-size: 18px;
}

.sidebar-copy,
.free-board-toolbar-copy,
.free-post-meta,
.free-post-stat,
.free-post-excerpt {
  color: var(--muted);
}

.sidebar-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-stat-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-stat-card strong {
  font-size: 22px;
  line-height: 1;
}

.sidebar-stat-card span {
  font-size: 13px;
}

.free-board-toolbar-row {
  align-items: center;
  justify-content: space-between;
}

.free-board-list {
  gap: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.free-board-head,
.free-post-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 108px;
  gap: 12px;
}

.free-board-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 48, 94, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.free-post-row {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.free-post-kind,
.free-post-stats {
  display: grid;
  align-content: center;
  gap: 6px;
}

.free-post-status {
  font-size: 12px;
  font-weight: 700;
}

.free-post-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.free-post-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.free-post-count {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.free-post-body {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.free-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
}

.free-post-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.free-post-thumb {
  width: 64px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.free-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.free-post-stat {
  font-size: 12px;
}

.permission-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.permission-heading {
  font-size: 18px;
  margin: 0;
}

.post-detail-shell {
  display: grid;
  gap: 18px;
}

.post-detail-card {
  display: grid;
  gap: 16px;
}

.detail-hero-meta {
  display: grid;
  gap: 12px;
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr);
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.detail-section h3 {
  margin: 0;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.detail-grid-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.detail-grid-item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.comment-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.comment-head {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 700;
}

.comment-time {
  color: var(--muted);
  font-size: 13px;
}

.editor-sections {
  gap: 18px;
}

.editor-section-card {
  display: grid;
  gap: 16px;
}

.editor-section-head {
  display: grid;
  gap: 6px;
}

.editor-section-title {
  margin: 0;
  font-size: 20px;
}

.editor-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.editor-inline-note {
  color: var(--muted);
  font-size: 13px;
}

.editor-title-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-author-row {
  display: grid;
  gap: 12px;
}

.editor-inline-action {
  width: 100%;
  justify-content: center;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-preview-card {
  overflow: hidden;
}

.image-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-preview-meta {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.editor-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding:
    12px
    calc(16px + var(--safe-right))
    calc(12px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(180deg, rgba(245, 241, 231, 0), rgba(245, 241, 231, 0.92) 28%, rgba(245, 241, 231, 0.98) 100%);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 48, 94, 0.2);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 30;
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
}

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

.modal-title {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.preview-content {
  display: grid;
  gap: 14px;
}

.preview-card {
  display: grid;
  gap: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  z-index: 40;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 720px) {
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid,
  .editor-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-author-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .editor-inline-action {
    width: auto;
    min-width: 220px;
  }
}

@media (min-width: 920px) {
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .free-board-layout .board-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 16px;
    align-items: start;
  }

  .free-board-layout .board-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .board-topbar,
  .section-head,
  .board-hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-topbar-actions,
  .board-card-actions,
  .permission-actions {
    width: 100%;
  }

  .board-topbar-actions > *,
  .board-card-actions > *,
  .permission-actions > * {
    flex: 1 1 calc(50% - 5px);
  }

  .board-hero-visual,
  .board-hero-visual-small {
    width: 100%;
    flex-basis: auto;
  }

  .free-board-toolbar-row {
    align-items: flex-start;
  }

  .free-post-row,
  .free-board-head {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .free-post-stats {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .board-brand-copy strong {
    font-size: 22px;
  }

  .board-hero h1,
  .section-title {
    font-size: 27px;
  }

  .editor-cta-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-cta-bar .primary-btn {
    grid-column: 1 / -1;
  }

  .image-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-board-head {
    display: none;
  }

  .free-post-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-post-title {
    white-space: normal;
  }

  .free-post-kind,
  .free-post-stats {
    display: flex;
    flex-wrap: wrap;
  }

  .free-post-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-post-thumb {
    width: 96px;
    height: 72px;
  }

  .free-post-excerpt {
    -webkit-line-clamp: 2;
  }
}

body[data-board-page='list'].template-public-board-layout .board-page-shell {
  max-width: 1080px;
  display: grid;
  gap: 16px;
}

body[data-board-page='list'].template-public-board-layout .board-topbar {
  margin-bottom: 0;
}

body[data-board-page='list'].template-public-board-layout .board-hero,
body[data-board-page='list'].template-public-board-layout .filter-card,
body[data-board-page='list'].template-public-board-layout .free-board-toolbar,
body[data-board-page='list'].template-public-board-layout .board-access-card {
  margin-bottom: 0;
  border-radius: 28px;
  border-color: rgba(23, 48, 94, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.95)),
    var(--panel);
  box-shadow: 0 18px 34px rgba(23, 48, 94, 0.06);
}

body[data-board-page='list'].template-public-board-layout .board-hero {
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 10px;
}

body[data-board-page='list'].template-public-board-layout .eyebrow {
  min-height: 32px;
}

body[data-board-page='list'].template-public-board-layout .board-hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body[data-board-page='list'].template-public-board-layout .hero-copy {
  margin: 0;
  max-width: 58ch;
}

body[data-board-page='list'].template-public-board-layout .board-access-card {
  padding: 14px 18px;
}

.board-access-strip,
.board-access-strip__badges,
.board-list-toolbar-row,
.board-title-row__meta,
.board-empty-state__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.board-access-strip {
  align-items: center;
  justify-content: space-between;
}

.board-access-strip__copy,
.board-empty-state__body,
.board-title-row__main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.board-access-strip__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.board-access-strip__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

body[data-board-page='list'].template-public-board-layout .filter-card {
  padding: 18px 20px;
}

body[data-board-page='list'].template-public-board-layout .filter-card .section-head {
  margin-bottom: 12px;
}

body[data-board-page='list'].template-public-board-layout .filter-card .section-title {
  font-size: 25px;
}

body[data-board-page='list'].template-public-board-layout .section-copy {
  margin: 4px 0 0;
  line-height: 1.6;
}

body[data-board-page='list'].template-public-board-layout .field-label {
  font-size: 13px;
}

body[data-board-page='list'].template-public-board-layout .input,
body[data-board-page='list'].template-public-board-layout .select {
  min-height: 50px;
  border-radius: 16px;
}

body[data-board-page='list'].template-public-board-layout .board-list-layout,
body[data-board-page='list'].template-public-board-layout .board-list-main {
  display: grid;
  gap: 14px;
}

body[data-board-page='list'].template-public-board-layout .board-sidebar {
  display: none !important;
}

body[data-board-page='list'].template-public-board-layout .board-list-actions {
  justify-content: center;
}

.board-list-toolbar-row {
  align-items: center;
  justify-content: space-between;
}

.public-board-title-list {
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(23, 48, 94, 0.05);
}

.board-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-top: 1px solid rgba(23, 48, 94, 0.08);
  background: rgba(255, 255, 255, 0.96);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.board-title-row:first-child {
  border-top: 0;
}

.board-title-row:hover,
.board-title-row:focus-visible {
  background: rgba(77, 141, 248, 0.06);
  border-color: rgba(77, 141, 248, 0.14);
  outline: none;
}

.board-title-row:active {
  background: rgba(77, 141, 248, 0.1);
}

.board-title-row__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-title-row__meta {
  justify-content: flex-end;
  flex-shrink: 0;
}

.board-row-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(23, 48, 94, 0.08);
  background: rgba(23, 48, 94, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.board-row-meta-chip.status {
  border-color: rgba(77, 141, 248, 0.14);
}

.board-row-meta-chip.status.tone-live {
  background: rgba(77, 141, 248, 0.1);
  color: var(--text);
}

.board-row-meta-chip.status.tone-urgent {
  background: rgba(255, 184, 92, 0.18);
  border-color: rgba(255, 184, 92, 0.24);
  color: var(--warning);
}

.board-row-meta-chip.status.tone-closed,
.board-row-meta-chip.status.tone-draft {
  background: rgba(23, 48, 94, 0.05);
  color: var(--muted);
}

.board-empty-state {
  display: grid;
  gap: 12px;
  padding: 24px 20px;
}

.board-empty-state__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(77, 141, 248, 0.1);
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

.board-empty-state__title {
  display: block;
  font-size: 19px;
  line-height: 1.3;
}

.board-empty-state__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

@media (min-width: 720px) {
  body[data-board-page='list'].template-public-board-layout .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  body[data-board-page='list'].template-public-board-layout .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .board-access-strip,
  .board-list-toolbar-row,
  .board-title-row {
    align-items: flex-start;
  }

  .board-title-row {
    flex-direction: column;
  }

  .board-title-row__meta {
    justify-content: flex-start;
  }

  .board-title-row__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
