/* ==========================================================================
   Bloom Notebook — planner style with its own page set (js/bloom.js)
   Coloured frame · section tabs on top · spiral-bound two-page spreads (landscape)
   or two stacked sheets (portrait) · pastel header-strip cards · script titles
   Only plain boxes, borders, radii and SVG — everything here exports to the vector PDF.
   ========================================================================== */
.page.st-bloom { background:var(--frame); font:400 calc(9.5px*var(--fs))/1.3 var(--bf); }
.st-bloom .inner { padding:calc(var(--mt)*.7) calc(var(--mr)*.8) calc(var(--mb)*.8) calc(var(--ml)*.8); }
.st-bloom.k-cover .inner { padding:0; }
.bl-bg { position:absolute; inset:0; display:flex; }
.bl-bg i { flex:1; opacity:.85; }
.st-bloom .pgno { bottom:2px; font-size:calc(7px*var(--fs)); }

/* ---- month tabs (side) ---- */
.st-bloom .tab { color:var(--ink); box-shadow:none; font-size:calc(8px*var(--fs)); letter-spacing:.14em; font-weight:500; border:1px solid var(--frame); }
.st-bloom .tab.menu { background:var(--paper); }
.st-bloom .tab.on { background:var(--paper); color:var(--accent); }

/* ---- section tabs (top) ---- */
.bl-nav { display:flex; align-items:flex-end; gap:3px; flex:none; padding-left:18px; height:calc(21px*var(--fs)); position:relative; z-index:1; }
.bl-nav a { display:flex; align-items:center; gap:4px; height:calc(17px*var(--fs)); padding:0 10px; border-radius:7px 7px 0 0; font-size:calc(7.2px*var(--fs)); letter-spacing:.13em; text-transform:uppercase; font-weight:500; color:var(--ink); white-space:nowrap; }
.bl-nav a .ico { width:11px; height:11px; color:var(--q0); }
.bl-nav .bl-nt-0 { background:var(--p0); } .bl-nav .bl-nt-1 { background:var(--p1); } .bl-nav .bl-nt-2 { background:var(--p2); } .bl-nav .bl-nt-3 { background:var(--p3); }
.bl-nav .bl-nt-4 { background:var(--p4); } .bl-nav .bl-nt-5 { background:var(--p5); } .bl-nav .bl-nt-6 { background:var(--p0); }
.bl-nav .bl-nt-1 .ico { color:var(--q1); } .bl-nav .bl-nt-2 .ico { color:var(--q2); } .bl-nav .bl-nt-3 .ico { color:var(--q3); } .bl-nav .bl-nt-4 .ico { color:var(--q4); } .bl-nav .bl-nt-5 .ico { color:var(--q5); }
.bl-nav a.on { background:var(--paper); height:calc(21px*var(--fs)); font-weight:600; }
.page.st-bloom .bl-nav a:hover { color:var(--ink); filter:brightness(.97); }
.sw-xs .bl-nav a span, .sw-s .bl-nav a span { display:none; }
.sw-xs .bl-nav, .sw-s .bl-nav { padding-left:8px; }

/* ---- spread / sheets ---- */
.bd.bl-bd { gap:0; }
.bl-spread { flex:1; display:flex; min-height:0; }
.bl-sheet { flex:1 1 0; min-width:0; min-height:0; background:var(--paper); display:flex; flex-direction:column; gap:7px; overflow:hidden; padding:12px 16px 11px; }
.bl-spr .bl-sheet.l { border-radius:10px 4px 4px 10px; margin-right:3px; padding-right:20px; }
.bl-spr .bl-sheet.r { border-radius:4px 10px 10px 4px; padding-left:22px; }
.bl-rings { flex:none; width:34px; margin:0 -17px; position:relative; z-index:2; display:flex; flex-direction:column; justify-content:space-around; padding:10px 0; }
.bl-rg { width:34px; height:14px; display:block; }
.bl-rg .hole { fill:var(--frame); }
.bl-rg .back { fill:none; stroke:#b8916c; stroke-width:1.6; opacity:.55; }
.bl-rg .coil { fill:none; stroke:#c9a27e; stroke-width:2.4; stroke-linecap:round; }
.bl-rg .shine { fill:none; stroke:#f3e1cc; stroke-width:.9; stroke-linecap:round; }
.bl-stk .bl-spread { flex-direction:column; gap:7px; }
.bl-stk .bl-sheet { border-radius:10px; }
.bl-stk .bl-nav + .bd .bl-sheet.l { border-top-left-radius:4px; }
.bl-spr .bl-nav + .bd .bl-sheet.l { border-top-left-radius:4px; }

/* ---- type ---- */
.bl-hd { display:flex; align-items:center; gap:8px; flex:none; min-height:calc(28px*var(--fs)); }
.bl-tt { display:flex; align-items:center; white-space:nowrap; min-width:0; }
.bl-script { font:600 calc(27px*var(--fs)*var(--hs))/1 var(--hf); white-space:nowrap; }
.bl-script em, .bl-sub em { font-style:normal; font-family:'Playfair Display',serif; font-weight:400; font-size:calc(11px*var(--fs)); letter-spacing:.16em; margin-left:8px; color:var(--muted); }
.bl-sub { font-family:'Playfair Display',serif; font-size:calc(11px*var(--fs)); letter-spacing:.08em; color:var(--muted); white-space:nowrap; }
.bl-sub em { margin-left:4px; }
.bl-hrt { width:13px; height:13px; fill:none; stroke:var(--accent); stroke-width:1.7; stroke-linejoin:round; flex:none; }
.bl-hrt.t { margin-left:5px; width:14px; height:14px; }
.bl-serif { font-family:'Playfair Display',serif; font-size:calc(28px*var(--fs)*var(--hs)); line-height:1.05; }
.bl-caps { font-family:'Playfair Display',serif; letter-spacing:.18em; text-transform:uppercase; font-size:calc(11.5px*var(--fs)); text-align:center; flex:none; }
.bl-caps.sm { font-family:var(--bf); font-weight:600; font-size:calc(7.4px*var(--fs)); letter-spacing:.14em; text-align:left; margin-bottom:3px; }
.bl-hint { font-size:calc(6.8px*var(--fs)); color:var(--muted); display:block; }
.bl-foot { text-align:center; font-size:calc(7.6px*var(--fs)); color:var(--muted); flex:none; display:flex; justify-content:center; align-items:center; gap:4px; }

/* ---- pills & small navs ---- */
.bl-pill { display:inline-flex; align-items:center; gap:4px; background:var(--soft); border:1px solid var(--line); border-radius:20px; padding:3px 10px; font-size:calc(7.4px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; font-weight:500; white-space:nowrap; color:var(--ink); flex:none; }
.bl-pill.on { background:var(--cc, var(--p0)); border-color:transparent; }
.bl-pill.sm { padding:2px 7px; font-size:calc(6.8px*var(--fs)); }
.bl-pill i { font-style:normal; color:var(--muted); margin:0 2px; }
.bl-pill .ico { width:11px; height:11px; color:var(--cd, var(--q0)); }
.bl-tag .bl-pill { background:var(--cc); border-color:transparent; }
.bl-mnav { display:flex; gap:4px; flex-wrap:wrap; flex:none; }
.bl-mnav a { display:flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:14px; padding:2px 8px 2px 6px; font-size:calc(7px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; }
.bl-mnav a .ico { width:11px; height:11px; color:var(--q0); }
.bl-mnav a.on { background:var(--p0); border-color:var(--p0); font-weight:600; }
.bl-pn { display:inline-flex; gap:4px; flex:none; }
.bl-pn .b { width:18px; height:18px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:calc(12px*var(--fs)); line-height:1; color:var(--muted); padding-bottom:2px; }
.bl-pn .b.off { opacity:.3; }
.bl-go { margin-left:auto; font-size:calc(12px*var(--fs)); line-height:1; color:var(--q0); }

/* ---- cards ---- */
.bl-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--paper); min-height:0; min-width:0; flex:none; }
.bl-card.fx { flex:1 1 0; }
.bl-ch { display:flex; align-items:center; gap:5px; background:var(--cc); padding:3px 8px; font-size:calc(7.4px*var(--fs)); letter-spacing:.09em; text-transform:uppercase; flex:none; color:var(--ink); white-space:nowrap; }
.bl-ch .ico { width:11px; height:11px; color:var(--cd); flex:none; }
.bl-ch b { font-weight:600; overflow:hidden; text-overflow:ellipsis; }
.bl-cb { flex:1; min-height:0; display:flex; flex-direction:column; padding:2px 8px 5px; }
.bl-row { display:flex; gap:7px; min-height:0; flex:none; }
.bl-row.fx { flex:1 1 0; }
.bl-row > * { min-width:0; }
.bl-2col { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; min-height:0; }
.bl-col { display:flex; flex-direction:column; gap:7px; min-height:0; min-width:0; }
.bl-g2x2 { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr 1fr; gap:7px; min-height:0; }
.bl-g2x3 { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:repeat(3,1fr); gap:7px; min-height:0; }
.bl-g3 { flex:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; min-height:0; }

/* ---- writing primitives inside the notebook ---- */
.st-bloom .row { min-height:calc(17px*var(--rh)*var(--rf)); border-bottom-color:var(--line); gap:6px; }
.st-bloom .rows.fixed .row { height:calc(19px*var(--rh)*var(--rf)); }
.st-bloom .row .chk { margin-bottom:3px; }
.st-bloom .pre { font-size:calc(8px*var(--fs)); min-width:10px; }
.st-bloom .w.s1 { font-size:calc(9px*var(--fs)); }
.st-bloom .cols2 { gap:0 10px; }
.st-bloom .chk { width:11px; height:11px; border-radius:3px; border-color:var(--muted); }
.st-bloom .chk.rd { border-radius:50%; }
.st-bloom .chk.sm { width:9px; height:9px; }
.st-bloom .chk.on::after { left:3.2px; top:.6px; width:3.4px; height:6.4px; border-width:0 1.3px 1.3px 0; }
.st-bloom .chk.sm.on::after { left:2.4px; top:.3px; width:2.8px; height:5px; }
.st-bloom .chk.drop { width:9px; height:12px; border-radius:50%; border-color:var(--q1); }
.st-bloom .chk.drop.on { background:var(--q1); border-color:var(--q1); }
.st-bloom .chk.drop.on::after { display:none; }
.st-bloom .paper { min-height:0; border-radius:6px; }
.st-bloom .p-blank { border-color:var(--line); }
.bl-wa { flex:1; min-height:calc(28px*var(--rf)); font-size:calc(9px*var(--fs)); padding:2px 0; }
.bl-fld { display:flex; align-items:flex-end; gap:6px; border-bottom:1px solid var(--line); height:calc(19px*var(--rh)*var(--rf)); flex:none; min-width:0; }
.bl-fld > span { font-size:calc(7px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); white-space:nowrap; padding-bottom:2px; }
.bl-fld .w { flex:1; }
.bl-hd .bl-fld.sm { width:130px; height:20px; }
.bl-cb > .bl-fld.sm { border:0; height:16px; }
.st-bloom .tbl { border-color:var(--line); border-radius:6px; overflow:hidden; }
.st-bloom .th { background:var(--soft); border-color:var(--line); }
.st-bloom .th > div { font-size:calc(6.8px*var(--fs)); padding:3px 2px; border-color:var(--line); }
.st-bloom .tr { min-height:calc(16px*var(--rh)*var(--rf)); border-color:var(--line); }
.st-bloom .td { border-color:var(--line); }
.st-bloom .td.r { font-size:calc(7px*var(--fs)); }
.st-bloom .tf { background:var(--soft); }
.st-bloom .rn { font-size:calc(7.6px*var(--fs)); color:var(--muted); }
.bl-cb > .tbl { margin-top:3px; }
.bl-lab { font-size:calc(7.8px*var(--fs)); white-space:nowrap; padding:0 2px; flex:none; }
.st-bloom .evl { font-size:calc(7px*var(--fs)); }
.st-bloom .pic { border-radius:8px; border-color:var(--line); background:var(--soft); }

/* ---- trackers ---- */
.bl-hab { display:flex; flex-direction:column; flex:none; }
.bl-habh { display:flex; align-items:center; gap:3px; font-size:calc(6.8px*var(--fs)); color:var(--muted); letter-spacing:.08em; text-transform:uppercase; padding:2px 0 1px; }
.bl-habh span { flex:1; }
.bl-habh i, .bl-habr > i { width:15px; flex:none; text-align:center; font-style:normal; display:flex; justify-content:center; }
.bl-habr { display:flex; align-items:center; gap:3px; border-bottom:1px solid var(--line); height:calc(17px*var(--rh)*var(--rf)); }
.bl-habr .w.s1 { flex:1; }
.bl-mood { display:flex; justify-content:space-between; gap:3px; padding:3px 0 1px; flex:none; }
.bl-mf { display:flex; flex-direction:column; align-items:center; gap:2px; flex:1; min-width:0; }
.bl-mf small { font-size:calc(6.2px*var(--fs)); color:var(--muted); white-space:nowrap; }
.bl-face { width:21px; height:21px; display:block; }
.bl-face .fc { stroke:none; } .bl-face.f0 .fc { fill:var(--p2); } .bl-face.f1 .fc { fill:var(--p3); } .bl-face.f2 .fc { fill:var(--p1); } .bl-face.f3 .fc { fill:var(--p5); } .bl-face.f4 .fc { fill:var(--p0); }
.bl-face .fe { fill:var(--ink); }
.bl-face .fm { fill:none; stroke:var(--ink); stroke-width:1.3; stroke-linecap:round; }
.bl-drops { display:flex; gap:6px; justify-content:center; padding:4px 0 3px; flex:none; }
.bl-ml { display:flex; align-items:flex-end; gap:5px; border-bottom:1px solid var(--line); height:calc(16px*var(--rh)*var(--rf)); flex:none; }
.bl-ml b { font-size:calc(7.4px*var(--fs)); color:var(--muted); width:9px; padding-bottom:2px; }
.bl-ml .w { flex:1; }
.bl-prog { display:flex; gap:3px; justify-content:space-between; padding:4px 0 2px; flex:none; }
.bl-pct { display:flex; justify-content:space-between; font-size:calc(6.4px*var(--fs)); color:var(--muted); }
.bl-rate { display:flex; align-items:center; gap:5px; border-bottom:1px solid var(--line); height:calc(18px*var(--rh)*var(--rf)); }
.bl-rate span { flex:1; font-size:calc(7.2px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; }
.bl-tags { display:flex; flex-direction:column; flex:1; min-height:0; }
.bl-tag { flex:1 1 0; display:flex; align-items:flex-end; gap:6px; border-bottom:1px solid var(--line); min-height:calc(17px*var(--rh)*var(--rf)); padding-bottom:2px; }
.bl-tag .bl-pill { flex:0 0 64px; justify-content:center; }
.bl-tag .w { flex:1; }
.bl-m31 { display:grid; grid-template-columns:repeat(11,minmax(0,1fr)); gap:3px 2px; padding:3px 0; }
.bl-m31 span { display:flex; flex-direction:column; align-items:center; gap:1px; }
.bl-m31 small { font-size:calc(6px*var(--fs)); color:var(--muted); }
.bl-ideas { display:flex; flex-direction:column; flex:1; min-height:0; }
.bl-ideas > span { display:flex; gap:6px; align-items:center; font-size:calc(8px*var(--fs)); border-bottom:1px solid var(--line); flex:1 1 0; min-height:calc(17px*var(--rh)*var(--rf)); }
.bl-rv { display:grid; grid-template-columns:1fr 1fr; gap:4px 8px; font-size:calc(8px*var(--fs)); padding:3px 0; }
.bl-rv span { display:flex; align-items:center; gap:5px; }
.bl-donut { flex:0 0 30%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:1px solid var(--line); border-radius:8px; padding:6px; }
.bl-donut svg { width:62px; height:62px; }
.bl-donut path { fill:none; stroke-width:6; }
.bl-donut .d0 { stroke:var(--p0); } .bl-donut .d1 { stroke:var(--p3); } .bl-donut .d2 { stroke:var(--p1); }
.bl-donut small { font-size:calc(7px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }

/* ---- calendars ---- */
.bl-mini { border:1px solid var(--line); border-radius:8px; padding:5px 7px 6px; display:flex; flex-direction:column; flex:none; background:var(--paper); min-width:0; }
.bl-mn { display:flex; justify-content:space-between; align-items:baseline; font-family:'Playfair Display',serif; font-size:calc(10.5px*var(--fs)); margin-bottom:2px; }
.bl-mn small { font-size:calc(7px*var(--fs)); color:var(--muted); font-family:var(--bf); letter-spacing:.1em; }
.bl-mg { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; font-size:calc(7.6px*var(--fs)); row-gap:1px; }
.bl-mg .dh { color:var(--muted); font-size:calc(6.6px*var(--fs)); font-weight:600; }
.bl-mg span a { display:inline-block; min-width:14px; line-height:14px; border-radius:50%; }
.bl-mg .we a { color:var(--we-ink); }
.bl-mg .ev a { background:var(--p0); }
.bl-mg .on a { border:1.2px solid var(--accent); color:var(--accent); font-weight:600; line-height:12px; }
.bl-cal { flex:1 1 0; display:flex; flex-direction:column; min-height:0; }
.bl-dh { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; flex:none; margin-bottom:3px; }
.bl-dh span { background:var(--soft); text-align:center; border-radius:4px; font-size:calc(7px*var(--fs)); letter-spacing:.12em; text-transform:uppercase; padding:2px 0; font-weight:500; }
.bl-cg { flex:1; min-height:0; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.bl-c { border:1px solid var(--line); border-radius:5px; padding:2px 4px; display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden; }
.bl-c.we { background:var(--wk); }
.bl-c.out { border-style:dashed; color:var(--muted); }
.bl-c.out .bl-dn { opacity:.5; }
.bl-dn { font-size:calc(8.4px*var(--fs)); font-weight:500; flex:none; line-height:1.3; }
.bl-c .cw { flex:1; min-height:0; font-size:calc(7.8px*var(--fs)); overflow:hidden; line-height:1.25; }
.bl-wstrip { display:flex; gap:4px; flex:none; }
.bl-wsl { font-size:calc(7px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; font-weight:600; align-self:center; white-space:nowrap; margin-right:2px; }
.bl-wk { flex:1; min-width:0; border:1px solid var(--line); border-radius:6px; text-align:center; padding:2px; display:flex; flex-direction:column; background:var(--soft); }
.bl-wk b { font-size:calc(8px*var(--fs)); font-weight:600; }
.bl-wk small { font-size:calc(6.4px*var(--fs)); color:var(--muted); white-space:nowrap; overflow:hidden; }
.bl-yg { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:repeat(3,minmax(0,1fr)); gap:8px; min-height:0; }
.bl-yg .bl-mini { min-height:0; }
.bl-yg .bl-mg { flex:1; min-height:0; font-size:calc(8.2px*var(--fs)); align-content:space-evenly; }
.bl-row > .bl-mini { flex:0 0 44%; }

/* ---- week ---- */
.bl-wdays { flex:1; display:flex; flex-direction:column; gap:4px; min-height:0; }
.bl-wd { flex:1 1 0; display:flex; align-items:stretch; gap:7px; border:1px solid var(--line); border-radius:7px; overflow:hidden; min-height:0; padding-right:7px; }
.bl-wd.we { background:var(--wk); }
.bl-wdl { flex:0 0 40px; background:var(--cc); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.bl-wdl b { font-size:calc(7px*var(--fs)); letter-spacing:.12em; text-transform:uppercase; font-weight:600; }
.bl-wdl span { font-family:'Playfair Display',serif; font-size:calc(14px*var(--fs)); line-height:1.1; }
.bl-wdb { flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; padding:2px 0; }
.bl-wdb .paper { --lsb:15px; }
.bl-wd > .chk { align-self:center; }

/* ---- day ---- */
.bl-evbar { display:flex; gap:4px; flex:none; flex-wrap:wrap; }
.bl-evbar span { background:var(--p0); border-radius:10px; padding:1px 8px; font-size:calc(7.2px*var(--fs)); }
.bl-sched { flex:1; display:flex; flex-direction:column; min-height:0; }
.bl-sr { flex:1 1 0; display:flex; align-items:flex-end; gap:6px; border-bottom:1px solid var(--line); min-height:calc(14px*var(--rh)*var(--rf)); }
.bl-st { width:34px; flex:none; font-size:calc(7.6px*var(--fs)); color:var(--muted); padding-bottom:2px; display:flex; gap:2px; align-items:baseline; }
.bl-st small { font-size:calc(5.8px*var(--fs)); letter-spacing:.06em; }
.bl-sr .w { flex:1; }

/* ---- art & quotes ---- */
.bl-quote { flex:none; background:var(--soft); border-radius:8px; padding:6px 10px; text-align:center; font:600 calc(12.5px*var(--fs))/1.15 'Caveat',cursive; display:flex; flex-direction:column; align-items:center; gap:2px; }
.bl-quote .bl-hrt { width:10px; height:10px; }
.bl-artbox { position:relative; flex:0 0 calc(62px*var(--rf)); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; min-height:0; }
.bl-row > .bl-artbox { flex:1 1 0; min-height:calc(70px*var(--rf)); }
.bl-artbox .bl-art { position:absolute; inset:0; width:100%; height:100%; }
.bl-artbox .bl-quote { position:relative; background:transparent; margin-bottom:auto; }
.bl-art .sky { fill:var(--soft); } .bl-art .sun { fill:var(--p2); } .bl-art .m1 { fill:var(--p5); } .bl-art .m2 { fill:var(--p0); } .bl-art .m3 { fill:var(--p3); }
.bl-art .snow { fill:var(--paper); } .bl-art .tr { fill:var(--q3); }
.bl-sprig { width:26px; height:42px; flex:none; }
.bl-sprig .stem { fill:none; stroke:var(--q3); stroke-width:1.2; }
.bl-sprig .lf { fill:var(--p3); stroke:var(--q3); stroke-width:.6; }

/* ---- index ---- */
.bl-ixh { display:flex; align-items:flex-start; justify-content:space-between; flex:none; }
.bl-ixh small { font-size:calc(8.4px*var(--fs)); color:var(--muted); }
.bl-ix { flex:1; display:grid; grid-template-columns:31% minmax(0,1fr); gap:10px; min-height:0; }
.bl-side { display:flex; flex-direction:column; gap:5px; }
.bl-side a { display:flex; align-items:center; gap:6px; background:var(--soft); border:1px solid var(--line); border-radius:7px; padding:5px 8px; font-size:calc(7.6px*var(--fs)); letter-spacing:.1em; text-transform:uppercase; font-weight:500; white-space:nowrap; }
.bl-side a .ico { width:12px; height:12px; flex:none; }
.page.st-bloom .bl-side a.on { background:var(--accent); color:var(--paper); border-color:var(--accent); }
.bl-ixm { display:flex; flex-direction:column; gap:8px; min-height:0; min-width:0; }
.bl-mgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px 0 2px; }
.bl-mgrid .bl-pill { justify-content:center; }
.bl-qks { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.bl-qk { display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:8px; padding:5px 6px; font-size:calc(7.2px*var(--fs)); letter-spacing:.06em; text-transform:uppercase; min-width:0; }
.bl-qk b { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bl-ci { width:22px; height:22px; border-radius:50%; background:var(--cc); display:flex; align-items:center; justify-content:center; flex:none; color:var(--cd); }
.bl-ci .ico { width:12px; height:12px; }
.bl-ixm .bl-quote { margin-top:auto; }
.bl-scs { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-auto-rows:minmax(0,1fr); gap:7px; min-height:0; }
.bl-sc { display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:9px; padding:6px 9px; min-height:0; overflow:hidden; background:var(--paper); }
.bl-sc .bl-ci { width:30px; height:30px; }
.bl-sc .bl-ci .ico { width:15px; height:15px; }
.bl-ct { display:flex; flex-direction:column; gap:1px; min-width:0; }
.bl-ct b { font-size:calc(8.4px*var(--fs)); letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.bl-ct small { font-size:calc(7.2px*var(--fs)); color:var(--muted); line-height:1.25; }

/* ---- notes ---- */
.bl-nts { flex:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:1fr 1fr; gap:8px; min-height:0; }
.bl-nt { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); border-radius:9px; padding:6px; background:var(--soft); min-height:0; overflow:hidden; text-align:center; }
.bl-nth { display:flex; align-items:center; justify-content:center; color:var(--muted); background:var(--paper); border-radius:6px; padding:4px; }
.bl-nth svg { width:40px; height:47px; display:block; }
.bl-nth svg .f { fill:currentColor; stroke:none; }
.bl-nt b { font-size:calc(7.4px*var(--fs)); letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.bl-sheetbox { flex:1; border:1px solid var(--line); border-radius:8px; display:flex; min-height:0; padding:6px; }
.bl-sheet > .paper { flex:1; }
.bl-cornell { flex:1; display:grid; grid-template-columns:30% minmax(0,1fr); gap:8px; min-height:0; }
.bl-cornell > div { display:flex; flex-direction:column; min-height:0; border:1px solid var(--line); border-radius:8px; padding:5px 7px; }
.bl-cloud { flex:1; border:1.5px dashed var(--q0); border-radius:28px; padding:12px 16px; display:flex; flex-direction:column; min-height:0; }
.bl-vb { flex:1; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px; min-height:0; }
.bl-vb.r .pic:first-child { grid-column:1 / 3; }

/* ---- cover ---- */
.bl-bd.cv { position:absolute; inset:0; }
.bl-cover { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.bl-cv-card { position:relative; z-index:1; width:58%; max-width:620px; background:var(--paper); border-radius:16px; padding:0 0 26px; display:flex; flex-direction:column; align-items:center; gap:8px; overflow:hidden; border:1px solid var(--line); }
.port .bl-cv-card { width:76%; }
.bl-art.cv { width:100%; height:auto; aspect-ratio:240 / 110; display:block; margin-bottom:6px; }
.bl-cv-t { display:flex; align-items:center; }
.bl-cv-t .bl-script { font-size:calc(46px*var(--fs)); }
.bl-cv-y { font-family:'Playfair Display',serif; letter-spacing:.32em; font-size:calc(18px*var(--fs)); padding-left:.32em; }
.bl-cv-w { font-size:calc(8px*var(--fs)); letter-spacing:.3em; text-transform:uppercase; color:var(--muted); }
.bl-cv-o { font:600 calc(18px*var(--fs))/1 'Caveat',cursive; }
.bl-cv-go { margin-top:6px; background:var(--p0); border-color:transparent; padding:5px 16px; }
.bl-sprig.cv-l, .bl-sprig.cv-r { position:absolute; width:64px; height:102px; }
.bl-sprig.cv-l { left:9%; bottom:9%; }
.bl-sprig.cv-r { right:9%; top:9%; }

/* ---- small and short pages ---- */
.st-bloom.short .bl-sheet { padding-top:8px; padding-bottom:8px; gap:5px; }
.st-bloom.short .bl-script { font-size:calc(22px*var(--fs)*var(--hs)); }
.sw-xs.st-bloom .bl-sheet, .sw-s.st-bloom .bl-sheet { padding:9px 10px; }
.sw-xs .bl-2col, .sw-xs .bl-g3 { gap:6px; }
.sw-xs .bl-mood small { display:none; }
.bl-stk .bl-ix { grid-template-columns:34% minmax(0,1fr); }
.sw-xs .bl-hd .bl-fld.sm { display:none; }

/* ---- style card art (builder) ---- */
.stl-art.bl-sa { display:flex; flex-direction:column; gap:3px; padding:7px 9px 7px 7px; position:relative; }
.bl-sa-nav { display:flex; gap:2px; height:5px; padding-left:8px; }
.bl-sa-nav i { width:13px; border-radius:2px 2px 0 0; }
.bl-sa-sp { flex:1; display:flex; align-items:stretch; }
.bl-sa-sh { flex:1; border-radius:4px; padding:4px; display:flex; flex-direction:column; gap:3px; }
.bl-sa-sh b { font-size:12px; font-weight:600; line-height:1; }
.bl-sa-sh i { height:9px; border-radius:2px; }
.bl-sa-rg { width:7px; display:flex; flex-direction:column; justify-content:space-around; margin:0 -3px; z-index:1; }
.bl-sa-rg u { height:2.5px; border-radius:2px; background:#c9a27e; }
.bl-sa-tabs { position:absolute; right:1px; top:12px; bottom:8px; width:4px; display:flex; flex-direction:column; gap:1px; }
.bl-sa-tabs i { flex:1; border-radius:2px 0 0 2px; }

/* ---- polish ---- */
.bl-tt { flex:none; }
.bl-hd .bl-sub { flex:0 1 auto; min-width:0; overflow:hidden; }
.bl-hd .bl-mnav { flex:0 1 auto; flex-wrap:nowrap; overflow:hidden; justify-content:flex-end; }
.st-bloom .row { max-height:calc(30px*var(--rh)); }
.bl-cb > .cols2 { flex:1; min-height:0; }
.bl-side a { flex:1 1 0; max-height:40px; }
.bl-ixm .bl-artbox.ix { flex:0 0 calc(92px*var(--rf)); }
.bl-artbox .bl-quote { margin-top:6px; }
.bl-pill em { font-style:normal; margin-left:4px; color:var(--muted); }
.bl-art.cv { aspect-ratio:240 / 100; }
.bl-nth svg { width:54px; height:64px; }
.bl-card.fx .bl-hab { flex:1; min-height:0; }
.bl-card.fx .bl-habr { flex:1 1 0; height:auto; min-height:calc(16px*var(--rh)*var(--rf)); max-height:calc(30px*var(--rh)); }
.bl-vb .pic { min-height:0; }
.bl-card.fx { min-height:calc(46px*var(--rf)); }
.bl-row.fx { min-height:calc(46px*var(--rf)); }
.bl-sp { flex:1; }
