Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
spaces: 44px phone targets, a square Save, framed dialog buttons, a notice level (replaces #565) (#649)
nyblnet3539471cd399
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.mdindex e8215970..6c2cf860 100644--- a/docs/DECISIONS.md+++ b/docs/DECISIONS.md@@ -8337,3 +8337,27 @@ it gets left open over the page.**Cost:** +1,234 B of shell (284,627 → 285,861, `ZOPFLI=0`). The deleteddialog and panel code is smaller than the kernel sheets that replace it.++## 2026-09-26 — Spaces has two levels of transient message; phone targets are 44px++**D3 in spaces: `status()` and `notice()`.**+- The bar's status line stays the first level. It holds ambient state that is+ true for a moment: "Edited", "Saved", "Editing", "Reading view".+- `Editor.notice()` is the second level: a pill at the foot of the window,+ `role=status`, above dialogs (`--z-toast` 1100), like slides' toast. It is+ for messages the reader must not miss:+ - a sync refusal (`syncNoticeText`);+ - a read or import failure;+ - a refused move;+ - a copy or export written;+ - a viewer preference that now applies to every page.++Before this, both levels were the same 12px `--muted` line that fades in under+two seconds. On a phone that line sits over the title strip. A future message+picks its level by that test: if missing it would leave the reader wrong about+their file, it is a notice. The kernel has no notice primitive yet. When one+lands, this method is the only caller to move.++**D5 in spaces:** under a coarse pointer the bar's buttons, the Live control,+the page-tree rows and their ⋯, the format bar and every menu row are 44px+(`--tap`). The bar was 40px.diff --git a/scripts/test-spaces-chrome.ts b/scripts/test-spaces-chrome.tsindex 7049038f..dab44714 100644--- a/scripts/test-spaces-chrome.ts+++ b/scripts/test-spaces-chrome.ts@@ -256,6 +256,31 @@ async function browser(chrome: string, html: string): Promise<void> {ok(aboutGone, 'Escape closes About with the focus nowhere in it')if (!aboutGone) throw new Error('About did not close; the steps after this need the page')+ // WCAG contrast of an element's text against its composited ground+ const CONTRAST = `((el) => { const P = (s) => { const m = s.match(/[\\d.]+/g).map(Number); return { r: m[0], g: m[1], b: m[2], a: m[3] ?? 1 } }+ const over = (f, b) => ({ r: f.r * f.a + b.r * (1 - f.a), g: f.g * f.a + b.g * (1 - f.a), b: f.b * f.a + b.b * (1 - f.a), a: 1 })+ const L = (c) => { const f = (v) => { v /= 255; return v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4 }; return 0.2126 * f(c.r) + 0.7152 * f(c.g) + 0.0722 * f(c.b) }+ let bg = { r: 255, g: 255, b: 255, a: 1 }; const chain = []; for (let n = el; n && n.nodeType === 1; n = n.parentElement) chain.push(n)+ for (const n of chain.reverse()) { const c = P(getComputedStyle(n).backgroundColor); if (c.a > 0) bg = over(c, bg) }+ const fg = over(P(getComputedStyle(el).color), bg); const [x, y] = [L(fg), L(bg)].sort((a, b) => b - a); return +((x + 0.05) / (y + 0.05)).toFixed(2) })`++ // About: its links read, and its buttons look like buttons+ await tap(`document.querySelector('.sp-mark')`)+ const about = await js<any>(`(() => { const d = [...document.querySelectorAll('[aria-modal="true"]')].pop(); const a = d.querySelector('.sp-ab-promo a'); const b = [...d.querySelectorAll('.sp-btn:not(.sp-primary)')][0]; return { link: ${CONTRAST}(a), frame: getComputedStyle(b).borderTopColor } })()`)+ ok(about.link >= 4.5, `About's links clear 4.5:1 (${about.link}; 3.23 before)`)+ ok(!/rgba\(0, 0, 0, 0\)/.test(about.frame), `a dialog's secondary button has a visible frame (${about.frame})`)+ await key('Escape', 0, 'Escape')++ // D3: a refusal is a notice the reader sees, not a whisper in the bar+ await tap(TRIG('More'))+ await tap(`[...document.querySelectorAll('.bkm-open .bkm-item')].find(b => b.textContent.startsWith('Make this page an issue'))`)+ await tap(TRIG('More'))+ await tap(`[...document.querySelectorAll('.bkm-open .bkm-item')].find(b => b.textContent.startsWith('Make this page an issue'))`)+ const note = await js<any>(`(() => { const n = document.querySelector('.sp-notice.sp-on'); if (!n) return null; const r = n.getBoundingClientRect(); return { text: n.textContent, role: n.getAttribute('role'), cr: ${CONTRAST}(n), z: +getComputedStyle(n).zIndex, onScreen: r.bottom <= innerHeight && r.top > innerHeight / 2 } })()`)+ ok(note && note.role === 'status' && note.cr >= 4.5 && note.z > 1000 && note.onScreen,+ `a refusal ("Already an issue") arrives as a notice: announced, legible, above dialogs, at the foot of the window (${JSON.stringify(note)})`)+ await js(`window.bento.undo(); 1`)+// ——— dialogs: the kernel's ———const MODAL = `[...document.querySelectorAll('[aria-modal="true"]')].find(d => d.getBoundingClientRect().height > 0)`await tap(TRIG('More'))@@ -314,6 +339,12 @@ async function browser(chrome: string, html: string): Promise<void> {// ——— phone ———await open(true)+ const bar = await js<any>(`(() => { const vis = (e) => { const r = e.getBoundingClientRect(); return r.width > 0 && r.height > 0 && getComputedStyle(e).visibility !== 'hidden' }+ const bs = [...document.querySelectorAll('.sp-bar button')].filter(vis).map(b => { const r = b.getBoundingClientRect(); return { l: (b.getAttribute('aria-label') || b.title || '').slice(0, 14), w: Math.round(r.width), h: Math.round(r.height) } })+ const save = [...document.querySelectorAll('.sp-bar button')].find(b => (b.getAttribute('aria-label') || '').startsWith('Save')).getBoundingClientRect()+ return { small: bs.filter(b => b.w < 44 || b.h < 44), save: { w: Math.round(save.width), h: Math.round(save.height) } } })()`)+ ok(bar.small.length === 0, `every phone bar control is a 44px target (D5) (too small: ${JSON.stringify(bar.small)})`)+ ok(bar.save.w === bar.save.h, `phone Save is a square icon button, not a slab (${bar.save.w}×${bar.save.h}; 66×40 before)`)await tap(TRIG('More'))const ph = await js<any>(`(() => { const m = ${OPEN}; const r = m.getBoundingClientRect(); const rows = [...m.querySelectorAll('.bkm-item')]; return { bottom: r.bottom, vh: innerHeight, n: rows.length, minH: Math.min(...rows.map(x => x.getBoundingClientRect().height)), scrolls: m.scrollHeight > m.clientHeight } })()`)ok(ph.bottom <= ph.vh, `the phone ⋯ menu ends inside the screen (bottom ${Math.round(ph.bottom)} ≤ ${ph.vh}; 1003 before)`)@@ -334,6 +365,8 @@ async function browser(chrome: string, html: string): Promise<void> {const drawer = await js<any>(`(() => { const p = document.querySelector('.sp-side').closest('.bkp'); const r = p.getBoundingClientRect(); const row = document.querySelectorAll('.sp-treelink')[1].getBoundingClientRect(); return { drawer: p.classList.contains('bkp-drawer'), w: r.width, scrim: !!document.querySelector('.sp-scrim'), reach: !!document.elementFromPoint(row.x + 20, row.y + row.height / 2)?.closest('.sp-treelink') } })()`)ok(drawer.drawer && drawer.w > 200 && drawer.scrim && drawer.reach,`on a phone the page list opens as a drawer over a scrim, its rows reachable (${JSON.stringify(drawer)})`)+ const rows = await js<any>(`(() => { const rs = [...document.querySelectorAll('.sp-treelink')].slice(0, 6); const m = rs[0].querySelector('.sp-rowmore').getBoundingClientRect(); return { minRow: Math.min(...rs.map(r => r.getBoundingClientRect().height)), more: [Math.round(m.width), Math.round(m.height)] } })()`)+ ok(rows.minRow >= 44 && rows.more[1] >= 44, `page rows and their ⋯ are 44px targets on a phone (row ${rows.minRow}, ⋯ ${rows.more.join('×')}; 28 and 20×20 before)`)await tap(`document.querySelectorAll('.sp-treelink')[1]`)const afterNav = await js<any>(`({ w: document.querySelector('.sp-side').closest('.bkp').getBoundingClientRect().width, scrim: !!document.querySelector('.sp-scrim'), stored: localStorage.getItem('bento-sp-pane-closed') })`)ok(afterNav.w === 0 && !afterNav.scrim && afterNav.stored === null,diff --git a/spaces/CHANGELOG.md b/spaces/CHANGELOG.mdindex 2c2cf5bf..685ebe87 100644--- a/spaces/CHANGELOG.md+++ b/spaces/CHANGELOG.md@@ -582,6 +582,33 @@ Versions follow `0.MINOR.PATCH` while pre-1.0.open/closed choices are kept exactly as before, under the same keys. Openingand closing the drawer on a phone never changes what a desktop remembers.+- **The phone bar, the dialogs' buttons, and messages you must not miss.**+ - **Phone targets.** Every control in the phone bar is a 44px target now.+ Five of them were 40px and the Live button was 35×29. Page rows and their+ ⋯ are 44px too; they were 28px and 20×20.+ - **Save on a phone** is a square icon button. It used to be a 66×40 dark+ slab with the icon at one end. The unsaved dot is a badge on its corner.+ - **The Live button** sits on the same grid as the buttons beside it and has+ no frame of its own.+ - **Dialog buttons.** A secondary button in a dialog looks like a button:+ Import's "Choose a folder…" and "Choose a space…" read as plain words+ before. The primary button's text follows the theme, so it no longer+ disappears in dark mode.+ - **About's links** are darker, 4.5:1 or better. They were 3.23:1.+ - **Messages you must not miss** now show as a notice at the foot of the+ window, the way slides shows them. That covers:+ - a change the relay refused;+ - a file that could not be read;+ - a page that cannot contain itself;+ - "every page opens wide from now on";+ - a copy that was written.++ Before, these were the same small grey line in the bar as "Edited", and it+ faded in under two seconds. "Edited" and "Saved" stay on the bar.+ - **Small fixes.** The properties panel's section headings get a real+ disclosure caret, where the old one rendered as a dot. The share panel sets+ "Reset access…" apart from the rows above it.+## [0.1.0] — 2026-08-03First release.diff --git a/spaces/src/collabui.ts b/spaces/src/collabui.tsindex 2496ef81..7ef71dd3 100644--- a/spaces/src/collabui.ts+++ b/spaces/src/collabui.ts@@ -420,6 +420,11 @@ export class CollabUi {// re-mints the room, so every copy already sent stops syncing for good.// Remove (above) is the scalpel; this is the amputation.if (iAmOwner) {+ // SET APART, not only last: on a phone this sheet's last row is where+ // the thumb lands, and a stray tap there asked a native confirm() to+ // stand between the reader and revoking every copy they had sent. A+ // rule and the danger ink make it read as what it is before the tap.+ acts.append(el('div', 'sp-paction-sep'))acts.append(this.action(t('Reset access…'),t('Mints brand-new keys. Every previously sent copy stops syncing for good; share fresh copies afterwards.'),() => {diff --git a/spaces/src/editor.ts b/spaces/src/editor.tsindex c507e8cf..905c586e 100644--- a/spaces/src/editor.ts+++ b/spaces/src/editor.ts@@ -814,7 +814,7 @@ export class Editor {// The relay refuses things the user can act on — too large, room full. For// the permanent codes their change stays in this copy and reaches nobody,// which they must be told rather than left to discover.- session.onNotice((n) => this.status(syncNoticeText(n)))+ session.onNotice((n) => this.notice(syncNoticeText(n)))this.collab.tryJoin()// a document REPLACED under us (Replace-from-JSON, a restored version) may// be a different document with different credentials@@ -822,6 +822,31 @@ export class Editor {if (this.liveSlot) this.liveSlot.replaceWith(this.collab.button())}+ /**+ * THE SECOND LEVEL (D3): a message the reader must not miss — a refusal, a+ * failure, an outcome that happened out of view (a copy written, the relay+ * refusing a change). It was the same 12px `--muted` whisper in the bar as+ * "Edited", which fades in under two seconds and on a phone sits over the+ * title strip; "Every page opens wide on this screen from now on" is a+ * sentence nobody could read before it left. A pill at the foot of the+ * window, above everything (a dialog included), announced politely, as+ * slides' toast is. The status line keeps the ambient first level.+ */+ notice(msg: string): void {+ if (!msg) return+ let n = document.querySelector<HTMLElement>('.sp-notice')+ if (!n) {+ n = el('div', 'sp-notice')+ n.setAttribute('role', 'status')+ n.setAttribute('aria-live', 'polite')+ document.body.append(n)+ }+ n.textContent = msg+ n.classList.add('sp-on')+ clearTimeout((n as any)._t)+ ;(n as any)._t = setTimeout(() => n?.classList.remove('sp-on'), 3600)+ }+status(msg: string): void {this.statusEl.textContent = msgthis.statusEl.classList.add('sp-on')@@ -971,7 +996,7 @@ export class Editor {private reparentPage(id: string, parent: string): void {if (id === parent) returnfor (let p: string | undefined = parent; p; p = this.store.index.page.get(p)?.parent) {- if (p === id) { this.status(t('A page cannot contain itself')); return }+ if (p === id) { this.notice(t('A page cannot contain itself')); return }}this.store.commit(() => {const page = this.store.index.page.get(id)@@ -1848,7 +1873,7 @@ export class Editor {const s = this.storeconst page = pageId ? s.index.page.get(pageId) : s.pageif (!page || s.readOnly) return- if (isIssue(page)) { this.status(t('Already an issue')); return }+ if (isIssue(page)) { this.notice(t('Already an issue')); return }const fields = fieldsOf(s.doc).filter((f) => ISSUE_FIELDS.includes(f.key))s.commit(() => {page.blocks.unshift(...fields.map((f) => propBlock(f, f.def ?? '', newBlock('prop').id)))@@ -3670,7 +3695,7 @@ export class Editor {try {const prepared = await prepareImage(file)draft.image = await internAsset(s.doc, prepared.dataUri)- } catch { this.status(t('That file could not be read as an image')); return }+ } catch { this.notice(t('That file could not be read as an image')); return }paintPick()})()})@@ -3935,7 +3960,7 @@ export class Editor {const applyAll = (v: 'wide' | 'full' | undefined) => {setReaderWidth(v)this.paintPage()- this.status(v ? t('Every page opens wide on this screen from now on')+ this.notice(v ? t('Every page opens wide on this screen from now on'): t('Pages open at their normal width again'))}row(m, {@@ -3963,7 +3988,7 @@ export class Editor {const s = this.storeconst page = s.index.page.get(pageId)if (!page) return- if (s.doc.pages.length <= 1) { this.status(t('A space needs at least one page')); return }+ if (s.doc.pages.length <= 1) { this.notice(t('A space needs at least one page')); return }const inbound = (s.index.backlinks.get(pageId) ?? []).lengthconst kids = s.doc.pages.filter((p) => p.parent === pageId).lengthconst parts = [t('Delete “{name}”?', { name: page.title || t('Untitled') })]@@ -4015,7 +4040,7 @@ export class Editor {? { dataUri: await blobToDataUri(file), w: 0, h: 0, original: true, wasBytes: file.size }: await prepareImage(file)} catch {- this.status(t('That file could not be read as an image'))+ this.notice(t('That file could not be read as an image'))return}@@ -4122,7 +4147,7 @@ export class Editor {try {dataUri = await blobToDataUri(file)} catch {- this.status(t('That file could not be read'))+ this.notice(t('That file could not be read'))return}const kind = (file as File).type?.startsWith('audio/') ? 'audio' : 'video'@@ -4160,7 +4185,7 @@ export class Editor {// inline html, so it never passes through sanitize.ts at all — a// `javascript:` typed into this box would be written straight onto the// element. The allowlist is the test, never a `javascript:` blocklist.- if (!/^https?:\/\//i.test(url)) { this.status(t('That needs to be an http or https address')); return }+ if (!/^https?:\/\//i.test(url)) { this.notice(t('That needs to be an http or https address')); return }const kind = /\.(mp3|m4a|aac|wav|ogg|oga|opus|flac|weba)(\?|#|$)/i.test(url) ? 'audio' : 'video'this.writeMedia(blockId, insertAfter, (b) => { b.src = url; b.kind = kind })this.status('')@@ -4200,7 +4225,7 @@ export class Editor {this.status(t('Reading image…'))let preparedtry { prepared = await prepareImage(file) } catch {- this.status(t('That file could not be read as an image')); return+ this.notice(t('That file could not be read as an image')); return}const ref = await internAsset(this.store.doc, prepared.dataUri)this.store.commit(() => { const b = this.store.block(blockId); if (b) b.poster = ref })@@ -4234,7 +4259,7 @@ export class Editor {this.status(t('Reading image…'))let preparedtry { prepared = await prepareImage(file) } catch {- this.status(t('That file could not be read as an image')); return+ this.notice(t('That file could not be read as an image')); return}if (prepared.dataUri.length > IMAGE_EMBED_BUDGET) {const okay = confirm(t(@@ -4396,20 +4421,20 @@ export class Editor {*/async importSpace(file: File, under?: string): Promise<void> {const s = this.store- if (s.readOnly) { this.status(t('This file is open read-only')); return }+ if (s.readOnly) { this.notice(t('This file is open read-only')); return }let text: string- try { text = await file.text() } catch { this.status(t('That file could not be read')); return }+ try { text = await file.text() } catch { this.notice(t('That file could not be read')); return }const body = spaceBlockOf(text)if (body === 'encrypted') {// The password is not ours to ask for, and the honest instruction is the// one that works: open the file where the password already is.- this.status(t('That space is password-protected. Open it, then export the pages you want.'))+ this.notice(t('That space is password-protected. Open it, then export the pages you want.'))return}const res = parseDoc(body ?? '')if (!res.ok) {- this.status(res.err === 'format'+ this.notice(res.err === 'format'? t('That file is not a bento/spaces document'): t('That file could not be read'))return@@ -4518,7 +4543,7 @@ export class Editor {const out = extractSpace(s.doc, pick.value, { subtree: kids.checked, docId: uid('doc') })close()void this.onExportSpace?.(out.doc).then((ok) => {- if (ok) this.status(t('Exported {n} page(s) as a new space', { n: out.stats.pages }))+ if (ok) this.notice(t('Exported {n} page(s) as a new space', { n: out.stats.pages }))})}, true),plainBtn(t('Close'), close),@@ -4538,14 +4563,14 @@ export class Editor {*/async importFiles(picked: PickedFile[], opts: { under?: string } = {}): Promise<void> {const s = this.store- if (s.readOnly) { this.status(t('This file is open read-only')); return }+ if (s.readOnly) { this.notice(t('This file is open read-only')); return }const notes = picked.filter((p) => NOTE_EXT.test(p.path))if (!notes.length) {// A space is a legitimate thing to drop on the import, and it arrives by// the same gesture: one route in, whatever kind of notes they are.const space = picked.find((p) => SPACE_EXT.test(p.path))if (space) { await this.importSpace(space.file, opts.under); return }- this.status(t('No Markdown files in that selection'))+ this.notice(t('No Markdown files in that selection'))return}if (notes.length > 500 &&@@ -4556,7 +4581,7 @@ export class Editor {try {files = await Promise.all(notes.map(async (p) => ({ path: p.path, text: await p.file.text() })))} catch {- this.status(t('Those files could not be read'))+ this.notice(t('Those files could not be read'))return}@@ -5007,14 +5032,14 @@ export class Editor {? await shareModule.inviteCopy(this.store.doc): shareModule.readerCopy(this.store.doc)if (!out) {- this.status(kind === 'invite'+ this.notice(kind === 'invite'? t('Only the owner of this space can invite people'): t('This space has no live session to follow'))return}const ok = await this.onShareCopy?.(out, kind)if (ok) {- this.status(kind === 'invite'+ this.notice(kind === 'invite'? t('Editor copy saved — recipients join live with edit access'): t('Read-only copy saved — it follows the live session, view only'))}@@ -5043,7 +5068,7 @@ export class Editor {// the extract's writer rather than the copy path: that one keeps no file// handle, which is what leaves you editing this space afterwards.onWriteCopy: (out) => this.onExportSpace?.(out) ?? Promise.resolve(false),- onStatus: (msg) => this.status(msg),+ onStatus: (msg) => this.notice(msg),onUpdateInPlace: (rel) => this.onUpdateInPlace?.(rel) ?? Promise.resolve(null),// both self-update writes carry this space's CRDT state, as ⌘S doesonBeforeWrite: () => shareModule.stampSync(this.store, this.session),diff --git a/spaces/src/styles.css b/spaces/src/styles.cssindex 599b397c..21717073 100644--- a/spaces/src/styles.css+++ b/spaces/src/styles.css@@ -945,7 +945,7 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offset.sp-about .sp-card-h { margin: 0 2px 8px; }/* the head and the promo line are the title of the dialog, not a section */.sp-ab-promo { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 4px 2px; }-.sp-ab-promo a { color: var(--blue); text-decoration: none; }+.sp-ab-promo a { color: color-mix(in srgb, var(--blue) 72%, var(--ink)); text-decoration: underline; text-underline-offset: 2px; }.sp-ab-promo a:hover { text-decoration: underline; }/* What is in this file. Four numbers, and then the sentence that explains@@ -977,11 +977,15 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offsetoutlined boxes there would be noise. In THIS card the same class has to readas a control against a white panel with no hover to help it, so the dialoggives every non-primary button its border back. Slides' about does exactly- this, for exactly this reason. */-.sp-about .sp-btn { border-color: var(--line); background: var(--chrome); }-.sp-about .sp-btn:hover { background: var(--chrome-2); }-.sp-about .sp-primary { border-color: var(--ink); background: var(--ink); color: #fff; }-.sp-about .sp-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }+ this, for exactly this reason.+ EVERY dialog, not only About: Import's "Choose a folder…" and "Choose a+ space…" and Export's "Close" rendered as bare words beside a filled primary,+ with nothing to say they were buttons. And the primary's ink is the GROUND,+ never `#fff` — on the dark theme's near-white fill `#fff` was invisible. */+.bkd-card .sp-btn { border-color: var(--line); background: var(--chrome); }+.bkd-card .sp-btn:hover { background: var(--chrome-2); }+.bkd-card .sp-primary { border-color: var(--ink); background: var(--ink); color: var(--bg); }+.bkd-card .sp-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }.sp-ab-check {display: flex; align-items: center; gap: 7px;@@ -1152,6 +1156,7 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offset--tap: 44px; /* D5: a coarse pointer's target */--fs-hint: 12px;--z-pop: 60;+ --z-toast: 1100; /* a notice, above a dialog on purpose */}/* ————— menus: the kernel's (kernel/src/ui/menu.css) —————@@ -1510,10 +1515,20 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offset.sp-bar-fold .sp-mark { display: none; }.sp-bar-fold .sp-group-history { display: none; }.sp-bar-fold .sp-split .sp-caret { display: none; }-/* with the caret gone Save is one button again, not the left half of two */+/* with the caret gone Save is one button again, not the left half of two —+ and a SQUARE one: the icon centred, the padding even. It was a 66×40 slab+ with the icon at its left and ~26px of empty fill on its right, because the+ label's end padding (and the unsaved dot's slot) outlived the label. */.sp-bar-fold .sp-split > .sp-btn:first-child {border-start-end-radius: 8px; border-end-end-radius: 8px;- padding-inline-end: 14px;+ padding-inline: 9px; justify-content: center;+}+/* once the word is gone, the unsaved dot is a BADGE on the corner of the icon+ button — the slides treatment — not a slot that holds the button wide */+.sp-bar-compact .sp-primary { position: relative; }+.sp-bar-compact .sp-primary .sp-dirty {+ position: absolute; top: 5px; inset-inline-end: 5px; margin: 0;+ box-shadow: 0 0 0 2px var(--ink);}/* THE STATUS LINE LEAVES THE FLOW. It is a nowrap span, so a long message("Reading view — press Esc or the eye to edit" is ~250px) would shove the@@ -1534,9 +1549,29 @@ button.sp-callout-chip:hover { text-decoration: underline; text-underline-offsetellipsises when there is none. */.sp-status { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }-/* Hit targets: a 30px button is a miss on a touch screen. */+/* D3's second level (editor.ts notice): what the reader must not miss. The+ inverse of the surface — ink fill, ground text — like slides' toast and the+ kernel tooltip, above a dialog on purpose. */+.sp-notice {+ position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));+ transform: translate(-50%, 6px); z-index: var(--z-toast);+ max-width: min(520px, calc(100vw - 32px)); padding: 9px 16px;+ border-radius: 999px; background: var(--ink); color: var(--bg);+ font-size: 13px; line-height: 1.35; text-align: center;+ box-shadow: var(--shadow-pop); pointer-events: none;+ opacity: 0; transition: opacity .18s ease, transform .18s ease;+}+.sp-notice.sp-on { opacity: 1; transform: translate(-50%, 0); }+@media (prefers-reduced-motion: reduce) { .sp-notice { transition: none; } }++/* Hit targets: a 30px button is a miss on a touch screen. 44, not 40 (D5 —+ HIG, and slides' phone bar): measured, five bar buttons were 40×40, the+ Live button 35×29, a page row 28px tall and its ⋯ 20×20. */@media (pointer: coarse) {- .sp-bar .sp-btn { min-width: 40px; min-height: 40px; justify-content: center; }+ .sp-bar .sp-btn, .sp-bar .sp-live { min-width: var(--tap); min-height: var(--tap); justify-content: center; }+ .sp-treelink { min-height: var(--tap); padding-inline-end: 40px; }+ .sp-treelink .sp-rowmore { width: 36px; height: var(--tap); inset-inline-end: 2px; }+ .sp-fmt-btn { min-height: var(--tap); }.sp-dditem { padding-block: 11px; }/* D5: a menu row is a 44px target under a finger, like every other one */.sp-mn-pop .bkm-item { min-height: var(--tap); }@@ -1668,10 +1703,15 @@ body.sp-col-resizing { cursor: col-resize; user-select: none; }border-radius: 7px; cursor: pointer; user-select: none;}.sp-insp-sec:hover { background: var(--chrome-2); }+/* a drawn disclosure caret, turning as the group opens — the ▾/▸ glyphs at+ 9px rendered as a bullet dot beside each heading, and read as a list */.sp-insp-sec::before {- content: '▾'; font-size: 9px; color: var(--muted); width: 9px;+ content: ''; flex: none; width: 0; height: 0; margin: 0 2px;+ border-inline: 4px solid transparent; border-top: 5px solid var(--muted);+ transition: transform .12s ease;}-.sp-insp-sec.sp-shut::before { content: '▸'; }+.sp-insp-sec.sp-shut::before { transform: rotate(-90deg); }+[dir='rtl'] .sp-insp-sec.sp-shut::before { transform: rotate(90deg); }.sp-insp-sub {margin-inline-start: auto; font-weight: 400; font-size: 11.5px;color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;@@ -1967,14 +2007,19 @@ button.sp-issue-set:hover { background: var(--chrome-2); border-color: var(--edgdocument, and a colleague reading a page two levels down the tree is not anevent. Dots, not banners. */+/* A bar button like every other: the 30px grid, no frame, the same ink. It was+ 35×29 with a 16px glyph, `--muted` ink (3.45:1) and the only border in the+ bar, so it read as a different kind of control. The border comes back only+ as the LIVE state below, where it means something. */.sp-live {- display: inline-flex; align-items: center; gap: 5px;- border: 1px solid var(--line); background: none; color: var(--muted);- border-radius: 8px; padding: 5px 8px; cursor: pointer; font: inherit; line-height: 1;+ display: inline-flex; align-items: center; justify-content: center; gap: 5px;+ min-width: 36px; height: var(--ctl-h);+ border: 1px solid transparent; background: none; color: var(--ink-2);+ border-radius: 8px; padding: 6px 9px; cursor: pointer; font: inherit; font-size: 13px; line-height: 1;}.sp-live:hover { background: var(--chrome-2); color: var(--ink); }.sp-live .sp-ico { display: inline-flex; }-.sp-live .sp-ico svg { width: 17px; height: 17px; }+.sp-live .sp-ico svg { width: 16px; height: 16px; }.sp-live-n:empty { display: none; }.sp-live-n { font-size: 12px; font-variant-numeric: tabular-nums; }/* LIVE is a state worth seeing at a glance, and OFF must not look broken —@@ -2024,6 +2069,7 @@ button.sp-issue-set:hover { background: var(--chrome-2); border-color: var(--edgpadding: 7px 8px; border-radius: 7px; cursor: pointer;}.sp-paction:hover { background: var(--chrome-2); }+.sp-paction-sep { height: 1px; background: var(--line); margin: 8px 4px 10px; }.sp-paction span { color: var(--muted); font-size: 12px; }/* THIS device's row in the People list: it is you, so it is not a target. */@@ -2090,7 +2136,10 @@ button.sp-issue-set:hover { background: var(--chrome-2); border-color: var(--edg}.sp-cm-me {border: 0; background: none; font: inherit; font-size: 11px; text-transform: none;- letter-spacing: 0; color: var(--muted); cursor: pointer; padding: 0;+ letter-spacing: 0; color: var(--muted); cursor: pointer;+ /* a 49×13 target was a miss; the padding is the hit area, pulled back out+ of the layout by the negative margin so the heading does not move */+ padding: 6px 8px; margin: -6px -8px; border-radius: 6px;}.sp-cm-me:hover { color: var(--ink); }.sp-cm-entries { display: flex; flex-direction: column; gap: 8px; padding: 0 6px 8px; }