/* public/library.css — Brands, a brand's page, and Boards (public/library.js).
 * Lives inside .cmp-pane.is-dark, so --panel / --text / --border are the dark
 * room's. The creative is the hero everywhere: the grid is the page, the text
 * stays quiet and sits on or under it. */

.lib-page { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 8px 28px 64px; }
.lib-page[hidden] { display: none; }
.lib-root { max-width: 1320px; margin: 0 auto; }
.lib-root .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.lib-head { display: grid; gap: 4px; margin: 18px 0 18px; }
.lib-head-act { display: flex; gap: 14px; margin-top: 6px; }
.lib-h2 { margin: 0; font: 700 clamp(26px, 3.2vw, 38px)/1.1 var(--xdisplay, inherit); letter-spacing: -.02em; color: var(--text); }
.lib-h3 { margin: 28px 0 12px; font: 600 18px/1.3 var(--xdisplay, inherit); color: var(--text); }
.lib-empty:empty { display: none; }
.lib-sub { margin: 0; color: var(--text-2); font-size: 14px; }
.lib-sub a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.lib-summary { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.lib-empty, .lib-loading, .lib-none { color: var(--muted); font-size: 14px; padding: 28px 0; margin: 0; }
.lib-none { padding: 6px 0; }
.lib-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.lib-sentinel { height: 1px; }

.lib-link { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lib-link:hover { color: var(--text); }
.lib-link.is-danger:hover { color: var(--danger); }
.lib-back { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 0 -4px; padding: 4px 8px 4px 4px; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; border-radius: var(--r-sm); }
.lib-back:hover { color: var(--text); background: var(--panel-2); }

/* toolbar */
.lib-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.lib-input, .lib-select {
  height: 38px; padding: 0 12px; background: var(--panel); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--r-sm); font: inherit; font-size: 14px;
}
.lib-input { flex: 1 1 260px; max-width: 420px; }
.lib-input:focus-visible, .lib-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* brands table: hairline rows, no card chrome */
.lib-thead, .lib-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) minmax(110px, 1fr) minmax(110px, .9fr) 80px 110px 110px; gap: 16px; align-items: center; padding: 0 12px; }
/* Tunisia tab: a Platform column (the website builder, from Stores) after the brand */
.lib-btable.has-platform .lib-thead, .lib-btable.has-platform .lib-row { grid-template-columns: minmax(220px, 2.2fr) minmax(120px, .9fr) minmax(110px, 1fr) minmax(110px, .9fr) 80px 110px 110px; }
.lib-thead { height: 36px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.lib-row { min-height: 64px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 0; transition: background .15s ease; }
.lib-row:hover { background: var(--panel); }
.lib-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lib-cell { min-width: 0; font-size: 14px; color: var(--text); }
.lib-muted { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-nums { font-variant-numeric: tabular-nums; color: var(--text-2); }
.lib-nums b { color: var(--text); font-weight: 600; }
.lib-act { display: flex; justify-content: flex-end; }
.lib-brand { display: flex; align-items: center; gap: 12px; }
.lib-brand-txt { display: grid; min-width: 0; }
.lib-brand-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-brand-txt small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-logo { width: 38px; height: 38px; flex: none; border-radius: var(--r); background: var(--panel-3); color: var(--text-2); display: grid; place-items: center; font: 700 15px var(--xdisplay, inherit); overflow: hidden; }
.lib-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-logo.is-big { width: 64px; height: 64px; border-radius: var(--r-lg); font-size: 24px; }

.lib-follow { height: 32px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: transparent; color: var(--text); font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; }
.lib-follow:hover:not(:disabled) { background: var(--text); color: var(--bg); border-color: var(--text); }
.lib-follow.is-on, .lib-follow:disabled { color: var(--muted); border-color: var(--border); cursor: default; }
.lib-follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* one brand */
.lib-bhead { display: flex; align-items: center; gap: 18px; margin: 18px 0 22px; flex-wrap: wrap; }
.lib-bhead-txt { display: grid; gap: 4px; flex: 1 1 240px; min-width: 0; }
.lib-bstats { display: flex; gap: 28px; }
.lib-bstats div { display: grid; gap: 2px; }
.lib-bstats b { font: 700 24px/1 var(--xdisplay, inherit); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lib-bstats span { color: var(--muted); font-size: 12px; }

.lib-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 30px; }
.lib-panel { background: var(--panel); border-radius: var(--r-lg); padding: 18px 18px 16px; min-width: 0; }
.lib-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lib-panel-hd h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.lib-big { margin: 0 0 8px; color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.lib-big b { color: var(--text); font: 700 30px/1 var(--xdisplay, inherit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lib-big small { flex-basis: 100%; font-size: 12px; }
.lib-big .is-up { color: var(--ok); }
.lib-big .is-down { color: var(--danger); }
.lib-chart { display: block; width: 100%; height: 84px; }
.lib-chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lib-chart-area { stroke: none; }
.lib-chart-stop { stop-color: var(--accent); }
.lib-range { display: inline-flex; gap: 2px; }
.lib-range button { height: 26px; padding: 0 8px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); font-weight: 600; font-size: 12px; font-family: inherit; cursor: pointer; }
.lib-range button:hover { color: var(--text); }
.lib-range button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }

.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lib-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.lib-bar-k { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-bar-v { display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; }
.lib-bar-v i { font-style: normal; color: var(--muted); }
.lib-bar-track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.lib-bar-track i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.lib-bar-row small { grid-column: 1 / -1; color: var(--muted); }

.lib-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.lib-tab { background: none; border: 0; padding: 10px 0; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.lib-tab:hover { color: var(--text); }
.lib-tab.is-sel { color: var(--text); border-bottom-color: var(--text); }
.lib-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lib-hooks { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.lib-hook { display: grid; gap: 6px; padding: 16px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.lib-hook:hover .lib-hook-txt { color: var(--accent-ink); }
.lib-hook:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lib-hook-txt { font-size: 16px; line-height: 1.4; color: var(--text); }
.lib-hook-n { color: var(--muted); font-size: 12px; }
.lib-hook-n b { color: var(--text-2); font-weight: 600; }

/* the masonry: the picture is the card */
.lib-masonry { display: flex; gap: 12px; align-items: flex-start; }
.lib-col { flex: 1 1 0; min-width: 0; display: grid; gap: 12px; }
.lib-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--panel-2); cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.lib-card:hover { box-shadow: 0 22px 44px -22px #000, 0 0 0 1px var(--border-2); }
.lib-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lib-media { position: relative; width: 100%; background: var(--panel-3); }
.lib-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lib-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
/* no backdrop-filter on the chips: one per card made a compositor layer per card (scroll perf, 2026-10-17) */
.lib-run, .lib-vid { position: absolute; top: 10px; height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: var(--r-xs); background: rgb(9 11 18 / .78); color: #fff; font-weight: 600; font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums; }
.lib-run { left: 10px; }
.lib-vid { right: 10px; padding: 0 6px; }
.lib-hover { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 36px 10px 10px; background: linear-gradient(to top, rgb(9 11 18 / .88), transparent); opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.lib-card:hover .lib-hover, .lib-card:focus-within .lib-hover { opacity: 1; transform: none; }
@media (hover: none) { .lib-hover { opacity: 1; transform: none; } }
.lib-hover-txt { flex: 1 1 auto; min-width: 0; display: grid; color: #fff; }
.lib-hover-txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-hover-txt small { font-size: 12px; opacity: .78; }
.lib-save { padding: 0 12px; height: 32px; border: 0; border-radius: var(--r-sm); background: rgb(255 255 255 / .92); color: #0A0F26; font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; }
.lib-save[aria-pressed="true"] { background: var(--accent); color: #fff; }
.lib-save:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 820px) {
  .lib-page { padding: 4px 14px 56px; }
  .lib-thead { display: none; }
  .lib-row { grid-template-columns: 1fr auto; row-gap: 4px; padding: 12px 4px; }
  .lib-row .lib-m-hide { display: none; }
  .lib-bstats { gap: 20px; }
  .lib-masonry { gap: 8px; }
  .lib-col { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lib-card, .lib-hover, .lib-row { transition: none; }
  .lib-card:hover { transform: none; }
}

/* Inspiration (the Pinterest wall): the hero and toolbar are Explore's, which carry their
   own page gutter; pull them back so they line up with the grid under them. */
.insp-top { margin: 0 calc(-1 * var(--page-gutter, 0px)); }
.insp-grid { margin-top: 18px; }
/* Saved › Inspiration: Rename / Delete under the chosen folder, on the folder row's gutter. */
.insp-top .cmp-savedacts { display: block; padding: var(--s2) var(--page-gutter) 0; }
.insp-top .cmp-savedacts[hidden] { display: none; }

/* Inspiration fills the screen like Explore: no 1320px column, the same page gutter on both
   sides, so the wall runs edge to edge under the hero and the toolbar. */
.lib-page:has(.insp-top) { padding-left: var(--page-gutter, 28px); padding-right: var(--page-gutter, 28px); }
.lib-root:has(.insp-top) { max-width: none; }

/* Saved › Scripts (public/scripts.js). The cards reuse the Copywriter's .cw-* look. */
.sc-page { max-width: 860px; margin: 0 auto; padding: 8px 0 48px; display: grid; gap: 18px; }
.sc-list { display: grid; gap: 28px; }
.sc-row { display: grid; gap: 12px; }
.sc-row-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sc-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.sc-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.sc-acts { display: flex; gap: 8px; align-items: center; }
.sc-empty { color: var(--muted); font-size: 14px; }
.sc-h { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sc-card .sc-text { min-height: 120px; }
.cw-controls .sc-brief { flex: 1 0 100%; width: 100%; box-sizing: border-box; }

/* "Adapt to my brand" drawer (scripts.js adapt): the ad viewer's parts
   (.av-langs, .av-rows, .av-post, .av-ghost, .av-fold), one filled button. */
.sc-drawer { --xdisplay: inherit; }
.sc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px; padding-right: 60px; }
.sc-badge {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--border); color: var(--text-2);
}
.sc-badge .av-ic { width: 18px; height: 18px; }
.sc-head-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-dtitle { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
.sc-sub { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: 12.5px; color: var(--muted); }
.sc-sub > span:not(.av-ic) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-sub .av-ic { width: 12px; height: 12px; }
.sc-sub-b { color: var(--text-2); }
.sc-x { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); font-size: 22px; }
.sc-x:hover { background: var(--panel-2); border-color: transparent; }

.sc-set { display: flex; flex-direction: column; gap: 16px; padding: 4px 20px 18px; border-bottom: 1px solid var(--border); }
.sc-rows { gap: 10px; }
.sc-opt { align-items: center; min-height: 32px; }
.sc-opt .av-k { flex-basis: 84px; }
.sc-v { flex: 1; min-width: 0; display: flex; }
.sc-pills { flex-wrap: wrap; }
.sc-pills .av-lang { height: 28px; padding: 0 12px; font-size: 13px; }
.sc-brief {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; box-sizing: border-box;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: transparent;
  color: var(--text); font: inherit; font-size: 13px;
}
.sc-brief::placeholder { color: var(--muted); }
.sc-brief:hover { border-color: var(--border-2); }
.sc-brief:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.sc-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sc-go { gap: 8px; height: 36px; padding: 0 16px; }
.sc-go .av-ic { width: 15px; height: 15px; }
.sc-go[aria-busy="true"] { cursor: progress; }
.sc-hint { margin: 0; font-size: 12px; color: var(--muted); }

.sc-scroll { padding: 20px 20px 28px; }
.sc-out { display: flex; flex-direction: column; gap: 18px; }
.sc-script-hd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-script-t { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.sc-script-s { margin: 0; font-size: 12px; color: var(--muted); }
.sc-script .av-sechd { align-items: flex-start; }
.sc-plate { padding: 12px 14px; }
.sc-words {
  display: block; width: 100%; box-sizing: border-box; resize: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.65; unicode-bidi: plaintext;
}
.sc-words:focus { outline: none; }
.sc-plate:focus-within { box-shadow: var(--focus); }
.sc-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.sc-cost { margin: -8px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-err { color: var(--danger); }
.sc-olderbox.is-after { padding-top: 14px; border-top: 1px solid var(--border); }
.sc-older { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.sc-older[hidden] { display: none; }
.sc-skel { background: var(--panel-2); }
@media (max-width: 720px) {
  .sc-head { padding: 14px 14px 12px; padding-right: 56px; }
  .sc-x { top: 14px; right: 12px; }
  .sc-set { padding: 4px 14px 16px; }
  .sc-scroll { padding: 16px 14px 24px; }
  .sc-opt { flex-direction: column; align-items: stretch; gap: 6px; }
  .sc-opt .av-k { flex-basis: auto; font-size: 12px; }
}

/* Brand page: the panels arrive once, one after another; the bars grow from the left. */
.lib-panel { animation: mo-rise var(--dur-3) var(--spring) backwards; }
.lib-panel:nth-child(2) { animation-delay: 40ms; }
.lib-panel:nth-child(3) { animation-delay: 80ms; }
.lib-panel:nth-child(4) { animation-delay: 120ms; }
.lib-panel:nth-child(5) { animation-delay: 160ms; }
.lib-bar-track i { transform-origin: left center; animation: lib-bar-grow var(--dur-3) var(--spring) 120ms backwards; }
@keyframes lib-bar-grow { from { transform: scaleX(0); } }

/* ═══════ Boards (Create › Boards): Saved's folders as boards ═══════
   A contact sheet of boards: each one its first pictures on a neutral ground,
   the name and count quiet underneath. Hover is a border shift, no lift (DESIGN.md §3). */
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.bd-head .btn .ico, .bd-empty .btn .ico { width: 14px; height: 14px; color: currentColor; }
.bd-bar { flex-wrap: nowrap; margin-bottom: var(--s5); }
.bd-bar .bd-search { max-width: none; }
.bd-head-txt { display: grid; gap: 4px; min-width: 0; }
.bd-head-txt .lib-h2 { overflow-wrap: anywhere; }
.bd-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.bd-count-line { font-variant-numeric: tabular-nums; }

.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s5) var(--s4); }
.bd-card { display: grid; gap: var(--s2); color: inherit; text-decoration: none; border-radius: var(--r-lg); }
.bd-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bd-cover {
  display: grid; gap: 2px; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel-3);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.bd-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.bd-cover[data-n="2"] { grid-template-columns: 1fr 1fr; }
.bd-cover[data-n="3"] { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.bd-cover[data-n="3"] img:first-child { grid-row: span 2; }
.bd-cover.is-empty { border-style: dashed; border-color: var(--border-2); background: transparent; }
.bd-cover-empty { place-self: center; display: grid; justify-items: center; gap: var(--s2); color: var(--muted); font-size: 12.5px; }
.bd-cover-empty .ico { width: 22px; height: 22px; }
.bd-card:hover .bd-cover { border-color: var(--border-2); box-shadow: var(--shadow); }
.bd-foot { display: grid; gap: 2px; padding: 0 2px; min-width: 0; }
.bd-name { font-size: 15px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bd-empty { display: grid; gap: var(--s2); justify-items: center; text-align: center; padding: var(--s7) var(--s4); }
.bd-empty[hidden] { display: none; }
.bd-grid:not([hidden]) + .lib-empty + .bd-empty { padding-top: var(--s6); }
.bd-empty-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s2); border: 1px solid var(--border); border-radius: var(--r); background: var(--panel-2); color: var(--text-2); }
.bd-empty-ico .ico { width: 20px; height: 20px; }
.bd-empty-lead { margin: 0; font-size: 16px; font-weight: 650; color: var(--text); }
.bd-empty-sub { margin: 0 0 var(--s3); max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.5; }

.lib-card.is-gone { opacity: .35; pointer-events: none; }
/* the hover button a board puts where Save sits (Add, Remove): one line, like Save */
.lib-save.bd-save { flex: none; white-space: nowrap; }

/* « Add to board » from a Studio picture: Saved's folder chips, inside the app's dialog */
.bd-choose { margin: var(--s2) 0 var(--s4); }

/* « Add »: the app's own dialog, wider, with a sheet of small prints to tick */
.confirm.bd-pick { width: min(640px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; }
.bd-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s3);
  min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 2px 2px var(--s5); margin: 0 -2px;
  /* the last row fades into the foot instead of being cut by it */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
}
.bd-pick .confirm-actions { margin-top: 0; padding-top: var(--s4); border-top: 1px solid var(--border); }
.bd-pick-tile { display: grid; gap: 4px; align-content: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bd-pick-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel-3); }
.bd-pick-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-pick-tile:hover .bd-pick-img { border-color: var(--border-2); }
.bd-pick-tile:focus-visible { outline: none; }
.bd-pick-tile:focus-visible .bd-pick-img { box-shadow: var(--focus); }
.bd-pick-tile[aria-pressed="true"] .bd-pick-img { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bd-pick-check {
  position: absolute; top: var(--s1); right: var(--s1); width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; background: rgb(9 11 18 / .35); box-shadow: 0 0 0 1px rgb(9 11 18 / .35);
}
.bd-pick-tile[aria-pressed="true"] .bd-pick-check { background: var(--accent); border-color: var(--accent); }
.bd-pick-tile[aria-pressed="true"] .bd-pick-check::after {
  content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px;
  border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bd-pick-who { font-size: 12.5px; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-pick-on { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-pick-more { align-self: center; margin: var(--s2) 0 0; }
.bd-pick-more[hidden] { display: none; }

@media (max-width: 640px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .bd-name { font-size: 14px; }
  .bd-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  .bd-cover { transition: none; }
}

/* Lot 2 · the Brands grammar here too (founder, 26/10): the small title, one
   quiet search, square « Label: value » chips, small square buttons. The
   pages keep their own layout (Boards v2 is the founder's). */
.lib-h2 { font: 500 var(--fs-h1)/28px var(--font, inherit); letter-spacing: 0; }
.lib-bhead .lib-h2 { font-size: var(--fs-h1); }
.lib-head { margin: var(--s4) 0 var(--s3); }
.bd-head .btn { height: var(--h-sm); padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r-xs); }
.lib-follow { height: var(--h-sm); padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r-xs); }
.lib-bar { gap: 6px; align-items: center; }
.lib-bar .dir-chip-sort { margin-left: auto; }
.lib-root .dir-chip-ico { width: 12px; height: 12px; color: var(--muted); }
.lib-searchwrap { position: relative; flex: 0 1 320px; display: flex; }
.lib-root .lib-search-ico { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.lib-searchwrap .lib-input { flex: 1 1 auto; max-width: none; padding-left: 32px; }
.lib-input, .lib-select { height: var(--h-md); font-size: var(--fs-ui); border-radius: var(--r-xs); background: var(--panel-2); border-color: var(--border); }

/* Inspiration: Explore's toolbar in the same chips (lot 1's rules, here outside .is-explore) */
.cmp-pane.is-one .ig-bar { padding: var(--s2) var(--page-gutter) 0; gap: 6px; align-items: center; }
.cmp-pane.is-one .ig-bar .cmp-field { flex: 0 1 520px; }
.cmp-pane.is-one .ig-bar .cmp-input { height: var(--h-md); padding-left: 32px; font-size: var(--fs-ui); border-radius: var(--r-xs); background: var(--panel-2); border-color: var(--border); box-shadow: none; }
.cmp-pane.is-one .ig-bar .cmp-field-ico { left: 10px; width: 14px; height: 14px; }
.cmp-pane.is-one .ig-bar .dir-chip-sort { margin-left: auto; }
@media (max-width: 760px) {
  .lib-bar .dir-chip-sort, .cmp-pane.is-one .ig-bar .dir-chip-sort { margin-left: 0; }
  .lib-searchwrap { flex-basis: 100%; }
}
