/* 思考台（app/brain.py）：只给 Edmond 本人。一段一件事：项目卡片、随手记、专题（一节一节的文字）、以前的页面、改动记录。 */
[hidden] { display: none !important; }

.bn-app { max-width: 1120px; margin: 0 auto; padding: var(--sp-4) var(--sp-4) 80px; display: flex; flex-direction: column; gap: var(--sp-4); color: var(--text-primary); }
.bn-head h1 { margin: 0; font-size: var(--fs-xl); }
.bn-head p { margin: var(--sp-1) 0 0; color: var(--text-secondary); max-width: 46em; }
.bn-meta { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }

.bn-sec { display: flex; flex-direction: column; gap: var(--sp-3); scroll-margin-top: 56px; }
.bn-sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.bn-sec-head h2 { margin: 0; font-size: var(--fs-lg); white-space: nowrap; }
.bn-sub { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

.bn-btn { height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  color: var(--text-primary); font: inherit; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.bn-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.bn-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.bn-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.bn-btn.primary:hover { opacity: .92; }
.bn-btn.danger { color: var(--danger-fg); border-color: var(--danger-border); }
.bn-btn.small { height: 24px; padding: 0 8px; font-size: var(--fs-xs); }
.bn-btn:disabled { opacity: .5; cursor: default; }

/* 状态小牌子：一个状态一个底色（文字说状态，颜色只是帮着扫） */
.bn-st { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-xs); white-space: nowrap;
  background: var(--surface-sunken); color: var(--text-secondary); }
.bn-st[data-s="等你定"] { background: var(--fluo-bg); color: var(--text-primary); font-weight: var(--fw-semibold); }
.bn-st[data-s="在做"] { background: var(--success-bg); color: var(--success-fg); }
.bn-st[data-s="试运行"] { background: var(--accent-soft-bg); color: var(--accent-soft-fg); }
.bn-st[data-s="先调研"] { background: var(--tag-4-bg); color: var(--text-primary); }
.bn-st[data-s="放一放"] { background: var(--tag-6-bg); color: var(--text-secondary); }
.bn-st[data-s="想法"] { background: var(--tag-2-bg); color: var(--text-primary); }
.bn-st[data-s="已收尾"] { background: var(--surface-sunken); color: var(--text-muted); }
.bn-st[data-s="归档"], .bn-st[data-s="放弃"] { background: var(--surface-sunken); color: var(--text-muted); text-decoration: line-through; }

/* 10-24 第三轮：好做程度、价钱小标（卡片上只多这两样 + 封面小图） */
.bn-ease, .bn-money { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); white-space: nowrap;
  border: 1px solid var(--border-subtle); background: var(--surface); color: var(--text-secondary); }
.bn-ease[data-e="容易"] { background: var(--success-bg); border-color: var(--success-border); color: var(--success-fg); }
.bn-ease[data-e="中等"] { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-fg); }
.bn-ease[data-e="难"] { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-fg); }
.bn-money { background: var(--info-bg); border-color: var(--info-border); color: var(--info-fg); font-variant-numeric: tabular-nums; }
.bn-bar { display: flex; flex-direction: column; gap: 6px; }
.bn-bar .bn-sort { align-self: flex-end; }
.bn-sort { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; padding: 2px; }
.bn-sort button { height: 26px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font: inherit; font-size: var(--fs-xs);
  cursor: pointer; border-radius: var(--radius-md); white-space: nowrap; }
.bn-sort button.on { background: var(--accent-soft-bg); border-color: var(--accent-soft-border); color: var(--accent-soft-fg); font-weight: var(--fw-semibold); }
.bn-hidden-line { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.bn-link { border: 0; background: none; padding: 0; font: inherit; color: var(--text-muted); cursor: pointer; text-decoration: underline dotted; }
.bn-link:hover, .bn-link.on { color: var(--accent); }
.bn-link.on { font-weight: var(--fw-semibold); text-decoration: none; }

.bn-kpis { margin: 0; }
.bn-kpis .sqv-kpi { flex: 1 1 110px; min-width: 96px; position: relative; text-align: left; font: inherit; }

/* 项目卡片 */
.bn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); }
.bn-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); cursor: pointer; min-width: 0; }
.bn-card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.bn-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bn-card-top { flex-wrap: wrap; justify-content: flex-start; }
.bn-card-top small { color: var(--text-muted); font-size: var(--fs-xs); white-space: nowrap; margin-left: auto; }
.bn-card-mid { display: flex; gap: 10px; align-items: flex-start; }
.bn-card-mid .bn-grow { display: flex; flex-direction: column; gap: 6px; }
.bn-cover { flex: 0 0 auto; width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.bn-card .bn-next small { color: var(--text-muted); }
.bn-card h3 { margin: 0; font-size: var(--fs-md); line-height: 1.4; }
.bn-card p { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.55; overflow-wrap: anywhere; }
.bn-card .bn-next { color: var(--text-primary); }
.bn-card .bn-next b { color: var(--text-muted); font-weight: var(--fw-regular); margin-right: 4px; }
.bn-links { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-xs); }
.bn-links a { color: var(--accent); text-decoration: none; }
.bn-links a:hover { text-decoration: underline; }
.bn-empty { padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); font-size: var(--fs-sm); text-align: center; }

/* 随手记 */
.bn-note-new { display: flex; gap: var(--sp-2); align-items: flex-start; position: sticky; top: 44px; z-index: 5; background: var(--canvas); padding: 4px 0; }
.bn-note-new textarea { flex: 1; min-width: 0; resize: vertical; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font: inherit; font-size: 16px; background: var(--surface); color: var(--text-primary); }
.bn-note-new textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 0; }
.bn-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bn-note { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 4px; border-bottom: 1px solid var(--border-subtle); }
.bn-note time { color: var(--text-muted); font-size: var(--fs-xs); line-height: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bn-note .bn-note-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.bn-note .bn-src { color: var(--text-muted); font-size: var(--fs-xs); }
.bn-note .bn-tools { visibility: hidden; display: flex; gap: 4px; }
.bn-note:hover .bn-tools, .bn-note:focus-within .bn-tools { visibility: visible; }

/* 专题 */
.bn-topic { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.bn-topic + .bn-topic { margin-top: var(--sp-3); }
.bn-topic-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.bn-topic-head h3 { margin: 0; font-size: var(--fs-lg); }
.bn-topic-head p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--fs-sm); flex-basis: 100%; }
.bn-block { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.bn-block:last-of-type { border-bottom: 0; }
.bn-block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.bn-block-head h4 { margin: 0; font-size: var(--fs-md); }
.bn-block .bn-tools { display: flex; gap: 4px; visibility: hidden; }
.bn-block:hover .bn-tools, .bn-block:focus-within .bn-tools { visibility: visible; }
.bn-topic-foot { padding: 10px 16px; display: flex; gap: var(--sp-2); }
.bn-topic-head .bn-tools-on { display: flex; gap: 4px; }
.bn-grow { flex: 1; min-width: 0; }
.bn-open { display: inline-flex; align-items: center; text-decoration: none; }
/* 专页（?topic=）：只这一个专题，专题自己的头不要框、字大一点 */
.bn-solo #sec-topics > .bn-sec-head { display: none; }
.bn-solo .bn-topic { border: 0; background: transparent; }
.bn-solo .bn-topic-head { padding: 0 0 10px; }
.bn-solo .bn-topic-head h3 { display: none; }
.bn-solo .bn-topic-head p { font-size: var(--fs-md); color: var(--text-primary); }
.bn-solo .bn-block { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: var(--sp-3); scroll-margin-top: 56px; }
.bn-solo .bn-block:last-of-type { border-bottom: 1px solid var(--border); }
.bn-solo .bn-topic-foot { padding: 0; }
.bn-meta a { color: var(--accent); text-decoration: none; }
.bn-meta a:hover { text-decoration: underline; }

/* 文字（专题里一节的正文） */
.bn-md { margin-top: 6px; line-height: 1.65; overflow-wrap: anywhere; }
.bn-md p { margin: 6px 0; }
.bn-md h5 { margin: 12px 0 4px; font-size: var(--fs-sm); color: var(--text-secondary); }
.bn-md ul, .bn-md ol { margin: 6px 0; padding-left: 1.3em; }
.bn-md li + li { margin-top: 3px; }
.bn-md li.ck { list-style: none; margin-left: -1.3em; display: flex; gap: 6px; align-items: baseline; }
.bn-md li.ck input { margin: 0; transform: translateY(2px); cursor: pointer; }
.bn-md li.ck.done > span { color: var(--text-muted); text-decoration: line-through; }
.bn-md li.sub { margin-left: 1.2em; }
.bn-md li.ck.sub { margin-left: 0; }
.bn-md mark { background: var(--fluo-bg); color: var(--text-primary); padding: 0 2px; border-radius: 2px; }
.bn-md code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-sunken); padding: 0 4px; border-radius: 3px; }
.bn-md a { color: var(--accent); }
.bn-md .bn-mdt { overflow-x: auto; margin: 8px 0; }
.bn-md table { border-collapse: collapse; font-size: var(--fs-sm); min-width: 100%; }
.bn-md th, .bn-md td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.bn-md th { background: var(--surface-sunken); font-weight: var(--fw-semibold); white-space: nowrap; }
.bn-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.bn-edit input, .bn-edit textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font: inherit; font-size: 15px; background: var(--surface); color: var(--text-primary); }
.bn-edit textarea { min-height: 220px; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.bn-edit .bn-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bn-edit .bn-row small { color: var(--text-muted); font-size: var(--fs-xs); }

/* 以前的页面 */
.bn-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.bn-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); table-layout: fixed; }
.bn-table th { position: sticky; top: 44px; z-index: 2; background: var(--surface-sunken); text-align: left; font-weight: var(--fw-semibold);
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bn-table th:first-child { border-top-left-radius: var(--radius-lg); }
.bn-table th:last-child { border-top-right-radius: var(--radius-lg); }
.bn-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-table tr:last-child td { border-bottom: 0; }
.bn-table tbody tr { cursor: pointer; }
.bn-table tbody tr:hover td { background: var(--surface-hover); }
.bn-table tbody tr.on td { background: var(--accent-soft-bg); }
.bn-table col.c1 { width: 24%; } .bn-table col.c2 { width: 70px; } .bn-table col.c4 { width: 18%; } .bn-table col.c5 { width: 96px; }
.bn-table td:nth-child(2), .bn-table td:nth-child(5) { white-space: nowrap; }
.bn-table a { color: var(--accent); text-decoration: none; }
.bn-table a:hover { text-decoration: underline; }

/* 改动记录 */
.bn-history { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.bn-history li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border-subtle); }
.bn-history time { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bn-history details summary { cursor: pointer; }
.bn-history pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--surface-sunken);
  padding: 8px; border-radius: var(--radius-md); max-height: 240px; overflow: auto; margin: 6px 0 0; }

/* 右边详情（改一个项目 / 一个页面） */
.bn-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: var(--z-popover); background: var(--surface-raised);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-2); overflow-y: auto; }
.bn-panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px;
  background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle); }
.bn-form { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 40px; }
.bn-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); color: var(--text-secondary); }
.bn-form input, .bn-form select, .bn-form textarea { padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit;
  font-size: 15px; background: var(--surface); color: var(--text-primary); }
.bn-form textarea { min-height: 72px; resize: vertical; line-height: 1.55; }
.bn-form .bn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bn-form .bn-row small { color: var(--text-muted); font-size: var(--fs-xs); }

/* 详情顶上：三句话、好做程度 + 价钱、下一步进度点、图 */
.bn-view { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.bn-view:empty { display: none; }
.bn-brief { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.bn-brief p { margin: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; line-height: 1.55; overflow-wrap: anywhere; }
.bn-brief p > span, .bn-lc-line > span, .bn-say > span { color: var(--text-muted); font-size: var(--fs-xs); line-height: 22px; white-space: nowrap; }
mark.bn-y { background: var(--fluo-bg); color: var(--text-primary); padding: 0 3px; border-radius: 2px; }
mark.bn-r { background: var(--danger-bg); color: var(--danger-fg); padding: 0 3px; border-radius: 2px; }
.bn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.bn-fact { padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 4px; }
.bn-fact > small { color: var(--text-muted); font-size: var(--fs-xs); }
.bn-fact p { margin: 0; color: var(--text-secondary); font-size: var(--fs-xs); line-height: 1.5; }
.bn-fact-money b { font-variant-numeric: tabular-nums; }
.bn-steps-h { display: flex; align-items: center; gap: 8px; }
.bn-steps-h small { color: var(--text-muted); font-size: var(--fs-xs); }
.bn-dots { display: inline-flex; gap: 4px; }
.bn-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; }
.bn-dots i.on { background: var(--accent); }
.bn-steps ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bn-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: start; font-size: var(--fs-sm); line-height: 1.55; }
.bn-steps li > span { overflow-wrap: anywhere; min-width: 0; }
.bn-steps li.done > span { color: var(--text-muted); text-decoration: line-through; }
.bn-step { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); cursor: pointer; padding: 0; }
.bn-step[aria-pressed="true"] { background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.bn-step:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.bn-imgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.bn-thumb { position: relative; margin: 0; width: 96px; }
.bn-thumb-open { display: block; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); cursor: zoom-in; overflow: hidden; width: 96px; height: 72px; }
.bn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-thumb figcaption { position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 0 4px; border-radius: 3px; background: var(--surface); color: var(--text-secondary); }
.bn-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  font-size: 13px; line-height: 16px; padding: 0; cursor: pointer; visibility: hidden; }
.bn-thumb:hover .bn-thumb-x, .bn-thumb:focus-within .bn-thumb-x { visibility: visible; }
.bn-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 150px; min-height: 72px; padding: 6px 10px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text-secondary); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.bn-drop small { color: var(--text-muted); font-size: var(--fs-xs); }
.bn-drop.over, .bn-drop:hover { border-color: var(--accent); background: var(--accent-soft-bg); }
.bn-drop.busy { opacity: .6; cursor: progress; }
.bn-form .bn-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.bn-form select { width: 100%; min-width: 0; }
.bn-money-f { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bn-money-f legend { font-size: var(--fs-xs); color: var(--text-secondary); padding: 0 4px; }

/* 大图 */
.bn-lb { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 48px 16px 16px; cursor: zoom-out; }
.bn-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); background: var(--surface); }
.bn-lb-x { position: absolute; top: 10px; right: 12px; }
.bn-lb-n { position: absolute; top: 16px; left: 16px; color: var(--text-on-accent); font-size: var(--fs-sm); }

/* 还没完结（我的思考最上面） */
.bn-loose { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--warning-border); border-radius: var(--radius-lg); background: var(--surface); }
.bn-loose-h { margin: 0; font-size: var(--fs-md); }
.bn-loose-h b { color: var(--warning-fg); }
.bn-loose-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.bn-lc { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); min-width: 0; }
.bn-lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.bn-lc-head b { line-height: 1.45; overflow-wrap: anywhere; }
.bn-lc-edit { visibility: hidden; }
.bn-lc:hover .bn-lc-edit, .bn-lc:focus-within .bn-lc-edit { visibility: visible; }
.bn-lc p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.bn-lc-stuck { color: var(--text-secondary); }
.bn-lc-move { color: var(--warning-fg); }
.bn-lc-move small { color: var(--text-muted); }
.bn-lc-line { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px; }
.bn-lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.bn-lc-src { color: var(--text-muted); font-size: var(--fs-xs); }
.bn-lc-src a { color: var(--text-secondary); }
.bn-lc-close input { flex: 1 1 160px; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; font-size: 15px; }
.bn-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bn-lc-old { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.bn-lc-old li { display: flex; gap: 8px; align-items: center; padding: 5px 2px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.bn-lc-old small { color: var(--text-muted); white-space: nowrap; }

/* 大家提的：四堆 */
.bn-piles { display: flex; flex-direction: column; gap: var(--sp-3); }
.bn-pile { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.bn-pile h3 { margin: 0; padding: 10px 14px; font-size: var(--fs-md); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 6px; }
.bn-pile[data-pile="decide"] h3 { background: var(--fluo-bg); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.bn-pile-n { color: var(--text-muted); font-weight: var(--fw-regular); font-variant-numeric: tabular-nums; }
.bn-pile .bn-empty { border: 0; }
.bn-asks { list-style: none; margin: 0; padding: 0; }
.bn-ask { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 14px; border-bottom: 1px solid var(--border-subtle); }
.bn-ask:last-child { border-bottom: 0; }
.bn-src-tag { display: inline-block; font-size: var(--fs-xs); color: var(--text-secondary); background: var(--surface-sunken); border-radius: var(--radius-sm); padding: 1px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }
.bn-src-tag[data-k="fb"] { background: var(--tag-1-bg); color: var(--tag-1-fg); }
.bn-src-tag[data-k="issue"] { background: var(--tag-3-bg); color: var(--tag-3-fg); }
.bn-src-tag[data-k="rm"], .bn-src-tag[data-k="idea"] { background: var(--tag-5-bg); color: var(--tag-5-fg); }
.bn-ask-t { line-height: 1.5; overflow-wrap: anywhere; }
.bn-ask-meta { display: block; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.bn-say { margin: 4px 0 0; font-size: var(--fs-sm); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px; line-height: 1.55; }
.bn-ask-proj { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--text-secondary); }
.bn-ask-tools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bn-ask .bn-ask-tools .bn-btn { visibility: hidden; }
.bn-ask:hover .bn-ask-tools .bn-btn, .bn-ask:focus-within .bn-ask-tools .bn-btn { visibility: visible; }
.bn-agroup { padding: 7px 14px; background: var(--surface-sunken); font-size: var(--fs-sm); color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.bn-agroup b { color: var(--text-primary); }
.bn-ask-edit { margin-top: 6px; }
.bn-ask-edit textarea { min-height: 54px; font-family: inherit; font-size: 15px; }
.bn-inline { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-secondary); }
.bn-inline select { padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; font-size: 15px; background: var(--surface); color: var(--text-primary); }
.bn-warn { color: var(--warning-fg); }
#sec-asks .bn-sec-head { justify-content: flex-start; }
#sec-asks .bn-sec-head .bn-btn { margin-left: auto; }

@media (max-width: 640px) {
  .bn-ask { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bn-ask .bn-ask-tools { justify-content: flex-start; }
  .bn-ask .bn-ask-tools .bn-btn, .bn-lc-edit, .bn-thumb-x { visibility: visible; }
  .bn-loose-list { grid-template-columns: 1fr; }
  .bn-bar .bn-sort { align-self: flex-start; }
  .bn-form .bn-row2 { grid-template-columns: 1fr; }
  .bn-app { padding: var(--sp-3) var(--sp-3) 64px; }
  .bn-cards { grid-template-columns: 1fr; }
  .bn-note { grid-template-columns: minmax(0, 1fr) auto; }
  .bn-note time { grid-column: 1 / -1; line-height: 1.2; }
  .bn-note .bn-tools, .bn-block .bn-tools { visibility: visible; }
  .bn-note-new { position: static; }
  .bn-table th { position: static; }
  .bn-table col.c2, .bn-table col.c4 { width: 0; }
  .bn-table td:nth-child(2), .bn-table th:nth-child(2), .bn-table td:nth-child(4), .bn-table th:nth-child(4) { display: none; }
}
