@vitrinka/web 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,4 @@
4
4
  * of the page. A dark card on any page (the D12 / D21 mockups): one accent
5
5
  * red for the act of sending and marking, everything else quiet.
6
6
  */
7
- export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n /* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */\n --dur-quick: 150ms;\n --dur-fast: 250ms;\n --dur-slow: 400ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);\n /* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and\n the marking bar \u2014 fonts and boxes together \u2014 each from its anchored corner. */\n --vr-scale: 1;\n /* The dock: the gap to the viewport edge, and where the card rests \u2014 clear of the button above or below it. */\n --edge: 24px;\n --lift: calc(var(--edge) + 72px * var(--vr-scale));\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\n.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: var(--edge); bottom: var(--edge);\n scale: var(--vr-scale); transform-origin: 100% 100%;\n /* A press can become a drag to another corner: the page never scrolls under it. */\n touch-action: none;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */\n.card {\n position: fixed; right: var(--edge); bottom: var(--lift);\n display: flex; flex-direction: column;\n /* The box is divided by the scale so the painted card (scale \u00D7 box) still fits the viewport. */\n width: min(380px, calc((100vw - 32px) / var(--vr-scale)));\n height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));\n scale: var(--vr-scale); transform-origin: 100% 100%;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: var(--edge); }\n/* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it \u2014 above it at the\n bottom, below it at the top \u2014 and both scale from that corner. */\n.vr[data-dock$=\"l\"] .fab, .vr[data-dock$=\"l\"] .card { right: auto; left: var(--edge); }\n.vr[data-dock^=\"t\"] .fab { bottom: auto; top: var(--edge); }\n.vr[data-dock^=\"t\"] .card { bottom: auto; top: var(--lift); }\n.vr.nobutton[data-dock^=\"t\"] .card { top: var(--edge); }\n.vr[data-dock=\"bl\"] .fab, .vr[data-dock=\"bl\"] .card { transform-origin: 0 100%; }\n.vr[data-dock=\"tr\"] .fab, .vr[data-dock=\"tr\"] .card { transform-origin: 100% 0; }\n.vr[data-dock=\"tl\"] .fab, .vr[data-dock=\"tl\"] .card { transform-origin: 0 0; }\n/* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */\n.vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }\n.fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }\n/* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) \u2014 the same size,\n so starting to mark never moves it; it glides once to a corner clear of the marks. */\n.card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }\n.vr .card.parked { transform-origin: 0 0; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n position: relative; flex: none; display: flex; align-items: center; gap: 4px;\n padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n/* Sending: a quiet sweep along the head's edge, the card's size untouched. */\n.card.busy .head::after {\n content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;\n background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;\n background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;\n}\n@keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }\n.body { flex: 1; min-height: 0; overflow: auto; }\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.icon[aria-expanded=\"true\"] { background: var(--faint); color: var(--ink); }\n\n/* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */\n.who {\n display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;\n border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.who:hover, .who[aria-expanded=\"true\"] { background: var(--faint); }\n.who .av {\n display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;\n background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;\n}\n.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.pop {\n position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;\n background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;\n}\n.pop-item {\n display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;\n background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;\n}\n.pop-item:hover:not([aria-disabled=\"true\"]), .pop-item:focus-visible { background: var(--faint); }\n/* A waiting item stays focusable (aria-disabled) so the arrows reach its reason; it only looks unavailable. */\n.pop-item[aria-disabled=\"true\"] { color: var(--dim); cursor: default; }\n.pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }\n/* Why an item waits (Record over an unsent report): a second line under the label, aligned past the icon. */\n.pop-item:has(.pop-why:not([hidden])) { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 36px; padding: 8px 10px; }\n.pop-why { flex-basis: 100%; padding-left: 25px; font-size: 12px; font-weight: 450; line-height: 1.35; }\n.acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }\n.acc-who strong { font-size: 14px; }\n.acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }\n.acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }\n.acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }\n\n/* -- the lists: My reports, recent recordings \u2014 in the card body ------------ */\n.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }\n.back svg { width: 14px; height: 14px; color: var(--dim); }\n.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.row {\n display: grid; grid-template-columns: 1fr auto; grid-template-areas: \"t step\" \"age step\"; column-gap: 10px;\n padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;\n}\na.row:hover { background: var(--faint); }\n.row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }\n.age { grid-area: age; color: var(--dim); font-size: 12px; }\n.step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }\n.step:empty { display: none; }\n.list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }\n\n/* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */\n.code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }\n.link-go { display: flex; align-items: center; gap: 16px; }\n.qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }\n.pane { padding: 14px 16px 16px; }\n/* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */\n.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }\n.kinds button {\n height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;\n background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;\n transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;\n}\n.kinds button:hover:not(:disabled) { color: var(--ink); }\n.kinds button[aria-checked=\"true\"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }\n.kinds button:disabled { opacity: .5; cursor: default; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 76px; resize: none;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n/* One numbered line per mark: its note, typed in the card, never floating on the page. */\n.lines-wrap { margin-top: 10px; }\n.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }\n.ln {\n display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;\n border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;\n}\n.ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }\n.ln-n {\n display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;\n background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;\n}\n.ln.hide .ln-n { background: #3a3940; }\n.ln-t {\n flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);\n font-family: inherit; font-size: 13.5px;\n}\n.ln-t::placeholder { color: rgba(242, 241, 239, .4); }\n.ln-t:focus, .ln-t:focus-visible { outline: none; }\n.ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }\n.ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }\n.ln-x svg { width: 11px; height: 11px; }\n.ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n/* The bottom actions: attachments and Show us where on the left, Send on the right. */\n.foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.foot .send { margin-left: auto; }\n.icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }\n/* Attached files (vt-8020 D9): chips in a tray above the foot \u2014 it scrolls, the card never grows. */\n.tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }\n.tray:not([hidden]) + .foot { border-top: 0; }\n.file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }\n.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }\n.file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }\n.file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }\n.file-size { flex: none; color: var(--dim); }\n.file .ln-x { width: 22px; height: 22px; }\n/* A file dragged over the card: it will land here. */\n.card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where[aria-pressed=\"true\"] { border-color: var(--accent); background: var(--accent-soft); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n/* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */\n.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.settings .label { font-weight: 600; }\n.size-row { margin-top: 18px; }\n.size-row .seg button { padding: 0 12px; font-size: 13px; }\n.tech-wrap { margin-top: 18px; }\n.tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }\n.tech dt { color: var(--dim); }\n.tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n/* A pin is the mark's number on the page; its \u2715 shows while the pin is hovered or focused. */\n.pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .rm {\n display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n opacity: 0; transition: opacity var(--dur-quick) ease-out;\n}\n.pin:hover .rm, .pin:focus-within .rm { opacity: 1; }\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 11px; height: 11px; }\n\n/* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */\n.tb {\n /* translate (not transform): it applies after the scale, so the scaled bar stays centred. */\n position: fixed; left: 50%; top: 14px; translate: -50% 0;\n scale: var(--vr-scale); transform-origin: 50% 0;\n display: flex; align-items: center; gap: 4px; padding: 5px;\n border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);\n background: rgba(30, 29, 34, .68);\n -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);\n box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;\n color: var(--ink); cursor: default; white-space: nowrap;\n}\n.tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }\n.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }\n.seg button {\n position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;\n height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;\n color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;\n transition: color var(--dur-fast) var(--ease-smooth-out);\n}\n.seg button svg { width: 15px; height: 15px; flex: none; }\n.seg button:hover { color: rgba(242, 241, 239, .86); }\n.seg button[aria-checked=\"true\"] { color: var(--ink); }\n.seg-ind {\n position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));\n box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);\n transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);\n pointer-events: none; opacity: 0;\n}\n.seg.measured .seg-ind { opacity: 1; }\n/* Before the indicator is measured, the picked segment carries the raised fill itself. */\n.seg:not(.measured) button[aria-checked=\"true\"] { background: rgba(255, 255, 255, .15); }\n.tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }\n.tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }\n.tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }\n.tb-confirm { display: inline-flex; align-items: center; gap: 4px; }\n.tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }\n.tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }\n.tb-discard:hover { background: #e43a57; }\n\n/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */\n.coach {\n position: fixed; width: 300px; padding: 14px 16px 15px;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n pointer-events: none;\n transition: opacity .12s ease;\n}\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }\n.coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }\n@keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }\n@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }\n\n@media (max-width: 520px) {\n .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }\n .fab { padding: 13px 18px; font-size: 16px; }\n .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }\n .tb-lead { display: none; }\n .seg button { padding: 0 9px; }\n .coach { width: 260px; }\n}\n/* Every motion of the face stops here: the menu rises with the card's vr-in, the coach dims as you press, the chevron turns. */\n@media (prefers-reduced-motion: reduce) {\n .card, .pop { animation: none; }\n .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach { transition: none; }\n .card.busy .head::after { animation: none; }\n .fab, .fab.gliding { transition: none; }\n .coach .loop { animation: none; stroke-dashoffset: 0; }\n .coach .hold { animation: none; opacity: .9; }\n}\n";
7
+ export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n /* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */\n --dur-quick: 150ms;\n --dur-fast: 250ms;\n --dur-slow: 400ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);\n /* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and\n the marking bar \u2014 fonts and boxes together \u2014 each from its anchored corner. */\n --vr-scale: 1;\n /* The dock: the gap to the viewport edge, and where the card rests \u2014 clear of the button above or below it. */\n --edge: 24px;\n --lift: calc(var(--edge) + 72px * var(--vr-scale));\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\n.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: var(--edge); bottom: var(--edge);\n scale: var(--vr-scale); transform-origin: 100% 100%;\n /* A press can become a drag to another corner: the page never scrolls under it. */\n touch-action: none;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */\n.card {\n position: fixed; right: var(--edge); bottom: var(--lift);\n display: flex; flex-direction: column;\n /* The box is divided by the scale so the painted card (scale \u00D7 box) still fits the viewport. */\n width: min(380px, calc((100vw - 32px) / var(--vr-scale)));\n height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));\n scale: var(--vr-scale); transform-origin: 100% 100%;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: var(--edge); }\n/* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it \u2014 above it at the\n bottom, below it at the top \u2014 and both scale from that corner. */\n.vr[data-dock$=\"l\"] .fab, .vr[data-dock$=\"l\"] .card { right: auto; left: var(--edge); }\n.vr[data-dock^=\"t\"] .fab { bottom: auto; top: var(--edge); }\n.vr[data-dock^=\"t\"] .card { bottom: auto; top: var(--lift); }\n.vr.nobutton[data-dock^=\"t\"] .card { top: var(--edge); }\n.vr[data-dock=\"bl\"] .fab, .vr[data-dock=\"bl\"] .card { transform-origin: 0 100%; }\n.vr[data-dock=\"tr\"] .fab, .vr[data-dock=\"tr\"] .card { transform-origin: 100% 0; }\n.vr[data-dock=\"tl\"] .fab, .vr[data-dock=\"tl\"] .card { transform-origin: 0 0; }\n/* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */\n.vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }\n.fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }\n/* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) \u2014 the same size,\n so starting to mark never moves it; it glides once to a corner clear of the marks. */\n.card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }\n.vr .card.parked { transform-origin: 0 0; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n position: relative; flex: none; display: flex; align-items: center; gap: 4px;\n padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n/* Sending: a quiet sweep along the head's edge, the card's size untouched. */\n.card.busy .head::after {\n content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;\n background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;\n background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;\n}\n@keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }\n.body { flex: 1; min-height: 0; overflow: auto; }\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.icon[aria-expanded=\"true\"] { background: var(--faint); color: var(--ink); }\n\n/* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */\n.who {\n display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;\n border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.who:hover, .who[aria-expanded=\"true\"] { background: var(--faint); }\n.who .av {\n display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;\n background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;\n}\n.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.pop {\n position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;\n background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;\n}\n.pop-item {\n display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;\n background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;\n}\n.pop-item:hover:not([aria-disabled=\"true\"]), .pop-item:focus-visible { background: var(--faint); }\n/* A waiting item stays focusable (aria-disabled) so the arrows reach its reason; it only looks unavailable. */\n.pop-item[aria-disabled=\"true\"] { color: var(--dim); cursor: default; }\n.pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }\n/* Why an item waits (Record over an unsent report): a second line under the label, aligned past the icon. */\n.pop-item:has(.pop-why:not([hidden])) { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 36px; padding: 8px 10px; }\n.pop-why { flex-basis: 100%; padding-left: 25px; font-size: 12px; font-weight: 450; line-height: 1.35; }\n.acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }\n.acc-who strong { font-size: 14px; }\n.acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }\n.acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }\n.acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }\n\n/* -- the lists: My reports, recent recordings \u2014 in the card body ------------ */\n.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }\n.back svg { width: 14px; height: 14px; color: var(--dim); }\n.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.row {\n display: grid; grid-template-columns: 1fr auto; grid-template-areas: \"t step\" \"age step\"; column-gap: 10px;\n padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;\n}\na.row:hover { background: var(--faint); }\n.row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }\n.age { grid-area: age; color: var(--dim); font-size: 12px; }\n.step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }\n.step:empty { display: none; }\n.list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }\n\n/* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */\n.code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }\n.link-go { display: flex; align-items: center; gap: 16px; }\n.qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }\n.pane { padding: 14px 16px 16px; }\n/* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */\n.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }\n.kinds button {\n height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;\n background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;\n transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;\n}\n.kinds button:hover:not(:disabled) { color: var(--ink); }\n.kinds button[aria-checked=\"true\"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }\n.kinds button:disabled { opacity: .5; cursor: default; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 76px; resize: none;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n/* One numbered line per mark: its note, typed in the card, never floating on the page. */\n.lines-wrap { margin-top: 10px; }\n.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }\n.ln {\n display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;\n border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;\n}\n.ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }\n.ln-n {\n display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;\n background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;\n}\n.ln.hide .ln-n { background: #3a3940; }\n.ln-t {\n flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);\n font-family: inherit; font-size: 13.5px;\n}\n.ln-t::placeholder { color: rgba(242, 241, 239, .4); }\n.ln-t:focus, .ln-t:focus-visible { outline: none; }\n.ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }\n.ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }\n.ln-x svg { width: 11px; height: 11px; }\n.ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n/* The bottom actions: attachments and Show us where on the left, Send on the right. */\n.foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.foot .send { margin-left: auto; }\n.icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }\n/* Attached files (vt-8020 D9): chips in a tray above the foot \u2014 it scrolls, the card never grows. */\n.tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }\n.tray:not([hidden]) + .foot { border-top: 0; }\n.file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }\n.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }\n.file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }\n.file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }\n.file-size { flex: none; color: var(--dim); }\n.file .ln-x { width: 22px; height: 22px; }\n/* A file dragged over the card: it will land here. */\n.card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where[aria-pressed=\"true\"] { border-color: var(--accent); background: var(--accent-soft); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n/* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */\n.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.settings .label { font-weight: 600; }\n.size-row { margin-top: 18px; }\n.size-row .seg button { padding: 0 12px; font-size: 13px; }\n.tips-row { margin-top: 8px; }\n.tech-wrap { margin-top: 18px; }\n.tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }\n.tech dt { color: var(--dim); }\n.tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n/* A pin is the mark's number on the page; its \u2715 shows while the pin is hovered or focused. */\n.pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .rm {\n display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n opacity: 0; transition: opacity var(--dur-quick) ease-out;\n}\n.pin:hover .rm, .pin:focus-within .rm { opacity: 1; }\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 11px; height: 11px; }\n\n/* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */\n.tb {\n /* translate (not transform): it applies after the scale, so the scaled bar stays centred. */\n position: fixed; left: 50%; top: 14px; translate: -50% 0;\n scale: var(--vr-scale); transform-origin: 50% 0;\n display: flex; align-items: center; gap: 4px; padding: 5px;\n border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);\n background: rgba(30, 29, 34, .68);\n -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);\n box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;\n color: var(--ink); cursor: default; white-space: nowrap;\n}\n.tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }\n.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }\n.seg button {\n position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;\n height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;\n color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;\n transition: color var(--dur-fast) var(--ease-smooth-out);\n}\n.seg button svg { width: 15px; height: 15px; flex: none; }\n.seg button:hover { color: rgba(242, 241, 239, .86); }\n.seg button[aria-checked=\"true\"] { color: var(--ink); }\n.seg-ind {\n position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));\n box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);\n transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);\n pointer-events: none; opacity: 0;\n}\n.seg.measured .seg-ind { opacity: 1; }\n/* Before the indicator is measured, the picked segment carries the raised fill itself. */\n.seg:not(.measured) button[aria-checked=\"true\"] { background: rgba(255, 255, 255, .15); }\n.tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }\n.tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }\n.tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }\n.tb-confirm { display: inline-flex; align-items: center; gap: 4px; }\n.tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }\n.tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }\n.tb-discard:hover { background: #e43a57; }\n\n/* -- the coach (D21, vt-8020): on the card's edge that faces the open page (place.ts coachSide), never over it -- */\n.coach {\n position: absolute; z-index: 3; padding: 10px 12px 11px;\n /* Drawing goes on through it (to the marking layer under the card): only its button takes a press. */\n pointer-events: none;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n transition: opacity .12s ease;\n}\n.coach[data-side=\"above\"] { left: 0; right: 0; bottom: calc(100% + 10px); }\n.coach[data-side=\"below\"] { left: 0; right: 0; top: calc(100% + 10px); }\n.coach[data-side=\"left\"] { right: calc(100% + 10px); top: 0; width: 300px; }\n.coach[data-side=\"right\"] { left: calc(100% + 10px); top: 0; width: 300px; }\n/* No room around the card (a phone): over its top, the words without the art. */\n.coach[data-side=\"over\"] { left: 10px; right: 10px; top: 58px; }\n.coach[data-side=\"over\"] .coach-art { display: none; }\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 52px; border-radius: 9px; background: #222126; }\n.coach p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.38; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach-ok {\n pointer-events: auto; margin-top: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 8px;\n background: rgba(255, 255, 255, .09); color: #f2f1ef; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;\n}\n.coach-ok:hover { background: rgba(255, 255, 255, .14); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n/* The art runs on SMIL (widget.ts coachArt): one clock moves the pointer and grows the shape. */\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }\n.coach .veil { fill: #3a3940; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; }\n.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.switch {\n position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px;\n background: rgba(255, 255, 255, .16); cursor: pointer; transition: background .15s ease;\n}\n.switch[aria-checked=\"true\"] { background: var(--accent); }\n.switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .15s ease; }\n.switch[aria-checked=\"true\"] .knob { translate: 16px 0; }\n\n@media (max-width: 520px) {\n .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }\n .fab { padding: 13px 18px; font-size: 16px; }\n .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }\n .tb-lead { display: none; }\n .seg button { padding: 0 9px; }\n}\n/* Every motion of the face stops here: the menu rises with the card's vr-in, the coach dims as you press, the chevron turns. */\n@media (prefers-reduced-motion: reduce) {\n .card, .pop { animation: none; }\n .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach, .switch, .switch .knob { transition: none; }\n .card.busy .head::after { animation: none; }\n .fab, .fab.gliding { transition: none; }\n}\n";
@@ -262,6 +262,7 @@ a.row:hover { background: var(--faint); }
262
262
  .settings .label { font-weight: 600; }
263
263
  .size-row { margin-top: 18px; }
264
264
  .size-row .seg button { padding: 0 12px; font-size: 13px; }
265
+ .tips-row { margin-top: 8px; }
265
266
  .tech-wrap { margin-top: 18px; }
266
267
  .tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }
267
268
  .tech dt { color: var(--dim); }
@@ -355,26 +356,46 @@ a.row:hover { background: var(--faint); }
355
356
  .tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }
356
357
  .tb-discard:hover { background: #e43a57; }
357
358
 
358
- /* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */
359
+ /* -- the coach (D21, vt-8020): on the card's edge that faces the open page (place.ts coachSide), never over it -- */
359
360
  .coach {
360
- position: fixed; width: 300px; padding: 14px 16px 15px;
361
+ position: absolute; z-index: 3; padding: 10px 12px 11px;
362
+ /* Drawing goes on through it (to the marking layer under the card): only its button takes a press. */
363
+ pointer-events: none;
361
364
  background: #151417; color: #f2f1ef; border-radius: 14px;
362
365
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;
363
- pointer-events: none;
364
366
  transition: opacity .12s ease;
365
367
  }
368
+ .coach[data-side="above"] { left: 0; right: 0; bottom: calc(100% + 10px); }
369
+ .coach[data-side="below"] { left: 0; right: 0; top: calc(100% + 10px); }
370
+ .coach[data-side="left"] { right: calc(100% + 10px); top: 0; width: 300px; }
371
+ .coach[data-side="right"] { left: calc(100% + 10px); top: 0; width: 300px; }
372
+ /* No room around the card (a phone): over its top, the words without the art. */
373
+ .coach[data-side="over"] { left: 10px; right: 10px; top: 58px; }
374
+ .coach[data-side="over"] .coach-art { display: none; }
366
375
  .coach.pressing { opacity: .55; }
367
- .coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }
368
- .coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }
376
+ .coach svg { display: block; width: 100%; height: 52px; border-radius: 9px; background: #222126; }
377
+ .coach p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.38; }
369
378
  .coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }
370
- .coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }
379
+ .coach-ok {
380
+ pointer-events: auto; margin-top: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 8px;
381
+ background: rgba(255, 255, 255, .09); color: #f2f1ef; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
382
+ }
383
+ .coach-ok:hover { background: rgba(255, 255, 255, .14); }
371
384
  .mark:focus { outline: none; }
372
385
  .mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }
386
+ /* The art runs on SMIL (widget.ts coachArt): one clock moves the pointer and grows the shape. */
373
387
  .coach .bar { fill: #5b5a61; }
374
- .coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }
375
- .coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }
376
- @keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }
377
- @keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }
388
+ .coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
389
+ .coach .veil { fill: #3a3940; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
390
+ .coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; }
391
+ .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
392
+ .switch {
393
+ position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px;
394
+ background: rgba(255, 255, 255, .16); cursor: pointer; transition: background .15s ease;
395
+ }
396
+ .switch[aria-checked="true"] { background: var(--accent); }
397
+ .switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .15s ease; }
398
+ .switch[aria-checked="true"] .knob { translate: 16px 0; }
378
399
 
379
400
  @media (max-width: 520px) {
380
401
  .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }
@@ -382,15 +403,12 @@ a.row:hover { background: var(--faint); }
382
403
  .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }
383
404
  .tb-lead { display: none; }
384
405
  .seg button { padding: 0 9px; }
385
- .coach { width: 260px; }
386
406
  }
387
407
  /* Every motion of the face stops here: the menu rises with the card's vr-in, the coach dims as you press, the chevron turns. */
388
408
  @media (prefers-reduced-motion: reduce) {
389
409
  .card, .pop { animation: none; }
390
- .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach { transition: none; }
410
+ .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach, .switch, .switch .knob { transition: none; }
391
411
  .card.busy .head::after { animation: none; }
392
412
  .fab, .fab.gliding { transition: none; }
393
- .coach .loop { animation: none; stroke-dashoffset: 0; }
394
- .coach .hold { animation: none; opacity: .9; }
395
413
  }
396
414
  `;
@@ -17,6 +17,8 @@ export interface WidgetOptions {
17
17
  sanitizeUrl?: (url: string) => string;
18
18
  loadRecord: RecordLoader;
19
19
  }
20
+ /** The click landed on the host's own control (`open-selector`) — the widget's, and the pill face's while it shows (element.ts). */
21
+ export declare function hitsOpener(ev: Event, sel: string | null): boolean;
20
22
  export declare class ReportWidget {
21
23
  private readonly opts;
22
24
  private readonly hud;
@@ -37,6 +39,10 @@ export declare class ReportWidget {
37
39
  private markers;
38
40
  private nextKey;
39
41
  private tool;
42
+ /** The coach shows while marking until dismissed (settings.ts readCoach). */
43
+ private coachOn;
44
+ /** The shape the coach's art shows; its SVG is rebuilt (and its clock restarted) when the pick changes. */
45
+ private coachShape;
40
46
  private frozen;
41
47
  private job;
42
48
  private sending;
@@ -185,6 +191,8 @@ export declare class ReportWidget {
185
191
  * top-left) would first overhang its corner by the size difference, then glide back.
186
192
  */
187
193
  private placeCard;
194
+ /** The coach takes the card's edge that faces the open page (place.ts coachSide); styles place it by `data-side`. */
195
+ private placeCoachSide;
188
196
  private unpark;
189
197
  /** The segmented control's indicator under the picked shape; `land`: the bar just appeared, so it does not slide. */
190
198
  private placeSeg;
@@ -198,8 +206,6 @@ export declare class ReportWidget {
198
206
  private kbDraft;
199
207
  private markKey;
200
208
  private renderKbDraft;
201
- /** The coach rides beside the pointer, inside the viewport. */
202
- private placeCoach;
203
209
  private shapeNodes;
204
210
  private renderMarks;
205
211
  /** Pin numbers and positions, line numbers and labels; text in place (the locale may have changed). */
@@ -9,12 +9,12 @@
9
9
  * one numbered note line per mark, and Send — the capture frozen when the
10
10
  * card opens (the buffer rolls on).
11
11
  * - "Show us where" marks the frozen page under a top bar (vt-8020 D6 A): a segmented
12
- * circle · box · arrow · hide, and Cancel, which leaves marking and drops
12
+ * box · circle · arrow · cover, and Cancel, which leaves marking and drops
13
13
  * this pass's marks (vt-8020 D12). The card stays on screen while marking, parked
14
14
  * in the corner that covers none of the marks (place.ts). No element
15
- * selector. Until the first mark exists a coach card rides beside the
16
- * pointer with a tiny loop of the gesture and the words "click, hold and
17
- * move".
15
+ * selector. While marking, a coach rides on the card's top edge, never over
16
+ * the page: a tiny run of the picked shape's gesture and the words "click,
17
+ * hold and move", until the person presses "Got it, don't show again".
18
18
  * - The reporter's files (vt-8020 D9, attachments.ts): 📎 in the card's foot,
19
19
  * paste or drop onto the card; chips above the foot, refused at once past
20
20
  * the project's caps, sent on the wire's attachment leg.
@@ -42,21 +42,24 @@ import { browserLocale, parseLocale, REPORT_KINDS, strings } from './i18n';
42
42
  import { normalizeIdentity, onSharedIdentity, sharedIdentity } from './identity';
43
43
  import { keybindLabel, loadKeybind, matchesKeybind, readKeybindPress, saveKeybind, watchKeybind } from './keybind';
44
44
  import { arrowEnds, arrowHead, isMark, rectBetween, renumber, toWire, } from './markers';
45
- import { cornerRect, pickCorner } from './place';
45
+ import { coachSide, cornerRect, pickCorner } from './place';
46
46
  import { listMine, openSession, sessionLive } from './reader';
47
47
  import { noteSent, readSent } from './sent';
48
- import { readSize, SIZE_KEY, SIZE_SCALE, SIZES, techDetails, writePref } from './settings';
48
+ import { COACH_KEY, readCoach, readSize, SIZE_KEY, SIZE_SCALE, SIZES, techDetails, writePref } from './settings';
49
49
  import { REPORT_CSS } from './styles';
50
50
  import { EMPTY_CAPTURE, prepareCapture, ReportJob } from './wire';
51
51
  const SVG_NS = 'http://www.w3.org/2000/svg';
52
52
  const TITLE_CAP = 100;
53
- const TOOLS = ['circle', 'box', 'arrow', 'hide'];
53
+ /** The box leads and is the default: most problems are a region, and a box is the one gesture nobody has to learn. */
54
+ const TOOLS = ['box', 'circle', 'arrow', 'hide'];
54
55
  /** A keyboard mark starts as this, centred; arrows move it 10 px, Shift+arrows resize it. */
55
56
  const KB_DRAFT = { w: 160, h: 80 };
56
57
  const MIN_KB_SIZE = 16;
57
58
  /** The one card's size (vt-8020 D10: it never changes between states) and the clear band the marking bar keeps at the top. */
58
59
  const CARD = { w: 380, h: 460 };
59
60
  const BAR_CLEAR = 72;
61
+ /** The coach's box beside the card (styles: `.coach`), before the size setting scales it, and its gap to the card. */
62
+ const COACH = { w: 300, h: 160, gap: 10 };
60
63
  /** The gap a parked card keeps on a side it did not rest against. */
61
64
  const PARK_EDGE = 16;
62
65
  const KB_STEPS = {
@@ -85,19 +88,68 @@ const ICON = {
85
88
  pen: '<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10.8 2.7l2.5 2.5-7.6 7.6-3.1 0.6 0.6-3.1z" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>',
86
89
  check: '<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M7.5 12.3l3 3 6-6.3" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>',
87
90
  };
88
- /** The coach's loop (D21): a pointer presses, holds and goes round the problem. */
91
+ /**
92
+ * The coach's run of the picked shape (D21): a pointer presses, holds and moves, and the shape grows under it.
93
+ * ONE clock: every moving part is SMIL in the same SVG with the same keyTimes and linear timing, so the pointer
94
+ * and the stroke stay locked frame for frame (a CSS-eased stroke beside a linear SMIL pointer drew ahead of it).
95
+ */
96
+ const COACH_TIMES = '0;0.18;0.72;1';
97
+ const COACH_DUR = '2.8s';
89
98
  const LOOP_PATH = 'M 134 14 C 200 14, 214 50, 134 50 C 54 50, 68 14, 134 14';
90
- function coachArt(reduced) {
99
+ const POINTER_SHAPE = '<path d="M0 0 L0 15 L4 11 L7 18 L10 16.6 L7 10 L12.5 10 Z" fill="#fff" stroke="#151417" stroke-width="1"/>';
100
+ /** One value run on the coach clock: still at `from`, moving to `to`, still at `to`. */
101
+ function coachAnim(attr, from, to) {
102
+ return `<animate attributeName="${attr}" values="${from};${from};${to};${to}" keyTimes="${COACH_TIMES}" calcMode="linear" dur="${COACH_DUR}" repeatCount="indefinite"/>`;
103
+ }
104
+ function coachArt(shape, reduced) {
105
+ const still = (from, to) => (reduced ? to : from);
106
+ const anim = (attr, from, to) => (reduced ? '' : coachAnim(attr, from, to));
107
+ // The finished shape fades as the loop turns over; the press ring shows while the button is held.
108
+ const fade = reduced ? '' : `<animate attributeName="opacity" values="1;1;0" keyTimes="0;0.9;1" dur="${COACH_DUR}" repeatCount="indefinite"/>`;
109
+ const hold = reduced
110
+ ? ''
111
+ : `<animate attributeName="opacity" values="0;0;.9;.9;0;0" keyTimes="0;0.08;0.14;0.72;0.8;1" dur="${COACH_DUR}" repeatCount="indefinite"/>`;
112
+ let scene;
113
+ let path;
114
+ let end;
115
+ if (shape === 'circle') {
116
+ path = LOOP_PATH;
117
+ end = { x: 134, y: 14 };
118
+ scene =
119
+ '<rect class="bar" x="84" y="27" width="100" height="10" rx="5"/>' +
120
+ `<path class="loop" d="${LOOP_PATH}" pathLength="200" stroke-dasharray="200" stroke-dashoffset="${still(200, 0)}">${anim('stroke-dashoffset', 200, 0)}${fade}</path>`;
121
+ }
122
+ else if (shape === 'arrow') {
123
+ path = 'M 74 54 L 128 33';
124
+ end = { x: 128, y: 33 };
125
+ // A zero-length line still paints its head, pointing nowhere: the arrow shows only once it moves.
126
+ const show = reduced ? '' : `<animate attributeName="opacity" values="0;0;1;1;0" keyTimes="0;0.18;0.19;0.9;1" dur="${COACH_DUR}" repeatCount="indefinite"/>`;
127
+ scene =
128
+ '<defs><marker id="vr-coach-head" viewBox="0 0 10 10" refX="7" refY="5" markerWidth="5" markerHeight="5" orient="auto-start-reverse"><path d="M0 0L10 5L0 10z" fill="#e6455f"/></marker></defs>' +
129
+ '<rect class="bar" x="136" y="27" width="70" height="10" rx="5"/>' +
130
+ `<line class="loop" x1="74" y1="54" x2="${still(74, 128)}" y2="${still(54, 33)}" marker-end="url(#vr-coach-head)"${reduced ? '' : ' opacity="0"'}>${anim('x2', 74, 128)}${anim('y2', 54, 33)}${show}</line>`;
131
+ }
132
+ else {
133
+ // box and cover share the drag; a cover fills, so what is under it reads as gone.
134
+ const cover = shape === 'hide';
135
+ path = cover ? 'M 90 10 L 178 54' : 'M 96 12 L 172 52';
136
+ end = cover ? { x: 178, y: 54 } : { x: 172, y: 52 };
137
+ const x = cover ? 90 : 96;
138
+ const y = cover ? 10 : 12;
139
+ const w = end.x - x;
140
+ const hgt = end.y - y;
141
+ scene =
142
+ (cover
143
+ ? '<rect class="bar" x="102" y="20" width="64" height="8" rx="4"/><rect class="bar" x="102" y="35" width="44" height="8" rx="4"/>'
144
+ : '<rect class="bar" x="110" y="27" width="48" height="10" rx="5"/>') +
145
+ `<rect class="${cover ? 'veil' : 'loop'}" x="${x}" y="${y}" width="${still(0, w)}" height="${still(0, hgt)}" rx="${cover ? 4 : 6}">${anim('width', 0, w)}${anim('height', 0, hgt)}${fade}</rect>`;
146
+ }
91
147
  const motion = reduced
92
148
  ? ''
93
- : `<animateMotion dur="2.8s" repeatCount="indefinite" keyPoints="0;0;1;1" keyTimes="0;0.18;0.72;1" calcMode="linear" path="${LOOP_PATH}"/>`;
94
- return ('<svg viewBox="0 0 268 64" aria-hidden="true">' +
95
- '<rect class="bar" x="84" y="27" width="100" height="10" rx="5"/>' +
96
- `<path class="loop" d="${LOOP_PATH}" pathLength="200"/>` +
97
- `<g class="pointer"${reduced ? ' transform="translate(134 14)"' : ''}>` +
98
- '<circle class="hold" r="9"/>' +
99
- '<path d="M0 0 L0 15 L4 11 L7 18 L10 16.6 L7 10 L12.5 10 Z" fill="#fff" stroke="#151417" stroke-width="1"/>' +
100
- `${motion}</g></svg>`);
149
+ : `<animateMotion dur="${COACH_DUR}" repeatCount="indefinite" keyPoints="0;0;1;1" keyTimes="${COACH_TIMES}" calcMode="linear" path="${path}"/>`;
150
+ return (`<svg viewBox="0 0 268 64" aria-hidden="true" data-shape="${shape}">${scene}` +
151
+ `<g class="pointer"${reduced ? ` transform="translate(${end.x} ${end.y})"` : ''}>` +
152
+ `<circle class="hold" r="9"${reduced ? ' opacity=".9"' : ' opacity="0"'}>${hold}</circle>${POINTER_SHAPE}${motion}</g></svg>`);
101
153
  }
102
154
  function h(tag, attrs = {}, ...kids) {
103
155
  const el = document.createElement(tag);
@@ -174,6 +226,18 @@ function typing() {
174
226
  const el = deepActiveElement();
175
227
  return el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || (el instanceof HTMLElement && el.isContentEditable);
176
228
  }
229
+ /** The click landed on the host's own control (`open-selector`) — the widget's, and the pill face's while it shows (element.ts). */
230
+ export function hitsOpener(ev, sel) {
231
+ const t = ev.target;
232
+ if (!sel || !(t instanceof Element))
233
+ return false;
234
+ try {
235
+ return t.closest(sel) !== null;
236
+ }
237
+ catch {
238
+ return false; // not a selector: nothing of the page opens the card
239
+ }
240
+ }
177
241
  /** The widget's DOM, built once into the HUD host's shadow mount. */
178
242
  function buildDom(mount) {
179
243
  const fabLabel = h('span');
@@ -249,11 +313,14 @@ function buildDom(mount) {
249
313
  sizeButtons.set(z, h('button', { type: 'button', role: 'radio', 'aria-checked': 'false', 'data-size': z }));
250
314
  const sizeInd = h('span', { class: 'seg-ind', 'aria-hidden': 'true' });
251
315
  const sizeSeg = h('div', { class: 'seg', role: 'radiogroup', 'aria-labelledby': 'vr-size-label' }, sizeInd, ...sizeButtons.values());
316
+ // The marking tips: the way back after "Got it, don't show again".
317
+ const coachLabel = h('span', { class: 'label', id: 'vr-coach-label' });
318
+ const coachSwitch = h('button', { class: 'switch', type: 'button', role: 'switch', 'aria-checked': 'true', 'aria-labelledby': 'vr-coach-label' }, h('span', { class: 'knob', 'aria-hidden': 'true' }));
252
319
  // Technical details: read-only, for support conversations.
253
320
  const techText = h('span');
254
321
  const techBtn = h('button', { class: 'link', type: 'button', 'aria-expanded': 'false', 'aria-controls': 'vr-tech' }, techText, icon(ICON.chevron));
255
322
  const tech = h('dl', { class: 'tech', id: 'vr-tech' });
256
- const settings = h('div', { class: 'pane settings' }, h('div', { class: 'row' }, bindLabel, bindBtn), bindReason, bindHint, h('div', { class: 'row size-row' }, sizeLabel, sizeSeg), h('div', { class: 'tech-wrap' }, techBtn, tech), h('div', { class: 'settings-foot' }, back, unbind));
323
+ const settings = h('div', { class: 'pane settings' }, h('div', { class: 'row' }, bindLabel, bindBtn), bindReason, bindHint, h('div', { class: 'row size-row' }, sizeLabel, sizeSeg), h('div', { class: 'row tips-row' }, coachLabel, coachSwitch), h('div', { class: 'tech-wrap' }, techBtn, tech), h('div', { class: 'settings-foot' }, back, unbind));
257
324
  const sentTitle = h('h3');
258
325
  const sentBody = h('p', { class: 'sent-body' });
259
326
  const seeText = h('span');
@@ -282,8 +349,17 @@ function buildDom(mount) {
282
349
  const linkWait = h('p', { class: 'list-status', role: 'status' });
283
350
  const linkRetry = h('button', { class: 'link', type: 'button' });
284
351
  const linking = h('div', { class: 'pane linking' }, linkBack, linkLabel, linkCode, h('div', { class: 'link-go' }, linkOpen, linkQr), linkHint, linkWait, linkRetry);
352
+ // The coach (vt-8020) rides on the card's top edge while marking, never over the page it teaches about;
353
+ // its art follows the picked shape (paint), and one button turns it off for good.
354
+ const coachArtSlot = h('div', { class: 'coach-art' });
355
+ const coachText = h('p');
356
+ const coachMore = h('p');
357
+ const coachDismiss = h('button', { class: 'coach-ok', type: 'button' });
358
+ const coach = h('div', { class: 'coach', role: 'status' }, coachArtSlot, coachText, coachMore, coachDismiss);
359
+ // How to mark from the keyboard: the marking layer's description, for assistive technology only.
360
+ const coachKeys = h('p', { class: 'sr-only', id: 'vr-keys' });
285
361
  const body = h('div', { class: 'body' }, describe, settings, sent, reports, recents, linking);
286
- const card = h('section', { class: 'card', role: 'dialog', 'aria-modal': 'false', 'aria-labelledby': 'vr-title' }, head, accountPop, morePop, body, tray, foot);
362
+ const card = h('section', { class: 'card', role: 'dialog', 'aria-modal': 'false', 'aria-labelledby': 'vr-title' }, head, accountPop, morePop, body, tray, foot, coach);
287
363
  const ink = svgEl('svg', { class: 'ink', 'aria-hidden': 'true' });
288
364
  const defs = svgEl('defs', {});
289
365
  const headMarker = svgEl('marker', { id: 'vr-head', viewBox: '0 0 10 10', refX: 7, refY: 5, markerWidth: 5, markerHeight: 5, orient: 'auto-start-reverse' });
@@ -293,11 +369,6 @@ function buildDom(mount) {
293
369
  const draft = svgEl('g', { class: 'draft' });
294
370
  ink.append(defs, shapes, draft);
295
371
  const pins = h('div', { class: 'pins' });
296
- const coachText = h('p');
297
- const coachMore = h('p');
298
- const coachKeys = h('p', { class: 'keys', id: 'vr-keys' });
299
- const coach = h('div', { class: 'coach', role: 'status' });
300
- coach.append(icon(coachArt(reducedMotion())), coachText, coachMore, coachKeys);
301
372
  // The top bar (vt-8020 D6): one plain line, the shape as a segmented control whose indicator slides, Cancel.
302
373
  const toolButtons = new Map();
303
374
  const toolLabels = new Map();
@@ -316,7 +387,7 @@ function buildDom(mount) {
316
387
  const ask = h('span', { class: 'tb-confirm', role: 'group' }, askText, discard, keep);
317
388
  const toolbar = h('div', { class: 'tb', role: 'toolbar' }, barLead, seg, h('span', { class: 'tb-sep', 'aria-hidden': 'true' }), cancel, ask);
318
389
  // Focusable: from the keyboard, Enter places a mark the arrows then move (markKey).
319
- const mark = h('div', { class: 'mark', tabindex: '0', role: 'application', 'aria-describedby': 'vr-keys' }, pins, coach, toolbar);
390
+ const mark = h('div', { class: 'mark', tabindex: '0', role: 'application', 'aria-describedby': 'vr-keys' }, pins, coachKeys, toolbar);
320
391
  mark.prepend(ink);
321
392
  // The card after the marking layer: it stays on top of it, usable, while the reporter marks.
322
393
  const root = h('div', { class: 'vr' }, fab, mark, card);
@@ -335,9 +406,9 @@ function buildDom(mount) {
335
406
  notify, notifyBox, notifyText, error, where, whereText, send,
336
407
  attach, fileInput, fileNote, files, tray,
337
408
  settings, bindLabel, bindBtn, unbind, bindHint, bindReason, back,
338
- sizeLabel, sizeButtons, sizeInd, sizeSeg, techText, techBtn, tech,
409
+ sizeLabel, sizeButtons, sizeInd, sizeSeg, coachLabel, coachSwitch, techText, techBtn, tech,
339
410
  sent, sentTitle, sentBody, see, seeText, sentClose,
340
- mark, ink, shapes, draft, pins, coach, coachText, coachMore, coachKeys,
411
+ mark, ink, shapes, draft, pins, coach, coachArtSlot, coachText, coachMore, coachDismiss, coachKeys,
341
412
  toolbar, barLead, seg, segInd, toolButtons, toolLabels, cancel, ask, askText, discard, keep,
342
413
  };
343
414
  }
@@ -360,7 +431,11 @@ export class ReportWidget {
360
431
  marking = false;
361
432
  markers = [];
362
433
  nextKey = 1;
363
- tool = 'circle';
434
+ tool = TOOLS[0];
435
+ /** The coach shows while marking until dismissed (settings.ts readCoach). */
436
+ coachOn = readCoach();
437
+ /** The shape the coach's art shows; its SVG is rebuilt (and its clock restarted) when the pick changes. */
438
+ coachShape = null;
364
439
  frozen = null;
365
440
  job = null;
366
441
  sending = false;
@@ -646,6 +721,18 @@ export class ReportWidget {
646
721
  this.placeCard(true);
647
722
  });
648
723
  }
724
+ const setCoach = (shown) => {
725
+ this.coachOn = shown;
726
+ writePref(COACH_KEY, shown ? 'on' : 'off');
727
+ this.paint();
728
+ };
729
+ on(e.coachDismiss, 'click', () => {
730
+ setCoach(false);
731
+ // The button that had focus is gone: drawing goes on from the layer.
732
+ if (this.marking)
733
+ e.mark.focus();
734
+ });
735
+ on(e.coachSwitch, 'click', () => setCoach(!this.coachOn));
649
736
  on(e.techBtn, 'click', () => {
650
737
  this.techOpen = !this.techOpen;
651
738
  this.paint();
@@ -806,18 +893,7 @@ export class ReportWidget {
806
893
  }
807
894
  }, { capture: true }));
808
895
  this.offs.push(listen(document, 'click', (ev) => {
809
- const sel = this.openSelector;
810
- const t = ev.target;
811
- if (!sel || !(t instanceof Element))
812
- return;
813
- let hit = null;
814
- try {
815
- hit = t.closest(sel);
816
- }
817
- catch {
818
- return; // not a selector: nothing of the page opens the card
819
- }
820
- if (!hit)
896
+ if (!hitsOpener(ev, this.openSelector))
821
897
  return;
822
898
  ev.preventDefault();
823
899
  this.open();
@@ -1262,8 +1338,6 @@ export class ReportWidget {
1262
1338
  this.paint();
1263
1339
  this.placeCard();
1264
1340
  this.placeSeg(true);
1265
- const vw = globalThis.innerWidth || 800;
1266
- this.placeCoach({ x: vw / 2 - 150, y: BAR_CLEAR + 12 }, false);
1267
1341
  this.e.mark.focus();
1268
1342
  }
1269
1343
  /** Leaves marking; the card stays where marking parked it until it closes (it never jumps back). */
@@ -1330,12 +1404,24 @@ export class ReportWidget {
1330
1404
  card.classList.add('parked');
1331
1405
  card.style.left = `${r.x}px`;
1332
1406
  card.style.top = `${r.y}px`;
1407
+ this.placeCoachSide();
1333
1408
  if (!land)
1334
1409
  return;
1335
1410
  // The read commits the new place as the style the glide starts from, so restoring the glide moves nothing.
1336
1411
  void card.offsetWidth;
1337
1412
  card.style.removeProperty('transition');
1338
1413
  }
1414
+ /** The coach takes the card's edge that faces the open page (place.ts coachSide); styles place it by `data-side`. */
1415
+ placeCoachSide() {
1416
+ const k = SIZE_SCALE[this.size];
1417
+ // Measured in the layout it takes on the card's edge — the art shown, the card's width — never the one it
1418
+ // holds now ('over' hides the art), so a window grown back from a phone's size finds it above again. Both
1419
+ // writes land before the next paint: the trial layout is never seen. Hidden, it reads 0: the usual height.
1420
+ const coach = this.e.coach;
1421
+ coach.dataset.side = 'above';
1422
+ const h = coach.offsetHeight || COACH.h;
1423
+ coach.dataset.side = coachSide(this.parked ?? this.dock, this.frame(), { w: COACH.w * k, h: h * k }, COACH.gap * k);
1424
+ }
1339
1425
  unpark() {
1340
1426
  this.parked = null;
1341
1427
  this.parkInsets = null;
@@ -1367,8 +1453,6 @@ export class ReportWidget {
1367
1453
  this.e.coach.classList.add('pressing');
1368
1454
  }
1369
1455
  pointerMove(ev) {
1370
- if (!this.markers.length)
1371
- this.placeCoach({ x: ev.clientX, y: ev.clientY }, true);
1372
1456
  const d = this.drawing;
1373
1457
  if (!d || ev.pointerId !== d.pointer)
1374
1458
  return;
@@ -1440,21 +1524,6 @@ export class ReportWidget {
1440
1524
  return;
1441
1525
  this.e.draft.replaceChildren(...this.shapeNodes({ shape: this.tool, rect: r, head: 'se' }));
1442
1526
  }
1443
- /** The coach rides beside the pointer, inside the viewport. */
1444
- placeCoach(p, beside) {
1445
- const vw = globalThis.innerWidth || 800;
1446
- const vh = globalThis.innerHeight || 600;
1447
- const w = this.e.coach.offsetWidth || 300;
1448
- const hgt = this.e.coach.offsetHeight || 140;
1449
- let x = beside ? p.x + 20 : p.x;
1450
- let y = beside ? p.y + 20 : p.y;
1451
- if (x + w > vw - 8)
1452
- x = beside ? p.x - w - 20 : vw - w - 8;
1453
- if (y + hgt > vh - 90)
1454
- y = beside ? p.y - hgt - 20 : vh - hgt - 90;
1455
- this.e.coach.style.left = `${Math.max(8, x)}px`;
1456
- this.e.coach.style.top = `${Math.max(8, y)}px`;
1457
- }
1458
1527
  shapeNodes(m) {
1459
1528
  const { x, y, w, h: hh } = m.rect;
1460
1529
  if (m.shape === 'circle') {
@@ -1468,7 +1537,7 @@ export class ReportWidget {
1468
1537
  }
1469
1538
  const veil = svgEl('rect', { class: 'veil', x, y, width: w, height: hh, rx: 4 });
1470
1539
  const label = svgEl('text', { class: 'veil-label', x: x + w / 2, y: y + hh / 2 + 4, 'text-anchor': 'middle' });
1471
- label.textContent = w > 60 && hh > 20 ? this.s.hidden : '';
1540
+ label.textContent = w > 150 && hh > 20 ? this.s.hidden : '';
1472
1541
  return [veil, label];
1473
1542
  }
1474
1543
  renderMarks() {
@@ -1805,6 +1874,8 @@ export class ReportWidget {
1805
1874
  paintSettings() {
1806
1875
  const { e, s } = this;
1807
1876
  e.sizeLabel.textContent = s.size;
1877
+ e.coachLabel.textContent = s.coachSetting;
1878
+ e.coachSwitch.setAttribute('aria-checked', String(this.coachOn));
1808
1879
  for (const [z, btn] of e.sizeButtons) {
1809
1880
  btn.textContent = s.sizes[z];
1810
1881
  btn.setAttribute('aria-checked', String(this.size === z));
@@ -1912,7 +1983,8 @@ export class ReportWidget {
1912
1983
  e.mark.hidden = !this.marking;
1913
1984
  e.toolbar.setAttribute('aria-label', s.toolbar);
1914
1985
  e.seg.setAttribute('aria-label', s.toolbar);
1915
- e.barLead.textContent = s.barLead;
1986
+ // Cover says what it is for the moment it is picked: the one tool that hides instead of points.
1987
+ e.barLead.textContent = this.tool === 'hide' ? s.barLeadHide : s.barLead;
1916
1988
  for (const [tool, btn] of e.toolButtons) {
1917
1989
  const label = e.toolLabels.get(tool);
1918
1990
  if (label)
@@ -1925,9 +1997,17 @@ export class ReportWidget {
1925
1997
  e.askText.textContent = s.discardMarks(this.markers.filter((m) => !this.passKeys.has(m.key)).length);
1926
1998
  e.discard.textContent = s.discard;
1927
1999
  e.keep.textContent = s.keep;
1928
- e.coach.hidden = !this.marking || this.markers.length > 0;
1929
- e.coachText.textContent = s.coach;
2000
+ e.coach.hidden = !this.marking || !this.coachOn;
2001
+ if (e.coach.hidden)
2002
+ this.coachShape = null; // shown again, it starts its run from the top
2003
+ else if (this.coachShape !== this.tool) {
2004
+ this.coachShape = this.tool;
2005
+ e.coachArtSlot.replaceChildren(icon(coachArt(this.tool, reducedMotion())));
2006
+ this.placeCoachSide();
2007
+ }
2008
+ e.coachText.textContent = s.coach[this.tool];
1930
2009
  e.coachMore.textContent = s.coachMore;
2010
+ e.coachDismiss.textContent = s.coachDismiss;
1931
2011
  e.coachKeys.textContent = s.keyboardHint;
1932
2012
  e.mark.setAttribute('aria-label', s.marking);
1933
2013
  if (this.marking) {