/* ============================================================
   FEEDS — Boards (2026-10-18)
   The header icon, its side panel, the pin buttons on cards, the "Add to
   board" picker, and the /board page. Loaded after styles.css (and
   onboarding.css where present); every rule is scoped to a bd-/bp- class so
   nothing here can restyle an existing surface.
   ============================================================ */

/* ---------- header icon ---------- */
#boardsBtn.on { color: var(--yellow); background: rgba(243, 193, 27, .1); }
/* the inline search pill collapses the header icons; this one goes with them */
.nav.search-open #boardsBtn {
  width: 0; opacity: 0; margin: 0 0 0 -8px; padding: 0;
  border-width: 0; pointer-events: none; overflow: hidden;
}
/* the story page's old Pin (Library) and Notify buttons give way to "Add to
   board" while Boards is on; Share stays */
html.bd-on .sv-actions [data-pin],
html.bd-on .sv-actions [data-notify] { display: none; }

/* ---------- shared bits ---------- */
.bd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.1;
  background: rgba(255, 255, 255, .04); color: var(--offwhite);
  border: 1px solid var(--charcoal-line); text-decoration: none; white-space: nowrap;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.bd-btn svg { width: 15px; height: 15px; flex: none; }
.bd-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.bd-btn:disabled { opacity: .55; cursor: default; }
.bd-btn-primary { background: var(--yellow); border-color: var(--yellow); color: #1c1d20; }
.bd-btn-primary:hover { color: #1c1d20; filter: brightness(1.06); }
.bd-input {
  width: 100%; min-width: 0; padding: 10px 13px;
  font-family: inherit; font-size: 14.5px; color: var(--offwhite);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--charcoal-line); border-radius: 10px;
}
.bd-input:focus { outline: none; border-color: var(--yellow); }
textarea.bd-input { resize: vertical; line-height: 1.45; }
.bd-err { display: none; margin: 8px 0 0; color: #f19a8f; font-size: 13px; }
.bd-muted { color: var(--muted); font-size: 13.5px; }
.bd-fine { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.bd-shared { color: var(--yellow); }
.bd-inline-ico { display: inline-flex; vertical-align: -3px; color: var(--yellow); }
.bd-inline-ico svg { width: 16px; height: 16px; }
.bd-x {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--muted);
}
.bd-x:hover { color: var(--offwhite); background: rgba(255, 255, 255, .06); }
.bd-x svg { width: 17px; height: 17px; }

/* ---------- toast ---------- */
.bd-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 320;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  transform: translate(-50%, 12px); opacity: 0;
  background: #1c1d20; border: 1px solid var(--charcoal-line); color: var(--offwhite);
  padding: 11px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease;
}
.bd-toast.in { opacity: 1; transform: translate(-50%, 0); }
.bd-toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; }

/* ---------- side panel ---------- */
.bd-scrim {
  position: fixed; inset: 0; z-index: 240; background: rgba(12, 13, 15, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.bd-scrim.open { opacity: 1; pointer-events: auto; }
.bd-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 250;
  width: min(400px, 100vw); display: flex; flex-direction: column;
  background: var(--charcoal); border-left: 1px solid var(--charcoal-line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
  transform: translateX(102%); transition: transform .24s cubic-bezier(.22, 1, .36, 1);
  outline: none;
}
.bd-drawer.open { transform: none; }
.bd-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 10px 22px;
}
.bd-drawer-head h2 { font-size: 20px; font-weight: 700; color: var(--white); }
.bd-drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px 22px; }
.bd-new { display: flex; gap: 8px; }
.bd-new .bd-btn { flex: none; }
.bd-list { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.bd-row {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; margin: 0 -12px;
  border-radius: 10px; color: var(--offwhite);
}
.bd-row:hover { background: rgba(255, 255, 255, .05); }
.bd-row-t { font-weight: 600; font-size: 15px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row-m { font-size: 12.5px; color: var(--muted); }
.bd-all { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--yellow); }
.bd-empty { margin-top: 18px; padding: 16px; border: 1px dashed var(--charcoal-line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.bd-empty p + p { margin-top: 6px; }
.bd-empty strong { color: var(--offwhite); }
.bd-drawer-foot {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px 16px;
  border-top: 1px solid var(--charcoal-line); font-size: 13px;
}
.bd-email { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-link-btn { background: none; border: 0; padding: 4px 2px; color: var(--offwhite); font-family: inherit; font-size: 13px; font-weight: 600; }
.bd-link-btn:hover { color: var(--yellow); }
.bd-pitch { text-align: center; padding-top: 28px; }
.bd-pitch h3 { font-size: 19px; color: var(--white); margin: 14px 0 8px; }
.bd-pitch p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.bd-pitch .bd-btn { min-width: 160px; }
.bd-pitch .bd-fine { margin: 14px 0 0; }
.bd-pitch-ico {
  width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 16px; background: rgba(243, 193, 27, .12); color: var(--yellow);
}
.bd-pitch-ico svg { width: 28px; height: 28px; }

/* ---------- pin buttons on cards ---------- */
.bd-add {
  width: 30px; height: 30px; display: inline-grid; place-items: center; flex: none;
  padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.bd-add svg { width: 16px; height: 16px; }
.bd-add:hover, .bd-add:focus-visible { color: var(--yellow); background: rgba(243, 193, 27, .1); border-color: rgba(243, 193, 27, .35); outline: none; }
.bd-add.on { color: var(--yellow); }
/* News cards: at the end of the source line */
.bd-add--foot { margin-left: auto; margin-top: -6px; margin-bottom: -6px; }
/* Industry / Intelligence rows (flex rows): the last item, top-right */
.bd-add--end { align-self: flex-start; margin-left: auto; margin-top: -4px; }
.bd-add--row { margin-left: auto; }
/* on a pointer device a card's pin stays quiet until the card is hovered,
   unless it is already on a board */
@media (hover: hover) {
  .card .bd-add--foot:not(.on), .drow .bd-add--end:not(.on), .top-card .bd-add--end:not(.on) { opacity: .45; }
  .card:hover .bd-add--foot, .drow:hover .bd-add--end, .top-card:hover .bd-add--end,
  .bd-add:focus-visible { opacity: 1; }
}
.sv-act.bd-sv svg { width: 15px; height: 15px; }
.sv-act.bd-sv.on { border-color: var(--yellow); color: var(--yellow); }

/* ---------- the picker ---------- */
/* z-index 260: above the story page overlay (.story-view, 200), which is where
   "Add to board" is pressed; at 160 the picker opened hidden behind it */
.bd-pop {
  position: fixed; z-index: 260; width: 320px; max-width: calc(100vw - 24px);
  max-height: min(460px, calc(100vh - 24px)); overflow-y: auto;
  background: #1f2024; border: 1px solid var(--charcoal-line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  padding: 10px 12px 12px;
}
.bd-pop.busy { opacity: .7; pointer-events: none; }
.bd-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px 4px; }
.bd-pop-head span { font-weight: 700; color: var(--white); font-size: 14.5px; }
.bd-pop-note { font-size: 13.5px; padding: 8px 11px; margin-bottom: 8px; }
.bd-pop-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.bd-pop-list .bd-muted { padding: 6px 4px; }
.bd-pop-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left;
  background: transparent; border: 1px solid transparent; color: var(--offwhite);
  font-family: inherit; font-size: 14px;
}
.bd-pop-row:hover, .bd-pop-row:focus-visible { background: rgba(255, 255, 255, .06); outline: none; border-color: var(--charcoal-line); }
.bd-pop-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bd-pop-n { color: var(--muted); font-size: 12.5px; }
.bd-pop-on { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-size: 12.5px; font-weight: 600; flex: none; }
.bd-pop-on svg { width: 14px; height: 14px; }
.bd-pop-new { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--charcoal-line); }
.bd-pop-new .bd-input { font-size: 13.5px; padding: 8px 11px; }
.bd-pop-new .bd-btn { padding: 8px 11px; font-size: 12.5px; }
.bd-pop--sheet {
  left: 0 !important; right: 0; top: auto !important; bottom: 0;
  width: 100%; max-width: none; max-height: 72vh;
  border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}

/* ============================================================
   /board
   ============================================================ */
.bp { padding-top: 26px; padding-bottom: 60px; min-height: 60vh; }
.bp-loading { padding: 40px 0; }
.bp-empty-page { max-width: 520px; margin: 40px auto; text-align: center; }
.bp-empty-page h1 { font-size: 26px; color: var(--white); margin: 16px 0 10px; }
.bp-empty-page p { color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.bp-empty-page .bd-btn { min-width: 180px; }

/* list of boards */
.bp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.bp-list-head h1 { font-size: 28px; color: var(--white); }
.bp-new { width: min(440px, 100%); }
.bp-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bp-board-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius);
  color: var(--offwhite); transition: border-color .15s ease, transform .15s ease;
}
.bp-board-card:hover { border-color: rgba(243, 193, 27, .5); transform: translateY(-1px); }
.bp-board-ico { color: var(--yellow); }
.bp-board-ico svg { width: 22px; height: 22px; }
.bp-board-t { font-size: 17px; font-weight: 700; color: var(--white); }
.bp-board-d { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-board-m { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.bp-empty { padding: 22px; border: 1px dashed var(--charcoal-line); border-radius: var(--radius); color: var(--muted); }
.bp-empty strong { color: var(--offwhite); }
.bp-empty p + p { margin-top: 6px; }
.bp-empty a { color: var(--yellow); }

/* one board: header */
.bp-head { margin-bottom: 18px; }
.bp-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.bp-back svg { width: 14px; height: 14px; }
.bp-back:hover { color: var(--yellow); }
.bp-kicker {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--yellow);
}
.bp-kicker svg { width: 13px; height: 13px; }
.bp-head > .bp-kicker { margin-bottom: 8px; }
.bp-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; color: var(--white); font-weight: 700; outline: none; border-radius: 6px; }
.bp-desc { margin-top: 6px; color: var(--muted); font-size: 15.5px; max-width: 760px; outline: none; border-radius: 6px; min-height: 1.5em; }
[contenteditable]:focus { box-shadow: 0 0 0 2px rgba(243, 193, 27, .45); }
[contenteditable][data-ph]:empty::before { content: attr(data-ph); color: #6d6e74; }
.bp-title[contenteditable]:hover, .bp-desc[contenteditable]:hover, .bp-sec-head h2[contenteditable]:hover { background: rgba(255, 255, 255, .03); }
.bp-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.bp-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.bp-tool-group { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tool {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .04); color: var(--offwhite); border: 1px solid var(--charcoal-line);
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.bp-tool svg { width: 15px; height: 15px; }
.bp-tool:hover { border-color: var(--yellow); color: var(--yellow); }
.bp-tool.on { border-color: var(--yellow); color: var(--yellow); }
.bp-tool:disabled { opacity: .6; cursor: default; }
.bp-tool-primary { background: var(--yellow); border-color: var(--yellow); color: #1c1d20; }
.bp-tool-primary:hover { color: #1c1d20; filter: brightness(1.06); }
.bp-tool-icon { padding: 8px 10px; }
.bp-inline:empty { display: none; }
.bp-inline { margin-top: 12px; max-width: 640px; }
.bp-inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-inline-form .bd-input { flex: 1 1 260px; }
.bp-updates {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; padding: 11px 14px;
  border-radius: 12px; background: rgba(243, 193, 27, .08); border: 1px solid rgba(243, 193, 27, .3);
  color: var(--offwhite); font-size: 14px;
}
.bp-updates svg { width: 16px; height: 16px; color: var(--yellow); flex: none; }

/* sections */
.bp-sec { margin-top: 26px; }
.bp-sec:first-child { margin-top: 6px; }
.bp-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--charcoal-line); }
.bp-sec-head h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--offwhite); outline: none; padding: 2px 4px; margin-left: -4px; border-radius: 5px; }
.bp-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.bp-sec-hint { font-size: 12.5px; color: var(--muted); }
.bp-sec-more { margin-left: auto; position: static !important; }

/* the card grid */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; min-height: 40px; border-radius: 12px; transition: background .12s ease; }
.bp-grid.drop-on { background: rgba(243, 193, 27, .05); }
.bp-grid-empty { grid-column: 1 / -1; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--charcoal-line); border-radius: 12px; }
.bp-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
/* the whole card opens the reader (2026-10-18); dragging still works */
.bp-card { cursor: pointer; }
.bp-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.bp-card:hover { border-color: #4a4b52; }
.bp-card.dragging { opacity: .4; }
.bp-card.drop-before { box-shadow: -4px 0 0 0 var(--yellow); }
.bp-media { aspect-ratio: 16 / 9; background: #1d1e21; overflow: hidden; }
.bp-media img { width: 100%; height: 100%; object-fit: cover; }
.bp-card--image .bp-media { cursor: zoom-in; aspect-ratio: auto; max-height: 260px; }
.bp-card--image .bp-media img { object-fit: contain; max-height: 260px; }
.bp-card-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 12px; flex: 1; }
.bp-card h3 { font-size: 15.5px; line-height: 1.35; font-weight: 650; color: var(--white); padding-right: 22px; text-wrap: pretty; overflow-wrap: anywhere; }
.bp-card h3 a:hover { color: var(--yellow); }
.bp-file-open { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.bp-file-open:hover { color: var(--yellow); }
.bp-sum { font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bp-src { font-size: 12.5px; color: var(--offwhite); opacity: .85; }
.bp-status { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--charcoal-line); }
.bp-status.law { background: rgba(143, 191, 122, .16); border-color: rgba(143, 191, 122, .45); color: #b9dcaa; }
.bp-new {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 9px; font-size: 12.5px;
  background: rgba(243, 193, 27, .1); color: var(--offwhite); border: 1px solid rgba(243, 193, 27, .3);
}
.bp-new svg { width: 14px; height: 14px; color: var(--yellow); flex: none; }
.bp-new span { flex: 1; min-width: 0; }
.bp-new button { background: none; border: 0; padding: 0; color: var(--yellow); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bp-why { font-size: 13.5px; line-height: 1.5; color: var(--offwhite); padding-left: 10px; border-left: 2px solid var(--yellow); }
.bp-why span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.bp-why-edit { display: flex; flex-direction: column; gap: 8px; }
.bp-foot { margin-top: auto; padding-top: 2px; font-size: 12px; color: var(--muted); }
.bp-more {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid transparent; background: rgba(28, 29, 32, .75); color: var(--muted); cursor: pointer;
}
.bp-more svg { width: 16px; height: 16px; }
.bp-more:hover, .bp-more:focus-visible { color: var(--yellow); border-color: rgba(243, 193, 27, .4); outline: none; }

/* notes */
.bp-card--note { background: #2c2b27; border-color: #46433a; }
.bp-note { font-size: 14.5px; line-height: 1.55; color: var(--offwhite); overflow-wrap: anywhere; padding-right: 18px; }
.bp-note p, .bp-ed p { margin: 0 0 8px; }
.bp-note h3, .bp-ed h3 { font-size: 15.5px; color: var(--white); margin: 4px 0 6px; padding: 0; }
.bp-note ul, .bp-note ol, .bp-ed ul, .bp-ed ol { margin: 0 0 8px 20px; }
.bp-note blockquote, .bp-ed blockquote { margin: 0 0 8px; padding-left: 10px; border-left: 2px solid var(--charcoal-line); color: var(--muted); }
.bp-note a, .bp-ed a { color: var(--yellow); text-decoration: underline; }
.bp-note > :last-child { margin-bottom: 0; }
.bp-ed-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.bp-ed-btn {
  min-width: 30px; height: 28px; padding: 0 7px; display: inline-grid; place-items: center;
  border-radius: 7px; border: 1px solid var(--charcoal-line); background: rgba(255, 255, 255, .04);
  color: var(--offwhite); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.bp-ed-btn svg { width: 14px; height: 14px; }
.bp-ed-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.bp-ed {
  min-height: 120px; max-height: 420px; overflow-y: auto; padding: 10px 12px;
  border: 1px solid var(--charcoal-line); border-radius: 10px; background: rgba(0, 0, 0, .15);
  font-size: 14.5px; line-height: 1.55; outline: none;
}
.bp-ed:focus { border-color: var(--yellow); box-shadow: none; }
.bp-ed-actions { display: flex; gap: 8px; }
.bp-ed-actions .bd-btn { padding: 7px 14px; }

/* menus (card, section, board, share) */
.bp-menu {
  position: fixed; z-index: 170; min-width: 220px; max-width: min(380px, calc(100vw - 16px));
  max-height: calc(100vh - 16px); overflow-y: auto;
  background: #1f2024; border: 1px solid var(--charcoal-line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45); padding: 6px;
}
.bp-mi {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px;
  border-radius: 8px; border: 0; background: transparent; color: var(--offwhite);
  font-family: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
}
.bp-mi svg, .bp-mi-sp { width: 15px; height: 15px; flex: none; }
.bp-mi:hover:not(:disabled), .bp-mi:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.bp-mi:disabled { opacity: .4; cursor: default; }
.bp-mi-danger { color: #f19a8f; }
.bp-mh { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bp-msep { height: 1px; margin: 5px 4px; background: var(--charcoal-line); }
.bp-share { padding: 8px; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 12px; }
.bp-share-row { display: flex; gap: 14px; align-items: flex-start; }
.bp-share-row strong { color: var(--white); font-size: 14.5px; }
.bp-share-row .bd-muted { margin-top: 3px; font-size: 13px; line-height: 1.45; }
.bp-share-link { display: flex; gap: 8px; }
.bp-share-link .bd-input { font-size: 12.5px; }
.bp-share .bd-fine { margin: 0; }
.bp-copybox { font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.bp-switch {
  position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; border-radius: 999px; cursor: pointer;
  background: #45464c; border: 0; transition: background .15s ease;
}
.bp-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.bp-switch.on { background: var(--yellow); }
.bp-switch.on span { transform: translateX(18px); }

/* the reader: one card, opened on the board itself */
.bp-rd-scrim {
  position: fixed; inset: 0; z-index: 155; background: rgba(12, 13, 15, .55);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.bp-rd-scrim.open { opacity: 1; pointer-events: auto; }
.bp-reader {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(640px, 100vw); display: flex; flex-direction: column;
  background: var(--charcoal); border-left: 1px solid var(--charcoal-line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .35); outline: none;
  transform: translateX(102%); transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.bp-reader.open { transform: none; }
body.bp-reading { overflow: hidden; }
.bp-rd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 10px 24px; border-bottom: 1px solid var(--charcoal-line);
}
.bp-rd-nav { display: flex; align-items: center; gap: 2px; }
.bp-rd-pos { font-size: 12.5px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.bp-rd-nav .bd-x:disabled { opacity: .3; cursor: default; }
.bp-rd-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.bp-rd-media { margin: -20px -24px 4px; max-height: 300px; overflow: hidden; background: #1d1e21; }
.bp-rd-media img { width: 100%; max-height: 300px; object-fit: cover; }
.bp-rd-title { font-size: 24px; line-height: 1.25; color: var(--white); font-weight: 700; text-wrap: pretty; overflow-wrap: anywhere; }
.bp-rd-meta { font-size: 13px; color: var(--muted); }
.bp-rd-sum { font-size: 15.5px; line-height: 1.6; color: var(--offwhite); }
.bp-rd-leans { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-rd-lean { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--charcoal-line); color: var(--muted); }
.bp-rd-lean b { color: var(--offwhite); font-weight: 700; margin-left: 2px; }
.bp-rd-h { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--offwhite); }
.bp-rd-h span { color: var(--muted); margin-left: 4px; }
.bp-rd-arts { display: flex; flex-direction: column; border-top: 1px solid var(--charcoal-line); }
.bp-rd-art {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 2px;
  border-bottom: 1px solid var(--charcoal-line); color: var(--offwhite);
}
a.bp-rd-art:hover .bp-rd-t { color: var(--yellow); }
.bp-rd-src { grid-column: 1; font-size: 12.5px; font-weight: 700; color: var(--white); }
.bp-rd-src i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.bp-rd-d { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bp-rd-t { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.4; }
.bp-rd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bp-rd-note { font-size: 16px; padding-right: 0; }
.bp-rd-file { min-height: 60px; }
.bp-rd-img { max-width: 100%; max-height: 70vh; border-radius: 10px; margin: 0 auto; }
.bp-rd-pdf { width: 100%; height: 70vh; border: 1px solid var(--charcoal-line); border-radius: 10px; background: #fff; }
.bp-rd-fileicon { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--charcoal-line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.bp-rd-fileicon svg { width: 30px; height: 30px; color: var(--yellow); flex: none; }
.bp-rd-foot { display: flex; gap: 8px; padding: 12px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--charcoal-line); }
.bp-rd-body .bp-ed { max-height: none; min-height: 220px; }

.bp-made { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13.5px; }
.bp-made a { color: var(--yellow); font-weight: 600; }

/* dropping files from the desktop */
.bp-drop {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  background: rgba(20, 21, 24, .78); opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.bp-drop.on { opacity: 1; }
.bp-drop > div {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 44px;
  border: 2px dashed var(--yellow); border-radius: 18px; color: var(--white); font-size: 17px; font-weight: 600;
}
.bp-drop svg { width: 34px; height: 34px; color: var(--yellow); }

/* ---------- phones ---------- */
@media (max-width: 680px) {
  .bd-drawer { width: 100vw; border-left: 0; }
  .bd-drawer-head { padding: 14px 10px 8px 18px; }
  .bd-drawer-body { padding: 4px 18px 18px; }
  .bd-drawer-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .bd-add--foot, .drow .bd-add--end, .top-card .bd-add--end { opacity: 1; }
  .bp { padding-top: 18px; }
  .bp-list-head h1 { font-size: 24px; }
  .bp-grid, .bp-board-grid { grid-template-columns: 1fr; }
  .bp-tools { flex-direction: column; align-items: stretch; }
  .bp-tool { padding: 9px 12px; }
  .bp-tool-group { gap: 6px; }
  .bp-reader { width: 100vw; border-left: 0; }
  .bp-rd-head { padding: 10px 8px 8px 18px; }
  .bp-rd-body { padding: 18px 18px 24px; }
  .bp-rd-media { margin: -18px -18px 4px; }
  .bp-rd-title { font-size: 21px; }
  .bp-rd-foot { padding-left: 18px; padding-right: 18px; }
  .bp-sec-hint { display: none; }
  .bp-share-link { flex-direction: column; }
  .bd-toast { border-radius: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-drawer, .bd-scrim, .bd-toast, .bp-card, .bp-board-card, .bp-drop, .bp-reader, .bp-rd-scrim { transition: none !important; }
}
