# Visual Language This is the single design handbook for Piik's shared Web/App interface: action ownership, grouping, layout, control/surface selection, illustration, semantic colour, motion and guidance. Start with [action ownership](#action-ownership-and-grouping), then choose the [control](#control-selection) and [surface](#surface-selection). New UI work follows this file and the local `/__tooltip-preview` catalogue. [Media status](./media-status.md) owns which facts justify each status and [who owns playback](./media-status.md#playback-ownership). Neither an illustration nor its colour creates product state. Use one stroke language for single concepts, small panel comics for causes and sequences, and literal scene objects for people, rooms and media. Glyphs do not form sentences. The same meaning and visual hierarchy must work in every registered language, in both themes and at narrow widths. Piik's living room uses simple silhouettes, generous space, rounded controls and a small responsive bounce. Clear hierarchy and legible interaction keep the playful details easy to use. The [copy guide](./naming.md#voice-and-terminology) owns its voice. The [public introduction guide](./public-introduction.md) owns website and film hierarchy: shared identity, current product demonstrations and promotional composition. It applies the copy guide's audience and technical-detail layers. Keep playfulness restrained: clean silhouettes, balanced proportions, quiet expressions and brief gestures. Keep the interface approachable; avoid pushing ordinary characters toward infant proportions, exaggerated grins, dense cute decoration or children's picture-book styling. This balance applies to all comic hints, status overlays and entry/error scenes. Consistency governs meaning, cast and interaction, not identical compositions. Give each explanation a recognisable little scene: a welcoming hop, a curious peek or a character leaning into an action. Anticipation, a soft landing and staggered responses make movement expressive. Reuse drawing primitives and motion ownership; do not reduce distinct situations to one layout with a swapped symbol. ## Typography Trusted application and native-window surfaces share the system/CJK and monospace stacks in `src/client/ui/typography.css`. Use monospace for technical values that benefit from aligned characters. Pair size and line height for each role. Use regular weight for reading and strong weight for emphasis. | Role | Default size / line height | Use | | --- | --- | --- | | badge | 11 / 14 px | Compact identity labels and counts | | caption | 12 / 16 px | Metadata and window captions | | label | 14 / 20 px | Controls and compact rows | | body | 16 / 24 px | Messages and descriptions | | heading | 20 / 28 px | Room and panel headings | | title | 24 / 32 px | Page titles | Allow user-adjusted text spacing without losing content or controls. [Fluent typography](https://fluent2.microsoft.design/typography) and [W3C text spacing](https://www.w3.org/WAI/WCAG22/Understanding/text-spacing.html) ## Layout And Input ### Action Ownership And Grouping Determine an action's **target, effect scope, authority and lifetime before its frequency, emphasis and position**. The product models own these facts; layout only expresses them. A gear, speaker or pause icon does not establish scope. Common rules apply to every surface; version-specific composition below does not transfer one version's roles or lifecycle to another. For 3.0, use this responsibility map: | Responsibility | Target and effect | Group and boundary | | --- | --- | --- | | App and site utilities | App connection, presentation preferences, help and the current site's identity | Stable shell area; site maintenance attaches to site identity, separate from personal settings | | App entry and management | Saved destinations, exact-origin device approval, local hosting and updates | One site-management list and detail surface separates bookmarks, device consent and startup preference; invitation entry and local hosting stay distinct, and the page does not own the hosted runtime or update operation | | Room navigation and management | The named room's conversation, invitation, access and room settings | Room identity, directory and room tools; browsing a room is separate from joining an activity | | Personal voice | This user's voice participation, microphone and listening | Stable personal activity area identifying the actual voice room; selecting its controls and opening that room are separate actions; device-wide settings retain their wider scope | | Publishing and source | A particular share and what its recipients receive: source selection, broadcast pause/stop, source sound and input permission | Controls attached to that share; starting a share names its destination room | | Local viewing | This user's playback/preview, listening, picture fit and playback preferences | The corresponding player; publishing controls remain a separate group even for one's own picture | | Layout and window | Focus/grid, fullscreen and detached presentation | A distinct viewing group; changing presentation preserves the existing media/session owner | | Participation | Reactions, counts and who watches a particular share | Beside that share's identity; room-wide presence and personal voice do not become per-picture settings | | Message and draft | A particular message's reaction/reply/mention, or the current composed message | Actions beside the message or composer; history retention belongs to conversation settings | Apply these rules in order: 1. **Establish the target.** Name the affected object and who experiences the result. Persistent activity controls continue to name their actual target after navigation; the currently browsed room does not silently retarget them. 2. **Group by effect and task.** Actions with the same target, effect scope and subtask belong together. Distinguish publishing from local playback, and navigation from activity commands, even when their icons look alike. 3. **Order by the user's work.** Identify/select, act, adjust, then inspect. Keep high-frequency actions directly reachable and the current task's main progression clear. Direct access does not require every action to be bright, permanently visible or equally prominent. 4. **Separate consequences.** Stop or remove remains attached to its object, with spacing and the shared danger treatment where appropriate. Closing a panel, stopping one's viewing and ending a broadcast must remain distinguishable. 5. **Add boundaries for a reason.** Use proximity, alignment and a heading before a border. A separate object, task or blocking stage can justify a separate surface; embedded contents reuse the host's title, frame and status. 6. **Disclose a named task.** Detailed sharing, playback or connection options use their existing settings entry. Do not create a generic overflow menu to conceal an unresolved group or fill an empty corner. Follow the shared [space priorities](#space-priority) before moving an action. These Piik choices apply public guidance reviewed on 2026-11-13: [Fluent toolbars](https://fluent2.microsoft.design/components/web/react/core/toolbar/usage) group related tasks, [Apple toolbars](https://developer.apple.com/design/human-interface-guidelines/toolbars) distinguish functions and important actions, and [context menus](https://developer.apple.com/design/human-interface-guidelines/context-menus) remain related to their target. [Discord's screen-sharing guide](https://support.discord.com/hc/en-us/articles/360040816151-Go-Live-and-Screen-Share) distinguishes sharing, listening, viewing and window controls; Piik retains its own independent voice/share lifetimes. These sources do not prescribe Piik's pixel geometry, room model or exact control placement. ### Alignment And Input Use spacing, alignment and type hierarchy to group UI facts. Write explanations as normal localized sentences; keep names, device labels, status and actions in their existing visual groups rather than joining them into dotted strings. A middle dot is reserved for short, genuinely peer metadata such as compact measurements or version details. It is not the default separator for headings, instructions, accessible descriptions or a label followed by an explanation. Keep contextual groups near their named target and personal activity groups stable as the viewport changes. Light separators distinguish tasks without turning every region into a card. These choices follow [proximity](https://www.nngroup.com/articles/gestalt-proximity/) and [visual hierarchy](https://www.nngroup.com/articles/principles-visual-design/). Use the shared living-room imagery: the television represents media, and the couch and pawns make presence spatial. Keep the current room identity prominent: the room code in 2.x, the room name in 3.0. Decoration must clarify product facts without creating another state model. Universal digits, transport symbols, URLs and measured values remain literal when the user needs the data. Functional controls use native buttons/inputs and localized accessible names. Pointer cursors identify actions, navigation and controls that change a setting; text inputs use text cursors. Read-only status and metric indicators keep the ordinary arrow even when tapping reveals an explanation. Keep these help-only triggers as native buttons for keyboard and touch access. Passive labels and illustrations also keep their ordinary cursor. Hover, keyboard focus and touch receive equivalent guidance. Keep information order and interaction ownership consistent across languages, themes and viewport sizes. Reflow or bounded scrolling must not hide a primary action, truncate an essential value, overlap controls or change meaning. Keep a compact value and its direct actions together when rows wrap, including the room code and its replacement confirmation. Let independent groups reflow; do not stretch short values to fill a phone row. Check actual control bounds around breakpoints, in both orientations and all presentation modes; page-level overflow clipping is not evidence that the content fits. Keep existing controls in their established positions as a room becomes active. Represent missing room identity with a passive placeholder in its own slot; do not move unrelated controls into that space to fill an empty state. ### Space Priority Allocate space by task rather than shrinking every child equally. Preserve content, target identity, necessary state and required actions. First remove repeated explanations and secondary metadata; then condense familiar auxiliary captions while retaining their icons and accessible names; then reflow complete groups. Detailed adjustments can use their existing named settings surface. A name gets space before its supporting edit action. Preserve essential values, units and usable input widths. Primary, destructive and unfamiliar actions need enough visible identity to distinguish their effect; keep wording where an icon would be ambiguous. A circular control remains square. Use the shared size variants or the existing embedded-action family's density. Its owner supplies dimensions, icon alignment and feedback in every caller; a single card or preview must not invent another size, palette or motion rule. If required controls and a recognisable target cannot fit, increase the surface's minimum size or use bounded scrolling instead of deleting the functionality. Do not move action targets when a count, label or hover state changes. Room layout follows the available container width and height. Pictures, messages and the composer get space before decorative scenery. A compact presence strip and the existing room tool keep participant interactions accessible in short windows. Media and history own their scrolling; the composer and live voice controls remain reachable. When columns fit, use them instead of forcing every region into a short vertical stack. Moving content between surfaces preserves the same component and session rather than creating a second UI or connection. Apply these priorities through existing layout and control owners, with no platform-specific layout manager. Check long names, translations, text zoom, editing and active playback: a page without horizontal overflow can still hide its useful content. [W3C reflow guidance](https://www.w3.org/WAI/WCAG22/Understanding/reflow.html) permits reorganizing panels while preserving access to their content and actions. ### 3.0 Room Workspace Keep room navigation and administration together in the room list. The name selects a room; its adjacent settings action manages that room without changing the current conversation or activities. Room, site maintenance and creation tasks share the native settings-dialog shell, with their own forms and permissions. Workspace corners have three roles: the shell owns the large outer radius, attached navigation and companion regions meet it with straight shared edges, and inset cards use the smaller surface radius with a further inset radius for compact notices and fields. Shared `styles.css` root tokens own these roles, including previews and detached panels; do not round every adjacent region independently or use a pill for a panel. Media clipping subtracts the tile's border from its surface radius; an attached pane keeps the shell edge. The native window owns the outer application frame. Internal pages fill that frame and share header alignment; standalone Browser pages retain their page frame. This presentation choice does not remove meaningful content cards or create separate page implementations. Keep one visible application identity. Shared modal materials must remain consistent across the content and any separately trusted window controls, whose commands stay with the native host. The main Windows caption provides the star button **Manage sites** alongside minimize, maximize/restore and close. The button opens the shared site management interface and preserves the current page until an explicit switch. The interface lists saved sites, sites with App access, and the App’s own site. **Save a site** opens the address form and **Manage** opens an existing site’s details. The launcher’s **Saved sites** list opens saved addresses. Language, theme and help share the same More options menu in the launcher and room workspace, identified by the ellipsis rather than a settings icon. Keep the room invitation beside the upper room title, and group Share with its parameters on the opposite side. Personal voice and identity stay lower left. The left list contains the site's rooms. The Piik mark returns to the site overview. Keep the site name visible beside it, with maintenance actions attached to that name rather than the personal controls. Global connection, App, language, theme and help belong to the site bar above the room toolbar. They do not move into the sharing group when a sidebar collapses. Place connection dots beside the site identity; App leads the right-hand utility group. The room toolbar owns the single companion-pane toggle; the main body fills the released width. Size the site bar from its own available width. Shorten the site name and use shared compact actions before wrapping identity and utilities as complete groups. Site maintenance is separate from a room's access settings. The room list shows who is present in each available room the viewer can enter. Combine a person’s Browser and App sessions into one identity. The arrow beside the room name reveals names, including people browsing chat. Folding it changes only the local presentation. The couch seats people present through chat or media. Select a seated person to open their reaction palette. The headset shows voice state. The figure wears one activity mark: sharing, files, then viewing, with remote control taking precedence when present. A plus beside it indicates another active non-voice category. The seat's hint and accessible description retain all activities. The people panel on the right covers the whole site. It uses the same presence for its current-room group, then lists other online people and offline people. Background forwarding and cached copies belong to connection and file details. The couch anchors the bottom of the central body, aligned with the personal area's top edge; it does not span either sidebar. Sidebars can collapse independently. Narrow layouts use temporary drawers without replacing those desktop preferences. In a narrow room, Back dismisses the uppermost share picker or settings dialog, then the drawer that opened it. Once the room is visible, Back resumes normal page navigation. Closing a drawer preserves the chat draft and returns keyboard focus to its trigger. Let the media stage use the available workspace. Grid gives watched pictures equal weight; focus gives one picture the main area and keeps the others in a thumbnail strip. All pictures share the same source-information bar below the picture and action order. Thumbnail density retains the title, reactions, watcher count/list and direct stop watching or stop sharing action. Its shared playback controls keep play/pause, sound and playback settings available; selecting the picture promotes it to the full controls without remounting its player. An original webpage that is mounted only in the main picture uses a quiet globe and source label in its thumbnail. Keep its controls available without suggesting that a black rectangle is a live video preview. Explicitly focusing a picture reveals its main area and preserves keyboard access after the focus trigger moves. In full-size synchronized playback, give the timeline the width of the playback bar and keep the time readout beside the transport controls. The sharer can scrub with a pointer or keyboard. Followers see read-only progress. For live media, show the live state and use the available replay window for the timeline when one exists. Keep mute one tap away. Place a short listening-volume slider beside mute in the main picture and in playback settings for thumbnails. Keep fullscreen directly available in the main picture when supported. Show picture-in-picture and theater mode on the bar when the picture is wide, and in playback settings when it is narrow. Speed belongs in the sharer's playback settings. Embedded players retain their own transport controls. The [responsibility map](#action-ownership-and-grouping) still separates publishing, participation and local viewing. The source-information bar keeps publication, audience and leave actions available while playback controls hide when idle. Source selection and sharing settings remain directly available on the active share. Size control groups from their actual contents before allocating the remaining width to source names and counts. A viewport breakpoint must not force an action group onto another row when it fits. Keep essential actions directly reachable; source labels and count summaries yield space first. Judge upper and lower surfaces together against the remaining visible picture, including paused frames and thumbnails. Narrowness alone must not add an opaque row over the video or move controls into a new layout row that shrinks it. Conversation and people are optional companion surfaces; narrow layouts switch surfaces instead of squeezing several unusable regions together. Source controls stay with their picture, and personal voice controls keep their own activity scope. The existing room tool continues to move the same conversation, presence and voice content outside the workspace. Its action opens the compact external window directly when supported, with the existing in-page panel as the named alternative. Its selected trigger returns the same content to the page on a second activation, as does closing the window. The compact Windows App voice overlay uses the same external window and represents the selected voice activity. In pinned mode it passes pointer input through to applications beneath it. Its controls in Piik own adjustment and dismissal, and closing the window preserves voice participation. Its optional chat overlay uses the selected voice room's interaction session. Chat visibility and appearance share one entry in the overlay's editing mode; pinned mode remains display-only. Keep the focus filmstrip compact and left aligned, with bounded thumbnail widths. Grid cards keep equal visual weight and column widths, centering an incomplete last row. This follows the [same alignment used by Jitsi's tile view](https://github.com/jitsi/jitsi-meet/blob/70143c68c21019d9a17a1ce04c39675fff41aa0f/react/features/filmstrip/components/web/ThumbnailWrapper.tsx#L189). Within the same viewport and task, keep the grid/focus toggle anchored; titles, counts and status must not push it sideways. Responsive reflow may reorganize groups. This Piik convention extends [WCAG 3.2.3's relative-order and spatial-memory rationale](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation) and [web.dev's guidance on unexpected movement and misclicks](https://web.dev/articles/cls). User-initiated mode changes are not thereby WCAG failures or necessarily CLS events. ### 3.0 Room Layout Choice An empty site with no saved interface choice offers a small inline suggestion below its primary room-creation action. Creation remains immediately usable. Choosing a view or skipping saves the current presentation preference, so the suggestion does not return after reload. Existing rooms and room invitations continue directly. The ordinary **More options → Interface** control remains available afterward; both entrances share their option labels and controls. Changing or dismissing the suggestion returns focus to the next primary action. Full is the default room layout. It keeps the room list and conversation in reach. Minimal puts sharing and playback first, with the room list and chat available on demand. Both use the same room header, media stage, couch, room tool and joined voice controls. The room tool opens in a separate window when available and in the page on other browsers. Room access settings remain reachable from the invitation panel. Changing the view never creates a room or starts, stops or reassigns an activity. Activities already in progress retain a visible status and an explicit exit. ### Content Rows And Embedded Actions Content rows and controls have different emphasis. Apply the same distinction in conversation, room lists and compact tool panels: | State or action | Presentation | | --- | --- | | Pointer over a message | A quiet background change; message text stays selectable. No full-row button outline. | | Jump to a referenced message | Brief background emphasis on the destination, using its existing navigation owner. | | Keyboard focus | A visible focus indicator, contained within the scroll area; never remove keyboard feedback to fix pointer decoration. | | Embedded action | Use compact shared controls that stay in place on hover and focus. On press, only the object being activated moves down 2 px and springs back on release. With reduced motion, keep positional feedback still. Preserve state colours and the inset focus ring. Reserve the hit area without narrowing neighbouring content. | | Selected room | The shared navigation selection treatment; selecting a room is distinct from hovering over its child actions. | Use a reply arrow for quoting a message and the straight back arrow for navigation. Following [Discord's contextual reply interaction](https://support.discord.com/hc/en-us/articles/360057382374-Replies-FAQ), message actions stay close to their content and appear on hover or focus; tapping a focusable message reveals the same controls on touch. Existing reaction counts remain visible when those actions are hidden. Keep consecutive messages within an author group close, with a larger break between groups. In 3.0 history, show a localized date including the year before each day's first loaded message, including the first group. Local calendar-day boundaries break author groups. Today's messages show the time. Older messages also show the date, with the year for a different calendar year. All timestamps expose their full date and time as details. Embedded actions follow the content with compact targets. Showing them keeps the message layout stable; their reaction picker retains the shared floating surface. [W3C focus guidance](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html) requires visible keyboard focus; it does not require the same outline for a pointer click. ### Control Selection Choose by the user's task, then reuse its interaction and visual primitive. A sliding selection track shows a discrete choice; a range slider adjusts a number. Similar shapes do not make their responsibilities interchangeable. The catalogue renders production controls with sample data, including their meaningfully different variants and surfaces; dedicated playback and status previews remain linked from it. Keep a new control family discoverable there instead of leaving its only example in an ignored prototype. Platform-owned permissions and window chrome are verified in the actual platform, not imitated. | Task | Control and existing owner | | --- | --- | | Perform an action or open a tool | `Btn`; use a stable caption and `aria-expanded` for disclosures | | Turn a setting on or off immediately | `SwitchItem`; compact toolbar actions such as mute use a pressed `Btn` | | Select independent options within a task | Native checkboxes or independent pressed `Chip`s, such as held modifier keys; a selection awaiting Apply must not look like a committed setting | | Choose a short, fixed mode | Shared `.lr-toggle` sliding selection; option chips/cards when individual choices need explanations, richer previews or wrapping | | Switch related content pages | A named tablist with one selected tab and its associated panel; use the shared sliding treatment for short labels, including capture categories, and `navigateTabs` for Arrow/Home/End navigation | | Pick a device or an item from a variable list | Existing named selector/menu; use source thumbnails when appearance helps identify the item | | Adjust a numeric value | Range slider for quick adjustment, with a visible value; reuse `NumberControl` when exact entry or a wider accepted range is useful | | Return within a room tool | Shared `BackButton`: left arrow and **Back**, with the same quiet dense treatment in settings and expanded reactions | | Apply several settings together | A named preset tile/chip; allow no preset to be selected when the current values are custom | Selection, expansion and pending operations describe different facts. Use the appropriate native/ARIA semantics even when controls share their styling. Shared control geometry and motion live in `button.css`; `Btn` selects their variants. Use the regular size for standalone actions, compact for page/room toolbars, and dense for secondary panel/list actions. These are defaults, not a requirement for identical silhouettes: round icon actions keep equal width and height, captions may form pills, and embedded tools may use quiet rounded rectangles. Preserve proportions when space is tight; do not compress one axis of a circle. Header utilities share compact alignment and icon scale with the language track. Low-frequency help stays unframed and quiet; it need not carry the outline or shadow of direct settings. Narrow layouts shorten captions or spacing before changing that hierarchy. Stacked split buttons retain the target size of each action. A navigation row fits its contents and makes the area around its embedded actions selectable. The room mark and name select the row, while the chevron opens its roster. Use a 28 px line for fine pointers, with at least 24 px of width for the chevron and enough inset to keep it clear of the mark. Use compact controls for coarse pointers. [Fluent tree navigation](https://fluent2.microsoft.design/components/web/react/core/tree/usage) Give voice-dock room links a hit area of at least 24 by 24 px even for short names. Fit segmented options inside their track's padding and border. [WCAG target size](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) Each reusable component loads the styles required for its own appearance and state layers. A meter or badge must not alter a control's grid merely because a sibling panel was not loaded. Check the actual product entry as well as the catalogue. Keep desktop App, language, theme and help together on the right. Narrow headers retain one row with the brand/back action, signaling dots, App and More; language, theme and help share that attached disclosure without duplicating their controls. `segmented-control.css` owns the sliding treatment for language, mode selection, tabs and native radio groups. Consumers supply selection and layout; they must not duplicate the selected colours or press animation. Language choices keep circular selection marks; settings and source tabs expand to fit their content and available space. Theme colours remain owned by `palette.css`. Rich choices, keyboard keys and responsive media tools keep their task-specific layout without creating another button or selection palette. Button labels and drag handles are not selectable text, including on touch browsers. Keep message text and editors selectable. Held-input controls own release on pointer-up, cancellation, lost capture and surface blur; a browser callout must not consume that gesture. Tab navigation keeps focus in the tablist and preserves drafts/settings; the navigation key must not become a remote keystroke or start capture. Existing resource cleanup still applies. Value changes keep their domain owner's commit behavior. A `RowGroup` arranges controls; it does not own their selection. ### Surface Selection Choose the smallest surface that supports the task's duration and relationship to the picture. Movable and detachable are separate capabilities, not upgrades that every popup should acquire. | Task | Surface and existing owner | | --- | --- | | Read a brief explanation | Shared `Tooltip`; no settings or required actions hidden in a hint | | Adjust a few contextual settings | Attached native popover with `useAnchoredPopover`; dismiss after use, no dragging or detaching | | Work through related settings | Inline disclosure or tabs, as in `SharingSettings`; expand into page flow rather than cover the picture | | Complete a task that blocks the page | Existing native modal dialog, such as share-failure help; contain focus and return it on close | | Choose a source inside the television | TV-local nonmodal dialog; keep its own Tab loop, inner guidance before Escape cancellation, and return focus to the current share action on close. Surrounding room controls remain available to the pointer | | Keep a room tool available while watching or working | `FloatingPanel`, as used for interactions and Host remote permissions; retain its position without reflowing the room | | Use a tool outside the page | Optional `usePanelWindow` on capable browsers; reuse the same content/session, as with interactions, remote permissions and the docked remote keyboard | A card groups an object's details and actions. Keep immediate adjustments beside the object. Give a draft editor a title and explicit Save and Cancel actions. Keep it open when the user clicks outside. Keep long contents scrollable inside that surface, preserve access to its primary action, and return focus to the invoking object or its surviving neighbour. The actual operation owns pending feedback: saving and removing must not animate each other's buttons. Cancelling presentation does not undo a committed operation or retire an unrelated room activity. Visual groups retain matching accessible names and meaningful keyboard order, following [WCAG relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html) and [focus order](https://www.w3.org/WAI/WCAG22/Understanding/focus-order.html). Use `role="toolbar"` only with its [toolbar keyboard behavior](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/); ordinary button groups need not acquire that role for appearance alone. Show an operation's failure beside its affected object and task. A settings dialog retains that feedback while working on the same object; another object's details do not inherit it. Playback and connection errors keep their own surfaces. Retrying clears the operation's local feedback, and retiring its owner discards late UI results. Chat and voice share one settings entry beside their tabs. Returning from either settings page or an expanded reaction palette uses `BackButton`, not a destination name or content icon. Audio icons keep their direct microphone/listening toggle; `AudioVolumeMenu` exposes the shared volume slider on mouse hover, keyboard focus or touch hold. It uses the guidance timing constants and anchored popover owner, replaces a hint with an actual control, and never widens the participant row. Settings remain an explicit touch entry for microphone and master volume. Persistent room utilities use the shared floating panel without reflowing the living room. The shell owns visibility, focus return, movement, resizing and viewport/keyboard bounds; contents retain their domain state. Support title-bar dragging, corner resizing and equivalent keyboard controls without a second placement menu. One-shot settings and guidance retain their existing disclosures. Anchored menus use native popovers and shared viewport placement; a small parent panel must not clip their actions. Browsers without the Popover API use one shared platform polyfill installed before UI mounting; controls retain the same visibility, focus and dismissal contract. Escape closes inner guidance first, then the most recently opened floating panel, then theater mode; an IME composition must not dismiss these surfaces. The interaction window keeps its conversation and composer available while reacting. Selecting a participant on the channel couch opens a small attached palette with thumbs up/down and the two throwing props; one's own entry uses laugh and heart in place of throws. Throwing props use the same button and illustration size as other reactions; their artwork and a quiet background distinguish them. More reactions expands the same curated choices on demand, with a labelled back arrow in the heading. Do not add a second roster or reflow the list. The native popover owns outside-click and Escape dismissal; sending keeps it open for repeated interaction. Live reactions can appear briefly in the conversation surface without moving its layout. Retention and export details belong in settings, not beside every entry. Detachable tools reuse the same content in the browser's own always-on-top frame. Close, return-to-tab, movement and resizing belong to that frame; do not duplicate its controls in the tool header. Keep messages and text contrast primary; do not simulate transparent desktop content with a washed-out panel. Moving or detaching changes the surface, not the domain owner or protocol. The page's invoker remains usable while detached. Its label and action agree: focus the existing tool, or return the same content to the page. `FloatingPanel` owns that action; feature triggers do not add competing window handlers. Request the tool's current rendered size when detaching, within browser window limits. The native title bar replaces the floating panel's header; keep body spacing and control sizes consistent with the in-page tool. Reuse visibility, placement, dismissal and focus behavior through these existing owners; do not give each feature its own window manager. Different layouts are justified by task or available space, not by which feature was implemented last. Keep the application language control's segmented Simplified Chinese and English shortcuts, followed by one language menu; all extra languages share that third slot. Show the selected language's short label there and native names inside the menu. Reuse the sliding selection, rounded paper panels and control motion. The native popover owns visibility, outside-click dismissal and Escape; the language control owns menu navigation, focus and viewport placement. Keep touch rows large and long lists scrollable. Locale labels belong to the shared registry. Use a globe and chevron for the unselected picker, and each language's own full name in the menu, following [W3C language-navigation guidance](https://www.w3.org/International/questions/qa-navigation-select). ### Guidance The 3.0 interface uses visible localized labels where people need them to choose an action. Accessible names identify every control independently of guidance. Choose supplementary help by the task and what the surrounding interface already explains; neither an icon nor a shared control requires a tooltip by default. | Context | Guidance choice | | --- | --- | | Clear visible action label | Keep the label; omit a tooltip that repeats it. An additional consequence may need a short explanation. | | Ambiguous icon-only action | Prefer a visible label for important or unfamiliar actions. Use a brief text tooltip when compact placement needs identification; familiar symbols with clear surrounding context can stand alone. | | Disabled action | Explain an unexpected prerequisite or how to enable the action. Keep a blocking requirement visible beside the task; use a tooltip only for supplementary detail, without repeating a reason already shown. | | Clipped name or value | Reveal the complete literal value only when it is actually truncated. Use the shared overflow tooltip, without a comic. | | Complex operation or consequential choice | Put instructions, permission scope and essential consequences in the relevant form, settings or help surface. A tooltip may identify its entrance; it does not carry the procedure. | | Cause, interaction or activity boundary worth explaining | Use a concise explanatory comic when its scene clarifies how sharing, invitation, voice, viewing or permissions work. Place it in contextual help, an empty/result state or a contextual tooltip according to the task. | Comics and purposeful motion are part of Piik's explanation language. Give them room where a small visual sequence teaches more clearly than another sentence; an enlarged action symbol adds little. Keep the caption, cause and outcome consistent, and follow the shared [motion grammar](#motion-grammar). Required instructions, current state and operation failures remain visible in their own surface. If a control already opens a relevant menu or panel on hover, focus or touch hold, use that surface's explanation rather than a second popup. These choices follow [Apple's contextual help guidance](https://developer.apple.com/design/human-interface-guidelines/offering-help) and [Fluent's tooltip guidance](https://fluent2.microsoft.design/components/web/react/core/tooltip/usage). Where guidance is provided, use the shared interaction below. Help-only indicators toggle their guidance on click or tap and dismiss on a second activation, outside tap, Escape or focus leaving. Touch long-press opens guidance after a 500 ms hold on its help indicators and action controls, without triggering the action on release. Action controls keep their direct short-tap action. `Tooltip` owns these interactions; pages do not add their own open state or timers. An actionable sharing failure reveals its status guidance once without moving focus. Keep troubleshooting on the status indicator's direct action; do not add a permanent caption beside the light. The shared tooltip retains dismissal and can be reopened through its ordinary hover or touch-hold interaction. Mouse hover opens after 500 ms of staying on the trigger; passing through or operating a control cancels that pending hint. Keyboard focus and explicit help activation do not wait. Keep the open panel hoverable for reading, with a short crossing grace; Escape, clicking the panel or clicking elsewhere dismisses it. A panel click only dismisses guidance and never activates an underlying control. Keep the comic compact without reducing caption legibility. Player hints prefer available space beside or below the television; when that does not fit, clear the whole playback bar. A wrapped option row is also one area to avoid. Status, headers and bottom-of-picker controls prefer below; other controls prefer above. Flip to fit the viewport and keep the caret aimed at the trigger. Placement and hover timing belong to the shared component. Constrain oversized hints to the visible viewport and let their content scroll without dismissing the panel or clipping its caret. Touch keeps the direct action and shared hold-to-explain behavior, without making hover the only route to useful information. Keep participant details on their existing click action and state explanations on the dedicated status indicator. When a nickname is clipped, the shared tooltip reveals its complete literal text in every language, without a comic or repeated role/status labels. Show this only after detecting actual truncation; resize and name changes must recheck it. Preserve hover, keyboard and touch-hold access, and the participant's existing click action. A complete or wrapping name needs no extra focus stop or popup. If a status tooltip already wraps the row, add the clipped name there rather than nesting another tooltip. Tooltips, state overlays and entry/error pages reuse the same illustrative scene in every language, with a concise localized caption beneath it. Literal names and addresses keep their exact text. An invitation explanation retains its link scene; simply revealing a clipped name needs only the name. Do not substitute an unrelated action just to fill a tooltip. Illustration and caption explain the same action or current fact, with one tone and motion owner. Mount scenes only while their tooltip or overlay is shown; captions remain readable throughout. Metric icons and hints share the `metric-presentation.ts` definition in details and overview headings. Frames, packets, jitter and audio repair have distinct symbols; related time measurements keep a clock with a scene identifying the measured stage. Illustrations explain a metric, never invent its current value, threshold or quality verdict. ### Shared Control Feedback Shared buttons and chips use pill shapes and a quiet lower edge. Standalone buttons, chips and option tiles use the shared hover/press transforms and [motion roles](#motion-grammar) in `button.css`. Selected and unselected states use the same motion; selection changes only their colour and outline. Flat tonal buttons keep their position on hover and use the shared press. Embedded row actions follow [the content-row rule](#content-rows-and-embedded-actions) so their movement does not cross neighbouring content or clipping boundaries. Inputs and option tiles share softer corners. Press feedback uses the shared motion values in `button.css` and releases the lower shadow. Captions inside sliding tracks stay centred on their selection surface during hover and focus; presses retain the shared feedback. Keep icon, text and control dimensions intact: scaling the whole button shifts off-centre contents sideways and changes their stroke weight. Do not add a separate icon displacement. Keep filled buttons' border and face in the same colour state; a bright inset rim must not look like a gap between them. Keep a distinct focus ring and a persistent selected state; disabled controls must not pretend to activate. Reduced motion keeps the colour, outline and selected position without decorative displacement. The shared button uses the same pressed value for `aria-pressed` and its selected treatment; active state remains distinct from hover in both themes. Disclosure buttons keep a stable visible caption, while their expanded state and accessible action describe opening or closing. Related tool captions use the same grammatical form: name the feature rather than mixing feature names with instructions to show them. Neutral panel borders stay quieter than the controls inside them; nested diagnostic panels retain their softer fill. Keep room identity, invitation and admission controls ahead of expanded topology and connection details, so inspecting a route does not displace room actions. ### Sharing And Playback Publishing and local playback have different effects. Broadcast pause and source sound affect recipients; local pause, preview and listening affect this user. Keep those groups and their labels distinct even when both are available to the same person. Reusing a playback component does not permit its volume control to silently become a broadcast-level control for a different role. The following Host-dock and single-room-voice composition describes **published 2.x**. The [3.0 workspace](#30-room-workspace) and [Minimal layout](#30-room-layout-choice) retain their own spatial mapping and independent activity lifetimes. Sharing and local playback controls use the same quiet, compact button treatment. The Host's persistent dock stays below the picture; the Viewer's playback bar belongs to the video. Their similar appearance does not equate broadcast pause with local playback pause. A waiting overlay dims the complete picture, including behind the playback bar; its message uses the space above that bar. Keep the primary status readable on narrow screens; optional waiting copy yields first. Microphone mute, sharing pause, source replacement and stop remain direct actions; stop retains its danger treatment. Group direct sharing actions in one centred dock below the television, above the couch. Keep pause/resume and stop adjacent; use an internal separator for the settings and remote-permission entries. Preserve that order and grouping on narrow screens without splitting the dock into separate floating surfaces. Room invitations, admission and chat retain their room scope; they do not become sharing settings merely because they use a similar control. One inline settings panel uses picture and sound tabs with the shared sliding two-option control. Picture presets lead; a fine-tuning disclosure contains picture limits, preference and video encoding, keeping configured limits visible when closed. In sound, source-audio inputs precede source-audio quality; room microphone settings stay in the voice panel. Presets remain available before sharing starts. Switching tabs does not reset values or restart media. Keep the less frequent connection options in a shared disclosure below the tabs. Expand in page flow, pushing later content down instead of covering the picture or participants. Related fields share a row where space permits and stack on narrow screens. Avoid another permanent row of settings cards. Numeric quality inputs retain the accepted capability range; sliders offer a labelled common range for quick adjustment. Values outside its range or steps show a custom-value row instead of an inaccurate slider position. Returning to the nearest available common step is an explicit action; rendering, focus or reopening never changes the value. Derive this presentation from the current value, without a second setting mode. Shared presentation stays separate from the existing setting/resource owners. The microphone comic depicts microphone input gain; the Viewer's listening-volume comic remains a different action. Room voice retains one bottom toolbar: open/join and close/leave share its right action position; microphone and listening controls appear to the left after joining. Use the shared media-control styling for both states. Missing browser microphone capability disables capture with a contextual explanation, without disabling listening. The following viewing rules apply to both versions. [Media status](./media-status.md#playback-ownership) owns 3.0 playback; published 2.x follows its [playback owner](https://github.com/TNTcraftHIM/Piik/blob/main/docs/standards/presentation-lifecycle.md#playback-ownership). Keep related controls together at the picture's lower edge: local playback and sound, remote input, viewing options, then window modes with fullscreen last. Common actions remain directly available; detailed preferences use an anchored popover. Apply [space priority](#space-priority) to narrow full-size players; thumbnail presentation follows the [3.0 workspace contract](#30-room-workspace). Picture fit and rotation belong to the existing viewing settings, reusing their controls rather than duplicating visible actions. Picture overlays reuse the shared quiet media controls, surface materials and status components. Source identity/actions and local playback retain separate groups within that visual family. Keep their backgrounds compact; the video is the primary surface. One visibility owner coordinates the complete controls and keeps them visible during focus, dragging or an open control menu. Pause and end state do not by themselves require permanent obstruction; pointer movement, keyboard focus and touch reveal must remain reliable. Grants, pause and source changes do not move the bar or resize the picture. An idle picture is clear of controls: they hide after two idle seconds, following [Media Chrome's default](https://github.com/muxinc/media-chrome/blob/main/docs/src/pages/docs/en/components/media-controller.md#autohide). While active remote input owns picture gestures, a small local handle at the lower edge reveals the controls. This follows [content-first guidance](https://github.com/GoogleChrome/modern-web-guidance/blob/4dd968349e54ca45a05dd5c818fb035c9054b022/skills/modern-web-guidance/guides/user-experience/content-first-noise-reduction.md) and [container-based layout](https://github.com/GoogleChrome/modern-web-guidance/blob/4dd968349e54ca45a05dd5c818fb035c9054b022/skills/modern-web-guidance/guides/css/size-aware-styling.md). Playback settings own on-screen chat appearance and connection preferences; chat settings own records, and voice settings own microphone processing. Viewer settings prefer space below the picture without resizing it. Use equal-width choices and stack groups on narrow screens. Fit, proportional crop and stretch change local display only, separate from the Host's picture settings. Persistent interaction and remote-permission tools may use the shared floating window; the remote keyboard docks outside the picture and can detach on capable browsers. One-step actions and brief adjustments do not need movable windows. Touch controllers default to direct touch without a cursor. A draggable mini mouse expands on tap, with its cursor spaced above and to the left; one pointer position drives both. The existing viewport pans the picture to leave room for the mouse at its edges. Added blank space is bounded by the tool's footprint, and the cursor stops at the source picture's edges. Two-finger pinch and pan move the picture beneath the full mouse, reanchoring its local source target without remote input. The compact trackpad retains its two-finger scrolling at normal scale. A separate button minimizes it and restores the selected touch mode; the compact trackpad cursor remains an optional local preference in playback settings. The mini mouse tucks away after resting at a picture edge, using the player controls' idle delay. The wheel shares middle-click, scrolling and held middle-drag in one target. Expanded buttons, scrolling and pointer movement share the existing input grant and pointer geometry; the keyboard keeps its separate docked surface. Virtual joysticks sit inside the picture with separate left and right handles. When the player controls' idle delay expires, each handle parks at its picture edge as a dark bezel pull with a 44 px touch target. The joystick stays at its chosen position. Drag the handle or use its arrow keys to move it. Keep the handles clear of the playback bar. In touch-only mode, the base stays transparent, the ring marks the touch area while the handle is active, and the thumb appears during contact. The remote keyboard groups the joystick controls under Local controls and shows mode and visibility settings when joysticks are enabled. Visual source choices (windows, screens and cameras) share named thumbnail cards, including their focus, hover and refresh treatment. Thumbnails fit the whole frame at its original aspect ratio within the card; constrain the media box itself so portrait and wide sources cannot enlarge its layout or be cropped. Keep both orientations represented in the source-picker preview. Microphone selection uses device names in a compact selector. Shared enumeration does not make these two selection tasks visually interchangeable. ## Cast And Objects The brand mascot is named **Piika**. It keeps its own identity, separate from ordinary participants. Participant characters should leave room for that distinctive presence. The App badge and favicons derive from [one SVG](../../public/favicon.svg): a dark navy tile, warm white television outline and small gold sparkle. The unfilled television, antenna, feet and wink keep the proportions of `BrandMark`; do not give the badge a filled case or a separate screen. This palette stays fixed across system themes. Let the television fill the tile with optical padding so the surrounding tile does not make the mascot look undersized. At 16–24 px, strengthen the outline and open eye, and omit the decorative sparkle and tile rim. Keep the antenna, feet and wink at every size. Render each export at its target viewport; check actual 16/24/32/48 px on light and dark backgrounds rather than judging only an enlarged master. This follows [Microsoft's small-size silhouette guidance](https://learn.microsoft.com/en-us/windows/apps/design/iconography/app-icon-design) and [GNOME's detail guidance](https://developer.gnome.org/hig/guidelines/app-icons.html#detail). Inline brand marks keep the same wink identity and outline. Their standard gesture keeps the body and feet still: the face appears with both eyes open, followed by a short antenna sway, wink, then two gold sparks. The [shared brand animation](../../src/client/components/living/brand-mark.css) owns timing, sparkle origins and trajectories for the product, website and film closing card; looping presentations leave a quiet interval between gestures. Reduced motion shows the static wink. A held film ending continues the complete shared gesture, while the wordmark and address remain still. Their stroke inherits the local surface's text colour: dark ink on light surfaces, light ink on dark surfaces, including deliberately light panels within a dark page. Gold sparkles remain a brand accent in both forms. Do not assign black/white outlines independently at each call site. The badge identifies App packages, browser tabs and search results. In-page branding and the [README mark](../assets/brand-mark.svg) keep the unboxed outline; changing the badge does not restyle the UI, wordmark or illustrations. | Meaning | Representation | | --- | --- | | The person using the pictured action | Green pawn (`YOU` / `--you`), in every panel | | Somebody else | Blue pawn (`SKY`), or another distinct non-green illustration colour | | Host role | Gold crown above the head: rounded three-point outline, dark gold edge and a quiet lower rim; the standalone absent-Host symbol uses the same outline, unfilled and dashed | | Shared or watched media | Small television, including antenna, body and feet | | Browser application | Browser chrome around content; not a second design of television | | A captured window or display | Window title bar or display stand, with the shared media metaphor kept distinct | | A camera source | `camera` identifies the alternative picture source. Source/playback sound retains the speaker metaphor. | | Room text and reactions | `chat` opens the conversation, `danmaku` controls its optional picture overlay, `smile` identifies reactions and `send` submits the chosen content. These do not represent media transport or voice. | | Room voice | `microphone` / `microphoneOff` identify input state; `headphones` / `headphonesOff` pause or resume room-voice listening, while `speaker` / `speakerOff` mute one person locally. Input, playback and forwarding remain independent. Toggle names stay fixed. The microphone's green fill shows measured input after gain, not the configured gain percentage. Participant rows keep avatar, name and microphone aligned; the status symbol keeps an accessible name rather than a repeated on/off sentence. Choose supplementary explanation under [Guidance](#guidance). Measured speech fills that symbol and colours its outline green, without adding a connection-like dot. An enabled input alone is not speaking evidence. Opening the channel and opening a microphone stay separate actions. The Host has labelled open/close-room actions, with `stop` and danger styling for closing everyone's voice; a Viewer's `door` leaves only their own voice participation. Joined membership does not use a network-strength symbol. | | Attended desktop control | `mouse` identifies keyboard/mouse control, distinct from sharing or playback. Permission copy stays literal; an active control marker describes the grant, not media connectivity. | | Floating utility placement | `grip` marks a draggable title bar; corner handles resize the window. Closing a panel hides its presentation, not its room session. | | Server forwarding media | A server on the media path; opening a Site alone does not imply SFU | These are **identity/object colours**, not status. A green pawn remains green in a failed scene; a successful scene does not turn other people green. Real roster identities use the shared UUID colour function to generate stable hues, lightness and chroma outside the upholstery/crown's amber range, not a fixed list or the illustrative "you versus others" palette. The same identity keeps its colour across surfaces, themes and roster changes, without colour-assignment messages. Similar colours remain possible; names and self/Host marks identify people. Actor positions and identities remain stable from the first panel to the result. Room pawns, tooltip/status comics and introduction participants use a round head, half-oval body and two restrained eyes. Reuse the shared figure and face geometry in product illustrations so expressions stay inside the head as it scales. Larger scenes can add a small lean; small status panels may omit facial detail to keep the action clear. Compact comic pawns stay small and handless: use gaze, body lean and short hops to express their action. Keep their scale consistent with neighbouring scenes in the same family. The relevant door, credential or media object carries the explanation; people provide scale and a response. Leave space around them so the action is legible. Use the room-admission examples in `/__tooltip-preview` as a reference for compact proportions and detail, while giving other subjects their own appropriate scene. Large introduction illustrations may use small floating round hands to hold a prop. A held gamepad is a scene prop; a separate role crown identifies the host and moves with the body. Its gold is an identity colour, not a warning or achievement. The share control retains its cast icon. The cast represents friends sharing games, drawings and other screen content. Exploratory figures are not alternate participant identities. Keep the brand mascot distinct. Participant state belongs to the shared pawn: light headphones indicate joined room voice, resting around the neck when listening is paused. The microphone boom extends toward the mouth when open and folds up when muted, independently of listening. These voice marks follow room membership, listening and microphone state. The [media status rules](./media-status.md#projection-rules) locate each share's remote-control grants and link to the published 2.x markers. Measured speech may tint the open microphone boom and tip with `--live`, using the same level scale as the toolbar microphone fill. Keep the headband, body, name and layout stable; missing measurements leave the ordinary appearance. The couch has a back, seat, arms and feet. In the compact 3.0 presence strip, seats adapt to the available width; crowded rooms page through guests while keeping the local person visible. Reserve space for the shared paging controls instead of shrinking their targets or covering names. In short workspaces, scenery yields before conversation and pictures. Topology preserves each participant and actual parent edge at a readable scale; reduce spare spacing, then use a vertical outline when depth exceeds the available width. Couch upholstery uses the fixed warm orange/yellow `--couch` / `--couch-dark` palette. Never draw upholstery from the participant palette or randomize it by room. Keep automatic participant colours outside the upholstery's amber/orange range and the crown's gold; check the generated range against both objects in light and dark themes. Fixed illustration colours remain illustration tokens. The crown retains a bright gold fill with a dark gold edge. Figures and exterior upholstery use flat fills without outline strokes. Use differences in tone, spacing and name tags to keep people readable; retain only the few interior seams that clarify cushions. Apply this convention to the website and README cast as well as the product UI. ## Symbol Reference This reference applies to controls, status strips, comics, overlays, document titles, placeholders and public product demonstrations. A symbol keeps its basic meaning across those surfaces. Its nearby label identifies the affected object; it must not silently acquire a different measurement or permission. This reference describes functional meaning in context, not exclusive ownership of every shape. Decorative lettering, welcome ornaments and shared screen content do not become controls or measurements by using a familiar symbol. [Glyph](../../src/client/ui/icons.tsx) owns small-icon geometry and the accepted `GlyphName` union. Use it for controls and embedded comic symbols; reuse `MiniTv`, `Pawn`, `InviteLink` and the other shared scene objects for illustrations. Select existing meanings before adding an icon. A new meaning needs a row here and a rendered example in the existing catalogue. A typo or missing icon must fail type checking rather than silently render a warning triangle. | Meaning / 含义 | Symbols | Use and boundary | | --- | --- | --- | | Participants and room / 人与房间 | `users`, `couch`, `door` | People, shared room, room entry. Use the shared pawn for a person and `HostMark` for Host authority. | | Create / 创建 | `plus` | Create the named object. An empty room-code frame uses this action before the room exists; the resulting code replaces it in place. | | Shared screen / 共享画面 | `tv`, `MiniTv`, 📺 | Media or its sharing source. The TV beside the Host name identifies the source; the crown on a person identifies the role. | | Multiple-picture layout / 多画面布局 | `screenGrid`, `screenFocus` | Equal-weight tiles or one large picture with a thumbnail strip. These change the layout of existing players; fullscreen and subscriptions keep their own controls. | | Workspace navigation / 界面导航 | `sidebar` | Show or fold the surrounding workspace navigation. This does not start sharing or enter fullscreen. | | Start and choose a source / 分享与选源 | `cast`, `share`, `switchSource` | Start sharing, capture a screen, replace the current capture source respectively. A captured window keeps window chrome or a display stand. | | Capture source / 采集来源 | `window`, `display` | An application window or a whole display; these nouns remain distinct from the source-switch action. | | Invitation URL / 邀请链接 | `link`, `InviteLink`, `linkOff` | A URL and its disabled/revoked form. Keep the chain when copying or rejecting it. Copying is local; a send-to-chat scene is a separate action. | | Credential / 凭证 | `key`, password dots | Site passphrase or room password, identified by the field label. Room-code admission with a password shows both fields. | | Restriction / 受限 | `lock` | Restricted entry, concealed password or a setting fixed by availability; show the affected object. A lock never promises anonymity or secure media. | | Site and public entry / 站点与公开入口 | `globe` | Browser/Site entry or code-based public entry. It does not claim internet reachability. | | Saved destination / 收藏 | `star` | A saved site destination; saving does not grant device access or select the startup site. | | Startup selection | `play` | Open the named site when the App starts; visible copy distinguishes this preference from media playback. | | Connections / 连接 | `network`, `branch`, `signal`, `wifiOff`, `server` | Topology, branching, signaling, disconnected signaling and the named server. The header's three equal circles show only signaling state: three steady green for connected, two animated yellow for connecting/recovering, one red for a failed connection, all grey for offline. Active dots have equal brightness; this is neither a signal-strength measurement nor a media-quality claim. The television lamp owns sharing/viewing state. A server on a media path means forwarding; a Site backend or control-link server alone does not imply SFU. An invitation chain does not represent signaling. | | Playback / 播放 | `play`, `pause`, `stop` | Play/resume, pause, end. The control label states whether it affects local viewing or the Host's share. Stop is distinct from a paused or idle room. | | Audio / 声音 | `speaker`, `speakerOff` | Audio and mute/no audio, qualified by the source or local playback label. A source track's presence does not establish delivered sound. | | Size and viewing mode / 尺寸与观看模式 | `expand`, `contract`, `pip`, `pipExit`, `theater`, `theaterExit`, `fitContain`, `fitCover`, `fitStretch`, `rotatePicture` | Expand/restore, enter/leave picture in picture or theatre mode; contain, proportional crop and stretch change only local picture fit. Picture rotation switches the local landscape/portrait view. The same size symbol can accompany a resolution measurement. | | Local actions / 本地操作 | `copy`, `save`, `pencil`, `eye`, `eyeOff` | Copy, save, edit, reveal and conceal the named object. An action icon does not prove completion. | | Text appearance / 文字外观 | `opacity` | Opacity as a local display preference. | | Reply / 回复 | `reply` | Quote a message or identify its referenced message. The bent return arrow is distinct from `arrowLeft` page or panel navigation. | | Repeat and disclosure / 重试与展开 | `refresh`, `chevron`, `arrowRight`, `arrowLeft` | Repeat/refresh, expand/collapse, proceed/enter and return. Direction follows the control's action; no arrow alone establishes delivery. | | Transfer and upgrade / 传输与更新 | `arrowUp`, `arrowDown` | Outbound/inbound or upload/download, qualified by the adjacent label. An explicit update label may use the upward arrow for upgrade; neither arrow is a connection-quality rating. | | File activity / 文件活动 | `fileUp`, `fileDown`, `fileTransfer` | A person is sending a file, receiving one, or doing both. Combine both directions in one badge. | | Diagnostics / 诊断 | `cpu` | Technical diagnostics in the labelled diagnostic control; in metrics the same processor identifies encoding work. The surrounding control or measured field states the scope. | | Help / 帮助 | `help`, `book` | Open product help or read a guide, respectively; current build identity belongs with this low-frequency information, separate from media settings and App connection state. | | Settings / 设置 | `sliders`, `mountain`, `balance`, `frames` | Settings, preserve image detail, balanced preference, preserve frame rate. The frame-rate preference uses the same frames as the measured value. | | More / 更多 | `more` | Disclose additional actions; does not imply a separate settings surface. | | Progress and result / 进度与结果 | `loader`, `alert`, `check`, `x` | In progress, a problem, confirmation/positive result, cancellation/negative result. The status owner supplies severity; the shape alone cannot set it. | | Theme / 主题 | `sun`, `moon` | Light/dark appearance in theme controls. A moon in an idle-room scene means rest, with the idle scene providing that context. | | Room themes / 房间主题 | `gamepad`, `popcorn`, `clapperboard`, `heart` | Games, snacks, film and affection can identify room themes. | Metrics use [METRIC_PRESENTATION](../../src/client/components/living/metric-presentation.ts) in both summaries and details. Labels, units and stage-specific comics distinguish related values; views do not choose their own symbols. Topology hover and keyboard focus use neutral outlines; selection adds a heavier outline and text weight. Connection colours remain owned by route/readiness facts, so interacting with a node cannot look like a connection-state change. | Measurement / 指标 | Symbol | Boundary | | --- | --- | --- | | Frame rate / 帧率 | `frames` | Video frames per second, including capture/input frame rate. | | Packet loss / 丢包 | `packetLoss` | Missing network packets, including audio packets. | | Dropped frames / 丢帧 | `frameDrop` | Discarded video frames in the stated observation interval; never substitute packet loss or a cumulative total under the same interval label. | | Jitter / 抖动 | `jitter` | Variation in arrival timing, including audio jitter. | | Audio concealment / 音频补偿 | `audioRepair` | Missing audio concealed by the decoder. | | Rate / 速率 | `gauge`, `speaker` for audio rate | Bitrate or outgoing rate; the unit remains visible. | | Duration / 耗时 | `clock` | RTT, encode/decode time, freeze duration, playout or buffer time. The label and comic identify the measured stage. | | Freeze count / 卡顿次数 | `pause` | Count of interrupted video progress, distinguished by its metric label from intentional pause. | | Encoder and codec / 编码器与编码格式 | `cpu`, `puzzle` | Processing implementation and encoded format respectively. | Text-only surfaces retain the same meanings: | Surface | Standard and owner | | --- | --- | | Default names | The [published 2.x display-name helper](https://github.com/TNTcraftHIM/Piik/blob/eef70ffda0ffddce6aec109521ab70871e5b7c2f/src/client/lib/display-name.ts) owns 📺 for the sharing source and 👤 for a Viewer in visual mode. Preserve user-entered emoji names as data; never infer role from their characters. | | Input placeholders | Four slots represent the four-digit room code. Password dots mask a field; their illustrated count imposes no password length. Numeric samples reuse the actual field's `--mono` typeface and weight. Real inputs retain localized labels. | | Unknown values | `—` means unavailable/unknown, never zero or a healthy result. Keep exact values and units whenever known. | | Capability values | `✓` / `✗` answer the adjacent boolean capability, not whether an entire route or share succeeded. | | Shortened text | `…` means truncation. Preserve the full nickname/URL for reading and copying; never turn an exact value into a decorative code. | ### Feedback Composition Choose the illustration from the operation's scope and the caption from its actual state. Each feedback region has one principal illustration; a comic does not need a second mascot or decorative spinner. The header's brand mark remains navigation identity. Keep an actionable play symbol or an exact progress value when it helps the user proceed or understand the operation. Review the visible page as a composition, including open tooltips: give it one expressive focal illustration, rather than repeating the mascot in a heading, card and status. A small navigation mark may coexist with a contextual mascot; it is not another focal illustration. Remove decorative duplicates before changing the shared character or adding visibility state. This applies the [illustration guidance](https://atlassian.design/foundations/illustrations): support the task and use lighter icons or copy when another drawing adds noise. | Context | Illustration and literal content | Playful caption | | --- | --- | --- | | Page loading or site access check | The shared wink mascot with the actual loading operation; no room or media-path claim | None | | App room startup | The shared wink mascot with the actual operation | One secondary waiting caption | | Confirmed App readiness | Wink mascot with literal readiness in dedicated feedback or its tooltip; an inline summary beside an existing main brand uses a status icon. Neither implies an active media route. | None | | Source listing/start/switch, room joining, media setup/recovery, waiting for the Host | The corresponding comic with the current status; only the existing state owner can declare waiting | The same waiting pool while the wait exists | | Error, limitation, pause, ended room or required user action | The corresponding comic and clear reason/action; settled movement keeps that verdict readable | None | | Small controls, tooltips and inline results | Existing action/status icon and contextual guidance when needed; retain direct actions | None | The shared `LoadingStatus`, `StageOverlay` and `WaitingCaption` apply this composition. Routine loading does not opt into playful copy automatically. Do not infer waiting from a chosen drawing, mascot visibility or animation flag. Healthy playback stays visible during control reconnection; this rule does not create another overlay. An idle room awaiting a new share differs from a closed room. Keep the illustration, localized operation name and secondary caption consistent across registered languages. At compact player sizes, omit the optional caption before shrinking the comic or the actual status into illegibility. The existing visibility policy suspends hidden captions; viewport size does not become product state. ### Playful Copy Lifecycle Locale files own independent pools; the shared [selection and rotation owner](../../src/client/ui/text-rotation.ts) and its React adapter provide selection, timing and visibility. Keep one secondary playful line in an operational page's main content, with no duplicates in subpanels. Review the whole composition before adding another caption. Website/App welcomes select one entry immediately and keep it during that visit. Ordinary rerenders and metric updates do not draw another entry. Language changes use that language's pool, never a cross-language array index. Only App room startup and media waits rotate their secondary caption: show one immediately, then change it every fifteen visible seconds. Changes of the literal status within a continuous wait do not redraw the caption or reset its clock. Draw without replacement until the pool is exhausted. Hidden surfaces stop advancing; on return, keep the line for a full interval. Reduced motion retains a static line. Unmount or an ended wait retires timers and listeners. Empty pools omit the decoration; one-entry pools stay static. Real completion never waits for copy or animation. This cadence is a product choice, not measured progress. Each language maintains independent contextual pools without equal counts, paired translation keys or a fixed total. Contributors can add a locally natural entry without inventing equivalents in other languages. Keep operational labels in the ordinary translation contract. Actual status, error reasons, paused/ended states, required actions and slogans remain literal. Waiting decorations never invent steps, remaining time or success; they are excluded from live status announcements. Small controls retain concise labels and their existing motion. Graphic composition still follows its own contextual review; this copy policy does not require a mascot or a new tooltip everywhere. | Existing surface | Copy coverage | | --- | --- | | Website welcome, App launcher, sharing entry | One welcome per entry in the selected language. | | App room startup and media waiting | One slowly rotating caption according to [feedback composition](#feedback-composition). Ordinary page loading and access checks use literal status only. | | Browser tab | Room and Site identity, without playful title variants. | | Error, pause, ended state, required action, tooltip, small control | Keep the existing literal message and contextual graphic; no rotating caption is added. | ## Panel Composition Choose panels by what the explanation asks the reader to compare: | Composition | Use | | --- | --- | | Two panels | Default for action → effect or condition → outcome. The left supplies the action, credential or context; the right explains its consequence. Examples: copying an invitation, pausing playback, entering with a room code/password/invitation. | | One wide panel | One ongoing or settled scene without a before/after comparison, or a continuous spatial relationship that a divider would break. Examples: waiting for the Host, an unavailable source, a network round trip. Width alone is not a reason to use it. | Use the same composition and panel roles within a semantic family. Room-entry credential hints all use two panels: accepted credential on the left, access to the room on the right. The door scene explains admission; it does not claim that the user is changing privacy or has already joined. Vary the small gestures and useful props, not the reading order. Keep full-scene states and metric diagrams in one panel when splitting them would only duplicate the scene or interrupt its relationship. More than two panels require distinct steps of a real sequence that cannot be explained clearly in two; do not invent stages to fill extra panels. ## Semantic Colour And Shape App, website and documentation use the shared surface palette in `src/client/ui/palette.css`: a fresh pale canvas, warm white paper, blue-grey dark surfaces and clear text contrast. Source selection follows the same theme. Reserve green for cast identity and semantic state, not the general canvas or hover fill. Light mode uses blue for actions, focus and selected controls; dark mode keeps navy surfaces with soft-white selection highlights and navy text. Primary actions such as starting a share, joining and confirming retain their blue fill and white foreground in both themes; theme selection must not erase their identity. The active remote-input outline uses that same fixed blue; suspended input uses the muted state. Use the shared foreground/background pairs for both themes. Selected choices, including sliding segments and language shortcuts, use the shared `--control-selected` / `--control-selected-ink` pair and accent outline. Unselected hover uses `--control-hover`. Subtle surface highlights and shadows add depth without changing control geometry or press feedback. Gold upholstery, illustration and badge artwork retain their own palettes. The site and personal controls sit on the frame, the room is lit, and conversation beside the pictures sits on the room's aside surface. The App terminal keeps its user's terminal background and palette. A compact mascot/title block identifies the App and build; state, addresses and available shortcut keys form separate reading levels. Use terminal-theme blue for links and actions, neutral rules, and the same success/wait/failure colour meanings. Preserve monochrome output and compact layouts without changing their behavior. Use the semantic theme tokens in `src/client/ui/palette.css`. Status colours keep their meaning independently of control selection and focus. The shared `comic-presentation.ts` maps meanings to those tokens for tooltip outlines, carets, result panels and verdict marks. Do not choose independent hex colours or animation rules inside an individual scene. | Meaning | Token / code tone | Panel and symbol | | --- | --- | --- | | Explanation, preference, ordinary action, intentional closure or unknown state | Neutral ink / `off` | Neutral panels; illustrate the action/object without a success stamp | | Confirmed completion or delivered media | Green `--live-ink` for text/status icons, `--live` for artwork / `live` | Neutral before, green result; check or completed object | | Still usable with a limitation, unavailable optional capability, or intentional media pause | Amber `--warn` / `warn` | Neutral before, amber result; limit, pause, lock or unavailable mark on the affected part | | Confirmed failed or blocked action | Red `--danger-ink` text, `--danger` marks / `bad` | Neutral before, readable red result; cross, broken path or other explicit failure mark | | Work in progress or awaiting an action/frame | Blue `--busy` / `busy` | Neutral before, blue current/result panel; connection, progress or play symbol | Recovery retains amber because service is interrupted while work continues. Waiting for a Host and unknown observations remain neutral. A control's prospective action is not proof of success: opening details, switching theme, adjusting volume or offering P2P stays neutral. Actual copy feedback can change that same hint to green or red, using the existing operation result. Review meaning at the call site. A current admission badge shows the credential accepted by [room access](https://github.com/TNTcraftHIM/Piik/blob/main/docs/standards/rooms-access.md). The private-mode control instead shows restricted code-only entry with a closed door; its meaning must not change to an invitation action merely because no room password is set. This room-entry rule is separate from media-route privacy. Password input is not proof of admission; copying writes to the local clipboard and does not send to a friend. An audio track's presence does not establish a locked control or delivery to another device. Only the result carries the semantic accent; a single panel carries the current condition. Tooltip outline and caret use that same tone in every registered language. Neutral uses theme ink, not literal white. Keep paper fills quiet; do not tint the whole scene green/yellow/red. Meaning must also survive without colour through objects, symbols and accessible localized names. Never show celebration or a completed live path as the verdict of a failed or unavailable operation. A missing optional feature is not a failed media path. A rejected PiP request is failure; lack of PiP support is a limitation. ## Motion Grammar Interaction timing uses the following shared roles in `button.css`, derived from [Carbon's duration scale](https://carbondesignsystem.com/elements/motion/overview/#duration). Choose by purpose and distance, following [Fluent's duration and choreography guidance](https://fluent2.microsoft.design/motion). These assignments are Piik's design choices; one duration does not fit every effect. | Role | Duration | Use | | --- | --- | --- | | `--motion-press` | 70ms | Immediate pressed feedback | | `--motion-feedback` | 110ms | Control colour and opacity changes | | `--motion-control` | 150ms | Small movements, selection indicators and tooltip position/exit | | `--motion-surface` | 240ms | Floating-surface entrance, expansion and the complete glyph drawing | | `--motion-emphasis` | 400ms | Brief result emphasis, message-location highlight and reaction impact | Keep the existing shared spring for Piik's control lift. Selection indicators move within their track without overshooting its edges; opacity/colour and continuous rotation retain their appropriate standard easing. Dependent visibility or unmount timing follows the same role. JavaScript animation consumers read the rendered surface's CSS token through `animation.ts`, including reduced motion; they do not copy its number. System or explicit reduced motion sets these roles to zero while existing final-pose rules retain readable state. Hover intent, long-press recognition, reading holds, reaction delivery/expiry and ongoing comic or idle-character cycles keep their existing semantic owners. Those lifetimes are not short interaction transitions. Workspace motion follows four rules: - Navigation and companion panes enter and leave along their attached edge, using the surface duration in both directions. Reversing a toggle continues from the current position. Keep the pane visible through its exit; closed panes stop accepting pointer input immediately. - Media remains live and opaque. Settle its layout once per pane change; move the pane above it without resizing the player every frame. Personal controls and the room toolbar do not participate in the pane's motion. - Only newly appended messages in the visible, latest conversation may settle upward briefly, and only while following the conversation. Initial history, pagination, room changes and reading earlier messages remain still. Motion never owns scroll position or input focus. - Ordinary controls retain their shared feedback; avoid animating every icon, roster row or content update. Reduced motion settles immediately using the same CSS timing owner, without delayed hidden states. The brand mascot keeps its body still: antenna twitch, wink, then two sparkles. Web/App and website identity marks share `site/assets/brand-motion.css`. An entrance draws the shell once and starts the gesture only after the last stroke completes; loading repeats the gesture without redrawing the shell. Page readiness never waits for this decoration. | Presentation | Rule | | --- | --- | | Action demonstration (`demo`) | Explain an action with a short gesture and a readable hold; repeat while displayed | | Work actually continuing (`progress`) | Repeat a gentle connection/recovery beat while that state exists | | Settled success, failure, limitation, pause or idle (`still`) | Keep the result readable while a related character or object moves; gestures loop without re-running the actual operation or changing the verdict | Demonstrations and progress share the existing 3.2-second comic beat. The main action belongs in its first half, followed by a readable hold; small internal staggering is allowed. Keep one focal gesture at a time; other characters can answer it with a delayed reaction. A small action and a readable pause can carry the whole explanation; extra movement needs a purpose beyond making the scene busier. An explanatory slider describes purpose and available range, not its live numeric value. Decorative sparkle must support the pictured action, never fake current success. The shared comic presentation owns repetition for tooltips, overlays and standalone results; scenes inherit its repeat count. Previews use the same rule, without their own animation overrides. Closing guidance pauses and unmounts its scene. The panel entrance plays once; its characters and objects keep moving while shown. Settled scenes repeat their quiet subject gesture; real progress repeats for its state's lifetime. Reduced motion uses each scene's **explicit informative static pose**. Disabling animation alone is insufficient if the base SVG hides the result or shows a misleading starting pose. Settled facts stay visible during decorative movement. Static styling is scoped to its SVG; one still tooltip must not freeze another progress scene. Action demonstrations play forward, hold their result, then replay; a direct cut back to the opening pose is acceptable. Seamless loops are optional. Do not add a reverse action, extra bounce or fade just to match the first and last frames. Natural blinking, hopping and peeking can return to rest as part of the gesture. Keep movement brief and give the explanation quiet time. Every comic surface, including overlays and error pages, needs visible motion in its subject: a paused scene's steam rises, a loose cable sways, or packets advance toward a bottleneck. Whole-scene entrance, blinking or sparkle alone does not satisfy this. Settled result marks stay readable during that movement. Changing the comic's meaning starts its animation afresh; changing a caption, language or numeric value alone does not. The preview's reduced-motion setting uses the same explicit final poses as the system setting. Check scenes in isolation, including settled overrides and quick re-entry while a tooltip is exiting, so another mounted scene cannot hide missing CSS or a finished animation. Reduced-motion rules must outrank settled-motion overrides. Also check the actual controls together, in every relevant property combination. Judge motion at its displayed size: a changing transform on a tiny figure can still look frozen. The default scene catalogue does not cover a Pill's settled override or missing preview states by itself. The tooltip panel itself uses the same restrained entrance/exit for every tone. Replay belongs to opening/hovering/focusing the whole control, not just its SVG. Ordinary controls keep their icons visible during hover and keyboard focus; surface colour, lift, focus and press feedback carry the interaction. Reserve icon drawing/replay for primary actions such as starting a share or joining a room, and for explicit state-entry feedback. The whole control owns the trigger. Stroke and solid drawings share one total duration and easing; stroke count must not lengthen the animation. [Path direction](https://www.w3.org/TR/SVG2/paths.html#PathDirectionality) and any grouped stroke phases belong to the shared icon definition: draw a check in one left-to-right stroke, build an object before its details, and reveal an off-state slash last. Related directions and on/off variants follow the same grammar; equivalent parts may draw together. Keep ordinary icons still rather than choreographing every path. Solid multi-part symbols enter as one shape. Re-entering a primary control during its drawing continues that drawing; a completed drawing can replay. Disabled controls and passive status icons retain their informative pose; busy indicators retain their progress beat. Do not add a per-scene timer or another interaction/state owner. Outside status comics, the brand mascot and participant figures may blink or glance occasionally; a pictured screen can guide the Host's gaze. Keep eye gestures and small body leans brief, separated by long pauses and offset between people. A participant's UUID seeds the cadence; align its phase to wall time in every view, including later mounts and return from background. Names, roster order and the observer's role do not reseed it. Device clock skew bounds cross-device precision; cosmetic motion adds no signaling or media state. They express personality independently of connection feedback. Follow the system's reduced-motion preference, keeping a natural, open-eyed pose when enabled; participant gestures have no separate product playback control. Status comics still follow the table above. Introduction artwork is separate from product status. Website/README scenes may repeat a short action with a generous pause. Keep broad movement to one or two focal elements; small participant gestures follow the quiet cadence above. Provide a pause or hide control for automatic loops, and a useful static pose for reduced motion. Product-state comics still follow the table above. Entry screens may carry one quiet, original welcome line in the selected language. Selection follows the [shared lifecycle](#playful-copy-lifecycle). The line never replaces an action, error, loading message or connection progress. Keep it on one line, apart from the actions; primary controls take precedence when space is tight. A clipped line may pan once to reveal its end; fitting text stays still. Pause with the copy's existing visibility owner. Reduced motion keeps the text stationary and manually scrollable instead of discarding the hidden words. ## Ownership And Incremental Review - Existing status/operation facts outrank the scene default. Reused `warning` artwork can represent a warning or a confirmed failure; pass the actual tone. - `comic-presentation.ts` owns defaults and semantic tokens; `Frame`, `RedX`, `rmBlock`, `Comic` and `HintComic` apply the shared grammar. Scenes own only their cast, causal illustration and final pose. `Tooltip` owns interaction and placement. Do not duplicate these rules in each scene or page. - Keep the semantic kind and tone in all languages; localized text changes expression, not severity. Symbol-only controls retain accessible names. - For each changed scene inspect its start, transition and settled pose in both themes, reduced motion and narrow layouts. Compare success, failure, limitation and neutral neighbours in the catalogue. Code-level tests do not establish visual clarity. Judge the actual tooltip size, not only an enlarged SVG. Improve staging, gaze and timing before enlarging figures or adding props and effects; remove additions that do not help the meaning or the gesture. - Update this owner when accepting a new convention. Product documents link here instead of copying the palette, cast or animation table. ## Interaction References [Radix colour roles](https://www.radix-ui.com/colors/docs/palette-composition/understanding-the-scale) separate surfaces, interaction states, borders and text instead of tinting every layer with the accent. Native [text selection](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select) and [pointer capture](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) support held controls without disabling selection across the whole page. [Fluent tabs](https://fluent2.microsoft.design/components/web/react/core/tablist/usage), [switches](https://fluent2.microsoft.design/components/web/react/core/switch/usage) and [sliders](https://fluent2.microsoft.design/components/web/react/core/slider/usage) distinguish content navigation, immediate binary settings and numeric adjustment. [WAI-ARIA tabs](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/) defines the shared selection, focus and keyboard contract. [GNOME popovers](https://developer.gnome.org/hig/patterns/containers/popovers.html) and [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html) distinguish brief contextual adjustments from tools alongside the main view. Piik's floating/detached tool choice applies that distinction to watching and remote input; [Document Picture-in-Picture](https://developer.chrome.com/docs/web-platform/document-picture-in-picture) supplies the optional native window and its lifetime boundary. [Carbon status indicators](https://v10.carbondesignsystem.com/patterns/status-indicator-pattern/) supports combining semantic colour with shape and symbols; [Carbon motion](https://carbondesignsystem.com/elements/motion/overview/) distinguishes functional feedback from occasional expressive movement. [Web Animations start time](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime) provides the native timeline alignment used by participant gestures. [Carbon tooltip guidance](https://carbondesignsystem.com/components/tooltip/usage/) supports concise, contextual help where it adds information; required instructions stay visible beside the action. [W3C hover/focus guidance](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html) supports panels remaining reachable for reading and being dismissible without moving the pointer away. [Carbon loading guidance](https://carbondesignsystem.com/components/loading/usage/) supports avoiding competing indicators and keeping required user actions distinct from passive loading. Piik's selected waiting captions and fifteen-second cadence are its own presentation choice.