/* ---------- colours, labels and text style (section 21) ----------
   A colour you give something is content, not chrome: it keeps its hue at night. What is given a colour is filled
   with it, its edge too, and what is written on it takes the ink that reads there (Axio, 2026-10-16: "the outline and
   the whole card, they should be the same"). So each colour is --k-f, the colour as it fills (a card, a column's tray,
   a board's head, a tile), --k-on, the ink on it, --k-a, the colour as a mark on the canvas (a label, a header's ink,
   a timer's arc) and --k-t, paper tinted with it (a shape's). A preset fills with its tint, and its ink is the hue's
   own, deep by day and pale at night (--k-n; Axio, 2026-10-27: "a small tint, a really high-class color set"). */
.obj[data-color="red"]    { --k-a: var(--k-red-a);    --k-t: var(--k-red-t); --k-n: var(--k-red-n); }
.obj[data-color="orange"] { --k-a: var(--k-orange-a); --k-t: var(--k-orange-t); --k-n: var(--k-orange-n); }
.obj[data-color="yellow"] { --k-a: var(--k-yellow-a); --k-t: var(--k-yellow-t); --k-n: var(--k-yellow-n); }
.obj[data-color="green"]  { --k-a: var(--k-green-a);  --k-t: var(--k-green-t); --k-n: var(--k-green-n); }
.obj[data-color="teal"]   { --k-a: var(--k-teal-a);   --k-t: var(--k-teal-t); --k-n: var(--k-teal-n); }
.obj[data-color="blue"]   { --k-a: var(--k-blue-a);   --k-t: var(--k-blue-t); --k-n: var(--k-blue-n); }
.obj[data-color="violet"] { --k-a: var(--k-violet-a); --k-t: var(--k-violet-t); --k-n: var(--k-violet-n); }
.obj[data-color="pink"]   { --k-a: var(--k-pink-a);   --k-t: var(--k-pink-t); --k-n: var(--k-pink-n); }
.obj:is([data-color="red"], [data-color="orange"], [data-color="yellow"], [data-color="green"], [data-color="teal"], [data-color="blue"], [data-color="violet"], [data-color="pink"]),
:is([data-k="red"], [data-k="orange"], [data-k="yellow"], [data-k="green"], [data-k="teal"], [data-k="blue"], [data-k="violet"], [data-k="pink"]) { --k-f: var(--k-t); --k-on: var(--k-n); }
/* A colour of one's own (any colour picked in the Colour card, section 21d) is data-color="#rrggbb", and a rule made
   for it gives it --k-c and the ink that reads on it, --k-on (kcRule, section 21). It is shown exactly as it was picked,
   day and night, wherever it is used: what it fills, its mark (a header's words, a timer's arc, an edge, a label) and a
   shape's paper are all the colour itself (Axio, 2026-11-06: "If I choose a color, it represents that color"). Only
   the eight presets change with the look. What is written on its fill takes --k-on, so it still reads. A swatch of it
   (data-k) too. */
.obj[data-color^="#"], [data-k^="#"] { --k-f: var(--k-c); --k-a: var(--k-c); --k-t: var(--k-c); }
/* What a colour fills: a note, a list, a link, a file and a table whole; a board's head and edge as a card (its tile as
   an icon, below); a column's tray. What is written on it takes the ink on it, the quieter inks and the rules worked
   out from the two, and every word still reads (--ink-2 and --ink-q at 4.5:1 or more on a preset; the boxes, a task's
   grip, a table's lines follow). A column's cards keep their own; so does a board's inside. #zhead is a board's head
   carried over the opening (zoomRun, section 9). */
.obj:is(.text, .todo, .link, .file, .table)[data-color], .obj.board[data-color]:not([data-view="icon"]) > .bhead, #zhead[data-color] > .bhead,
.obj.column[data-color] > :is(.chead, .cstack:empty) {
  --ink: var(--k-on); --ink-2: color-mix(in srgb, var(--k-on) 92%, var(--k-f)); --ink-q: color-mix(in srgb, var(--k-on) 88%, var(--k-f));
  --ink-3: color-mix(in srgb, var(--k-on) 75%, var(--k-f));
  --rule: color-mix(in srgb, var(--k-on) 20%, var(--k-f)); --rule-2: color-mix(in srgb, var(--k-on) 30%, var(--k-f));
  color: var(--ink);
}
.obj:is(.text, .todo, .link, .file, .table)[data-color] { --surface: var(--k-f); background-color: var(--k-f); border-color: transparent; }   /* its edge is the fill under it: the same, even as the colour changes */
/* A transparent note (data-view="clear", section 21d): only its words on the canvas, in the canvas's own inks, day and
   night: no card, no edge, no shadow. Typed in, a quiet dashed edge shows where it ends. */
.obj.text[data-view="clear"] { background: transparent; border-color: transparent; box-shadow: none; }
.obj.text[data-view="clear"]:focus-within { border-color: var(--rule-2); border-style: dashed; box-shadow: none; }
.obj.board[data-color]:not([data-view="icon"]), #zhead[data-color] { border-color: var(--k-f); }
.obj.board[data-color]:not([data-view="icon"]) > .bhead, #zhead[data-color] > .bhead { background: var(--k-f); border-bottom-color: var(--k-f); }
.obj.column[data-color] { background: var(--k-f); }
.obj.header[data-color]:not([data-ink]) .hd { color: var(--k-a); }
.obj.header[data-color]::after, .obj.header[data-color]::before { background: var(--k-a); }
.obj.timer[data-color] { --c-timer: var(--k-a); }
.obj.timer[data-color] .tm-pin { fill: var(--c-timer); }      /* a timer's colour: its pin, and the ring that is lit */
.obj.timer[data-color] .tm-rg.lit .tm-ring { stroke: color-mix(in srgb, var(--c-timer) 62%, transparent); }

.obj:not([data-color]) { --k-a: initial; --k-t: initial; --k-f: initial; --k-on: initial; }     /* a miniature's card never takes its board's colour */
/* A label: a short word in tracked caps on a chip of its colour, inside the thing it names. */
.otag {
  display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 24px); height: 18px; padding: 0 7px 0 6px; box-sizing: border-box;
  border-radius: 3px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--k-a, var(--ink-2)); background: color-mix(in srgb, var(--k-a, var(--ink-3)) 13%, transparent);
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.otag::before { content: ""; flex: none; width: 4px; height: 4px; background: currentColor; }
.otag span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.obj:is(.text, .link, .file) > .otag { flex: none; align-self: flex-start; margin: 0 12px 10px; }
.obj:is(.todo, .table) > .otag { display: flex; width: fit-content; margin: 6px 12px 8px; }
.obj.file > .otag { margin-top: 8px; }
.bhead > .otag, .chead > .otag { flex: none; max-width: 45%; }
.obj.header > .otag { position: absolute; left: 0; bottom: calc(100% + 6px); max-width: 100%; }
.obj:is(.text, .todo, .link, .file, .table)[data-color] > .otag, .obj.board[data-color]:not([data-view="icon"]) > .bhead > .otag,
#zhead[data-color] > .bhead > .otag, .obj.column[data-color] > .chead > .otag {
  color: var(--k-on); background: color-mix(in srgb, var(--k-on) 14%, transparent);      /* on a colour's fill: in the ink on it */
}
.obj.image > .otag { position: absolute; left: 8px; bottom: 8px; color: var(--ink); background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.wk .obj.image > .otag { background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }   /* a backdrop is a layer of its own (objects.css, html.wk) */

/* Text style: a size, a typeface, an ink and an alignment for a note's, a to-do's, a table's or a header's text. */
.obj.text[data-fs="s"] .tx { font-size: 14.5px; line-height: 22px; }
.obj.text[data-fs="l"] .tx { font-size: 22px; line-height: 31px; --ls: -.004em; }
.obj.text[data-fs="xl"] .tx { font-size: 30px; line-height: 37px; --ls: -.012em; }
.obj.todo[data-fs="s"] .tit { font-size: 14px; line-height: 21px; }
.obj.todo[data-fs="l"] .tit { font-size: 19px; line-height: 28px; }
.obj.todo[data-fs="xl"] .tit { font-size: 25px; line-height: 34px; --ls: -.01em; }
.obj.todo[data-fs="s"] .tdt { font-size: 16.5px; line-height: 22px; }
.obj.todo[data-fs="l"] .tdt { font-size: 23px; line-height: 29px; }
.obj.todo[data-fs="xl"] .tdt { font-size: 29px; line-height: 36px; --ls: -.015em; }
/* a task's box and its grip level with its first line: 6px down the row, then half of what the line is taller than the box */
.obj.todo[data-fs="s"] .box { margin-top: 9px; }
.obj.todo[data-fs="l"] .box { margin-top: 12.5px; }
.obj.todo[data-fs="xl"] .box { margin-top: 15.5px; }
.obj.todo[data-fs="s"] .ti::after { top: 11.5px; }
.obj.todo[data-fs="l"] .ti::after { top: 15px; }
.obj.todo[data-fs="xl"] .ti::after { top: 18px; }
.obj.todo[data-fs="s"][data-tally]::after { line-height: 22px; }
.obj.todo[data-fs="l"][data-tally]::after { line-height: 29px; }
.obj.todo[data-fs="xl"][data-tally]::after { line-height: 36px; }
.obj.table[data-fs="s"] .tgrid { font-size: 13.5px; line-height: 20px; }
.obj.table[data-fs="l"] .tgrid { font-size: 17.5px; line-height: 26px; }
.obj.table[data-fs="xl"] .tgrid { font-size: 21.5px; line-height: 30px; --ls: -.008em; }
.obj[data-ff="serif"] :is(.tx, .tit, .tdt, .tc, .tchart) { font-family: var(--f-display); font-optical-sizing: auto; }
.obj[data-ff="mono"] :is(.tx, .tit, .tdt, .tc, .tchart) { font-family: var(--f-mono); --ls: -.012em; }
.obj.todo[data-ff="mono"] .tdt { font-size: 16px; font-weight: 600; }
.obj.header[data-ff="sans"] .hd { font-family: var(--f-ui); font-weight: 600; --ls: -.028em; }
.obj.header[data-ff="mono"] .hd { font-family: var(--f-mono); font-weight: 500; --ls: -.045em; }
/* Letter spacing (format 1.5's tracking, data-tracking; the Text card, and the AI's Change and polish): tight or wide
   on a note's, a list's, a table's or a header's text. Each text has its own spacing for its size, face and line style
   (--ls, above and section 21e); tight and wide move it by --trk, so a large header tightened stays tighter than a
   small one. A note's lines take the note's, but its headings their own; a code line keeps its own (none). */
.obj[data-tracking="tight"] { --trk: -.02em; }
.obj[data-tracking="wide"] { --trk: .06em; }
.obj :is(.tx, .tx > :is(.h1, .h2), .tit, .tdt, .tgrid, .tc, .hd) { letter-spacing: calc(var(--ls, 0em) + var(--trk, 0em)); }
.obj[data-ink="red"]    { --ink-c: var(--k-red-a); }
.obj[data-ink="orange"] { --ink-c: var(--k-orange-a); }
.obj[data-ink="yellow"] { --ink-c: var(--k-yellow-a); }
.obj[data-ink="green"]  { --ink-c: var(--k-green-a); }
.obj[data-ink="teal"]   { --ink-c: var(--k-teal-a); }
.obj[data-ink="blue"]   { --ink-c: var(--k-blue-a); }
.obj[data-ink="violet"] { --ink-c: var(--k-violet-a); }
.obj[data-ink="pink"]   { --ink-c: var(--k-pink-a); }
.obj[data-ink] :is(.tx, .tit, .tdt, .tc, .hd) { color: var(--ink-c); }
/* An ink of one's own (data-ink="#rrggbb", the Text card's fold-out, section 21e; inkRule gives it --ink-x): exactly
   as it was picked, day and night (Axio, 2026-11-06), as a word's own ink in a note or a header is (<font color>). */
.obj[data-ink^="#"] { --ink-c: var(--ink-x); }
.obj[data-align="center"] :is(.tx, .hd, .tc, .tdt) { text-align: center; }
.obj[data-align="right"] :is(.tx, .hd, .tc, .tdt) { text-align: right; }
/* A note is rich: bold, italic, struck through, lists, and inks on the words chosen (and a header's words, their inks). */
.tx b, .tx strong { font-weight: 600; }
.tx ul, .tx ol { margin: 0; padding-left: 1.35em; }
.tx li::marker { color: color-mix(in srgb, currentColor 50%, transparent); }
.tx :is(s, strike) { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 65%, transparent); }
:is(.tx, .hd) font[color="#1c2430" i] { color: var(--ink); }
:is(.tx, .hd) font[color="#c2412d" i] { color: var(--k-red-a); }
:is(.tx, .hd) font[color="#b5600f" i] { color: var(--k-orange-a); }
:is(.tx, .hd) font[color="#94760a" i] { color: var(--k-yellow-a); }
:is(.tx, .hd) font[color="#3e7b39" i] { color: var(--k-green-a); }
:is(.tx, .hd) font[color="#00796f" i] { color: var(--k-teal-a); }
:is(.tx, .hd) font[color="#3568b2" i] { color: var(--k-blue-a); }
:is(.tx, .hd) font[color="#7652ac" i] { color: var(--k-violet-a); }
:is(.tx, .hd) font[color="#b03a68" i] { color: var(--k-pink-a); }
/* Words of their own style (section 21g, app/js/words.js): a typeface, a letter spacing, a line's alignment. Their
   own size is a rule made for it (wsSizeRule), and so is a typeface of the device's (wsFaceRule). Their letter spacing
   is worked out where they are, in an em of theirs: their size's, but code's in its face, and a heading's in one (as
   a note's text has it); a code line's stays none. */
.obj .tx [data-ff="sans"] { font-family: var(--f-ui); }
.obj .tx [data-ff="serif"] { font-family: var(--f-display); font-optical-sizing: auto; }
.obj .tx [data-ff="mono"] { font-family: var(--f-mono); --ls: -.012em; }
.obj .tx > :is(.h1, .h2) :is([data-fs], [data-ff="mono"]) { --ls: inherit; }
.obj .tx [data-tk="tight"] { --trk: -.02em; }
.obj .tx [data-tk="normal"] { --trk: 0em; }
.obj .tx [data-tk="wide"] { --trk: .06em; }
.obj .tx :is([data-fs], [data-ff="mono"], [data-tk]) { letter-spacing: calc(var(--ls, 0em) + var(--trk, 0em)); }
.obj .tx > .code :is([data-fs], [data-ff="mono"]):not([data-tk]) { letter-spacing: 0; }
/* A header's words of their own style (section 21g): a typeface as a header in it has it (its weight and its spacing),
   a letter spacing, an ink (above); their own size is in ems of the title's (wsEmRule), so they grow and shrink with it.
   Their letter spacing is worked out where they are, in an em of theirs. */
.hd [data-ff="sans"] { font-family: var(--f-ui); font-weight: 600; --ls: -.028em; }
.hd [data-ff="serif"] { font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto; --ls: -.015em; }
.hd [data-ff="mono"] { font-family: var(--f-mono); font-weight: 500; --ls: -.045em; }
.hd [data-tk="tight"] { --trk: -.02em; }
.hd [data-tk="normal"] { --trk: 0em; }
.hd [data-tk="wide"] { --trk: .06em; }
.hd :is([data-em], [data-ff], [data-tk]) { letter-spacing: calc(var(--ls, 0em) + var(--trk, 0em)); }
.obj .tx [data-al="left"] { text-align: left; }
.obj .tx [data-al="center"] { text-align: center; }
.obj .tx [data-al="right"] { text-align: right; }
/* A line's style (section 21f; Axio, 2026-10-20, after Milanote's): a large heading, a heading, small text, a code
   block, a callout and a quote. Sized in em, so they follow the note's size, and in the note's face but code's. Lines
   of code, of a callout or of a quote one after another are one block. */
.tx > :is(.h1, .h2) { font-weight: 600; text-wrap: balance; }
.tx > .h1 { font-size: 1.6em; line-height: 1.22; --ls: -.022em; margin: .32em 0 .14em; }
.tx > .h2 { font-size: 1.22em; line-height: 1.32; --ls: -.012em; margin: .3em 0 .1em; }
.tx > :is(.h1, .h2):first-child { margin-top: 0; }
.tx > .small { font-size: .8em; line-height: 1.5; color: var(--ink-2); }
.tx > :is(.code, .callout, .quote) { --blk: .5em; }
.tx > .code {
  font-family: var(--f-mono); font-size: .84em; line-height: 1.62; letter-spacing: 0; tab-size: 2; font-variant-ligatures: none;
  padding: 0 .85em; background: color-mix(in srgb, currentColor 6.5%, transparent); overflow-wrap: anywhere;
}
.tx > .callout { position: relative; padding: 0 .85em 0 2.3em; background: color-mix(in srgb, currentColor 6.5%, transparent); }
.tx > .callout:not(.callout + .callout)::before {          /* its mark, on its first line */
  content: ""; position: absolute; left: .8em; top: calc(var(--blk) + .5lh - .5em); width: 1em; height: 1em; background: currentColor; opacity: .7;
  -webkit-mask: var(--co-mark) center / contain no-repeat; mask: var(--co-mark) center / contain no-repeat;
}
.tx > .quote { padding-left: .95em; box-shadow: inset 2px 0 0 color-mix(in srgb, currentColor 30%, transparent); font-style: italic; }
.obj:not([data-ff]) .tx > .quote { font-family: var(--f-display); font-size: 1.06em; font-optical-sizing: auto; }    /* in the serif, unless the note has a face of its own */
.tx > :is(.code, .callout):not(.code + .code, .callout + .callout) { margin-top: .3em; padding-top: var(--blk); border-radius: 6px 6px 0 0; }
.tx > .code:not(:has(+ .code)), .tx > .callout:not(:has(+ .callout)) { margin-bottom: .3em; padding-bottom: var(--blk); border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.tx > .code:not(.code + .code):not(:has(+ .code)), .tx > .callout:not(.callout + .callout):not(:has(+ .callout)) { border-radius: 6px; }
.tx > .code + .callout, .tx > .callout + .code { margin-top: .3em; }
.tx > .quote:not(.quote + .quote) { margin-top: .2em; }
.tx > .quote:not(:has(+ .quote)) { margin-bottom: .2em; }
.tx > :is(.code, .callout, .quote):first-child { margin-top: 0; }
.tx > :is(.code, .callout, .quote):last-child { margin-bottom: 0; }
:root { --co-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 7.6v5.3'/%3E%3Cpath d='M12 16.4v.05' stroke-width='2.3'/%3E%3C/svg%3E"); }

/* A board as an icon: a tile with its glyph, its name and what it holds under it. Opens like a card does. */
.bcount { display: none; }
.obj.board[data-view="icon"] { width: 124px !important; height: 142px !important; background: transparent; border-color: transparent; box-shadow: none; overflow: visible; }
.obj.board[data-view="icon"]:focus-within { border-color: transparent; box-shadow: none; }
.obj.board[data-view="icon"] > .binner {
  top: 4px; left: 50%; right: auto; bottom: auto; width: 88px; height: 88px; translate: -50% 0; border-radius: 15px;
  background: var(--surface); box-shadow: var(--raise-sm), var(--edge); color: var(--ink-2); cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out, scale 200ms cubic-bezier(.2,.8,.2,1);
}
.obj.board[data-view="icon"][data-color] > .binner { background: var(--k-f); color: var(--k-on); box-shadow: var(--raise-sm), inset 0 0 0 1px var(--rim-c); }
@media (hover: hover) { .obj.board[data-view="icon"] > .binner:hover { scale: 1.035; } }
.obj.board[data-view="icon"] > .binner > .mini { visibility: hidden; }
.obj.board[data-view="icon"] > .binner::after {
  content: ""; position: absolute; inset: 27px; background: currentColor;
  -webkit-mask: var(--bic) center / contain no-repeat; mask: var(--bic) center / contain no-repeat;
}
.obj.board[data-view="icon"] > .bhead {
  position: absolute; left: -14px; right: -14px; top: 100px; height: auto; flex-direction: column; align-items: center; gap: 3px;
  padding: 0; border: 0; background: transparent;
}
.obj.board[data-view="icon"] .bicon { display: none; }
.obj.board[data-view="icon"] .bt { flex: none; width: 100%; text-align: center; font: 500 16px/20px var(--f-display); letter-spacing: -.008em; }
/* Renaming a tile: its name sits in a small field, the card's editing border and halo (.obj:focus-within) in miniature. */
.obj.board[data-view="icon"] .bt:focus { margin: 0 -5px; padding: 0 5px; border-radius: 3px; background: var(--surface); box-shadow: 0 0 0 1px var(--ink-3), 0 0 0 4px var(--halo); }
.obj.board[data-view="icon"] .bcount { display: block; font: 500 9.5px/13px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-q); white-space: nowrap; }
.obj.board[data-view="icon"] .bhead > .otag { margin-top: 3px; max-width: 100%; }
.obj.board[data-icon] .bicon i { box-shadow: none; background: currentColor; -webkit-mask: var(--bic) center / contain no-repeat; mask: var(--bic) center / contain no-repeat; }
.obj.board[data-view="icon"][data-label] { height: 166px !important; }      /* room for its label under its name */
/* Z plates: a board that holds something shows the level under it as a plate behind its tile, and one that holds boards
   a second, smaller one behind that: how far down it goes, at a glance (Z is depth, section 19). */
:is(#objs, .cstack) > .obj.board[data-view="icon"][data-z]::before, :is(#objs, .cstack) > .obj.board[data-view="icon"][data-z="2"]::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0; box-sizing: border-box; pointer-events: none;
  background: color-mix(in srgb, var(--surface) 55%, var(--canvas)); box-shadow: inset 0 0 0 1px var(--rule-2);
}
:is(#objs, .cstack) > .obj.board[data-view="icon"][data-z]::before { top: 0; width: 67px; height: 46px; border-radius: 9px; }
:is(#objs, .cstack) > .obj.board[data-view="icon"][data-z="2"]::after { top: -4px; width: 46px; height: 46px; border-radius: 7px; z-index: -1; }
:is(#objs, .cstack) > .obj.board[data-view="icon"][data-color][data-z]::before,
:is(#objs, .cstack) > .obj.board[data-view="icon"][data-color][data-z="2"]::after { background: color-mix(in srgb, var(--k-f) 30%, var(--surface)); }
.cstack > .obj.board[data-view="icon"] { width: 124px !important; align-self: center; }
.obj.board[data-view="icon"].sel { outline-offset: 2px; border-radius: 14px; }
/* A board changing between card and icon (viewMorph, section 21): one body changing shape, on the screen. Its ring
   waits until it is done. */
.morph { position: fixed; z-index: 9; pointer-events: none; overflow: hidden; box-sizing: border-box; border: 1px solid transparent; }
.morph > .obj { transition: none; }
.obj.morphing { outline-color: transparent !important; transition: none; }
/* A drawn board lands as its preview showed it (iconLand, section 5): the preview's tile stays over the new one in the
   board's hue, fading, as a card keeps the hue on its border a moment (.landing). */
.landcue { position: fixed; z-index: 9; pointer-events: none; background: color-mix(in srgb, var(--tc) var(--g-fill), transparent); box-shadow: inset 0 0 0 1.5px var(--tc); }

/* Over a board, a small switch above its corner shows it as an icon, or as a preview again; over a table, as a chart
   (#tview, section 16f). */
#bview, #tview {
  position: fixed; left: 0; top: 0; z-index: 9; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px;
  border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  font: 500 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  background: var(--surface); box-shadow: var(--raise-sm), var(--edge);
  transition: opacity 140ms ease-out, translate 200ms cubic-bezier(.2,.8,.2,1), color 120ms ease-out, visibility 0s;
}
#bview svg { width: 12px; height: 12px; }
#bview svg *, #tview svg * { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { #bview:hover, #tview:hover { color: var(--ink); } }
#bview:active, #tview:active, #tview[aria-expanded="true"] { box-shadow: var(--press); background: var(--press-bg); }
#bview:focus-visible, #tview:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body.moving :is(#bview, #tview), body.drawing :is(#bview, #tview), body.sizing :is(#bview, #tview), body.marking :is(#bview, #tview), body.panning :is(#bview, #tview), body.dv :is(#bview, #tview) { opacity: 0; pointer-events: none; transition-duration: 100ms; }
#bview.off, #tview.off { opacity: 0; translate: 0 5px; visibility: hidden; pointer-events: none; transition: opacity 120ms ease-in, translate 120ms ease-in, visibility 0s linear 120ms; }

