@vitrinka/web 0.11.0 → 0.12.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.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";
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/* -- the edge drop (vt-3811, the default launcher; edge.ts) ---------------------\n A half-bead resting on the right edge, with two meniscus feet where it meets it: the edge is the flat\n surface the liquid sits on. It grows its name on hover or focus, swells with a soft spring, stretches\n while it is moved along the edge and settles with one damped wobble. It never moves at rest. Ink in\n both colour schemes; a hairline light rim keeps it visible on a dark page. A host themes it with\n --vr-drop-fill and --vr-drop-ink on the HUD host. The card opens beside it, centred on it. */\n.fab-glyph { display: none; }\n.fab-glyph svg { display: block; width: 18px; height: 18px; }\n.vr[data-launcher=\"edge\"] {\n --drop-fill: var(--vr-drop-fill, #131216);\n --drop-ink: var(--vr-drop-ink, #fff);\n --spring: cubic-bezier(.34, 1.56, .64, 1);\n}\n.vr[data-launcher=\"edge\"] .fab {\n right: 0; bottom: auto; top: var(--vr-drop-top, 62vh);\n transform-origin: 100% 50%;\n height: 48px; gap: 0; padding: 0 11px 0 13px;\n border-radius: 24px 0 0 24px;\n background: radial-gradient(7px 3.5px at 15px 10px, rgba(255, 255, 255, .24), transparent) no-repeat, var(--drop-fill);\n color: var(--drop-ink);\n font-size: 14px; font-weight: 500; letter-spacing: normal;\n box-shadow: none;\n filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .55)) drop-shadow(-3px 5px 9px rgba(0, 0, 0, .22));\n transition: top var(--dur-slow) var(--ease-smooth-out), transform 420ms var(--spring);\n}\n.vr[data-launcher=\"edge\"] .fab::before, .vr[data-launcher=\"edge\"] .fab::after {\n content: \"\"; position: absolute; right: 0; width: 11px; height: 11px; pointer-events: none;\n transition: transform 420ms var(--spring);\n}\n.vr[data-launcher=\"edge\"] .fab::before {\n bottom: 100%; transform-origin: 100% 100%;\n background: radial-gradient(circle at 0 0, transparent 10.5px, var(--drop-fill) 11px);\n}\n.vr[data-launcher=\"edge\"] .fab::after {\n top: 100%; transform-origin: 100% 0;\n background: radial-gradient(circle at 0 100%, transparent 10.5px, var(--drop-fill) 11px);\n}\n.vr[data-launcher=\"edge\"] .fab-glyph { display: block; flex: none; }\n.vr[data-launcher=\"edge\"] .fab-label {\n max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;\n transition: max-width 460ms cubic-bezier(.34, 1.4, .64, 1), opacity .2s ease .06s, padding .3s ease;\n}\n.vr[data-launcher=\"edge\"] .fab:hover, .vr[data-launcher=\"edge\"] .fab:focus-visible { transform: scale(1.07); box-shadow: none; }\n.vr[data-launcher=\"edge\"] .fab:hover::before, .vr[data-launcher=\"edge\"] .fab:hover::after,\n.vr[data-launcher=\"edge\"] .fab:focus-visible::before, .vr[data-launcher=\"edge\"] .fab:focus-visible::after { transform: scaleY(1.45); }\n/* Never while the card is open: the name would grow under the card beside it. */\n.vr[data-launcher=\"edge\"] .fab[aria-expanded=\"false\"]:hover .fab-label,\n.vr[data-launcher=\"edge\"] .fab[aria-expanded=\"false\"]:focus-visible .fab-label { max-width: 240px; opacity: 1; padding: 0 7px 0 9px; }\n.vr[data-launcher=\"edge\"] .fab:focus-visible { outline-offset: -4px; }\n/* Moved along the edge it follows the pointer and stretches; released, it settles. */\n.vr[data-launcher=\"edge\"] .fab.dragging { transform: scale(.9, 1.16); transition: transform 200ms var(--spring); cursor: grabbing; }\n.vr[data-launcher=\"edge\"] .fab.settle { animation: vr-settle 520ms ease-out; }\n@keyframes vr-settle {\n 0% { transform: scale(.9, 1.16); }\n 35% { transform: scale(1.08, .9); }\n 60% { transform: scale(.97, 1.04); }\n 80% { transform: scale(1.01, .99); }\n 100% { transform: none; }\n}\n.vr[data-launcher=\"edge\"] .card {\n right: calc((44px + 12px) * var(--vr-scale)); bottom: auto; top: var(--vr-card-top, 16px);\n transform-origin: 100% 0;\n height: min(460px, calc((100vh - 32px) / var(--vr-scale)));\n}\n.vr.nobutton[data-launcher=\"edge\"] .card { right: var(--edge); }\n.vr[data-launcher=\"edge\"] .card.parked { right: auto; 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 /* A phone has no room beside the drop: the card takes the width and covers it. */\n .vr[data-launcher=\"edge\"] .card { right: var(--edge); }\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 /* The edge drop stays the still bead: no swell, stretch or wobble, and it moves without gliding. */\n .vr[data-launcher=\"edge\"] .fab, .vr[data-launcher=\"edge\"] .fab::before, .vr[data-launcher=\"edge\"] .fab::after,\n .vr[data-launcher=\"edge\"] .fab-label { transition: none; }\n .vr[data-launcher=\"edge\"] .fab:hover, .vr[data-launcher=\"edge\"] .fab:focus-visible, .vr[data-launcher=\"edge\"] .fab.dragging { transform: none; }\n .vr[data-launcher=\"edge\"] .fab:hover::before, .vr[data-launcher=\"edge\"] .fab:hover::after,\n .vr[data-launcher=\"edge\"] .fab:focus-visible::before, .vr[data-launcher=\"edge\"] .fab:focus-visible::after { transform: none; }\n .vr[data-launcher=\"edge\"] .fab.settle { animation: none; }\n}\n";
@@ -85,6 +85,72 @@ kbd {
85
85
  .vr[data-dock="bl"] .fab, .vr[data-dock="bl"] .card { transform-origin: 0 100%; }
86
86
  .vr[data-dock="tr"] .fab, .vr[data-dock="tr"] .card { transform-origin: 100% 0; }
87
87
  .vr[data-dock="tl"] .fab, .vr[data-dock="tl"] .card { transform-origin: 0 0; }
88
+ /* -- the edge drop (vt-3811, the default launcher; edge.ts) ---------------------
89
+ A half-bead resting on the right edge, with two meniscus feet where it meets it: the edge is the flat
90
+ surface the liquid sits on. It grows its name on hover or focus, swells with a soft spring, stretches
91
+ while it is moved along the edge and settles with one damped wobble. It never moves at rest. Ink in
92
+ both colour schemes; a hairline light rim keeps it visible on a dark page. A host themes it with
93
+ --vr-drop-fill and --vr-drop-ink on the HUD host. The card opens beside it, centred on it. */
94
+ .fab-glyph { display: none; }
95
+ .fab-glyph svg { display: block; width: 18px; height: 18px; }
96
+ .vr[data-launcher="edge"] {
97
+ --drop-fill: var(--vr-drop-fill, #131216);
98
+ --drop-ink: var(--vr-drop-ink, #fff);
99
+ --spring: cubic-bezier(.34, 1.56, .64, 1);
100
+ }
101
+ .vr[data-launcher="edge"] .fab {
102
+ right: 0; bottom: auto; top: var(--vr-drop-top, 62vh);
103
+ transform-origin: 100% 50%;
104
+ height: 48px; gap: 0; padding: 0 11px 0 13px;
105
+ border-radius: 24px 0 0 24px;
106
+ background: radial-gradient(7px 3.5px at 15px 10px, rgba(255, 255, 255, .24), transparent) no-repeat, var(--drop-fill);
107
+ color: var(--drop-ink);
108
+ font-size: 14px; font-weight: 500; letter-spacing: normal;
109
+ box-shadow: none;
110
+ filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .55)) drop-shadow(-3px 5px 9px rgba(0, 0, 0, .22));
111
+ transition: top var(--dur-slow) var(--ease-smooth-out), transform 420ms var(--spring);
112
+ }
113
+ .vr[data-launcher="edge"] .fab::before, .vr[data-launcher="edge"] .fab::after {
114
+ content: ""; position: absolute; right: 0; width: 11px; height: 11px; pointer-events: none;
115
+ transition: transform 420ms var(--spring);
116
+ }
117
+ .vr[data-launcher="edge"] .fab::before {
118
+ bottom: 100%; transform-origin: 100% 100%;
119
+ background: radial-gradient(circle at 0 0, transparent 10.5px, var(--drop-fill) 11px);
120
+ }
121
+ .vr[data-launcher="edge"] .fab::after {
122
+ top: 100%; transform-origin: 100% 0;
123
+ background: radial-gradient(circle at 0 100%, transparent 10.5px, var(--drop-fill) 11px);
124
+ }
125
+ .vr[data-launcher="edge"] .fab-glyph { display: block; flex: none; }
126
+ .vr[data-launcher="edge"] .fab-label {
127
+ max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
128
+ transition: max-width 460ms cubic-bezier(.34, 1.4, .64, 1), opacity .2s ease .06s, padding .3s ease;
129
+ }
130
+ .vr[data-launcher="edge"] .fab:hover, .vr[data-launcher="edge"] .fab:focus-visible { transform: scale(1.07); box-shadow: none; }
131
+ .vr[data-launcher="edge"] .fab:hover::before, .vr[data-launcher="edge"] .fab:hover::after,
132
+ .vr[data-launcher="edge"] .fab:focus-visible::before, .vr[data-launcher="edge"] .fab:focus-visible::after { transform: scaleY(1.45); }
133
+ /* Never while the card is open: the name would grow under the card beside it. */
134
+ .vr[data-launcher="edge"] .fab[aria-expanded="false"]:hover .fab-label,
135
+ .vr[data-launcher="edge"] .fab[aria-expanded="false"]:focus-visible .fab-label { max-width: 240px; opacity: 1; padding: 0 7px 0 9px; }
136
+ .vr[data-launcher="edge"] .fab:focus-visible { outline-offset: -4px; }
137
+ /* Moved along the edge it follows the pointer and stretches; released, it settles. */
138
+ .vr[data-launcher="edge"] .fab.dragging { transform: scale(.9, 1.16); transition: transform 200ms var(--spring); cursor: grabbing; }
139
+ .vr[data-launcher="edge"] .fab.settle { animation: vr-settle 520ms ease-out; }
140
+ @keyframes vr-settle {
141
+ 0% { transform: scale(.9, 1.16); }
142
+ 35% { transform: scale(1.08, .9); }
143
+ 60% { transform: scale(.97, 1.04); }
144
+ 80% { transform: scale(1.01, .99); }
145
+ 100% { transform: none; }
146
+ }
147
+ .vr[data-launcher="edge"] .card {
148
+ right: calc((44px + 12px) * var(--vr-scale)); bottom: auto; top: var(--vr-card-top, 16px);
149
+ transform-origin: 100% 0;
150
+ height: min(460px, calc((100vh - 32px) / var(--vr-scale)));
151
+ }
152
+ .vr.nobutton[data-launcher="edge"] .card { right: var(--edge); }
153
+ .vr[data-launcher="edge"] .card.parked { right: auto; transform-origin: 0 0; }
88
154
  /* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */
89
155
  .vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }
90
156
  .fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }
@@ -400,6 +466,8 @@ a.row:hover { background: var(--faint); }
400
466
  @media (max-width: 520px) {
401
467
  .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }
402
468
  .fab { padding: 13px 18px; font-size: 16px; }
469
+ /* A phone has no room beside the drop: the card takes the width and covers it. */
470
+ .vr[data-launcher="edge"] .card { right: var(--edge); }
403
471
  .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }
404
472
  .tb-lead { display: none; }
405
473
  .seg button { padding: 0 9px; }
@@ -410,5 +478,12 @@ a.row:hover { background: var(--faint); }
410
478
  .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm, .link svg, .coach, .switch, .switch .knob { transition: none; }
411
479
  .card.busy .head::after { animation: none; }
412
480
  .fab, .fab.gliding { transition: none; }
481
+ /* The edge drop stays the still bead: no swell, stretch or wobble, and it moves without gliding. */
482
+ .vr[data-launcher="edge"] .fab, .vr[data-launcher="edge"] .fab::before, .vr[data-launcher="edge"] .fab::after,
483
+ .vr[data-launcher="edge"] .fab-label { transition: none; }
484
+ .vr[data-launcher="edge"] .fab:hover, .vr[data-launcher="edge"] .fab:focus-visible, .vr[data-launcher="edge"] .fab.dragging { transform: none; }
485
+ .vr[data-launcher="edge"] .fab:hover::before, .vr[data-launcher="edge"] .fab:hover::after,
486
+ .vr[data-launcher="edge"] .fab:focus-visible::before, .vr[data-launcher="edge"] .fab:focus-visible::after { transform: none; }
487
+ .vr[data-launcher="edge"] .fab.settle { animation: none; }
413
488
  }
414
489
  `;
@@ -1,4 +1,5 @@
1
1
  import { type ReportContext } from './context';
2
+ import { type EdgeInsets, type Launcher } from './edge';
2
3
  import { type RecordLoader } from './engine';
3
4
  import { type Locale } from './i18n';
4
5
  import { type IdentifyInput } from './identity';
@@ -12,6 +13,10 @@ export interface WidgetOptions {
12
13
  button: boolean;
13
14
  /** CSS selector of the host's own control(s) that open the card. */
14
15
  openSelector?: string | null;
16
+ /** `edge` (default): the drop on the right edge (edge.ts); `corner`: the four-corner button (drag.ts). */
17
+ launcher?: Launcher;
18
+ /** The clear space the edge drop keeps at the top and the bottom of the viewport (px). */
19
+ edgeInsets?: Partial<EdgeInsets> | null;
15
20
  identity?: IdentifyInput;
16
21
  /** The host's claimed context, already validated by element.ts (context.ts, vt-9515). */
17
22
  context?: ReportContext;
@@ -71,6 +76,10 @@ export declare class ReportWidget {
71
76
  private parkInsets;
72
77
  /** The corner the button docks in (drag.ts); the card rests beside it and marking parks it from there. */
73
78
  private dock;
79
+ /** Which launcher shows (edge.ts); the edge drop's place along the right edge as a fraction of its band, and that band's insets. */
80
+ private launcher;
81
+ private edge;
82
+ private readonly insets;
74
83
  private size;
75
84
  private techOpen;
76
85
  /** A press on the button: it becomes a drag once it travels DRAG_THRESHOLD; `grab` is where the pointer holds it. */
@@ -125,6 +134,7 @@ export declare class ReportWidget {
125
134
  close(): void;
126
135
  setLocale(raw: string | null | undefined): void;
127
136
  setButton(on: boolean): void;
137
+ setLauncher(l: Launcher): void;
128
138
  setOpenSelector(sel: string | null): void;
129
139
  /**
130
140
  * The way to the recorder pill (vt-8020 D8): element.ts sets it only for a
@@ -202,6 +212,17 @@ export declare class ReportWidget {
202
212
  private fabUp;
203
213
  /** Docks the button in `c` and remembers it; it glides there from `from` (the drop point, else where it was). */
204
214
  private moveDock;
215
+ /** The corner the launcher rests in, for marking and the coach: the dock, or the drop's half of the edge. */
216
+ private rest;
217
+ /** Moves the drop to `fraction` of its band and remembers it; the stylesheet's transition carries it there. */
218
+ private moveEdge;
219
+ /** One damped wobble after a drag (styles: `.settle`); nothing under reduced motion. */
220
+ private settle;
221
+ /**
222
+ * Places the drop on the right edge and the card beside it, centred on it (edge.ts). Both go through
223
+ * custom properties so the stylesheet keeps every other rule; a drag in progress owns the drop's top.
224
+ */
225
+ private placeEdge;
205
226
  private startMarking;
206
227
  /** Leaves marking; the card stays where marking parked it until it closes (it never jumps back). */
207
228
  private endMarking;
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * Report a problem — the report face's UI (QA Studio D12 C, D21 B).
3
3
  *
4
- * - A large floating "Report a problem" button (hidden with `button: false`;
5
- * the host then opens it from its own control, `open-selector`, or
6
- * `open()`), and the reporter's own shortcut (keybind.ts).
4
+ * - The launcher (hidden with `button: false`; the host then opens the card
5
+ * from its own control, `open-selector`, or `open()`), and the reporter's
6
+ * own shortcut (keybind.ts). By default it is the edge drop (vt-3811,
7
+ * edge.ts): a drop resting on the right edge that grows its name on hover
8
+ * and slides along the edge; `launcher: 'corner'` is the large button.
7
9
  * - ONE card (vt-8020 D10 A), one fixed size from drafting through sending
8
10
  * to thanks: the reporter's word for it (vt-8020 D11 chips), "What went wrong?",
9
11
  * one numbered note line per mark, and Send — the capture frozen when the
@@ -18,8 +20,9 @@
18
20
  * - The reporter's files (vt-8020 D9, attachments.ts): 📎 in the card's foot,
19
21
  * paste or drop onto the card; chips above the foot, refused at once past
20
22
  * the project's caps, sent on the wire's attachment leg.
21
- * - The button drags to any corner, or moves with Alt+arrows (drag.ts); the
22
- * card rests beside it. Settings adds the size (S · M · L, settings.ts)
23
+ * - The corner button drags to any corner, or moves with Alt+arrows (drag.ts);
24
+ * the edge drop slides along the edge, or moves with Alt+↑/↓ (edge.ts); the
25
+ * card rests beside either. Settings adds the size (S · M · L, settings.ts)
23
26
  * and the technical details a support conversation asks for.
24
27
  * - Rendered once into the shared HUD host's shadow root (top layer,
25
28
  * shielded, blocked from rrweb); `paint()` rewrites text and state in place,
@@ -38,6 +41,7 @@ import { RECORDER_VERSION } from '../recorder/version';
38
41
  import { admit, DEFAULT_ATTACHMENT_CAPS, formatBytes, pastedName, typesLabel } from './attachments';
39
42
  import { contextField } from './context';
40
43
  import { cornerToward, DRAG_THRESHOLD, nearestCorner, readDock, saveDock } from './drag';
44
+ import { cardTopBeside, edgeCorner, edgeFraction, edgeInsets, edgeTop, edgeToward, readEdge, saveEdge } from './edge';
41
45
  import { memberLinked, memberLinkGone, memberTokenFor, rememberDisplayMode, watchMemberLink } from './face';
42
46
  import { acquireEngine, releaseEngine } from './engine';
43
47
  import { browserLocale, parseLocale, REPORT_KINDS, strings } from './i18n';
@@ -61,6 +65,8 @@ const MIN_KB_SIZE = 16;
61
65
  /** The one card's size (vt-8020 D10: it never changes between states) and the clear band the marking bar keeps at the top. */
62
66
  const CARD = { w: 380, h: 460 };
63
67
  const BAR_CLEAR = 72;
68
+ /** The edge drop's height and the gap the card keeps to it, before the size setting scales them (styles: `.vr[data-launcher="edge"]`). */
69
+ const DROP = { h: 48, w: 44, gap: 12 };
64
70
  /** The coach's box beside the card (styles: `.coach`), before the size setting scales it, and its gap to the card. */
65
71
  const COACH = { w: 300, h: 160, gap: 10 };
66
72
  /** The gap a parked card keeps on a side it did not rest against. */
@@ -89,6 +95,8 @@ const ICON = {
89
95
  clip: '<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10.5 4.5l-5 5a1.6 1.6 0 002.3 2.3l5.4-5.4a3 3 0 00-4.2-4.2L3.6 7.6a4.4 4.4 0 006.2 6.2l4-4" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg>',
90
96
  chevron: '<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 4.5l3 3 3-3" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',
91
97
  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>',
98
+ // A speech bubble with an exclamation mark: the edge drop's glyph (vt-3811).
99
+ report: '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12a8.5 8.5 0 0 1-12.6 7.4L3 21l1.6-5.4A8.5 8.5 0 1 1 21 12Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M12 8v4.2M12 15.6h.01" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',
92
100
  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>',
93
101
  };
94
102
  /**
@@ -243,11 +251,13 @@ export function hitsOpener(ev, sel) {
243
251
  }
244
252
  /** The widget's DOM, built once into the HUD host's shadow mount. */
245
253
  function buildDom(mount) {
246
- const fabLabel = h('span');
254
+ const fabLabel = h('span', { class: 'fab-label' });
247
255
  // The chord is painted for the eye only: in the name it would rename the button ("Report a problem Alt+Shift+A");
248
256
  // assistive technology hears it from aria-keyshortcuts (paint).
249
257
  const fabKbd = h('kbd', { 'aria-hidden': 'true' });
250
- const fab = h('button', { class: 'fab', type: 'button', part: 'button', 'aria-haspopup': 'dialog' }, fabLabel, fabKbd);
258
+ // The edge drop shows the glyph and grows the label out of it; the corner button shows the label alone (styles).
259
+ const fabGlyph = h('span', { class: 'fab-glyph', 'aria-hidden': 'true' }, icon(ICON.report));
260
+ const fab = h('button', { class: 'fab', type: 'button', part: 'button', 'aria-haspopup': 'dialog' }, fabGlyph, fabLabel, fabKbd);
251
261
  const title = h('h2', { id: 'vr-title' });
252
262
  // Who you are, at a glance (vt-8020 D5 A): the chip opens the account popover, ⋯ the menu.
253
263
  const whoAv = h('span', { class: 'av', 'aria-hidden': 'true' });
@@ -402,7 +412,7 @@ function buildDom(mount) {
402
412
  root.prepend(style);
403
413
  mount.append(root);
404
414
  return {
405
- root, fab, fabLabel, fabKbd, card, head, title, whoBtn, whoAv, whoName, more, closeBtn, body, foot,
415
+ root, fab, fabGlyph, fabLabel, fabKbd, card, head, title, whoBtn, whoAv, whoName, more, closeBtn, body, foot,
406
416
  accountPop, accName, accMail, accVia, accLinked, accUnlink, accLink, accPortal,
407
417
  morePop, mReports, mRecents, mRecord, mRecordWhy, mSettings, mOpen,
408
418
  reports, repBack, repStatus, repRows, repLocal, repPortal, recents, recBack, recStatus, recRows,
@@ -466,6 +476,10 @@ export class ReportWidget {
466
476
  parkInsets = null;
467
477
  /** The corner the button docks in (drag.ts); the card rests beside it and marking parks it from there. */
468
478
  dock = readDock();
479
+ /** Which launcher shows (edge.ts); the edge drop's place along the right edge as a fraction of its band, and that band's insets. */
480
+ launcher;
481
+ edge = readEdge();
482
+ insets;
469
483
  size = readSize();
470
484
  techOpen = false;
471
485
  /** A press on the button: it becomes a drag once it travels DRAG_THRESHOLD; `grab` is where the pointer holds it. */
@@ -525,6 +539,8 @@ export class ReportWidget {
525
539
  this.locale = opts.locale ?? browserLocale();
526
540
  this.s = strings(this.locale);
527
541
  this.button = opts.button;
542
+ this.launcher = opts.launcher ?? 'edge';
543
+ this.insets = edgeInsets(opts.edgeInsets);
528
544
  this.openSelector = opts.openSelector ?? null;
529
545
  this.identity = opts.identity === undefined ? undefined : normalizeIdentity(opts.identity);
530
546
  this.context = opts.context ?? {};
@@ -623,6 +639,12 @@ export class ReportWidget {
623
639
  this.button = on;
624
640
  this.paint();
625
641
  }
642
+ setLauncher(l) {
643
+ if (l === this.launcher)
644
+ return;
645
+ this.launcher = l;
646
+ this.paint();
647
+ }
626
648
  setOpenSelector(sel) {
627
649
  this.openSelector = sel || null;
628
650
  }
@@ -678,6 +700,15 @@ export class ReportWidget {
678
700
  on(e.fab, 'keydown', (ev) => {
679
701
  if (!ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey)
680
702
  return;
703
+ if (this.launcher === 'edge') {
704
+ const to = edgeToward(this.edge, ev.key);
705
+ if (to === null)
706
+ return;
707
+ ev.preventDefault();
708
+ if (to !== this.edge)
709
+ this.moveEdge(to);
710
+ return;
711
+ }
681
712
  const next = cornerToward(this.dock, ev.key);
682
713
  if (!next)
683
714
  return;
@@ -915,6 +946,8 @@ export class ReportWidget {
915
946
  this.open();
916
947
  }));
917
948
  this.offs.push(listen(window, 'resize', () => {
949
+ if (this.launcher === 'edge')
950
+ this.placeEdge();
918
951
  if (this.parked)
919
952
  this.placeCard(true);
920
953
  if (this.marking)
@@ -1328,6 +1361,15 @@ export class ReportWidget {
1328
1361
  const r = fab.getBoundingClientRect();
1329
1362
  const vw = globalThis.innerWidth || 800;
1330
1363
  const vh = globalThis.innerHeight || 600;
1364
+ if (this.launcher === 'edge') {
1365
+ // The drop slides along the edge only, inside its band; it stretches while it moves (styles: `.dragging`).
1366
+ fab.classList.remove('settle');
1367
+ const h = DROP.h * SIZE_SCALE[this.size];
1368
+ const top = edgeTop(edgeFraction(ev.clientY - d.grab.y, vh, h, this.insets), vh, h, this.insets);
1369
+ d.edgeTop = top;
1370
+ this.e.root.style.setProperty('--vr-drop-top', `${top}px`);
1371
+ return;
1372
+ }
1331
1373
  const s = fab.style;
1332
1374
  s.left = `${Math.min(Math.max(0, ev.clientX - d.grab.x), vw - r.width)}px`;
1333
1375
  s.top = `${Math.min(Math.max(0, ev.clientY - d.grab.y), vh - r.height)}px`;
@@ -1354,6 +1396,14 @@ export class ReportWidget {
1354
1396
  }, 0);
1355
1397
  const vw = globalThis.innerWidth || 800;
1356
1398
  const vh = globalThis.innerHeight || 600;
1399
+ if (this.launcher === 'edge') {
1400
+ // Released, it stays where it is (a cancelled drag goes home) and settles with one damped wobble.
1401
+ // Read from where the drag put it, never the painted box: the stretch scales that box.
1402
+ const h = DROP.h * SIZE_SCALE[this.size];
1403
+ this.moveEdge(drop && d.edgeTop !== undefined ? edgeFraction(d.edgeTop, vh, h, this.insets) : this.edge);
1404
+ this.settle();
1405
+ return;
1406
+ }
1357
1407
  this.moveDock(drop ? nearestCorner({ x: at.left + at.width / 2, y: at.top + at.height / 2 }, vw, vh) : this.dock, at);
1358
1408
  }
1359
1409
  /** Docks the button in `c` and remembers it; it glides there from `from` (the drop point, else where it was). */
@@ -1390,6 +1440,41 @@ export class ReportWidget {
1390
1440
  fab.addEventListener('transitionend', done, { signal: glide.signal });
1391
1441
  fab.addEventListener('transitioncancel', done, { signal: glide.signal });
1392
1442
  }
1443
+ // -- the edge drop (vt-3811) -------------------------------------------------
1444
+ /** The corner the launcher rests in, for marking and the coach: the dock, or the drop's half of the edge. */
1445
+ rest() {
1446
+ return this.launcher === 'edge' ? edgeCorner(this.edge) : this.dock;
1447
+ }
1448
+ /** Moves the drop to `fraction` of its band and remembers it; the stylesheet's transition carries it there. */
1449
+ moveEdge(fraction) {
1450
+ this.edge = fraction;
1451
+ saveEdge(fraction);
1452
+ this.paint();
1453
+ }
1454
+ /** One damped wobble after a drag (styles: `.settle`); nothing under reduced motion. */
1455
+ settle() {
1456
+ const fab = this.e.fab;
1457
+ if (reducedMotion())
1458
+ return;
1459
+ fab.classList.remove('settle');
1460
+ void fab.offsetWidth;
1461
+ fab.classList.add('settle');
1462
+ fab.addEventListener('animationend', () => fab.classList.remove('settle'), { once: true });
1463
+ }
1464
+ /**
1465
+ * Places the drop on the right edge and the card beside it, centred on it (edge.ts). Both go through
1466
+ * custom properties so the stylesheet keeps every other rule; a drag in progress owns the drop's top.
1467
+ */
1468
+ placeEdge() {
1469
+ const root = this.e.root;
1470
+ const vh = globalThis.innerHeight || 600;
1471
+ const k = SIZE_SCALE[this.size];
1472
+ const dropH = DROP.h * k;
1473
+ const top = this.fabDrag?.edgeTop ?? edgeTop(this.edge, vh, dropH, this.insets);
1474
+ root.style.setProperty('--vr-drop-top', `${top}px`);
1475
+ const cardH = Math.min(CARD.h * k, vh - 32);
1476
+ root.style.setProperty('--vr-card-top', `${cardTopBeside(top, dropH, cardH, vh)}px`);
1477
+ }
1393
1478
  // -- marking --------------------------------------------------------------
1394
1479
  startMarking() {
1395
1480
  if (this.job?.id)
@@ -1399,7 +1484,7 @@ export class ReportWidget {
1399
1484
  this.passKeys = new Set(this.markers.map((m) => m.key));
1400
1485
  // Marking parks the card from where it is (beside the button's dock, or a corner an earlier pass
1401
1486
  // chose), with the insets it has there: starting never moves it — only a mark landing under it does.
1402
- const corner = this.parked ?? this.dock;
1487
+ const corner = this.parked ?? this.rest();
1403
1488
  this.parkInsets = this.insetsAt(corner, this.e.card.getBoundingClientRect());
1404
1489
  this.parked = corner;
1405
1490
  this.renderMarks();
@@ -1488,7 +1573,7 @@ export class ReportWidget {
1488
1573
  const coach = this.e.coach;
1489
1574
  coach.dataset.side = 'above';
1490
1575
  const h = coach.offsetHeight || COACH.h;
1491
- coach.dataset.side = coachSide(this.parked ?? this.dock, this.frame(), { w: COACH.w * k, h: h * k }, COACH.gap * k);
1576
+ coach.dataset.side = coachSide(this.parked ?? this.rest(), this.frame(), { w: COACH.w * k, h: h * k }, COACH.gap * k);
1492
1577
  }
1493
1578
  unpark() {
1494
1579
  this.parked = null;
@@ -1973,13 +2058,18 @@ export class ReportWidget {
1973
2058
  e.root.classList.toggle('nobutton', !this.button);
1974
2059
  // The dock and the size (vt-8020 D9): the stylesheet places and scales everything from these two.
1975
2060
  e.root.dataset.dock = this.dock;
2061
+ e.root.dataset.launcher = this.launcher;
2062
+ if (this.launcher === 'edge')
2063
+ this.placeEdge();
1976
2064
  e.root.style.setProperty('--vr-scale', String(SIZE_SCALE[this.size]));
1977
2065
  e.fab.hidden = !this.button || this.marking;
1978
2066
  e.fabLabel.textContent = s.button;
1979
2067
  e.fab.setAttribute('aria-expanded', String(this.isOpen));
1980
- e.fab.setAttribute('aria-description', s.moveHint);
1981
- e.fab.setAttribute('aria-keyshortcuts', `${this.keybind ? `${keybindAria(this.keybind)} ` : ''}Alt+ArrowUp Alt+ArrowDown Alt+ArrowLeft Alt+ArrowRight`);
1982
- e.fabKbd.hidden = !this.keybind;
2068
+ const edge = this.launcher === 'edge';
2069
+ e.fab.setAttribute('aria-description', edge ? s.edgeHint : s.moveHint);
2070
+ e.fab.setAttribute('aria-keyshortcuts', `${this.keybind ? `${keybindAria(this.keybind)} ` : ''}Alt+ArrowUp Alt+ArrowDown${edge ? '' : ' Alt+ArrowLeft Alt+ArrowRight'}`);
2071
+ // The drop is a glyph that grows its name; the chord stays in aria-keyshortcuts and the settings.
2072
+ e.fabKbd.hidden = !this.keybind || edge;
1983
2073
  e.fabKbd.textContent = this.keybind ? keybindLabel(this.keybind) : '';
1984
2074
  // The one card stays up while marking (vt-8020 D10): its note lines and Send are where the reporter finishes.
1985
2075
  e.card.hidden = !this.isOpen;