/* BlurBoard's frame and front pages, scoped under .bb-app (docs/BRAND.md),
   and the team tab's few rules. The board itself is the component's
   public/board.css (vendored, prefix bd). The family's look: BlurFolder's
   palette, bar, buttons, type and corners. Light only. Phone first. */

.bb-app {
  --bb-teal: #00c6cf;          /* BlurPaper's teal, every sibling's */
  --bb-teal-dark: #00a3ab;
  --bb-teal-soft: #e0f7f8;
  --bb-teal-ink: #00636a;      /* teal text on a light ground: readable */
  --bb-ink: #2f3440;
  --bb-muted: #6b7280;
  --bb-line: #e3e6ec;
  --bb-bg: #f6f8fa;
  --bb-card: #ffffff;
  --bb-bad: #c0392b;
}
.bb-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bb-bg);
  color: var(--bb-ink);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.bb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: #fff; border-bottom: 1px solid var(--bb-line); position: relative; z-index: 20; }
.bb-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bb-teal); font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.bb-brand b { font-weight: 700; }
.bb-logo { display: block; width: 28px; height: 28px; border-radius: 4px; }
.bb-nav { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.bb-who { color: var(--bb-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
.bb-main { flex: 1 1 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem; box-sizing: border-box; }
.bb-foot { padding: 1rem; text-align: center; color: var(--bb-muted); font-size: 0.85rem; }
.bb-muted { color: var(--bb-muted); }
.bb-error { color: var(--bb-bad); }
.bb-pad { padding: 1rem; }
.bb-center { text-align: center; }

/* Buttons: background, colour, border and radius together — BlurPager's
   baseline `button` rule paints white text and its own corners (its D143). */
.bb-app .bb-button, .bb-app button.bb-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem;
  border: 1px solid var(--bb-teal); border-radius: 6px; background: var(--bb-teal); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bb-app .bb-button:hover { background: var(--bb-teal-dark); border-color: var(--bb-teal-dark); }
.bb-app .bb-small, .bb-app button.bb-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.bb-app .bb-wide { display: flex; width: 100%; }
.bb-app button.bb-quiet, .bb-app button.bb-link, .bb-app button.bb-ghost, .bb-app summary.bb-quiet {
  padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--bb-muted); font: inherit; cursor: pointer;
}
.bb-app button.bb-ghost { border-color: var(--bb-line); background: #fff; color: var(--bb-ink); }
.bb-app button.bb-ghost:hover { border-color: var(--bb-teal); }
.bb-app button.bb-link { color: var(--bb-teal-dark); text-decoration: underline; padding: 0; }
.bb-app button.bb-quiet:hover, .bb-app summary.bb-quiet:hover { background: rgba(0, 0, 0, 0.05); color: var(--bb-ink); }
.bb-app button:disabled { opacity: 0.6; cursor: default; }
.bb-paper-mark { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; border-radius: 2px; }
h1 .bb-paper-mark { margin-right: 0.45rem; }

.bb-card { background: var(--bb-card); border: 1px solid var(--bb-line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.bb-narrow { max-width: 26rem; margin: 2rem auto; }
.bb-card h1 { margin: 0 0 1rem; font-size: 1.4rem; display: flex; align-items: center; }
.bb-or { text-align: center; margin: 1rem 0 0; color: var(--bb-muted); }

.bb-hero { padding: 2rem 0; }
.bb-hero h1 { font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; }
.bb-lead { font-size: 1.1rem; line-height: 1.6; max-width: 40rem; }
.bb-points { line-height: 1.8; padding-left: 1.2rem; }

.bb-wide-main { max-width: 90rem; }

/* A visible wait (the ecosystem's rule, 2026-10-16). */
.bb-waiting { display: flex; align-items: center; gap: 0.6rem; }
.bb-spinner { width: 1.2rem; height: 1.2rem; border: 3px solid var(--bb-line); border-top-color: var(--bb-teal); border-radius: 50%; animation: bb-spin 0.8s linear infinite; flex: none; }
@keyframes bb-spin { to { transform: rotate(360deg); } }

/* The team tab (functions/board-app.js, docs/TEAM.md), in the board's bd- classes. */
.bd-team { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.bd-team h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.bd-members, .bd-found { list-style: none; padding: 0; margin: 0; }
.bd-members li, .bd-found li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--bd-line); }
.bd-member-name { font-weight: 600; flex: 1 1 10rem; overflow-wrap: anywhere; }
.bd-found li span:first-child { flex: 1 1 10rem; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .bb-main { padding: 1rem 0.75rem; }
  .bb-who { display: none; }
  .bb-hero h1 { font-size: 1.6rem; }
  .bd-team { grid-template-columns: 1fr; }
}

/* BlurBoard's own priorities on the component's cards (handlers/_bd-board.js). */
.bd-card-ticket.bd-p-urgent { border-left-color: #c0392b; }
.bd-card-ticket.bd-p-low { border-left-color: #a0aec0; }
.bd-chip.bd-urgent { background: #fdecea; color: #c0392b; }
.bd-s-new.bd-chip { background: #eef1f5; }
.bd-s-assigned.bd-chip { background: #ede9fe; color: #5b21b6; }
.bd-s-doing.bd-chip { background: #e0f2fe; color: #075985; }
.bd-s-waiting.bd-chip { background: #fef3c7; color: #92400e; }
.bd-s-done.bd-chip { background: #dcfce7; color: #166534; }

/* The session a ticket is assigned to (docs/API.md). */
.bd-chip.bd-session { background: #e0f7f8; color: #00636a; }
.bd-session-line { margin: 0 0 1rem; color: var(--bd-muted); }
.bd-session-line strong { color: var(--bd-ink); }
.bd-chip.bd-author { background: #fef3c7; color: #92400e; }
