/* The prototype's page shell (proto.mjs) sizes every box with its padding inside; the rooms depend on it. */
.bw-studio *, .bw-studio *::before, .bw-studio *::after { box-sizing: border-box; }
/* The frame fills the window; the corner buttons sit where the prototype puts them in a 900-high window, measured from the bottom. */
.bw-studio .one { min-height: calc(100vh - 76px); }
.bw-studio .silas-b, .bw-studio .acct { position: fixed; top: auto; bottom: 18px; }
.bw-studio .acmu[data-acm] { bottom: 64px; top: auto; }
.bw-studio .pg .bw-sample { margin: -8px 0 24px; padding: 10px 16px; border-radius: 12px; background: var(--studio-band, #1E1236); color: var(--studio-bandink, #fff); font-size: 15px; }
.bw-studio .pg .bw-sample a { color: var(--studio-bandaccent, #FF8FB1); text-decoration: underline; cursor: pointer; margin-left: 8px; }
.bw-studio .bw-none { color: var(--studio-muted); font-size: 16px; margin: 6px 0; }
.bw-studio .mods .bw-none, .bw-studio .dbox .bw-none { color: inherit; opacity: .8; }
.bw-studio .bw-mq li { display: grid; gap: 2px; margin: 0 0 14px; font-size: 15px; line-height: 21px; }
.bw-studio .bw-mq li span { opacity: .8; font-size: 14px; }
.bw-studio .bw-mq .lqp, .bw-studio .lqst .lqp { display: block; height: 5px; border-radius: 9px; background: color-mix(in srgb, currentColor 18%, transparent); position: relative; overflow: hidden; margin-top: 6px; }
.bw-studio .bw-mq .lqp::after, .bw-studio .lqst .lqp::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #39FF14; }
.bw-studio .bw-tagpane { padding: 4px 0; }
.bw-studio .bw-tagpane ul { margin-left: 12px !important; font-size: 15px; line-height: 24px; }
.bw-studio .bw-tagpane > .bw-tagtree > ul { margin-left: 0 !important; }
.bw-studio .bw-tagpane small { opacity: .6; font-size: 12px; }
.bw-studio .bw-kv { max-width: 760px; margin: 18px 0; }
.bw-studio .bw-form { max-width: 520px; margin: 20px 0 34px; }
.bw-studio .bw-form h3 { font-family: var(--display); font-size: 22px; margin-bottom: 4px; }
/* The live app's own pieces, in the prototype's colours (proto.css carries the rest). */
html, body { margin: 0; background: var(--studio-ground, #fff); }
#app.bw-studio { min-height: 100vh; }   /* the app itself; theme previews also wear bw-studio */
.bw-studio .bar .brand { display: flex; align-items: center; font-family: var(--display); font-size: 28px; }
.bw-studio .tools { position: relative; }
.bw-studio .pmenu { position: relative; display: flex; align-items: center; }
.bw-studio .pmu { position: absolute; right: 0; top: 56px; z-index: 50; min-width: 300px; display: flex; flex-direction: column; }
.bw-studio .pmu[hidden] { display: none; }
.bw-studio .pmu a { cursor: pointer; }

/* The one-room frame without the prototype's side panes */
.bw-studio .bw-one { display: block; min-height: calc(100vh - 77px); }
.bw-studio .bw-one .onem { max-width: 1240px; margin: 0 auto; }
.bw-studio .bw-one.bw-wide .onem { max-width: none; }
.bw-studio .bw-one .pg { padding: 40px var(--pad) 120px; }
.bw-sample { background: var(--studio-band, #1E1236); color: var(--studio-bandink, #fff); padding: 10px var(--pad, 40px); font-size: 16px; }
.bw-sample a { color: var(--studio-bandaccent, #FF8FB1); text-decoration: underline; cursor: pointer; margin-left: 10px; }

/* Signing in */
.bw-gate { min-height: 100vh; display: grid; place-items: center; background: var(--frame, #120A24); }
.bw-card { width: min(440px, calc(100vw - 32px)); background: var(--studio-ground, #fff); border-radius: 18px; padding: 36px; box-sizing: border-box; }
.bw-card .brand { font-family: var(--display); font-size: 30px; margin: 0 0 18px; }
.bw-card .brand b:last-child { color: var(--studio-accent, #C8155F); }
.bw-card h1 { font-family: var(--display); font-size: 28px; margin: 0 0 12px; }
/* The sign-in card, the setup interview and the account forms only: everywhere else wears the prototype's own controls. */
.bw-studio :is(form[data-setup], form.bw-form) label, .bw-card label { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 0; }
.bw-studio :is(form[data-setup], form.bw-form) :is(input:not([type=checkbox]):not([type=file]), textarea), .bw-card input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 17px;
  border: 1.5px solid var(--studio-rule, #D9D1EA); border-radius: 10px; background: var(--studio-ground, #fff); color: var(--studio-ink, #120C1E); }
.bw-studio :is(.bw-setup, form.bw-form) .btn, .bw-card .btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
  background: var(--studio-surface, #F1ECFA); color: var(--studio-ink, #120C1E); }
.bw-studio :is(.bw-setup, form.bw-form) .btn-silas, .bw-card .btn-silas { background: #1FCB4F; color: #0B1A10; }
.bw-err { color: #B0124F; font-size: 15px; margin-top: 12px !important; }
.bw-hint { color: var(--studio-muted, #3A3150); font-size: 15px; margin: 8px 0 !important; }
.bw-hint a, .bw-backto a { color: var(--studio-accent, #C8155F); text-decoration: underline; }
.bw-empty { margin: 30px 0 !important; color: var(--studio-muted); font-size: 17px; }
.bw-h2 { font-family: var(--display); font-size: 24px; margin: 40px 0 12px !important; }
.bw-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.bw-actions input { width: 360px !important; margin: 20px 0 0 !important; }
.bw-cap { margin-top: 20px; font-size: 15px; color: var(--studio-muted); }

/* The setup interview */
.bw-setup { max-width: 760px; }
.bw-step { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #0B7A3B; margin-bottom: 8px !important; }
.bw-setup .pdesc { margin: 14px 0 !important; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.bw-atl { display: grid; gap: 10px; margin: 18px 0; }
.bw-atl > div { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.bw-atl b { font-weight: 700; }
.bw-atl span { opacity: .8; }
@media (max-width: 600px) { .bw-atl > div { grid-template-columns: 1fr; gap: 2px; } }
.bw-chips a { cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--studio-rule); font-size: 16px; line-height: 22px; }
.bw-chips a.on { background: var(--studio-band, #1E1236); color: #fff; border-color: transparent; }
.bw-chips a small { font-weight: 400; opacity: .85; }
.bw-nav { display: flex; gap: 12px; }
.bw-pull { display: grid; grid-template-columns: 1fr 2fr 32px; gap: 10px; align-items: center; margin-top: 10px; }
.bw-pull input { margin: 0 !important; }
.bw-x { cursor: pointer; font-size: 22px; text-align: center; color: var(--studio-muted); }
.bw-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.bw-check input { margin-top: 6px; }

/* The Library and the queue */
.bw-queue { padding: 0 !important; }
.bw-q { display: grid; grid-template-columns: 34px 1fr 220px 30px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--studio-rule); }
.bw-q[draggable="true"] { cursor: grab; }
.bw-q.bw-drag { opacity: .4; }
.bw-qn { font-weight: 700; color: #0B7A3B; }
.bw-qt b { display: block; }
.bw-qt small { color: var(--studio-muted); font-size: 14px; }
.bw-bar { height: 8px; border-radius: 99px; background: var(--studio-surface); overflow: hidden; }
.bw-bar i { display: block; height: 100%; background: #1FCB4F; transition: width .6s; }
.bw-dlg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgb(18 10 36 / .55); }
.bw-dlg[hidden] { display: none; }
.bw-dlgbox { background: #fff; color: var(--studio-ink, #120C1E); border-radius: 18px; padding: 28px; width: min(640px, calc(100vw - 32px)); box-sizing: border-box; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.bw-dlghead { display: flex; justify-content: space-between; gap: 20px; }
.bw-dlghead h2 { font-family: var(--display); font-size: 26px; margin: 0 0 6px; color: var(--studio-ink, #120C1E); }
.bw-dlghead p { color: var(--studio-muted, #3A3150); font-size: 16px; }
.bw-dlgx { cursor: pointer; font-size: 30px; line-height: 1; color: var(--studio-ink, #120C1E); }
.bw-dlgbox .bw-chips a { color: var(--studio-ink, #120C1E); }
.bw-dlgbox .bw-chips a.on { color: #fff; }
.bw-dlgbox label { color: var(--studio-ink, #120C1E); }

/* A book's contents */
.bw-contents { margin-top: 30px; }
.bw-part { font-family: var(--display); font-size: 20px; margin: 30px 0 8px !important; color: #0B7A3B; }
.bw-ch { border-bottom: 1px solid var(--studio-rule); padding: 12px 0; }
.bw-ch summary { cursor: pointer; display: flex; gap: 14px; align-items: baseline; }
.bw-ch summary small { color: var(--studio-muted); font-size: 14px; }
.bw-ch .bw-bv { margin-left: auto; font-size: 14px; color: var(--studio-accent); text-decoration: underline; }
.bw-ch ol { padding: 10px 0 6px 20px !important; }
.bw-ch li { margin: 10px 0; }
.bw-ch li a { font-weight: 600; color: var(--studio-accent); }
.bw-ch li p { font-size: 15px; line-height: 22px; color: var(--studio-muted); margin-top: 2px !important; }

/* Notes View and Book View */
.bw-studio .bw-one .tri { margin-top: 0; }
.bw-levels { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.bw-levels > b { font-size: 15px; margin-bottom: 4px; }
.bw-levels a { display: flex; justify-content: space-between; gap: 8px; }
.bw-levels small { color: var(--studio-muted); white-space: nowrap; }
.bw-see { font-size: 16px; margin: 10px 0 !important; }
/* The author's own words, quoted in a note (Ram, 2026-11-05): a light purple box, the green line its left side, dark
   purple text, not bold. */
.bw-studio .nbody .bw-aq, .bw-aq { margin: 18px 0 !important; padding: 16px 22px 16px 22px !important; border-left: 4px solid #1FCB4F; border-radius: 0 12px 12px 0; background: #CDB6FF; color: #2A1A5E; font-weight: 400; }
.bw-studio .nbody .bw-aq a { color: #2A1A5E; text-decoration-color: rgb(42 26 94 / .55); }
.bw-studio .nbody .bw-aq sup a, .bw-studio .nbody .bw-aq strong { color: #2A1A5E; }
.bw-passage { margin: 14px 0 14px 24px !important; color: var(--studio-muted); }
.bw-qtags summary { cursor: pointer; font-size: 13px; color: var(--bq-edge, #FF8FB1); margin-top: 8px; }
.bw-qtags .tpill { margin: 6px 6px 0 0; display: inline-flex; }
.bw-back { margin-left: 10px; cursor: pointer; color: var(--studio-accent); font-weight: 700; }
.bw-flash { outline: 3px solid #1FCB4F; outline-offset: 4px; border-radius: 4px; transition: outline .3s; }
.bw-backto { margin-top: 30px !important; font-size: 15px; }
.bw-bookview p { margin: 0 0 14px !important; }
.bw-bookview blockquote { margin: 0 0 14px 28px !important; }
.bw-verse { white-space: normal; padding-left: 20px; }
.bw-secmark { display: block; margin: 26px 0 10px; font-size: 13px; font-weight: 700; color: #0B7A3B; text-transform: uppercase; letter-spacing: .05em; }
.bw-break { border: 0; text-align: center; margin: 24px 0; }
.bw-break::after { content: '* * *'; color: var(--studio-muted); }
.bw-studio .nbody sup.note a { color: var(--studio-accent); font-weight: 700; }
.bw-studio .nbody strong.date { font-weight: 700; }

/* Topic Hubs */
.bw-kinds { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.bw-kinds a { cursor: pointer; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--studio-rule); font-size: 15px; }
.bw-kinds a.on { background: var(--studio-band); color: #fff; }
.bw-hublist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 30px; }
.bw-hublist li a { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--studio-accent); }
.bw-hublist li small { color: var(--studio-muted); font-weight: 400; font-size: 14px; }
.bw-hublist li p { font-size: 14px; line-height: 20px; color: var(--studio-muted); }
.bw-lv { border-bottom: 1px solid var(--studio-rule); padding: 10px 0; }
.bw-lv summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.bw-lv summary small { color: var(--studio-muted); }
.bw-lv ul { margin: 10px 0 0 20px !important; }
.bw-lv li { margin: 10px 0; }
.bw-lv li a { font-weight: 600; color: var(--studio-accent); }
.bw-lv li select { margin-left: 10px; font-size: 13px; }
.bw-lv li p { font-size: 15px; line-height: 22px; color: var(--studio-muted); }
.bw-hubpage h3 { margin: 28px 0 10px !important; font-family: var(--display); }
.bw-hubpage p { margin: 0 0 14px !important; }
.bw-hubpage sup a { color: var(--studio-accent); font-weight: 700; }

/* Find */
.bw-findgrid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; margin-top: 10px; }
.bw-tagtree ul { margin-left: 14px !important; font-size: 15px; line-height: 24px; }
.bw-tagtree > ul { margin-left: 0 !important; }
.bw-tagtree a { cursor: pointer; }
.bw-tagtree a.on { font-weight: 700; color: var(--studio-accent); }
.bw-tagtree small { color: var(--studio-muted); font-size: 12px; }
.bw-stack { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.bw-stack a { cursor: pointer; margin-left: 4px; }
.bw-res { display: block; padding: 14px 0; border-bottom: 1px solid var(--studio-rule); }
.bw-res b { color: var(--studio-accent); }
.bw-res small { margin-left: 10px; color: var(--studio-muted); font-size: 14px; }
.bw-res p { font-size: 15px; line-height: 22px; }
.bw-res mark { background: #D9F99D; color: inherit; }

/* Scrapbooks */
.bw-sbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.bw-sb { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; background: var(--studio-band, #1E1236); color: #fff !important; }
.bw-sb b { font-family: var(--display); font-size: 22px; }
.bw-sb small { color: var(--studio-bandmuted, #E2DCF2); }
.bw-wall { columns: 2 420px; column-gap: 28px; }
.bw-wall .bw-item, .bw-timeline .bw-item { break-inside: avoid; margin: 0 0 24px !important; }
.bw-timeline { border-left: 3px solid #1FCB4F; padding-left: 24px; }
.bw-date { display: block; font-weight: 700; color: #1FCB4F; margin-bottom: 6px; }

/* The review list */
.bw-review li { display: flex; gap: 10px; align-items: baseline; }
.bw-review li.done span { text-decoration: line-through; opacity: .6; }
.bw-review li.hq { flex-wrap: wrap; row-gap: 6px; padding: 6px 0; }
.bw-review li.hq > span:first-child { flex: 1 1 100%; }
.bw-review .hq-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bw-studio .bw-review .hq-act .btn { margin: 0; }
.bw-review .hq-to { width: 320px; max-width: 100%; padding: 6px 10px; font: inherit; font-size: 15px; border: 1.5px solid var(--studio-rule); border-radius: 8px; background: transparent; color: inherit; }
.bw-review li.hq.done span:first-child { text-decoration: none; opacity: .6; }
.hq-help { margin: 6px 0 10px; opacity: .8; }

/* The Workspace */
.bw-ws { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; min-height: calc(100vh - 77px); }
.bw-draft { padding: 40px 48px; }
.bw-dt { font-family: var(--display); font-size: 32px !important; border: 0 !important; padding: 0 !important; background: none !important; }
.bw-editor { min-height: 60vh; outline: none; margin-top: 20px; font-size: 19px; line-height: 31px; }
.bw-editor blockquote { margin: 16px 0 16px 20px !important; padding-left: 16px; border-left: 3px solid #1FCB4F; }
.bw-editor blockquote footer { font-size: 14px; color: var(--studio-muted); margin-top: 6px; }
.bw-saved { font-size: 13px; color: var(--studio-muted); }
.bw-sources { background: var(--studio-surface); padding: 28px; overflow: auto; max-height: calc(100vh - 77px); position: sticky; top: 0; }
.bw-sources .bw-h2 { margin-top: 0 !important; }
.bw-sources .btn { margin-top: 8px; padding: 6px 14px; font-size: 14px; }

@media (max-width: 900px) {
  .bw-findgrid, .bw-ws { grid-template-columns: 1fr; }
  .bw-q { grid-template-columns: 28px 1fr 30px; }
  .bw-q .bw-bar { grid-column: 2; }
}
.bw-studio svg.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; margin-right: 6px; }
.bw-studio .asearch { display: flex; align-items: center; gap: 8px; }
.bw-studio .asearch input { flex: 1; min-width: 0; margin: 0 !important; border: 0 !important; background: transparent !important; color: inherit !important; font: inherit; outline: none; }
.bw-studio .asearch input::placeholder { color: inherit; opacity: .7; }
.bw-levels a.ln { display: flex !important; justify-content: space-between; gap: 10px; text-decoration: none; }
.bw-levels a.ln span { text-decoration: underline; text-underline-offset: 3px; }
.bw-levels a.ln small { font-weight: 400; }

/* Phones and narrow windows: one column, the rooms on a scrolling line, nothing wider than the screen */
@media (max-width: 760px) {
  .bw-studio { --pad: 16px; font-size: 17px; line-height: 26px; }
  .bw-studio .bar { height: auto !important; flex-wrap: wrap; padding: 10px 16px !important; gap: 6px 14px; }
  .bw-studio .bar .brand { font-size: 22px; }
  .bw-studio .bar .rooms { order: 3; width: 100%; overflow-x: auto; gap: 18px; white-space: nowrap; margin: 0 !important; }
  .bw-studio .bar .rooms a { font-size: 17px; }
  .bw-studio .bar .tools { margin-left: auto; gap: 12px; }
  .bw-studio .bar .tools a { font-size: 15px; }
  .bw-studio .pmu { right: -8px; min-width: 260px; }
  /* The frame on a phone (prototype: phone): one column, no Site Nav rail, the strip scrolling sideways, and the
     right pane's modules under the page instead of beside it. */
  .bw-studio .one { display: block; min-height: 0; }
  .bw-studio .one > .sliv { display: none; }
  .bw-studio .strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .bw-studio .strip .ot { flex: none; }
  .bw-studio .one .pg { padding: 22px 16px 80px; min-width: 0; }
  .bw-studio .one > .ip { border-left: 0; border-top: 1px solid var(--brule); }
  .bw-studio .one > .ip .ipi { position: static !important; padding: 20px 16px 96px; }
  .bw-studio .tri { display: block !important; }
  .bw-studio .tri > * { width: auto !important; max-width: 100% !important; position: static !important; }
  .bw-studio .tri .lab .plate, .bw-studio .tri .lab .fish, .bw-studio .atrl { display: none; }
  .bw-studio .tri .lab { margin-bottom: 18px; }
  .bw-studio .atdoc { display: block; }
  /* Rows of tabs scroll sideways instead of widening the page. */
  .bw-studio :is(.lsecn, .asecn, .pjsecn, .dtlist, .itb) { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .bw-studio :is(.lsecn, .asecn, .pjsecn, .dtlist) .dtab { flex: none; }
  /* Blocks that sit side by side on a desktop stack, and long words wrap. */
  .bw-studio .row.blk, .bw-studio .htoc .oc, .bw-studio .wylo, .bw-studio .bt-resume { display: block !important; }
  .bw-studio .row.blk > *, .bw-studio .htoc .oc > * { width: auto !important; max-width: 100% !important; margin-left: 0 !important; }
  .bw-studio .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; border-left: 0 !important; padding-left: 0 !important; margin-top: 18px; }
  .bw-studio .upd3 { flex-wrap: wrap; }
  .bw-studio .bw-loom { flex-wrap: wrap; }
  .bw-studio :is(.nbody, .synop, .toc, .tagx, .tpills, .lks, .fd-hit, .lrbody) { overflow-wrap: anywhere; }
  .bw-studio .toc, .bw-studio .tpills { flex-wrap: wrap; }
  .bw-studio .tpill { max-width: 100%; white-space: normal; }
  .bw-studio .wylo .btn { margin-top: 12px; }
  .bw-studio .dhr { flex-wrap: wrap; gap: 14px; }
  .bw-studio .dhr .dsrow { width: 100%; max-width: none; }
  .bw-studio .row.blk > .pic { width: 160px !important; height: 200px !important; margin-bottom: 18px; }
  .bw-studio .nt, .bw-studio .disp { font-size: 30px !important; line-height: 36px !important; }
  .bw-studio .toc { flex-wrap: wrap; }
  .bw-studio .synop, .bw-studio .nbody, .bw-studio .ncite, .bw-studio .tagx { max-width: 100% !important; }
  .bw-studio .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .bw-studio .rhead .hd { flex-wrap: wrap; }
  .bw-sample { padding: 8px 16px; font-size: 14px; }
  .bw-actions input { width: 100% !important; }
  .bw-wall { columns: 1; }
  .bw-pull { grid-template-columns: 1fr 28px; }
  .bw-pull .bw-pd { grid-column: 1; }
  .bw-studio * { max-width: 100vw; }
  .bw-studio img, .bw-studio table { max-width: 100%; }
  .bw-sources { position: static; max-height: none; }
  .bw-draft { padding: 22px 16px; }
}

/* The hub page's loom of books, and its chips (the prototype draws the loom as a picture; here it's the books' plates in a row) */
.bw-studio .bw-loom { display: flex; gap: 14px; flex-wrap: wrap; }
.bw-studio .bw-loom .plate { width: 88px; height: 128px; }
.bw-studio .bw-chips2 { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.bw-studio .bw-chips2 .tchip { padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 14px; }
.bw-studio .bw-hubnotes { display: block; }
.bw-studio .dgp[hidden], .bw-studio .dbox[hidden] { display: none !important; }

/* A short message at the foot of the page (the prototype's toast) */
.bw-toast { position: fixed; z-index: 90; font-family: var(--font-schibsted); left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100% - 32px)); background: #120C1E; color: #fff; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bw-toast[hidden] { display: none; }
/* Picture or media, in the writing page */
.bw-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 12px 0; }
.bw-pics a { display: grid; gap: 6px; cursor: pointer; font-size: 12px; }
.bw-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.kal-pop { position: absolute; z-index: 20; width: 280px; }
.kal-e.done span { text-decoration: line-through; opacity: .6; }
.pl-dl li .ln { margin-left: 10px; font-size: 13px; }
.pl-dl li.done span { text-decoration: line-through; opacity: .6; }
.pj-med .ln { margin-left: 8px; }
.bw-selq { margin: 4px 0 14px; padding: 10px 14px; border-left: 3px solid var(--r-accent, #39FF14); color: var(--r-onBlock, #fff); font-size: 14px; line-height: 1.5; }
.bw-studio .pic.drop { box-shadow: inset 0 0 0 3px var(--r-accent, #39FF14); }
.bw-staradd { margin: 0 0 18px; }
.bw-staradd .mlist { margin-top: 8px; }
.bw-staradd .mlist li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.bw-staradd .mlist a { cursor: pointer; }
/* ---------- the Library, Rules, notes, hubs, Atlas, Find and Settings (builder D) ---------- */
/* As in the prototype's page shell: anything hidden stays hidden, whatever its display. */
[hidden] { display: none !important; }
/* Selected source: its shelf and collection open a small menu, set like the rest of the list. */
.bw-studio .kv .bw-kvdd { display: block; position: relative; padding: 0; border: 0; }
.bw-studio .kv .bw-kvdd .ddb { height: auto; padding: 0; gap: 4px; background: none; box-shadow: none; color: inherit; font-size: inherit; line-height: inherit; text-align: left; }
.bw-studio .kv .bw-kvdd .ddb b { font-weight: 500; }
.bw-studio .kv .bw-kvdd .ddb svg { width: 14px; height: 14px; flex: none; }
.bw-studio .kv .bw-kvdd .ddm { display: none; left: auto; right: 0; min-width: 220px; padding: 6px; border: 0; grid-template-columns: none; }
.bw-studio .kv .bw-kvdd.open .ddm { display: grid; }
.bw-studio .ddm .bw-ddnew { display: block; padding: 6px 4px 2px; border: 0; }
.bw-studio .ddm .bw-ddnew input { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: calc(10px * var(--rk, 1)); background: color-mix(in srgb, var(--r-page, #fff) 10%, transparent); color: var(--r-onBlock, #fff); font: inherit; font-size: 15px; outline: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r-onBlock, #fff) 30%, transparent); }
/* The queue: a file dragged over the list. */
.bw-studio .lqlist.drop { outline: 2px dashed var(--r-link, #FF8FB1); outline-offset: 6px; border-radius: 12px; }
.bw-studio .lqi.bw-drag { opacity: .5; }
/* Add a source: Right away or half price, and the own-copy line. */
.bw-studio .sgp .bw-chips.sgsp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.bw-studio .sgp .bw-chips.sgsp a { display: block; padding: 10px 12px; border-radius: calc(12px * var(--rk, 1)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r-onBlock, #fff) 25%, transparent); color: var(--r-onBlock, #fff); font-size: 14px; line-height: 19px; cursor: pointer; }
.bw-studio .sgp .bw-chips.sgsp a.on { box-shadow: inset 0 0 0 2px var(--r-accent, #39FF14); }
.bw-studio .sgp .bw-chips.sgsp small { opacity: .75; font-size: 13px; }
.bw-studio .sgp .sgk small { opacity: .7; }
.bw-studio .sgp .bw-err { margin: 6px 0 0; color: var(--r-link, #FF8FB1); font-size: 14px; }
.bw-studio .sgdz.drop { box-shadow: inset 0 0 0 2px var(--r-accent, #39FF14); }
.bw-studio .sgb.drop { box-shadow: inset 0 0 0 2px var(--r-accent, #39FF14); }
/* Rules: the description of a pull, and adding another name. */
.bw-studio .lrbody .bw-lrd { color: var(--studio-muted); }
.bw-studio .lrbody .bw-lrnone p { color: var(--studio-muted); }
.bw-studio .lrbody .bw-hint { margin: 6px 0 0; font-size: 14px; color: var(--studio-muted); }
.bw-studio .bw-lrname { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bw-studio .bw-lrname input { flex: 1 1 200px; height: 42px; padding: 0 12px; border: 0; border-radius: calc(10px * var(--rk, 1)); background: var(--r-block, #241A3A); color: var(--r-onBlock, #FFFFFF); font: inherit; font-size: 15px; outline: none; box-shadow: 0 0 0 2px var(--r-accent, #39FF14); }
.bw-studio .bw-lrname input::placeholder { color: var(--r-onBlock2, #E6E1F3); opacity: .8; }
/* Make your own module: the small form inside Add a module. */
.bw-studio .maddm .bw-own { display: grid; gap: 10px; padding: 10px 8px 6px; color: var(--r-onBlock, #fff); }
.bw-studio .bw-own b { font-size: 16px; line-height: 21px; }
.bw-studio .bw-own p { margin: 0; font-size: 14px; line-height: 19px; color: var(--r-onBlock2, #E6E1F3); }
.bw-studio .bw-own label { display: grid; gap: 4px; margin: 0; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--r-onBlock2, #E6E1F3); }
.bw-studio .bw-own :is(input, select) { width: 100%; height: 38px; margin: 0; padding: 0 10px; border: 0; border-radius: calc(10px * var(--rk, 1)); background: color-mix(in srgb, var(--r-page, #fff) 10%, transparent); color: var(--r-onBlock, #fff); font: inherit; font-size: 14px; font-weight: 400; outline: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r-onBlock, #fff) 28%, transparent); }
.bw-studio .bw-own :is(input, select):focus { box-shadow: inset 0 0 0 2px var(--r-accent, #39FF14); }
.bw-studio .bw-own select option { color: #120C1E; background: #fff; }
.bw-studio .bw-own .bw-ownb { display: flex; align-items: center; gap: 14px; }
.bw-studio .bw-own .bw-ownb .btn { margin: 0; }
.bw-studio .bw-own .bw-err { margin: 0 !important; color: var(--r-link, #FF8FB1); font-size: 14px; }
.bw-studio .mdl > a.ln { display: inline-block; margin-top: 6px; font-size: 15px; line-height: 20px; }
.bw-studio .bw-own button.btn { border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
/* A phone: the Library's tabs and Add a source wrap, and the list view keeps title, status and when opened. */
@media (max-width: 760px) {
  .bw-studio .lsecn { flex-wrap: wrap; row-gap: 10px; }
  .bw-studio .lsecn .lsec-add { margin-left: 0; }
  .bw-studio .ctl { flex-wrap: wrap; gap: 10px; }
  .bw-studio .ctl > .dd { margin: 0 !important; }
  .bw-studio .dtlist { justify-content: flex-start !important; }
  .bw-studio .crow { grid-template-columns: 28px minmax(0, 1fr) 96px; }
  .bw-studio .crow :is(.yr, .nn, .m-added, .m-viewed) { display: none; }
  .bw-studio .qpop { padding: 12px; }
  /* The screenplay's view switch and hint sit in the flow on a phone. */
  .bw-studio .scr-vw { position: static; width: max-content; margin: 0 0 14px; }
  .bw-studio .edp.spm .scr-hint { position: static; max-width: 100%; margin: 6px 0; }
  /* Scrapbooks on a phone (moved here from scrapbooks.js's sb-phone style). */
  .bw-studio .sp-qn { gap: 22px; height: auto; flex-wrap: wrap; } .bw-studio .sp-azw, .bw-studio .sp-tlw { grid-template-columns: minmax(0, 1fr); } .bw-studio .sp-azr, .bw-studio .sp-tlra { display: none; }
  .bw-studio .sp-camps, .bw-studio .sp-caf, .bw-studio .sp-px, .bw-studio .sp-sides, .bw-studio .sp-wc, .bw-studio .sp-scr, .bw-studio .sp-cwr, .bw-studio .sp-sca { grid-template-columns: minmax(0, 1fr); } .bw-studio .sp-sca .sp-ax { display: none; }
  .bw-studio .sp-tl > li { grid-template-columns: 56px 24px minmax(0, 1fr); } .bw-studio .sp-ev > div > *, .bw-studio .sp-cah { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
}
/* Your own themes: a small x to delete one, in the card's corner. */
.bw-studio .lk-mine .lk-card { position: relative; }
.bw-studio .lk-mine .lk-del { position: absolute; right: 12px; bottom: 12px; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; color: var(--studio-muted); }
.bw-studio .lk-mine .lk-del:hover { background: var(--brule); color: var(--studio-ink); }
.bw-studio .lk-mine .lk-del svg { width: 14px; height: 14px; }
/* Needs you: a name to link, or leave. */
.bw-studio .bw-ask { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.bw-studio .nlist .bw-ask { margin-top: 8px; }
.bw-studio .bw-review [data-ask-row] .btn { margin: 0 6px; }
.bw-studio .bkl small { color: var(--studio-muted); font-size: 13px; }

/* The tab strip keeps to the page's column: with many tabs open they narrow (names cut with …) instead of running under
   the right pane's Actions switch. Side by side stays whole at the end. */
.bw-studio .strip { min-width: 0; overflow: hidden; }
/* Every tab the same width, as in a browser (Ram, 2026-11-06): they share the room, up to 220px each, and long names trail off. */
.bw-studio .strip .ot { flex: 1 1 0; min-width: 64px; max-width: 220px; justify-content: space-between; }
.bw-studio .strip .ot > span:first-child { flex: 1 1 auto; min-width: 0; }
.bw-studio .strip .ot { padding: 0 12px; gap: 6px; }
.bw-studio .strip .ot:not(.cur):not(:hover) .x { display: none; }   /* the × on the tab you're on, and on any you point at, as in Chrome */
.bw-studio .strip .ot > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bw-studio .strip .sbs { flex: none; }

/* Make a Topic Hub's Other names: the hub page's chips, in the pop-up's own dark colours */
.bw-studio .hb-als .als { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bw-studio .hb-als .al { background: var(--r-block2, #2A1F45); color: var(--r-onBlock, #FFFFFF); box-shadow: none; padding: 6px 8px 6px 13px; }
.bw-studio .hb-als .alx { color: var(--r-onBlock2, #B9B0D0); }
.bw-studio .hb-als .sgf input.ali, .bw-studio .hb-als input.ali { flex: 1 1 160px; height: 38px; border: 0; border-radius: calc(10px * var(--rk, 1)); background: var(--r-block2, #2A1F45); color: var(--r-onBlock, #FFFFFF); }
.bw-studio .hb-als .alp { margin-top: 2px; color: var(--r-onBlock2, #B9B0D0); }
/* This note's links: the ✕ that takes a wrong one out */
.bw-studio .lks li { position: relative; }
.bw-studio .lks .bw-unl { margin-left: 6px; opacity: .55; cursor: pointer; }
.bw-studio .lks li:hover .bw-unl, .bw-studio .lks .bw-unl:focus { opacity: 1; }
.bw-studio .bw-lkl a.on { box-shadow: inset 0 0 0 2px var(--r-accent, #39FF14); }
.bw-studio .bw-lka { margin-top: 14px; }
.bw-studio .strip .ot.bw-tabdrag { opacity: .5; }
/* New tab: the green plus at the end of the strip, and its start page's lists */
.bw-studio .strip .bw-newtab { flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 14px; border-radius: 999px; color: var(--r-accent, #39FF14); cursor: pointer; }
.bw-studio .strip .bw-newtab:hover { background: color-mix(in srgb, var(--r-accent, #39FF14) 14%, transparent); }
.bw-studio .strip .bw-newtab svg { width: 20px; height: 20px; }
.bw-studio .bw-ntl { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 4px; }
.bw-studio .bw-ntl li { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--brule, #E6E1F3); }
.bw-studio .bw-ntl .bw-nta { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--studio-ink, #120C1E); }
.bw-studio .bw-ntl .bw-nta:hover { color: var(--studio-accent); }
.bw-studio .bw-ntl li > span { font-size: 14px; color: var(--studio-muted); }
/* Every pop-up fits the window: on a short screen it scrolls inside itself, so its buttons are never cut off. */
.bw-studio .qpop > .qpb { max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-height: 820px) { .bw-studio .qpop { padding: 16px; } }
/* Make a link: the hub list is short enough that the buttons stay in view */
.bw-studio .bw-lkl { max-height: min(34vh, 330px); }
/* A note's bullets breathe (Ram, 2026-11-05): room between points, and before the points under a point. */
.bw-studio .txt .nbody ul { gap: 14px; }
.bw-studio .txt .nbody li > ul { margin: 14px 0 0; }
/* A hub's top card on a narrower window (Ram, 2026-11-05: a long name ran into the Notes column): the facts go under
   the name in two columns, and a long name is set smaller. */
.bw-studio .hid2 h1.disp { overflow-wrap: break-word; }
.bw-studio .hid2 h1.disp.bw-long { font-size: 36px; line-height: 40px; }
@media (max-width: 1320px) {
  .bw-studio .hid2 { grid-template-columns: var(--mc) minmax(0, 1fr); }
  .bw-studio .hid2 > .facts { grid-column: 2; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 18px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--studio-bandmuted) 32%, var(--studio-band)); }
}
/* The top bar on a narrower window: the rooms and tools close up and shrink a little, so nothing overlaps or is cut off. */
@media (max-width: 1240px) and (min-width: 761px) {
  .bw-studio .brand { width: auto; margin-right: 28px; font-size: 22px; }
  .bw-studio .rooms { gap: 20px; }
  .bw-studio .tools { gap: 18px; }
  .bw-studio .rooms a, .bw-studio .tools a { font-size: 18px; }
  .bw-studio .tools .proj { font-size: 17px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .bw-studio .rooms { gap: 14px; }
  .bw-studio .rooms a, .bw-studio .tools a { font-size: 16px; }
}

/* The Site Nav's Workspace as a file explorer (explorer.js, 2026-11-05): the folder new things go into, where a dragged
   thing would land, and the thing being dragged. */
.bw-studio .stnew span b { display: block; font-weight: 700; color: var(--r-onBlock, #FFFFFF); }
.bw-studio .stree .srow.bw-target { background: color-mix(in srgb, var(--r-violet, #B48CFF) 24%, transparent); }
.bw-studio .stree .srow.bw-target > .stl { color: var(--r-onBlock, #FFFFFF); font-weight: 700; }
.bw-studio .stree .srow.bw-xover { background: color-mix(in srgb, var(--r-accent, #39FF14) 26%, transparent); }
.bw-studio .stree .srow.bw-xbefore { box-shadow: inset 0 2px 0 var(--r-accent, #39FF14); }
.bw-studio .stree .stn.bw-xdrag { opacity: .45; }
.bw-studio .stree .stn[data-xp]:not([data-xp="loose"]) > .srow .stl { cursor: pointer; }
.bw-studio .stree a.stl { -webkit-user-drag: none; }
html.bw-xdragging, html.bw-xdragging * { cursor: grabbing !important; }
.bw-studio .bw-xghost { position: fixed; z-index: 400; left: 0; top: 0; max-width: 260px; padding: 6px 12px; border-radius: calc(8px * var(--rk, 1)); background: var(--r-block2, #2E2250); color: var(--r-onBlock, #FFFFFF); font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.bw-studio .stree .srow:focus-visible { outline: none; background: color-mix(in srgb, var(--r-page, #FFFFFF) 12%, transparent); }
/* A folder inside a folder sits in under it in the Pages lists (fIndent in workspace.js). */
.bw-studio .atn[style*="--fd"] { margin-left: calc(var(--fd) * 22px); }
/* Rows picked with Cmd-click or Shift-click in the Site Nav (explorer.js). */
.bw-studio .stree .srow.bw-sel { background: color-mix(in srgb, var(--r-link, #FF8FB1) 26%, transparent); }
.bw-studio .stree .srow.bw-sel > .stl { color: var(--r-onBlock, #FFFFFF); }
/* With the Site Nav open, the account button goes under it (it covered the tree's bottom rows). */
.bw-studio:has(.drw:not([hidden])) .acct { z-index: 30; }

/* The Site Nav's icon row (Ram, 2026-11-05): new document, new folder, upload, sort, fold everything. */
.bw-studio .stico { flex: none; display: flex; gap: 2px; margin: -6px 12px 10px; }
.bw-studio .stico a { display: grid; place-items: center; width: 40px; height: 36px; border-radius: calc(8px * var(--rk, 1)); color: var(--r-link, #FF8FB1); cursor: pointer; }
.bw-studio .stico a:hover, .bw-studio .stico a.on, .bw-studio .stico a.lit { background: color-mix(in srgb, var(--r-link, #FF8FB1) 16%, transparent); }
/* The three corner buttons (the Site Nav's arrow, your account, Talk to Silas) a size smaller (Ram). */
/* Each stays centred where the 52-pixel one was: the Site Nav arrow and the account button on the rail's green line
   (x 42 to 44), Talk to Silas 42 pixels in from the right. */
.bw-studio .slh, .bw-studio .acb, .bw-studio .silas-b { height: 42px; min-width: 42px; padding: 0 12px; }
.bw-studio .acb { padding: 0 10px; }
.bw-studio .slh { margin-left: 22px; padding: 0 9px; }   /* its arrow and the hidden label's room come to 24 pixels */
.bw-studio .acct { left: 22px; }
.bw-studio .silas-b { right: 21px; }
.bw-studio .slh svg, .bw-studio .silas-b svg { width: 18px; height: 18px; }
.bw-studio .aci { font-size: 17px; }

/* Move to…'s search box; while you search, each place shows where it sits (workspace.js fmSearch). */
.bw-studio .fmn .fmq { padding: 2px 4px 6px; }
.bw-studio .fmn .fmq input { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: calc(8px * var(--rk, 1)); background: color-mix(in srgb, var(--r-page, #FFFFFF) 10%, transparent); color: var(--r-onBlock, #FFFFFF); font-size: 15px; outline: none; }
.bw-studio .fmn .fmq input::placeholder { color: var(--r-lilac, #CDB6FF); }
.bw-studio .fmn .fmq input:focus { background: color-mix(in srgb, var(--r-page, #FFFFFF) 16%, transparent); }
.bw-studio .fmn .fmv a small { display: none; }
.bw-studio .fmn .fmv.q a { flex-wrap: wrap; row-gap: 0; padding-left: 12px; }
.bw-studio .fmn .fmv.q a small { display: block; flex-basis: 100%; order: 3; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--r-lilac, #CDB6FF); }
.bw-studio .fmn .fmv a[hidden] { display: none; }
.bw-studio .fmn .fmv.q { display: flex; flex-direction: column; }
/* Each level of the Site Nav's tree sits further in (Ram: "indent next levels a bit more", "not enough distinction"):
   22 pixels a level, up from 10, with a faint guide line down each level, under its folder's icon; a project's line
   keeps its own colour. */
.bw-studio .stree .stc .stc { margin-left: 7px; padding-left: 15px; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--r-onBlock, #FFFFFF) 22%, transparent); }
.bw-studio .stree .sproj > .stc { margin-left: 6px; padding-left: 16px; box-shadow: inset 3px 0 0 var(--pc); }
/* Everything inside a room sits clear of the room's coloured bar (Ram): 8 pixels further in. */
.bw-studio .stree .stn.top > .stc { padding-left: 22px; }

/* A hub found by one of its aliases in the Site Nav's filter shows the alias beside its name (explorer.js xpFilter). */
.bw-studio .stree .srow:has(> .sal) { flex-wrap: wrap; }
.bw-studio .stree .sal { order: 5; flex: 1 0 100%; margin-top: -4px; padding: 0 0 5px 23px; font-style: normal; font-size: 12px; line-height: 16px; color: var(--r-lilac, #CDB6FF); }

/* Merge with…: the places (or Atlas folders) heading each group can't be picked; a line under the question. */
.bw-studio .fmn .fmv a.fmgh { cursor: default; color: var(--r-lilac, #CDB6FF); font-size: 13px; padding-top: 10px; }
.bw-studio .fmn .fmv a.fmgh:hover { background: none; }
.bw-studio .fmn .fmx { max-width: 300px; margin: 0 12px 8px; font-size: 13px; line-height: 18px; color: var(--r-lilac, #CDB6FF); }
/* Talk to Silas sits on the bottom of the window, rising from it, not floating above it (Ram); its button hides while
   it's open (the panel has its own ×). */
.bw-studio .slp { bottom: 0; right: 21px; max-height: min(640px, calc(100vh - 90px)); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.bw-studio:has(.slp:not([hidden])) .silas-b { visibility: hidden; }
/* Your messages to Silas: light purple with dark purple text, as the author quotes are (Ram: "that green is too loud"). */
.bw-studio .slp-m.u { background: #CDB6FF; color: #2A1A5E; font-weight: 500; }

/* Silas's plan for the Atlas, in the chat (frame.js slPlan). */
.bw-studio .slpl { display: grid; gap: 4px; margin-top: 10px; }
.bw-studio .slpl-g { display: flex; align-items: flex-start; gap: 8px; }
.bw-studio .slpl-g > input { flex: none; margin-top: 5px; accent-color: var(--r-accent, #39FF14); }
.bw-studio .slpl-g details { flex: 1; min-width: 0; }
.bw-studio .slpl summary { cursor: pointer; font-size: 14px; line-height: 22px; font-weight: 700; }
.bw-studio .slpl summary i { font-style: normal; font-weight: 500; color: var(--r-lilac, #CDB6FF); }
.bw-studio .slpl summary em { font-style: normal; font-size: 12px; color: var(--r-accent, #39FF14); }
.bw-studio .slpl ul { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 2px; }
.bw-studio .slpl li label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 13px; line-height: 19px; cursor: pointer; }
.bw-studio .slpl li input { accent-color: var(--r-accent, #39FF14); }
.bw-studio .slpl li small { font-size: 12px; color: var(--r-lilac, #CDB6FF); }
.bw-studio .slpl-do { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 14px; }
.bw-studio .slpl-do a:not(.btn) { color: var(--r-link, #FF8FB1); text-decoration: underline; cursor: pointer; }
.bw-studio .slp:has(.slpl) { width: 480px; }

.bw-studio .slpl-a { margin: 0 0 4px; padding: 0; list-style: none; display: grid; gap: 4px; }
.bw-studio .slpl-a label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 20px; cursor: pointer; }
.bw-studio .slpl-a input { flex: none; accent-color: var(--r-accent, #39FF14); }

/* Make a Topic Hub: where it goes is a folder you search for (modules.js). */
.bw-studio .hbw { position: relative; display: block; }
.bw-studio .hbw input[type="search"] { width: 100%; }
.bw-studio .hbw-l { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; display: grid; padding: 6px; border-radius: calc(10px * var(--rk, 1)); background: var(--r-frame, #120A24); box-shadow: 0 0 0 1px color-mix(in srgb, var(--r-onBlock, #FFFFFF) 18%, transparent), 0 10px 30px rgba(0, 0, 0, .4); }
.bw-studio .hbw-l[hidden] { display: none; }
.bw-studio .hbw-l a { display: grid; padding: 6px 10px; border-radius: calc(8px * var(--rk, 1)); cursor: pointer; color: var(--r-onBlock, #FFFFFF); }
.bw-studio .hbw-l a:hover, .bw-studio .hbw-l a.on { background: color-mix(in srgb, var(--r-page, #FFFFFF) 10%, transparent); }
.bw-studio .hbw-l b { font-size: 15px; line-height: 20px; font-weight: 600; }
.bw-studio .hbw-l small { font-size: 12px; line-height: 16px; color: var(--r-lilac, #CDB6FF); }
.bw-studio .hbw-none { padding: 8px 10px; font-size: 13px; color: var(--r-lilac, #CDB6FF); }
.bw-studio .hbw-l { position: static; margin-top: 4px; }   /* in the flow, so the pop-up scrolls to it instead of cutting it off */

/* Tags at the bottom of a note: Add a tag, and an × on each (app.js). */
.bw-studio .tgadd { position: relative; margin: 12px 18px 16px; }
.bw-studio .tgadd input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: calc(10px * var(--rk, 1)); background: color-mix(in srgb, var(--r-page, #FFFFFF) 10%, transparent); color: var(--r-onBlock, #FFFFFF); font-size: 15px; outline: none; }
.bw-studio .tgadd input::placeholder { color: var(--r-lilac, #CDB6FF); }
.bw-studio .tgadd input:focus { background: color-mix(in srgb, var(--r-page, #FFFFFF) 16%, transparent); }
.bw-studio .tgsug { display: grid; margin-top: 4px; padding: 6px; border-radius: calc(10px * var(--rk, 1)); background: var(--r-frame, #120A24); box-shadow: 0 0 0 1px color-mix(in srgb, var(--r-onBlock, #FFFFFF) 18%, transparent); }
.bw-studio .tgsug[hidden] { display: none; }
.bw-studio .tgsug a { display: grid; padding: 6px 10px; border-radius: calc(8px * var(--rk, 1)); cursor: pointer; color: var(--r-onBlock, #FFFFFF); }
.bw-studio .tgsug a:first-child, .bw-studio .tgsug a:hover { background: color-mix(in srgb, var(--r-page, #FFFFFF) 10%, transparent); }
.bw-studio .tgsug b { font-size: 14px; font-weight: 600; }
.bw-studio .tgsug small { font-size: 12px; color: var(--r-lilac, #CDB6FF); }
.bw-studio .tpill .tgx { margin-left: 4px; padding: 0 4px; font-size: 15px; line-height: 1; color: var(--r-lilac, #CDB6FF); cursor: pointer; opacity: .55; }
.bw-studio .tpill .tgx:hover { opacity: 1; color: var(--r-link, #FF8FB1); }

/* Shortcuts in the Atlas (Ram, 2026-11-06): a hub shown in a second folder, marked so it reads as a pointer, not a copy */
.hshort .ath, .hshort .stl { font-style: italic; }
.atsc, .ssc { margin-left: 8px; font-style: normal; font-size: 12px; letter-spacing: .02em; opacity: .65; }
.hsc { margin-top: 2px !important; opacity: .8; }

/* Ram, 2026-11-06: the frame is one black all round (the left rail and the strip above the tabs match the top bar), and
   the Site Nav's arrow sits lower, half over the page, with its arrow centred in the circle. */
.bw-studio .sliv, .bw-studio .strip { background: var(--r-frame, #120A24); }
.bw-studio .slb { padding-top: 70px; }
.bw-studio .slh { justify-content: center; padding: 0 12px; }
.bw-studio .slh svg { margin: 0; }   /* its 6px right margin made the circle 48 wide and the arrow 3px off centre */
.bw-studio .slh:hover svg { margin-right: 6px; }

/* Back and Forward at the start of the tab strip (Ram, 2026-11-06) */
/* Ram: further left, easier to see, and full arrows in the link pink, so they don't read as the Site Nav's green chevron. */
.bw-studio .strip .tnav { display: inline-flex; align-self: center; gap: 4px; margin: 0 10px 0 -26px; }
.bw-studio .strip .tnav a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--r-link, #FF8FB1); cursor: pointer; }
.bw-studio .strip .tnav a:hover { background: color-mix(in srgb, var(--r-link, #FF8FB1) 18%, transparent); }
.bw-studio .strip .tnav a[aria-disabled="true"] { opacity: .32; cursor: default; background: none; }
.bw-studio .strip .tnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Side by side as an icon, two pages, to the right of +; the pair keeps the strip's right end, where Side by side was */
.bw-studio .strip .bw-newtab { margin-left: auto; }
.bw-studio .strip .sbs.sbsi { display: grid; place-items: center; align-self: center; width: 34px; height: 34px; padding: 0; margin-left: 2px; border-radius: 999px; color: var(--r-link, #FF8FB1); }
.bw-studio .strip .sbs.sbsi:hover { background: color-mix(in srgb, var(--r-link, #FF8FB1) 18%, transparent); }
.bw-studio .strip .sbs.sbsi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* No underlines on links, anywhere (Ram, 2026-11-10). Links keep their colour; nothing underlines on hover either. */
a, a *, .bw-studio a, .bw-studio a *, .bw-studio a:hover, .bw-studio a:hover * { text-decoration: none !important; }

/* Links inside a quote callout use the light link pink: the dark pink sits too close to the callout's dark ground (Ram, 2026-11-10). */
.bw-studio .qc a, .bw-studio .qc a.ln, .bw-studio .qc a * { color: var(--r-link, #FF8FB1) !important; }

/* Each room's own colour marks where you are (Ram, Nov 10): the top bar's underline, the page's left edge and the Site
   Nav, the account button, the section tabs, the search boxes, and the right pane's switch, module bands and headings.
   Green stays Silas's and the Topic Hubs' (the Atlas is green anyway). --room is the bright colour for dark grounds,
   --room-ink the one for text on the page; both follow the theme where it has its own. */
.bw-studio { --hub: var(--r-accent, #39FF14); --hub-ink: var(--r-accentInk, #0FA336); --hub-line: var(--r-accentLine, #1FCB4F); --room: var(--hub); --room-ink: var(--hub-ink); }
.bw-studio.rm-dash { --room: var(--r-roomDash, #6FA0FF); --room-ink: #2F5F9E; }
.bw-studio.rm-library { --room: var(--r-link, #FF8FB1); --room-ink: var(--r-linkInk, #C2185B); }
.bw-studio.rm-scrapbooks { --room: var(--r-violet, #B48CFF); --room-ink: var(--r-violetInk, #5B34C7); }
.bw-studio.rm-workspace { --room: var(--r-roomWs, #FFE066); --room-ink: #8A6A00; }
.bw-studio:is(.pal-dusk, .pal-contrast):is(.rm-dash, .rm-workspace) { --room-ink: var(--room); }   /* dark pages */
.bw-studio :is(.rooms, .sliv, .acct > .acb, .strip .bw-newtab, .mdl, .maddb, .dtab, .views, .asearch, .sp-fb) { --r-accent: var(--room); --r-accentInk: var(--room-ink); --r-accentLine: var(--room); }
/* the bands on top of the page's blocks and cards (the theme's band rule), all but a Topic Hub's */
.bw-studio :is(.pj-blk, .dbox, .wylo, .dusage, .bt-resume, .bt-secs, .px-sbk, .px-empty, .px-tile, .px-pp, .sp-card, .sp-cmp, .sp-side, .sp-camp, .sp-wc, .sp-spk, .sp-hd, .sp-qsh, .sxc, .pj-tile, .pj-run, .pj-col, .pj-epp, .looseblk, .sp-mapf, .sp-webf, .smk-pv, .kal-mini) { --r-accent: var(--room); --r-accentInk: var(--room-ink); --r-accentLine: var(--room); }
.bw-studio .views { --studio-accent: var(--room-ink); --node: var(--room-ink); }
/* Green stays on: Silas's and the hubs' own modules, Pulled by Silas, and the main action button (.btn-silas, one style
   everywhere: Save, Continue reading, Do it). */
.bw-studio .mdl:is([data-mod="edsilas"], [data-mod="hub"], [data-mod="latest"], [data-mod="hubs"], [data-mod="weave"]),
.bw-studio :is(.btn-silas, .sp-sil, [data-silas]) { --r-accent: var(--hub); --r-accentInk: var(--hub-ink); --r-accentLine: var(--hub-line); }

/* A room's intro after the first visit: its first sentence, then More (frame.js, introFold). */
.bw-studio .pdesc .pd-more { color: var(--r-linkInk, #C2185B); font-weight: 700; cursor: pointer; white-space: nowrap; }

/* The right pane's Actions | Tags: two tabs, like a module's (a switch said on/off, not this pane or that; Nov 10). */
.bw-studio .ip .rptb { margin: -2px 0 30px; }
.bw-studio .ip .rptb > a { flex: 1; text-align: center; cursor: pointer; }

/* The Workspace's Write: a button at the right end of the tab line, like New project (it was drawn as a dark tab
   beside the real tabs, so it looked like the one you were on; Nov 10). It opens the Write menu. */
.bw-studio .wsviews .dtabs .wsw-b { margin-left: auto; align-self: center; flex: none; gap: 6px; --bc: var(--r-linkInk, #C2185B); }
.bw-studio .wsviews .dtabs .wsw-b svg { width: 16px; height: 16px; }

/* Buttons are filled again, and smaller, with less empty space in them (Ram, Nov 10; this replaces the outline rule at
   the end of the prototype's styles). The fill is the button's own colour (--bc: pink by default, green for the main
   action, amber for something that needs you, white on a deep block, the deeper shade on white); the words are dark on
   the bright fills and white on the deep ones (--bt). A "btn out" is the quieter one of a pair: a soft fill of its own
   words' colour (white on a deep block, ink on the page) instead of an outline. */
.bw-studio .btn { --bt: var(--r-onAccent, #120A24); }
.bw-studio.daylight :is(.lqbar, .bkact, .ctl, .wsnp, .chg, .cmp, .sxbar) .btn, .bw-studio .wsviews .dtabs .wsw-b { --bt: #FFFFFF; }
/* The words pick themselves from the fill (Ram: "make sure there is enough contrast"): white on a fill darker than the
   middle, the deep ink on a lighter one. Browsers without relative colours keep --bt. */
.bw-studio .btn:not(.out) { background: var(--bc) !important; color: var(--bt) !important; color: oklch(from var(--bc) clamp(0.19, calc((0.66 - l) * 1000), 1) clamp(0, calc((l - 0.66) * 1000), 0.06) 295) !important; box-shadow: none !important; }
.bw-studio .btn:not(.out):hover { background: color-mix(in srgb, var(--bc) 84%, var(--bt)) !important; }
.bw-studio .btn.out { background: color-mix(in srgb, currentColor 16%, transparent) !important; box-shadow: none !important; }
.bw-studio .btn.out:hover { background: color-mix(in srgb, currentColor 26%, transparent) !important; }
/* one size everywhere: no button taller than 34px (30px for a small one), with 13px (11px) at each side, whatever
   size its own block asked for */
.bw-studio .btn { height: 34px; max-height: 34px; padding-inline: 13px !important; gap: 6px; font-size: 15px; font-weight: 700; }
.bw-studio .btn.sm { height: 30px; max-height: 30px; padding-inline: 11px !important; font-size: 14px; }
.bw-studio :is(.bw-setup, form.bw-form) .btn, .bw-card .btn { padding-block: 0; }
.bw-studio .btn > svg { width: 16px; height: 16px; }

/* Start something's rows and Add a module are filled too (Ram, Nov 10): each row in its own room's colour (--rc) with
   the words and icon dark on it, a little tighter; Add a module in this room's colour, as tall as a button. */
.bw-studio .sgb { padding: 7px 11px; background: var(--rc); color: var(--r-onAccent, #14092A); color: oklch(from var(--rc) clamp(0.19, calc((0.66 - l) * 1000), 1) clamp(0, calc((l - 0.66) * 1000), 0.06) 295); box-shadow: none; }
.bw-studio .sgb:hover { background: color-mix(in srgb, var(--rc) 84%, #FFFFFF); }
.bw-studio .sgb :is(.sgi, .sgt span) { color: inherit; }
.bw-studio .sgb:is(.over, .drop) { background: var(--rc); box-shadow: inset 0 0 0 2px var(--r-onBlock, #FFFFFF), 0 0 0 2px var(--rc); }
.bw-studio .maddb { height: 34px; background: var(--r-accent, #39FF14); color: var(--r-onAccent, #14092A); color: oklch(from var(--r-accent, #39FF14) clamp(0.19, calc((0.66 - l) * 1000), 1) clamp(0, calc((l - 0.66) * 1000), 0.06) 295); box-shadow: none; }
.bw-studio .maddb:hover { background: color-mix(in srgb, var(--r-accent, #39FF14) 84%, #FFFFFF); }

/* An episode on a project's Overview always shows its ⋯ (Rename, Move earlier, Move later, Delete), beside its arrow
   (Ram, Nov 10: there was no way to rename an episode). */
.bw-studio .pj-ept > .frm { opacity: 1; margin-left: auto; }
.bw-studio .pj-ept > .frm + svg { margin-left: 4px; }
.bw-studio .pj-ept .frenw .fren { font: inherit; font-weight: 700; }/* Edit project's "Then one every": a select in the form's own look */
.bw-studio form.bw-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 17px; border: 1.5px solid var(--studio-rule, #D9D1EA); border-radius: 10px; background: var(--studio-ground, #fff); color: var(--studio-ink, #120C1E); }

/* A book's real cover lies over its coloured plate (app.js plate(); the plate and its title show when there's none). */
.bw-studio .plate { position: relative; }
.bw-studio .plate > .pcv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bw-studio .plate:has(> .pcv) > span { visibility: hidden; }
.bw-studio .crow .plate.cvm > .pcv { display: block; }
/* Change cover, under the big cover in Selected source and This book */
.bw-studio .bigc .cvchg { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--r-link, #FF8FB1); cursor: pointer; }

/* Talk to Silas, the co-worker (frame.js silasAsk): links in his answer, what he changed, a change waiting for your
   yes, and what he looked at, folded. */
.bw-studio .slp-m.s a[href] { color: var(--r-link, #FF8FB1); font-weight: 600; }
.bw-studio .slp-m.s p + p { margin-top: 8px; }
.bw-studio .slp-did { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; line-height: 19px; }
.bw-studio .slp-did li::before { content: '✓ '; color: var(--r-accent, #39FF14); font-weight: 700; }
.bw-studio .slp-ask { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--r-onBlock, #FFFFFF) 8%, transparent); font-size: 14px; line-height: 20px; }
.bw-studio .slp-steps { margin-top: 8px; font-size: 13px; line-height: 18px; }
.bw-studio .slp-steps summary { cursor: pointer; color: var(--r-lilac, #CDB6FF); font-weight: 600; }
.bw-studio .slp-steps summary i { font-style: normal; }
.bw-studio .slp-steps ul { margin: 4px 0 0; padding-left: 16px; color: var(--r-lilac, #CDB6FF); }

