.bp-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bp-title-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #78716c);
}

.bp-title-select-wrap select {
  min-width: 16rem;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font, "DM Sans", system-ui, sans-serif);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.bp-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.bp-meta-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #78716c);
  margin: 0;
}

.bp-meta-card dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.bp-legend-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted, #78716c);
  margin: 0 0 0.75rem;
}

.bp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bp-swatch::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bp-swatch.hero::before {
  background: #fde68a;
}

.bp-swatch.agentic::before {
  background: #c4b5fd;
}

.bp-swatch.filled::before {
  background: #99f6e4;
}

.bp-swatch.empty::before {
  background: #f5f5f4;
}

.blueprint-strip .page.slot-start {
  box-shadow: inset 0 0 0 2px #0f766e;
}

.bp-line-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted, #78716c);
}

.bp-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.bp-lines-table {
  font-size: 0.88rem;
}

.bp-lines-table .bp-active-pages {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bp-lines-table .reuse-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #f5f5f4;
  color: #44403c;
}

.bp-lines-table .ai-content-cell {
  text-align: center;
}

.bp-lines-table .ai-content-pill {
  display: inline-block;
  min-width: 2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bp-lines-table .ai-content-cell.ai-a1,
.bp-lines-table .ai-content-pill.ai-a1 {
  background: #ede9fe;
  color: #5b21b6;
}

.bp-lines-table .ai-content-cell.ai-a2,
.bp-lines-table .ai-content-pill.ai-a2 {
  background: #fef3c7;
  color: #92400e;
}

.bp-lines-table .ai-content-cell.ai-a3,
.bp-lines-table .ai-content-pill.ai-a3 {
  background: #cffafe;
  color: #155e75;
}

.bp-lines-table .ai-content-cell.ai-a4,
.bp-lines-table .ai-content-pill.ai-a4 {
  background: #e7e5e4;
  color: #44403c;
}

.bp-lines-table .ai-content-cell.ai-none,
.bp-lines-table .ai-content-pill.ai-none {
  background: #fafaf9;
  color: #a8a29e;
}

.blueprint-strip .page.agentic {
  background: #c4b5fd;
  color: #4c1d95;
}

.bp-edit-hint {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted, #78716c);
}

/* Page map hover tooltip */
.blueprint-strip .page {
  cursor: default;
}

.blueprint-strip .page:focus {
  outline: 2px solid var(--accent, #7c3aed);
  outline-offset: 2px;
  z-index: 1;
}

.blueprint-strip .page:focus:not(:focus-visible) {
  outline: none;
}

.blueprint-strip .page:focus-visible {
  outline: 2px solid var(--accent, #7c3aed);
  outline-offset: 2px;
  z-index: 1;
}

.bp-map-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink, #1c1917);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 10px;
  box-shadow:
    0 4px 6px -1px rgba(28, 25, 23, 0.08),
    0 12px 24px -4px rgba(124, 58, 237, 0.12);
  pointer-events: none;
}

.bp-map-tooltip--below {
  /* positioning handled in JS */
}

.bp-map-tip-title {
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink, #1c1917);
}

.bp-map-tip-empty {
  margin: 0;
  color: var(--muted, #78716c);
  font-size: 0.78rem;
}

.bp-map-tip-slot + .bp-map-tip-slot {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border, #e7e5e4);
}

.bp-map-tip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.bp-map-slot-code {
  font-weight: 700;
  font-size: 0.85rem;
}

.bp-map-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.bp-map-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.bp-map-tip-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  margin: 0;
}

.bp-map-tip-dl dt {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #78716c);
}

.bp-map-tip-dl dd {
  margin: 0;
  font-weight: 500;
  font-size: 0.78rem;
}

.bp-map-thumb {
  margin: 0.35rem 0 0.45rem;
  width: 100%;
  max-width: 9.5rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border, #e7e5e4);
  background: #fafaf9;
  line-height: 0;
}

.bp-map-thumb-frame {
  display: block;
  width: 9.5rem;
  height: 6.75rem;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.bp-map-thumb {
  pointer-events: auto;
}

.bp-map-thumb-link {
  display: block;
  padding: 0.28rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent, #7c3aed);
  text-align: center;
  text-decoration: none;
}

.bp-map-thumb-link:hover {
  text-decoration: underline;
}
