Files
WebSpeak-client-for-TeamSpeak/docs/examples/ts3-classic-console/skin.css
T
OddTurtleHead 25b0a01ae7 feat(skins): bundle the Classic 4.1.16 skin with the client
Add Classic (community.ts3-classic-console) as a bundled skin next to KAAK: example sources under docs/examples/ts3-classic-console, a reproducible skin:classic:build script that also packs chrome.json and writes identical archives to docs/examples/ and web/public/skins/, a built-in catalog entry and bundled package URL, and admin registry protection against replace, disable and delete. Classic stays outside the official consent-free skin list, so visitors without instance consent still see only Day, Night and ILLUSIA.
2026-12-04 13:43:49 +08:00

2328 lines
89 KiB
CSS

/* TS3 Legacy Console — community visual homage to the classic TeamSpeak 3
light desktop client. v3 open skin (schemaVersion 3).
Layout and copy only; the host owns all business logic. Every selector is
anchored on :root (the skin root) or a public data-ws-part hook. Shell parts
are targeted through their authored className; trusted host widgets are
restyled through their stable data-ws-part hooks, scoped under a shell class
so the declaration outranks the host's own scoped stylesheet. No package
JavaScript runs and no SVG/raster assets ship: every glyph is drawn with CSS
gradients, borders and pseudo-elements. */
:root {
--skin-window: #ffffff;
--skin-face: #ececec;
--skin-face-deep: #e2e2e2;
--skin-face-light: #fafafa;
--skin-border: #c0c0c0;
--skin-border-strong: #8a8a8a;
--skin-border-soft: #dcdcdc;
--skin-text: #111111;
--skin-muted: #555555;
--skin-faint: #777777;
--skin-blue: #316ac5;
--skin-blue-deep: #0b3d91;
--skin-blue-soft: #dbe7f7;
--skin-blue-hover: #eaf2fd;
--skin-icon: #4c6f9c;
--skin-member: #3f6fb5;
--skin-member-self: #1f4f96;
--skin-talk: #1e9bff;
--skin-talk-glow: rgba(30, 155, 255, .75);
--skin-cyan: #008080;
--skin-green: #0a7a2f;
--skin-red: #a11b1b;
--skin-amber: #8a6d1f;
--skin-selected: #316ac5;
--skin-selected-text: #ffffff;
--skin-watermark: #bfd3ea;
--skin-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
--skin-mono: Consolas, "Courier New", ui-monospace, monospace;
--skin-recovery-accent: #4a7ab8;
--skin-recovery-background: #f6f6f6;
--skin-recovery-foreground: #1a1a1a;
/* #808080 keeps >=3:1 against the #f6f6f6 capsule background; #8f8f8f sat
just under the host's contrast floor and would fall back to the greenish
host default border instead of the Classic grey one. */
--skin-recovery-border: #808080;
--skin-recovery-radius: 2px;
--skin-recovery-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
--skin-recovery-size: small;
/* 4.1.12: official Classic toolbar tokens for the host-owned recovery
buttons (mode: "toolbar", appearance: "icon"), aligned to the existing
microphone button. Every --skin-recovery-toolbar-* token is paired with an
equal --skin-host-toolbar-* fallback. `surface` is the opaque colour used
only for the contrast check; the Classic top bar is a #fcfcfc→#e9e9e9
gradient, so it is a near-flat #f3f3f3 rather than the example's #f4f7fb.
These tokens never shrink or repaint the full-text capsule fallback. */
--skin-recovery-toolbar-background: transparent;
--skin-host-toolbar-background: transparent;
--skin-recovery-toolbar-foreground: #1a1a1a;
--skin-host-toolbar-foreground: #1a1a1a;
--skin-recovery-toolbar-border: transparent;
--skin-host-toolbar-border: transparent;
--skin-recovery-toolbar-hover-background: #eaf2fd;
--skin-host-toolbar-hover-background: #eaf2fd;
--skin-recovery-toolbar-hover-border: #b8cfe8;
--skin-host-toolbar-hover-border: #b8cfe8;
--skin-recovery-toolbar-radius: 2px;
--skin-host-toolbar-radius: 2px;
--skin-recovery-toolbar-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
--skin-host-toolbar-font: Tahoma, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
--skin-recovery-toolbar-font-size: 11px;
--skin-host-toolbar-font-size: 11px;
--skin-recovery-toolbar-padding: 0 4px;
--skin-host-toolbar-padding: 0 4px;
--skin-recovery-toolbar-height: 22px;
--skin-host-toolbar-height: 22px;
--skin-recovery-toolbar-gap: 1px;
--skin-host-toolbar-gap: 1px;
--skin-recovery-toolbar-icon-size: 16px;
--skin-host-toolbar-icon-size: 16px;
--skin-recovery-toolbar-shadow: none;
--skin-host-toolbar-shadow: none;
--skin-recovery-toolbar-surface: #f3f3f3;
--skin-host-toolbar-surface: #f3f3f3;
}
/* ---------- Base ---------- */
:root {
color-scheme: light;
font-family: var(--skin-font);
font-size: 12px;
line-height: 1.45;
color: var(--skin-text);
background-color: var(--skin-face);
}
:root ::selection { background: #b6d4f5; color: #000000; }
:root ::placeholder { color: #808080; opacity: 1; }
:root :focus-visible { outline: 1px dotted #1a1a1a; outline-offset: 1px; }
:root ::-webkit-scrollbar { width: 15px; height: 15px; }
:root ::-webkit-scrollbar-track { background: #f0f0f0; border-left: 1px solid #d7d7d7; }
:root ::-webkit-scrollbar-thumb { background: #cdcdcd; border: 3px solid #f0f0f0; }
:root ::-webkit-scrollbar-thumb:hover { background: #b3b3b3; }
:root * { scrollbar-color: #cdcdcd #f0f0f0; scrollbar-width: thin; }
:root a { color: #0a4fa2; }
/* ---------- Voice shell ---------- */
:root .ts-app {
display: flex;
flex-direction: column;
width: 100%;
height: 100vh;
overflow: hidden;
/* 4.1.6: keep the skin's own z-indexes (toolbar menus at 50/60) inside the
surface so WebSpeak dialogs opened over it (audio settings) cover them. */
isolation: isolate;
background: var(--skin-window);
}
/* ---------- Compact toolbar ---------- */
:root .ts-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
row-gap: 2px;
flex: none;
/* 4.1.12: the recovery entry is now two host-owned 22px toolbar icons, so the
Classic top bar returns to its compact ~30px height instead of being
raised to fit a 44px capsule. flex-wrap stays on for narrow screens. */
height: auto;
min-height: 30px;
padding: 2px 6px;
background: linear-gradient(180deg, #fcfcfc, #e9e9e9);
border-bottom: 1px solid #bdbdbd;
}
:root .ts-toolgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; row-gap: 2px; min-width: 0; }
:root .ts-toolgroup-end { margin-left: auto; justify-content: flex-end; }
:root .ts-toolbar-spacer { flex: 1 1 auto; min-width: 4px; }
:root .ts-tool-sep {
width: 1px;
height: 17px;
margin: 0 3px;
background: #c4c4c4;
border-right: 1px solid #ffffff;
}
:root .ts-toolbar-edition {
flex: none;
padding: 0 4px;
color: #6a6a6a;
font-size: 10px;
letter-spacing: .04em;
white-space: nowrap;
}
:root .ts-toolbar .ws-plugin-host-widget { display: inline-flex; align-items: center; min-width: 0; }
:root .ts-toolbar button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
height: 22px;
min-height: 22px;
padding: 0 4px;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #1a1a1a;
font: inherit;
font-size: 11px;
cursor: pointer;
}
:root .ts-toolbar button:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root .ts-toolbar button[aria-pressed="true"],
:root .ts-toolbar button[aria-expanded="true"] { background: var(--skin-blue-soft); border-color: #9db8d8; }
:root .ts-toolbar button:disabled { color: #a0a0a0; cursor: default; }
:root .ts-toolbar button:disabled:hover { background: transparent; border-color: transparent; }
:root .ts-toolbar svg { width: 16px; height: 16px; }
/* Home toolbar brand lockup */
:root .ts-toolbar-brand { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
:root .ts-toolbar-mark {
position: relative;
flex: none;
width: 18px;
height: 18px;
border: 1px solid #275a9e;
border-radius: 3px;
background: linear-gradient(180deg, #4c7fc4, #275a9e);
}
:root .ts-toolbar-mark::before {
content: "";
position: absolute;
left: 4px;
top: 5px;
width: 10px;
height: 8px;
background: #ffffff;
opacity: .92;
clip-path: polygon(0 0, 100% 0, 100% 68%, 42% 68%, 24% 100%, 24% 68%, 0 68%);
}
:root .ts-toolbar-note {
min-width: 0;
overflow: hidden;
color: #333333;
font-size: 11px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Connection controls: icon-only classic buttons (share / favorite / exit). */
:root .ts-tool-connection .ws-plugin-connection-controls { display: inline-flex; align-items: center; gap: 1px; }
:root .ts-tool-connection button > span { display: none; }
/* Audio dock folded into the toolbar: hide the marketing copy, keep controls.
The host floats .desktop-audio-dock to the member panel's bottom-left at
>=741px (position:absolute; left/right/bottom:18px; z-index:6). These
overrides outrank that scoped rule and return the dock to toolbar flow, so
the status bar can never cover the microphone. Full/suffix part selectors
keep working if the host ever namespaces the part name. */
:root .ts-toolbar :is([data-ws-part="voice.audio-dock"], [data-ws-part$="voice.audio-dock"]) {
position: relative;
inset: auto;
z-index: auto;
display: inline-flex;
align-items: center;
gap: 0;
min-height: 0;
margin: 0;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
}
:root .ts-toolbar .desktop-audio-dock-copy { display: none; }
:root .ts-toolbar .desktop-audio-dock-actions { display: inline-flex; align-items: center; gap: 1px; }
:root .ts-toolbar .dock-hover-control { position: relative; display: inline-flex; align-items: center; z-index: 40; }
:root .ts-toolbar :is([data-ws-part="voice.audio-dock.microphone"], [data-ws-part$="voice.audio-dock.microphone"]) > button,
:root .ts-toolbar :is([data-ws-part="voice.audio-dock.output"], [data-ws-part$="voice.audio-dock.output"]) > button { width: 24px; padding: 0; }
:root .ts-toolbar .dock-audio-button.muted { color: var(--skin-red); }
:root .ts-toolbar .dock-audio-button.accompaniment-toggle.active { color: var(--skin-blue-deep); background: var(--skin-blue-soft); border-color: #9db8d8; }
/* The dock now sits at the top, so its hover panels open downward into the
workspace instead of upward off-screen. They are left-anchored to their
trigger (the host centers them, which would clip the leftmost mic panel at
the viewport edge). Offsets stay small: the panels are protected controls
and must remain on screen. The extra top offset + top padding keep the
heading clear of the host's native title tooltip (measured: it renders
~16px below the cursor and is ~25px tall, i.e. it ends ~55px below the
toolbar top while the button is hovered). */
:root .ts-toolbar :is([data-ws-part="voice.audio-dock.microphone-panel"], [data-ws-part$="voice.audio-dock.microphone-panel"]),
:root .ts-toolbar :is([data-ws-part="voice.audio-dock.output-panel"], [data-ws-part$="voice.audio-dock.output-panel"]) {
top: 40px;
right: auto;
bottom: auto;
left: 0;
z-index: 60;
padding: 20px 10px 8px;
border: 1px solid #808080;
border-radius: 0;
background: #ffffff;
box-shadow: 2px 2px 6px #00000033;
color: #111111;
font-size: 11px;
transform: translateY(6px);
}
:root .ts-toolbar .dock-hover-control:hover .dock-hover-panel,
:root .ts-toolbar .dock-hover-control:focus-within .dock-hover-panel { transform: translateY(0); }
/* Hover bridge and arrow flip to the panel's top edge, above the trigger.
The bridge spans the full 18px gap between button bottom and panel top. */
:root .ts-toolbar .dock-hover-panel::before { top: -18px; bottom: auto; height: 18px; }
:root .ts-toolbar .dock-hover-panel::after {
top: -6px;
right: auto;
bottom: auto;
left: 12px;
border: 0;
border-top: 1px solid #808080;
border-left: 1px solid #808080;
background: #ffffff;
}
/* Screen share start: collapse the host's 44px capsule to a toolbar icon. */
:root .ts-tool-share .skin-runtime-screen-share-start {
min-width: 24px;
min-height: 22px;
height: 22px;
gap: 0;
padding: 0 4px;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #1a1a1a;
}
:root .ts-tool-share .skin-runtime-screen-share-start > span { display: none; }
:root .ts-tool-share .skin-runtime-screen-share-start:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root .ts-tool-share .skin-runtime-screen-share-start:disabled { opacity: .5; }
/* 4.1.4: the host draws the same "share" (arrow out of tray) glyph for both
Copy invite (connection controls) and Start screen share, so the toolbar
showed two identical up-arrows. Invite keeps the share arrow; screen share
gets a CSS-drawn monitor glyph (pure borders, no image). The button, its
aria-label and its click handler are the host's and stay untouched. */
:root .ts-tool-share .skin-runtime-screen-share-start { position: relative; width: 24px; }
:root .ts-tool-share .skin-runtime-screen-share-start > svg { display: none; }
:root .ts-tool-share .skin-runtime-screen-share-start::before {
content: "";
position: absolute;
top: 4px;
left: 50%;
width: 14px;
height: 9px;
margin-left: -7px;
border: 1.5px solid currentColor;
border-radius: 1.5px;
box-sizing: border-box;
pointer-events: none;
}
:root .ts-tool-share .skin-runtime-screen-share-start::after {
content: "";
position: absolute;
top: 13px;
left: 50%;
width: 8px;
height: 4px;
margin-left: -4px;
border-bottom: 1.5px solid currentColor;
box-sizing: border-box;
background: linear-gradient(currentColor, currentColor) center top / 1.5px 100% no-repeat;
pointer-events: none;
}
/* Whisper strip stays compact and only renders when targets exist. */
:root .ts-tool-whisper:empty { display: none; }
:root .ts-toolbar [data-ws-part="voice.whisper-strip"] {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 0;
border: 0;
background: transparent;
}
:root .ts-toolbar [data-ws-part="voice.whisper-strip"] > :first-child > span { display: none; }
:root .ts-toolbar [data-ws-part="voice.whisper-strip"] > :first-child > strong {
display: inline-flex;
align-items: center;
gap: 2px;
color: #444444;
font-size: 10px;
font-weight: 400;
white-space: nowrap;
}
:root .ts-toolbar [data-ws-part="voice.whisper-strip"] button { height: 20px; min-height: 20px; padding: 0 4px; font-size: 10px; }
/* Mobile audio toggles (host renders these instead of the dock on phones).
Reset the host's card chrome so the strip fits the 30px toolbar. */
:root .ts-tool-audio .mobile-voice-controls {
display: inline-flex;
align-items: center;
gap: 1px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
}
:root .ts-tool-audio .mobile-voice-toggle { flex: none; width: 26px; min-height: 22px; padding: 0; border-radius: 2px; }
:root .ts-tool-audio .mobile-voice-toggle > span { display: none; }
:root .ts-tool-audio .mobile-voice-toggle.muted { color: var(--skin-red); }
/* 4.1.12: non-interactive span reserving the geometry of the host-owned
toolbar recovery buttons (使用内置皮肤 / 应用库), declared with
mode: "toolbar" + appearance: "icon" and anchored per page.
This is a geometry guard, not a measured fit. appearance: "icon" makes the
host lay out two 24px buttons (width max(24px, icon-size + 8px)) with a 1px
gap and zero padding, so the slot reserves 24 + 1 + 24 plus a little slack
and stays 22px tall to share the microphone button's row. The host button
surface is transparent, so nothing is painted here. Narrow widths may still
wrap the whole bar, but the slot never claims a full row. */
:root .ts-toolbar .ts-recovery-slot,
:root .ts-toolbar [data-ws-part="skin.voice.ts3-voice-console.part-ts-recovery-slot"],
:root .ts-toolbar [data-ws-part="skin.home.ts3-home-console.part-ts-recovery-slot"] {
display: inline-block;
flex: none;
width: 56px;
max-width: 100%;
height: 22px;
min-height: 22px;
margin: 0 2px 0 0;
/* The host paints recovery in a top-layer over this geometry-only
anchor, so the empty slot must not intercept clicks. Any interactive
descendant (if the host ever mounts one inside the slot) must still
receive pointer events — they do not inherit this none unless left
unset. */
pointer-events: none;
}
:root .ts-toolbar .ts-recovery-slot :is(a, button),
:root .ts-toolbar [data-ws-part="skin.voice.ts3-voice-console.part-ts-recovery-slot"] :is(a, button),
:root .ts-toolbar [data-ws-part="skin.home.ts3-home-console.part-ts-recovery-slot"] :is(a, button) {
pointer-events: auto;
}
/* 4.1.14: official admin console entry via host home.social-links
(communityLinks: false). The host widget is wrapped by the skin runtime:
div.ws-plugin-host-widget.ts-tool-admin
> nav[data-ws-part="home.social-links"]
> a[href="/admin"] (title/aria-label = host adminConsole)
`.ts-tool-admin > a` does not match that tree (the direct child is the
nav). Style the real <a href="/admin">, keep it pointer-events: auto,
and print the host label so the control is unmistakable. On the home
toolbar the widget is the first control (top-left). The "连接控制台"
brand remains a non-link page title beside it, not a fake /admin button.
Voice keeps the widget in the trailing cluster, with the same labeled
hit target. */
:root .ts-toolbar .ts-tool-admin,
:root .ts-toolbar [data-ws-part="home.social-links"] {
display: inline-flex;
align-items: center;
justify-content: center;
flex: none;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
background: transparent;
pointer-events: auto;
position: relative;
z-index: 1;
}
:root .ts-toolbar .ts-tool-admin a[href="/admin"],
:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"] {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
box-sizing: border-box;
min-width: 24px;
width: auto;
height: 22px;
min-height: 22px;
padding: 0 6px;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #1a1a1a;
text-decoration: none;
cursor: pointer;
pointer-events: auto;
white-space: nowrap;
}
:root .ts-toolbar .ts-tool-admin a[href="/admin"]::after,
:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]::after {
content: attr(aria-label);
font-size: 11px;
font-weight: 700;
line-height: 1;
white-space: nowrap;
}
:root .ts-toolbar .ts-tool-admin a[href="/admin"]:hover,
:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]:hover,
:root .ts-toolbar .ts-tool-admin a[href="/admin"]:focus-visible,
:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"]:focus-visible {
background: var(--skin-blue-hover);
border-color: #b8cfe8;
}
:root .ts-toolbar .ts-tool-admin svg,
:root .ts-toolbar [data-ws-part="home.social-links"] svg {
display: block;
flex: none;
width: 16px;
height: 16px;
pointer-events: none;
}
/* Language / skin switchers */
:root [data-ws-part="language.trigger"],
:root [data-ws-part="skin.trigger"] {
height: 22px;
min-height: 22px;
padding: 0 5px;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #1a1a1a;
font-size: 11px;
}
:root [data-ws-part="language.trigger"]:hover,
:root [data-ws-part="skin.trigger"]:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root [data-ws-part="language.menu"],
:root [data-ws-part="skin.menu"] {
min-width: 150px;
padding: 2px;
border: 1px solid #808080;
border-radius: 0;
background: #ffffff;
box-shadow: 2px 2px 4px #00000033;
font-size: 11px;
}
:root [data-ws-part="language.option"],
:root [data-ws-part="skin.option"] { padding: 3px 8px; border-radius: 0; }
:root [data-ws-part="language.option"]:hover,
:root [data-ws-part="skin.option"]:hover { background: var(--skin-blue); color: #ffffff; }
/* ---------- Workspace: tree | right ---------- */
:root .ts-workspace {
display: grid;
grid-template-columns: 248px minmax(0, 1fr);
flex: 1;
min-height: 0;
background: #ffffff;
}
:root .ts-tree {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
border-right: 1px solid #b0b0b0;
background: #ffffff;
}
:root .ts-pane-caption {
flex: none;
padding: 3px 7px;
background: linear-gradient(180deg, #f6f6f6, #e9e9e9);
border-bottom: 1px solid #d0d0d0;
color: #4a4a4a;
font-size: 10px;
font-weight: 700;
letter-spacing: .05em;
}
/* Server header (host widget) */
:root .ts-server-header { flex: none; }
/* The host namespaces the outer part hook ("…part-ts-server-header"), so the
old $="part-server-header" suffix never matched and the padding never
applied. Target the host header class instead: one classic server-root row
with the icon + name on the left, the search toggle on the right and the
search box spanning a second row. */
:root .ts-server-header .ws-voice-server-header {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
column-gap: 4px;
padding: 3px 4px 3px 6px;
border-bottom: 1px solid #dcdcdc;
background: linear-gradient(180deg, #ffffff, #f3f6fa);
}
/* The switcher moved to the toolbar (4.1.3). Hide the copy nested inside the
host server header so only one switcher is visible per page; the suffix
selector keeps working if the host namespaces the part name. */
:root .ts-server-header :is([data-ws-part="voice.server-switcher"], [data-ws-part$="voice.server-switcher"]) { display: none; }
/* Tags and the divider are host chrome the classic root row does not show. */
:root .ts-server-header .ws-voice-server-tags,
:root .ts-server-header .ws-voice-server-divider { display: none; }
:root .ts-server-header .ws-voice-server-title-line {
grid-column: 1;
grid-row: 1;
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
}
/* 14x14 server block drawn in CSS: a rounded frame over a pale blue face with
two rack lines (gradient layers, no image, no SVG). */
:root .ts-server-header .ws-voice-server-title-line::before {
content: "";
flex: none;
width: 14px;
height: 14px;
box-sizing: border-box;
border: 1px solid #4c6f9c;
border-radius: 2px;
background-origin: padding-box;
background:
linear-gradient(#4c6f9c, #4c6f9c) 2px 3px / 8px 1px no-repeat,
linear-gradient(#4c6f9c, #4c6f9c) 2px 8px / 8px 1px no-repeat,
linear-gradient(180deg, #e3eefb, #9fbde3);
}
:root .ts-server-header .ws-voice-server-name {
min-width: 0;
overflow: hidden;
color: #111111;
font-size: 12px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
:root .ts-server-header .ws-voice-server-meta-line {
grid-column: 2;
grid-row: 1;
display: flex;
align-items: center;
justify-content: flex-end;
min-width: 0;
}
:root .ts-server-header .ws-voice-server-search-box {
position: relative;
grid-column: 1 / -1;
grid-row: 2;
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
margin: 3px 0 0;
}
:root .ts-server-header .ws-voice-server-search-box > .sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
:root .ts-server-header .ws-voice-server-search-box > svg { flex: none; width: 13px; height: 13px; color: #555555; }
:root .ts-server-header button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #333333;
}
:root .ts-server-header button:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root .ts-server-header input {
flex: 1;
min-width: 0;
height: 20px;
border: 1px solid #7f9db9;
border-radius: 0;
background: #ffffff;
box-shadow: inset 1px 1px 0 #e8e8e8;
font: inherit;
font-size: 11px;
}
/* 4.1.10: the host draws its own clear button, so hide the browser's native
search ✕/decoration (the host button itself is left alone). */
:root .ts-server-header input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; width: 0; height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
:root .ts-server-header input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
:root .ts-server-header input[type="search"] { -webkit-appearance: none; appearance: none; }
/* Server switcher: a classic icon button in the toolbar; its menu opens
downward, left-anchored to the trigger, and is capped to the viewport. */
:root .ts-toolbar .ts-tool-server { position: relative; display: inline-flex; align-items: center; z-index: 50; }
:root .ts-toolbar [data-ws-part="voice.server-switcher"] { display: inline-flex; align-items: center; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"] {
width: 24px;
height: 22px;
min-height: 22px;
padding: 0;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #333333;
}
:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"]:hover { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"][aria-expanded="true"] { background: var(--skin-blue-soft); border-color: #9db8d8; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.trigger"] svg { width: 16px; height: 16px; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.menu"] {
position: absolute;
top: calc(100% + 2px);
right: auto;
bottom: auto;
left: 0;
z-index: 60;
min-width: 200px;
max-width: calc(100vw - 16px);
max-height: calc(100vh - 60px);
overflow-x: hidden;
overflow-y: auto;
padding: 2px;
border: 1px solid #808080;
border-radius: 0;
background: #ffffff;
box-shadow: 2px 2px 4px #00000033;
font-size: 11px;
}
:root .ts-toolbar [data-ws-part="voice.server-switcher.item"] {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
min-width: 0;
padding: 3px 6px;
border: 0;
border-radius: 0;
background: transparent;
color: #1a1a1a;
font: inherit;
font-size: 11px;
text-align: left;
cursor: pointer;
}
:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:hover:not(:disabled) { background: var(--skin-blue); color: #ffffff; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:disabled { color: #1a1a1a; cursor: default; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.icon"] {
display: inline-flex;
align-items: center;
justify-content: center;
flex: none;
width: 16px;
height: 16px;
overflow: hidden;
border: 1px solid #9db8d8;
border-radius: 2px;
background: linear-gradient(180deg, #e3eefb, #bcd3ee);
color: #1b3357;
font-size: 9px;
font-weight: 700;
}
:root .ts-toolbar [data-ws-part="voice.server-switcher.icon"] img { width: 100%; height: 100%; object-fit: contain; background: #eef3f8; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.label"] { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.current"] { flex: none; width: 12px; height: 12px; color: var(--skin-blue-deep); }
:root .ts-toolbar [data-ws-part="voice.server-switcher.item"]:hover:not(:disabled) [data-ws-part="voice.server-switcher.current"] { color: #ffffff; }
:root .ts-toolbar [data-ws-part="voice.server-switcher.empty"] { margin: 0; padding: 6px 8px; color: #6a6a6a; font-size: 11px; line-height: 1.5; }
/* ---------- Channel tree (members live only here) ---------- */
:root .ts-channel-tree { display: flex; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
:root [data-ws-part="voice.channel-tree.list"] {
flex: 1;
min-width: 0;
/* Bottom clearance so the editor-mode recovery pill never hides tree rows. */
padding: 3px 0 48px;
background: #ffffff;
font-size: 14px;
}
:root .ts-channel-tree ul { margin: 0; padding: 0; list-style: none; }
:root [data-ws-part="voice.channel-tree.node"] { display: block; }
:root [data-ws-part="voice.channel-tree.line"] {
display: flex;
align-items: center;
min-height: 25px;
padding-right: 4px;
padding-left: calc(var(--channel-depth, 0) * 15px);
}
/* Leaf channels have no expander; pad them so icons align with sibling rows. */
:root [data-ws-part="voice.channel-tree.line"]:not(:has(> [data-ws-part="voice.channel-tree.expander"])) {
padding-left: calc(var(--channel-depth, 0) * 15px + 18px);
}
:root [data-ws-part="voice.channel-tree.expander"] {
display: inline-flex;
align-items: center;
justify-content: center;
flex: none;
width: 18px;
height: 24px;
padding: 0;
border: 0;
background: transparent;
color: #6a6a6a;
cursor: pointer;
}
:root [data-ws-part="voice.channel-tree.expander"] svg { display: none; }
:root [data-ws-part="voice.channel-tree.expander"]::before {
content: "";
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 6px solid #7a7a7a;
}
:root [data-ws-part="voice.channel-tree.expander"][aria-expanded="true"]::before {
border-top: 6px solid #7a7a7a;
border-right: 5px solid transparent;
border-bottom: 0;
border-left: 5px solid transparent;
}
:root [data-ws-part="voice.channel-tree.row"] {
position: relative;
display: flex;
align-items: center;
gap: 4px;
flex: 1;
min-width: 0;
height: 24px;
padding: 0 4px;
border: 0;
border-radius: 0;
background: transparent;
color: #1a1a1a;
font: inherit;
font-size: 14px;
text-align: left;
cursor: default;
}
:root [data-ws-part="voice.channel-tree.row"]:hover { background: var(--skin-blue-hover); }
:root [data-ws-part="voice.channel-tree.row"][data-drag-over="true"] { background: var(--skin-blue-soft); box-shadow: inset 0 0 0 1px #9db8d8; }
/* Hide the host's channel SVG; draw a classic speech bubble in CSS instead.
Password-protected channels keep a real lock glyph (re-shown below). */
:root [data-ws-part="voice.channel-tree.icon"] { display: none; }
:root [data-ws-part="voice.channel-tree.icon"][data-password-protected="true"] {
display: inline-flex;
flex: none;
width: 16px;
height: 16px;
color: var(--skin-amber);
}
:root [data-ws-part="voice.channel-tree.row"]:not([data-spacer]):not([data-password-protected])::before {
content: "";
flex: none;
width: 18px;
height: 16px;
background:
linear-gradient(#7d9cc0, #7d9cc0) 5px 4px / 8px 1px no-repeat,
linear-gradient(#7d9cc0, #7d9cc0) 5px 7px / 8px 1px no-repeat,
linear-gradient(180deg, #e3eefb, #bcd3ee);
clip-path: polygon(0 0, 100% 0, 100% 75%, 40% 75%, 22% 100%, 22% 75%, 0 75%);
}
:root [data-ws-part="voice.channel-tree.name"] {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
:root [data-ws-part="voice.channel-tree.count"] { flex: none; margin-left: auto; color: #7a7a7a; font-size: 11px; }
:root [data-ws-part="voice.channel-tree.join-hint"] { display: none; }
:root [data-ws-part="voice.channel-tree.node"][data-current="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.name"] {
color: var(--skin-blue-deep);
font-weight: 700;
}
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"] {
background: var(--skin-selected);
color: var(--skin-selected-text);
}
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.name"],
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.count"] {
color: var(--skin-selected-text);
}
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"]:hover { background: var(--skin-selected); }
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.row"]:not([data-spacer]):not([data-password-protected])::before {
background:
linear-gradient(#ffffff, #ffffff) 5px 4px / 8px 1px no-repeat,
linear-gradient(#ffffff, #ffffff) 5px 7px / 8px 1px no-repeat,
linear-gradient(180deg, #cfe0f5, #9db8d8);
}
:root [data-ws-part="voice.channel-tree.node"][data-selected="true"] > [data-ws-part="voice.channel-tree.line"] [data-ws-part="voice.channel-tree.icon"][data-password-protected="true"] { color: #ffe9a8; }
/* 4.1.10: the default layout keeps a channel's members and sub-channels in a
branch the expander shows/hides. */
:root .ts-channel-tree [data-ws-part="voice.channel-tree.node"][aria-expanded="false"] > [data-ws-part="voice.channel-tree.branch"] { display: none; }
/* Member rows: blue silhouette, never a big initial-letter disc. */
:root [data-ws-part="voice.channel-tree.member"] {
display: flex;
align-items: center;
gap: 4px;
min-height: 23px;
padding: 0 4px 0 calc(var(--channel-depth, 0) * 15px + 26px);
color: #1a1a1a;
font-size: 13px;
}
:root [data-ws-part="voice.channel-tree.member"][data-dragging="true"] { opacity: .5; }
/* The default layout sets no --channel-depth (and no data-self), so indent the
member rows by the host's aria-level (channel depth + 2) instead; the
--channel-depth padding above stays as the fallback. */
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="2"] { padding-left: 26px; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="3"] { padding-left: 41px; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="4"] { padding-left: 56px; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="5"] { padding-left: 71px; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="6"] { padding-left: 86px; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][aria-level="7"] { padding-left: 101px; }
:root [data-ws-part="voice.channel-tree.avatar"] {
position: relative;
display: inline-block;
flex: none;
width: 17px;
height: 17px;
overflow: visible;
background: transparent !important;
background-image: none !important;
color: transparent;
font-size: 0 !important;
line-height: 0;
}
:root [data-ws-part="voice.channel-tree.avatar"]::before {
content: "";
position: absolute;
left: 5px;
top: 1px;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--skin-member);
transition: background-color .08s linear;
}
:root [data-ws-part="voice.channel-tree.avatar"]::after {
content: "";
position: absolute;
left: 1px;
top: 9px;
width: 15px;
height: 7px;
border-radius: 7px 7px 2px 2px;
background: var(--skin-member);
transition: background-color .08s linear;
}
:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.avatar"]::before,
:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.avatar"]::after,
:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.avatar"]::before,
:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.avatar"]::after { background: var(--skin-member-self); }
:root [data-ws-part="voice.channel-tree.member-name"] {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
:root [data-ws-part="voice.channel-tree.member"][data-self="true"] [data-ws-part="voice.channel-tree.member-name"],
:root [data-ws-part="voice.channel-tree.member"][draggable="false"] [data-ws-part="voice.channel-tree.member-name"] { font-weight: 700; }
/* The default layout marks self by draggable="false" instead of data-self.
Speaking turns the silhouette bright blue; these rules sit after the self
colour so self speaks in the same blue. A muted row never counts as
speaking, even if the host leaves data-speaking="true" on it. */
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"]::before,
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"]::after,
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"].is-speaking::before,
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"].is-speaking::after { background: var(--skin-talk); }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-speaking="true"]:not(:has([data-ws-part="voice.channel-tree.member-muted"])) [data-ws-part="voice.channel-tree.avatar"] { filter: drop-shadow(0 0 2px var(--skin-talk-glow)); }
/* Away: the host's "·" marker plus a dimmed name. */
:root [data-ws-part="voice.channel-tree.member-away"] { flex: none; margin-left: 2px; color: #8a8a8a; font-weight: 700; }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-away="true"] [data-ws-part="voice.channel-tree.member-name"] { color: #7a7a7a; }
/* The host's hardcoded "你" self badge is redundant (bold name + deeper
silhouette already mark self) and not locale-neutral; collapse it. */
:root .ts-channel-tree .ws-voice-channel-member-self { display: none; }
:root .ts-channel-tree .ws-voice-channel-member-mic { flex: none; margin-left: auto; color: #8a8a8a; }
:root [data-ws-part="voice.channel-tree.member-muted"] { flex: none; margin-left: auto; color: var(--skin-red); }
:root .ts-channel-tree .ws-voice-channel-member-mic + [data-ws-part="voice.channel-tree.member-muted"] { margin-left: 2px; }
:root [data-ws-part="voice.channel-tree.member-screen-share"] {
display: inline-grid;
place-items: center;
flex: none;
width: 15px;
height: 15px;
margin-left: 2px;
border-radius: 2px;
background: var(--skin-green);
color: #ffffff;
}
:root [data-ws-part="voice.channel-tree.member-screen-share"] svg { width: 11px; height: 11px; }
/* The avatar colour already says "speaking"; drop the extra host marker. */
:root [data-ws-part="voice.channel-tree.member-speaking"] { display: none; }
:root [data-ws-part="voice.channel-tree.empty"] { padding: 12px 8px; color: #777777; font-size: 11px; }
/* 4.1.9: thin separators between channel rows */
:root [data-ws-part="voice.channel-tree.line"] { border-top: 1px solid #ececec; }
/* The very first channel row of the tree has no line above it. */
:root [data-ws-part="voice.channel-tree.list"] > [data-ws-part="voice.channel-tree.node"]:first-child > [data-ws-part="voice.channel-tree.line"] { border-top-color: transparent; }
/* Close the list with a matching line under its last top-level channel. */
:root [data-ws-part="voice.channel-tree.list"] > [data-ws-part="voice.channel-tree.node"]:last-child { border-bottom: 1px solid #ececec; }
/* ---------- Right column: info / banner / log ---------- */
:root .ts-right {
display: grid;
grid-template-rows: minmax(0, max-content) auto minmax(160px, 1fr);
min-width: 0;
min-height: 0;
background: #ffffff;
}
/* Info pane: a classic "selected item details" facts block. */
:root .ts-info {
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
padding: 7px 10px 8px;
border-bottom: 1px solid #d4d4d4;
background: linear-gradient(180deg, #ffffff, #fbfbfb);
}
:root .ts-info-heading { display: flex; align-items: center; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #e4e4e4; }
:root .ts-info-icon {
position: relative;
flex: none;
width: 15px;
height: 15px;
border-radius: 50%;
background: var(--skin-blue);
}
:root .ts-info-icon::before { content: ""; position: absolute; left: 6.5px; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: #ffffff; }
:root .ts-info-icon::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 2px; height: 6px; background: #ffffff; }
:root .ts-info-title {
margin: 0;
min-width: 0;
overflow: hidden;
color: #1b3357;
font-size: 12px;
font-weight: 700;
letter-spacing: .03em;
text-overflow: ellipsis;
white-space: nowrap;
}
:root .ts-info-facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px 18px;
max-width: 620px;
margin-top: 6px;
}
:root .ts-fact-row { display: flex; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.6; }
:root .ts-fact-label { flex: none; min-width: 66px; color: #333333; font-weight: 700; }
:root .ts-fact-label::after { content: ":"; }
:root .ts-fact-value {
min-width: 0;
overflow: hidden;
color: #111111;
font-weight: 400;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Text watermark: the host product name "WebSpeak" from skin.messages.watermark,
faint light blue, decorative only (aria-hidden, no pointer events). */
:root .ts-watermark {
position: absolute;
top: 6px;
right: 14px;
display: block;
max-width: 45%;
overflow: hidden;
color: var(--skin-watermark);
font-family: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
font-size: 18px;
font-weight: 700;
font-style: italic;
line-height: 1;
letter-spacing: .02em;
white-space: nowrap;
text-overflow: clip;
pointer-events: none;
user-select: none;
}
/* Screen share player only mounts while viewing; collapse the empty wrapper. */
:root .ts-screen-share { display: block; min-width: 0; max-width: 100%; }
:root .ts-screen-share:empty { display: none; }
:root .ts-screen-share [data-ws-part="voice.screen-player.stage"] { max-height: 220px; border-radius: 0; }
:root .ts-screen-share [data-ws-part="voice.screen-player.video"] { max-width: 100%; max-height: 220px; object-fit: contain; background: #000000; }
/* Server banner (host hides it when there is no welcome data). */
/* 4.1.12: show the whole server banner image (no crop). The host still
omits the widget when there is no welcome/banner data.
4.1.13: letterbox background is white (was #eef3f8). */
:root .ts-server-banner { min-width: 0; overflow: visible; }
:root .ts-server-banner:empty { display: none; }
:root [data-ws-part="voice.server-banner.image"],
:root .ts-server-banner .ws-voice-server-banner-image {
display: block;
width: 100%;
height: auto;
max-width: 100%;
max-height: min(360px, 40vh);
object-fit: contain;
object-position: center;
background: #ffffff;
border-radius: 0;
}
:root [data-ws-part="voice.server-banner.welcome"] {
padding: 6px 10px;
border-bottom: 1px solid #dcdcdc;
background: #f6f6f6;
color: #222222;
font-size: 11px;
}
:root [data-ws-part="voice.server-banner.title"] { font-size: 11px; font-weight: 700; }
:root [data-ws-part="voice.server-banner.body"] { color: #555555; font-size: 11px; }
/* ---------- Bottom SERVER LOG / chat ---------- */
:root .ts-log {
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
border-top: 1px solid #c0c0c0;
background: #ffffff;
}
:root .ts-log-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex: none;
height: 19px;
padding: 0 6px;
background: linear-gradient(180deg, #f3f3f3, #e7e7e7);
border-bottom: 1px solid #c8c8c8;
color: #3d3d3d;
font-size: 10px;
font-weight: 700;
letter-spacing: .03em;
}
:root .ts-log-title { white-space: nowrap; }
:root .ts-log-notice { min-width: 0; overflow: hidden; color: #6f6f6f; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
/* The host Vue stylesheet caps .message-list and pins .message-composer;
these !important declarations reclaim the full log height for the chat. */
:root .ts-log .ws-plugin-host-widget,
:root .ts-log [data-ws-plugin-widget="voice.chat-panel"],
:root .ts-log [data-ws-part="voice.chat"] {
display: flex !important;
flex-direction: column !important;
flex: 1 1 auto !important;
position: relative !important;
width: 100%;
height: 100% !important;
min-height: 0 !important;
max-height: none !important;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: #ffffff;
}
:root [data-ws-part="voice.chat.tabs"] {
display: flex;
align-items: flex-end;
gap: 1px;
flex: none;
height: 22px;
padding: 0 4px;
border-bottom: 1px solid #b8b8b8;
background: linear-gradient(180deg, #f7f7f7, #e8e8e8);
}
:root [data-ws-part="voice.chat.tab"] {
display: inline-flex;
align-items: center;
gap: 3px;
height: 19px;
min-height: 19px;
min-width: 0;
padding: 0 7px;
border: 1px solid #c2c2c2;
border-bottom: 0;
border-radius: 2px 2px 0 0;
background: #ececec;
color: #333333;
font: inherit;
font-size: 11px;
white-space: nowrap;
cursor: pointer;
}
:root [data-ws-part="voice.chat.tab"] svg { width: 12px; height: 12px; color: var(--skin-icon); }
:root [data-ws-part="voice.chat.tab"][data-ws-state="active"] { background: #ffffff; color: #111111; font-weight: 700; border-color: #a8a8a8; }
:root [data-ws-part="voice.chat.heading"] { display: none; }
:root [data-ws-part="voice.chat.messages"] {
flex: 1 1 auto !important;
min-height: 0 !important;
max-height: none !important;
height: auto !important;
gap: 1px;
padding: 3px 6px;
overflow: auto;
background: #ffffff;
font-size: 11px;
}
:root [data-ws-part="voice.chat.event"] { display: flex; gap: 5px; padding: 1px 0; border: 0; background: transparent; color: var(--skin-green); font-size: 11px; }
:root [data-ws-part="voice.chat.event"] time { color: var(--skin-cyan); font-family: var(--skin-mono); font-size: 10px; }
:root [data-ws-part="voice.chat.event"] span { color: var(--skin-green); }
:root [data-ws-part="voice.chat.message"] { display: block; padding: 1px 0; border: 0; background: transparent; }
:root [data-ws-part="voice.chat.message-avatar"] { display: none; }
:root [data-ws-part="voice.chat.message-body"] { display: block; min-width: 0; }
:root [data-ws-part="voice.chat.message-body"] > div:first-child { display: inline; margin: 0; color: #333333; font-size: 10px; }
:root [data-ws-part="voice.chat.message-body"] > div:first-child strong { color: #111111; font-weight: 700; }
:root [data-ws-part="voice.chat.message-body"] time { margin-left: 4px; color: var(--skin-cyan); font-family: var(--skin-mono); font-size: 10px; }
:root [data-ws-part="voice.chat.message-bubble"] {
display: inline;
margin-left: 4px;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: #1a1a1a;
font-size: 11px;
line-height: 1.5;
overflow-wrap: anywhere;
}
:root [data-ws-part="voice.chat.message"][data-ws-state="mine"] { align-self: stretch; max-width: none; }
:root [data-ws-part="voice.chat.message"][data-ws-state="mine"] [data-ws-part="voice.chat.message-bubble"] { background: transparent; color: #0b3d91; }
:root [data-ws-part="voice.chat.empty"] { padding: 14px 8px; color: #6a6a6a; font-size: 11px; }
:root [data-ws-part="voice.chat.composer"] {
display: flex !important;
align-items: center;
gap: 3px;
flex: 0 0 auto !important;
position: relative !important;
top: auto !important;
right: auto !important;
bottom: auto !important;
left: auto !important;
z-index: 1;
width: auto;
min-height: 0 !important;
height: auto !important;
margin: 0;
padding: 3px 5px;
border-top: 1px solid #c0c0c0;
border-radius: 0;
background: linear-gradient(180deg, #f4f4f4, #e9e9e9);
}
:root [data-ws-part="voice.chat.composer"] input {
flex: 1;
min-width: 0;
height: 21px;
padding: 0 5px;
border: 1px solid #7f9db9;
border-radius: 0;
background: #ffffff;
box-shadow: inset 1px 1px 0 #e6e6e6;
color: #111111;
font: inherit;
font-size: 11px;
}
:root [data-ws-part="voice.chat.composer"] button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 21px;
padding: 0;
border: 1px solid #9a9a9a;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e3e3e3);
color: #2b4f7d;
cursor: pointer;
}
:root [data-ws-part="voice.chat.composer"] button:disabled { color: #a0a0a0; cursor: default; }
:root [data-ws-part="voice.chat.status"] { padding: 2px 6px; border-top: 1px solid #e0e0e0; background: #f7f7f7; color: #555555; font-size: 10px; }
/* ---------- Status bar ---------- */
:root .ts-statusbar {
position: relative;
z-index: 30;
display: flex;
align-items: center;
gap: 6px;
flex: none;
height: 23px;
overflow: visible;
padding: 0 6px;
border-top: 1px solid #a8a8a8;
background: linear-gradient(180deg, #f4f4f4, #e6e6e6);
color: #333333;
font-size: 11px;
}
:root .ts-status-led { flex: none; width: 7px; height: 7px; border: 1px solid #2c6b3c; border-radius: 50%; background: #5dbb63; }
:root .ts-status-text { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; color: #2b2b2b; text-overflow: ellipsis; white-space: nowrap; }
:root .ts-status-name { font-weight: 700; }
/* 4.1.6: status bar follows the real connection state (LED + text). */
/* 4.1.8: amber only while connecting, so disconnected/failed stay red. */
:root .ts-status-led[data-state="connecting"] { border-color: #8a5a12; background: #e6a23c; }
:root .ts-status-led[data-state="disconnected"],
:root .ts-status-led[data-state="failed"] { border-color: #7a2020; background: #d65a5a; }
/* 4.1.7: home LED turns red only while WebSpeak reports a failed/dropped connection. */
:root .ts-home:has([data-ws-part="voice.connection-status"][data-ws-state="failed"]) .ts-status-led { border-color: #7a2020; background: #d65a5a; }
:root .ts-status-state { font-weight: 700; }
:root .ts-status-server { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
:root .ts-status-spacer { flex: 1 1 auto; min-width: 4px; }
:root .ts-status-edition { flex: none; color: #6a6a6a; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
:root .ts-statusbar [data-ws-plugin-widget="voice.disconnect-control"] { flex: none; }
:root .ts-statusbar .ws-plugin-disconnect-control {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
height: 19px;
min-height: 19px;
padding: 0 5px;
border: 1px solid #9a9a9a;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e3e3e3);
color: #7a1a1a;
font: inherit;
font-size: 10px;
cursor: pointer;
}
:root .ts-statusbar .ws-plugin-disconnect-control > span { display: none; }
:root .ts-statusbar .ws-plugin-disconnect-control svg { width: 13px; height: 13px; }
:root .ts-statusbar .ws-plugin-disconnect-control:hover { background: linear-gradient(180deg, #fdf3f3, #f0dcdc); border-color: #b08a8a; }
/* ---------- Home surface: classic connect console ---------- */
:root .ts-home {
display: flex;
flex-direction: column;
min-height: 100vh;
background: var(--skin-face);
}
:root .ts-home-body {
display: grid;
grid-template-columns: minmax(0, 480px);
justify-content: center;
align-items: start;
align-content: center;
flex: 1;
width: 100%;
margin: 0 auto;
padding: 20px 14px;
}
/* Connect window with a classic group box. */
:root .ts-home-main { min-width: 0; }
:root .ts-connect-window { border: 1px solid #8a8a8a; background: #ffffff; box-shadow: 2px 2px 8px #00000026; }
:root .ts-window-titlebar {
display: flex;
align-items: center;
gap: 6px;
height: 26px;
padding: 0 8px;
border-bottom: 1px solid #b8b8b8;
background: linear-gradient(180deg, #f4f6f9, #dfe5ee);
}
:root .ts-window-icon {
position: relative;
flex: none;
width: 16px;
height: 16px;
border: 1px solid #275a9e;
border-radius: 3px;
background: linear-gradient(180deg, #4c7fc4, #275a9e);
}
:root .ts-window-icon::before {
content: "";
position: absolute;
left: 3px;
top: 4px;
width: 9px;
height: 7px;
background: #ffffff;
opacity: .92;
clip-path: polygon(0 0, 100% 0, 100% 68%, 42% 68%, 24% 100%, 24% 68%, 0 68%);
}
:root .ts-window-title { min-width: 0; overflow: hidden; color: #1b3357; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
:root .ts-window-edition { margin-left: auto; flex: none; color: #5b6b80; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
:root .ts-window-body { padding: 12px 14px 14px; }
:root .ts-home-lead { margin: 0 0 10px; color: #555555; font-size: 11px; line-height: 1.55; }
:root .ts-group-box {
min-width: 0;
margin: 0;
padding: 10px 12px 12px;
border: 1px solid #b4b4b4;
border-radius: 3px;
background: #ffffff;
box-shadow: 1px 1px 0 #ffffff inset;
}
:root .ts-group-legend {
padding: 0 5px;
color: #1b3357;
font-size: 11px;
font-weight: 700;
letter-spacing: .03em;
}
:root .ts-connection-form { display: block; width: 100%; min-width: 0; }
/* Host join form fields, restyled to classic geometry. */
:root [data-ws-part="home.form"] { display: flex; flex-direction: column; gap: 5px; }
:root [data-ws-part="home.server-target"] { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 6px; }
:root [data-ws-part="home.field-label"] { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; color: #333333; font-size: 11px; }
:root [data-ws-part="home.field"] {
display: flex;
align-items: center;
gap: 3px;
height: 22px;
padding: 0 3px;
border: 1px solid #7f9db9;
border-radius: 0;
background: #ffffff;
box-shadow: inset 1px 1px 0 #e6e6e6;
}
:root [data-ws-part="home.field"] svg { flex: none; width: 13px; height: 13px; color: #6a6a6a; }
:root [data-ws-part="home.field"] input,
:root [data-ws-part="home.field"] select {
flex: 1;
min-width: 0;
height: 19px;
padding: 0 2px;
border: 0;
border-radius: 0;
background: transparent;
color: #111111;
font: inherit;
font-size: 12px;
}
:root [data-ws-part="home.server-history"] { padding: 4px; border: 1px solid #d2d2d2; border-radius: 0; background: #f8f8f8; }
:root [data-ws-part="home.server-history.group"] > span { display: block; margin-bottom: 3px; color: #666666; font-size: 10px; }
:root [data-ws-part="home.server-history.select"] {
flex: 1;
overflow: hidden;
padding: 2px 4px;
border: 0;
border-radius: 0;
background: transparent;
color: #164a8a;
font: inherit;
font-size: 11px;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
:root [data-ws-part="home.server-history.item"]:hover { background: var(--skin-blue-hover); }
:root [data-ws-part="home.server-history.favorite-toggle"] { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: #9a7b1f; }
:root [data-ws-part="home.favorite-toggle"] {
align-self: flex-start;
padding: 3px 7px;
border: 1px solid #9a9a9a;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e6e6e6);
color: #1b3357;
font: inherit;
font-size: 11px;
}
:root [data-ws-part="home.identity"] summary { padding: 3px 0; color: #1b4c8a; font-size: 11px; cursor: pointer; }
:root [data-ws-part="home.identity-actions"] button {
padding: 3px 7px;
border: 1px solid #9a9a9a;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e6e6e6);
color: #222222;
font: inherit;
font-size: 11px;
}
:root [data-ws-part="home.relay-choice"] { padding: 4px 6px; border: 1px solid #d2d2d2; border-radius: 0; background: #f8f8f8; font-size: 11px; }
:root [data-ws-part="home.connect"] {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
height: 26px;
margin-top: 6px;
padding: 0 16px;
border: 1px solid #7d93b5;
border-radius: 2px;
background: linear-gradient(180deg, #f3f7fd, #dbe7f7);
color: #123a70;
font: inherit;
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
:root [data-ws-part="home.connect"]:hover { background: linear-gradient(180deg, #fbfdff, #cfe0f5); }
:root [data-ws-part="home.connect"]:disabled { color: #8a8a8a; border-color: #c0c0c0; background: linear-gradient(180deg, #f7f7f7, #ececec); cursor: default; }
:root .ts-home-connection { display: block; margin: 8px 0 0; min-height: 0; color: #1b4c8a; font-size: 11px; }
:root .ts-home-connection:empty { display: none; }
:root [data-ws-part="home.connection-status"] { margin: 0; color: #1b4c8a; font-size: 11px; }
:root .ts-home-notice {
margin: 10px 0 0;
padding: 5px 7px;
border: 1px solid #d9c27a;
background: #fffbe8;
color: #5a4a12;
font-size: 11px;
line-height: 1.5;
}
/* ---------- 4.1.5: Voice status inside SERVER INFORMATION ----------
WebSpeak's own voice.performance-panel now lives under the facts. Its
trigger reads like one more "Label: value" fact row (host label + live
transport). Clicking it expands the host panel in normal flow (no popover)
with the host's live metrics (sampled by WebSpeak every 2 s while connected)
and its real "Measure now" button. WebSpeak renders the panel only while it
is open and closes it on an outside click or Esc; a skin cannot pin it. */
:root .ts-info-voice {
max-width: 620px;
margin-top: 3px;
padding-top: 3px;
border-top: 1px solid #ececec;
}
:root .ts-info-voice [data-ws-plugin-widget="voice.performance-panel"] { display: block; min-width: 0; }
:root .ts-info-voice [data-ws-part="voice.performance"] {
position: static !important;
z-index: auto !important;
display: block;
min-width: 0;
overflow: visible !important;
}
:root .ts-info-voice .performance-trigger {
display: flex !important;
align-items: center;
justify-content: flex-start !important;
gap: 6px;
width: 100% !important;
height: auto !important;
min-height: 20px !important;
padding: 0 2px !important;
border: 1px solid transparent;
border-radius: 2px;
background: transparent;
color: #111111;
font: inherit;
font-size: 12px;
line-height: 1.6;
text-align: left;
cursor: pointer;
transition: none;
}
:root .ts-info-voice .performance-trigger:hover,
:root .ts-info-voice .performance-trigger[aria-expanded="true"] { background: var(--skin-blue-hover); border-color: #b8cfe8; }
:root .ts-info-voice .performance-trigger > svg:first-child { display: none; }
:root .ts-info-voice .performance-trigger-label {
display: inline !important;
flex: none;
min-width: 66px;
color: #333333;
font-weight: 700;
}
:root .ts-info-voice .performance-trigger-label::after { content: ":"; }
:root .ts-info-voice .performance-trigger small {
display: inline !important;
min-width: 0;
overflow: hidden;
color: #111111;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
:root .ts-info-voice .performance-trigger > svg:last-child {
display: inline-block !important;
flex: none;
width: 11px;
height: 11px;
margin-left: auto;
color: #555555;
}
:root .ts-info-voice .performance-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
:root .ts-info-voice [data-ws-part="voice.performance.panel"] {
position: static !important;
inset: auto !important;
z-index: auto !important;
box-sizing: border-box;
width: auto !important;
max-width: none !important;
max-height: none !important;
margin: 3px 0 0;
overflow: visible !important;
transform: none !important;
transition: none !important;
animation: none !important;
padding: 5px 7px 6px;
border: 1px solid #c8c8c8;
border-radius: 0;
background: #ffffff;
box-shadow: inset 1px 1px 0 #f4f4f4;
color: #111111;
font-size: 11px;
line-height: 1.5;
}
:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
padding-bottom: 3px;
border-bottom: 1px solid #e4e4e4;
}
:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header strong {
display: block;
color: #1b3357;
font-size: 11px;
font-weight: 700;
letter-spacing: .03em;
}
:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header small {
display: block;
max-width: none;
margin-top: 1px;
color: #6a6a6a;
font-size: 10px;
line-height: 1.4;
}
:root .ts-info-voice .performance-refresh {
display: grid;
place-items: center;
flex: 0 0 22px;
width: 22px;
height: 20px;
padding: 0;
border: 1px solid #a0a0a0;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e4e4e4);
color: #1a1a1a;
cursor: pointer;
}
:root .ts-info-voice .performance-refresh:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #7aa3d4; }
:root .ts-info-voice .performance-refresh:disabled { cursor: wait; opacity: .55; }
:root .ts-info-voice .performance-refresh svg { width: 13px; height: 13px; }
/* Health line: TS3-style status LED + text. */
:root .ts-info-voice [data-ws-part="voice.performance.route"] {
display: flex;
align-items: center;
gap: 6px;
margin: 4px 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
opacity: 1;
}
:root .ts-info-voice [data-ws-part="voice.performance.route"] > i {
flex: 0 0 8px;
width: 8px;
height: 8px;
border: 1px solid #6f6f6f;
border-radius: 50%;
background: #b9b9b9;
box-shadow: none;
}
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="active"] > i { border-color: #2c6b3c; background: #5dbb63; box-shadow: none; }
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="quiet"] > i { border-color: #2c6b3c; background: #a7d9aa; }
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="warning"] > i { border-color: #8a5a12; background: #e6a23c; box-shadow: none; }
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="connecting"] > i,
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="sampling"] > i { border-color: #8a7a12; background: #e8d44d; }
:root .ts-info-voice [data-ws-part="voice.performance.route"][data-health="disconnected"] > i { border-color: #7a2020; background: #d65a5a; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] > div { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] strong { overflow: visible; color: #111111; font-size: 12px; font-weight: 700; white-space: normal; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] small { overflow: visible; color: #333333; font-size: 11px; white-space: normal; }
/* Uplink / downlink: two classic group boxes of plain text lines. */
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] article {
min-width: 0;
min-height: 0;
padding: 3px 5px;
border: 1px solid #dcdcdc;
border-radius: 0;
background: #fbfbfb;
}
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] small,
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong,
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] span {
display: block;
margin: 0;
overflow: visible;
white-space: normal;
overflow-wrap: anywhere;
}
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] small { color: #1b3357; font-size: 10px; font-weight: 700; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong { color: #111111; font-size: 12px; font-weight: 700; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] span { color: #333333; font-size: 11px; line-height: 1.45; }
:root .ts-info-voice .voice-audio-details {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 10px;
margin-top: 4px;
color: #333333;
font-size: 11px;
line-height: 1.5;
}
:root .ts-info-voice .voice-audio-details > span { min-width: 0; overflow-wrap: anywhere; }
:root .ts-info-voice [data-ws-part="voice.performance.status"] { margin: 4px 0 0; color: #6a6a6a; font-size: 10px; }
/* ---------- 4.1.6: reconnect strip (WebSpeak voice.connection-status) ----------
WebSpeak hides its own disconnect card while a skin surface is active, so the
skin mounts the host widget as a full-width strip under the toolbar. The host
renders it only while not connected; when connected the strip is empty and
takes no space. Message, nickname field and "Reconnect now" are WebSpeak's. */
:root .ts-conn-strip { flex: none; min-width: 0; }
:root .ts-conn-strip [data-ws-plugin-widget="voice.connection-status"] { display: block; min-width: 0; }
:root .ts-conn-strip [data-ws-part="voice.connection-status"] {
position: static !important;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 10px;
min-width: 0;
margin: 0;
padding: 4px 8px;
border: 0;
border-bottom: 1px solid #c9b46a;
border-radius: 0;
background: linear-gradient(180deg, #fff9dc, #f5e9b6);
box-shadow: none;
color: #3a3000;
font-size: 11px;
}
:root .ts-conn-strip [data-ws-part="voice.connection-status"][data-ws-state="failed"] { border-bottom-color: #c98a8a; background: linear-gradient(180deg, #fdeeee, #f3d6d6); color: #5a1010; }
:root .ts-conn-strip [data-ws-part="voice.connection-status"][data-ws-state="connecting"] { border-bottom-color: #9db8d8; background: linear-gradient(180deg, #f3f8fe, #dfeaf7); color: #1b3357; }
:root .ts-conn-strip [data-ws-part="voice.connection-status.message"] {
flex: 1 1 160px;
min-width: 0;
margin: 0;
font-size: 12px;
font-weight: 700;
overflow-wrap: anywhere;
}
:root .ts-conn-strip [data-ws-part="voice.connection-status.message"]::before {
content: "";
display: inline-block;
width: 7px;
height: 7px;
margin-right: 6px;
border: 1px solid #8a5a12;
border-radius: 50%;
background: #e6a23c;
vertical-align: 1px;
}
:root .ts-conn-strip [data-ws-state="failed"] [data-ws-part="voice.connection-status.message"]::before { border-color: #7a2020; background: #d65a5a; }
:root .ts-conn-strip [data-ws-state="connecting"] [data-ws-part="voice.connection-status.message"]::before { border-color: #8a7a12; background: #e8d44d; }
:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname"] {
display: inline-flex;
align-items: center;
gap: 5px;
width: auto;
max-width: 100%;
font-size: 11px;
font-weight: 700;
}
:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname"] > span::after { content: ":"; }
:root .ts-conn-strip [data-ws-part="voice.connection-status.nickname.input"] {
width: 140px;
min-width: 0;
height: 22px;
padding: 0 4px;
border: 1px solid #8f8f8f;
border-radius: 0;
background: #ffffff;
color: #111111;
font: inherit;
font-size: 12px;
font-weight: 400;
}
:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"] {
display: inline-flex;
align-items: center;
gap: 4px;
min-height: 24px;
height: 24px;
padding: 0 12px;
border: 1px solid #707070;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e2e2e2);
color: #111111;
font: inherit;
font-size: 12px;
cursor: pointer;
}
:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"]:hover:not(:disabled) { background: var(--skin-blue-hover); border-color: #4a7ab8; }
:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"]:disabled { color: #8a8a8a; cursor: default; opacity: 1; }
:root .ts-conn-strip [data-ws-part="voice.connection-status.reconnect"] svg { width: 13px; height: 13px; }
/* ---------- 4.1.6: phone audio tools (real WebSpeak actions) ----------
WebSpeak's phone audio widget only draws mic + speaker, so on <=740px the
skin adds Noise suppression / Share accompaniment toggles (aria-pressed is
bound to WebSpeak's audio.status) and an Audio settings button. Desktop
already has these in the audio dock, so the group is hidden there. Glyphs
are drawn with CSS only. */
:root .ts-tool-mobile-audio { display: none; align-items: center; gap: 1px; }
:root .ts-toolbar .ts-mtool { position: relative; flex: none; width: 26px; height: 22px; min-height: 22px; padding: 0; }
:root .ts-mtool-glyph { position: relative; display: block; width: 16px; height: 16px; margin: 0 auto; pointer-events: none; }
:root .ts-mtool-noise .ts-mtool-glyph {
background:
linear-gradient(currentColor, currentColor) 1px 6px / 2px 4px no-repeat,
linear-gradient(currentColor, currentColor) 4px 3px / 2px 10px no-repeat,
linear-gradient(currentColor, currentColor) 7px 1px / 2px 14px no-repeat,
linear-gradient(currentColor, currentColor) 10px 3px / 2px 10px no-repeat,
linear-gradient(currentColor, currentColor) 13px 6px / 2px 4px no-repeat;
}
:root .ts-mtool-noise[aria-pressed="false"] .ts-mtool-glyph,
:root .ts-mtool-accompaniment[aria-pressed="false"] .ts-mtool-glyph { opacity: .55; }
:root .ts-mtool-accompaniment .ts-mtool-glyph::before {
content: "";
position: absolute;
left: 3px;
bottom: 1px;
width: 6px;
height: 5px;
border-radius: 50%;
background: currentColor;
transform: rotate(-20deg);
}
:root .ts-mtool-accompaniment .ts-mtool-glyph::after {
content: "";
position: absolute;
left: 8px;
top: 1px;
width: 4px;
height: 12px;
border-left: 1.5px solid currentColor;
border-top: 1.5px solid currentColor;
box-sizing: border-box;
}
:root .ts-mtool-settings .ts-mtool-glyph::before {
content: "";
position: absolute;
inset: 1px;
border: 3px dotted currentColor;
border-radius: 50%;
box-sizing: border-box;
}
:root .ts-mtool-settings .ts-mtool-glyph::after {
content: "";
position: absolute;
inset: 4px;
border: 2px solid currentColor;
border-radius: 50%;
box-sizing: border-box;
}
/* ---------- 4.1.6: home server announcement (WebSpeak home.server-announcement) ---------- */
:root .ts-home-announcement { display: block; min-width: 0; margin-top: 8px; }
:root [data-ws-part="home.server-announcement"] {
margin: 0;
padding: 5px 8px 6px;
border: 1px solid #c8c8c8;
border-radius: 0;
background: #ffffff;
box-shadow: inset 1px 1px 0 #f4f4f4;
color: #111111;
}
:root [data-ws-part="home.server-announcement.title"] {
margin: 0 0 4px;
padding-bottom: 3px;
border-bottom: 1px solid #e4e4e4;
color: #1b3357;
font-size: 11px;
font-weight: 700;
letter-spacing: .03em;
}
:root [data-ws-part="home.server-announcement.body"] {
max-height: 140px;
margin: 0;
overflow-y: auto;
color: #111111;
font-size: 12px;
line-height: 1.5;
white-space: pre-line;
overflow-wrap: anywhere;
}
:root [data-ws-part="home.server-announcement.body"]:empty { display: none; }
:root .ts-home-announcement:has([data-ws-part="home.server-announcement.body"]:empty) { display: none; }
/* ---------- 4.1.7: home reconnect card ----------
A browser-side drop (socket closed, network lost) makes WebSpeak leave the
voice page and return HOME with the error set. The same host widget
(voice.connection-status) is mounted on home; it is shown only in WebSpeak's
"failed" state (error set), never on a fresh visit or while connecting. Its
button is WebSpeak's own reconnect (requestVoiceConnection). */
:root .ts-home-reconnect { margin: 0 0 8px; }
:root .ts-home-reconnect [data-ws-part="voice.connection-status"] { border: 1px solid #c9b46a; }
:root .ts-home-reconnect [data-ws-part="voice.connection-status"][data-ws-state="failed"] { border-color: #c98a8a; }
:root .ts-home-reconnect:not(:has([data-ws-state="failed"])) { display: none; }
:root .ts-home-reconnect [data-ws-part="voice.connection-status.nickname"] { display: none; }
:root .ts-home-reconnect [data-ws-part="voice.connection-status.message"] { white-space: normal; }
:root .ts-home-reconnect [data-ws-part="voice.connection-status.reconnect"] { margin-left: auto; }
/* The same error text is already in the card; avoid printing it twice. */
:root .ts-window-body:has(.ts-home-reconnect [data-ws-state="failed"]) .ts-home-connection { display: none; }
/* ---------- 4.1.15: official home widgets (host-owned) ----------
home.identity-provider sits inside the SERVER CONNECTION group box right
after the host join form. The host button carries the real click handler
(requestIdentityProviderLogin) and its aria-label is the localized
"Sign in with myts" text; the inner label span only repeats the provider
id and is aria-hidden, so print the host aria-label instead (same approach
as the 4.1.14 admin link). Plain Classic button, no ribbon, no clip. */
:root .ts-home-identity-provider { display: block; min-width: 0; margin-top: 6px; }
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"] {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
width: auto;
height: 24px;
min-height: 24px;
padding: 0 10px;
border: 1px solid #9a9a9a;
border-radius: 2px;
background: linear-gradient(180deg, #fdfdfd, #e6e6e6);
color: #222222;
font: inherit;
font-size: 11px;
cursor: pointer;
pointer-events: auto;
white-space: nowrap;
}
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]:hover:not(:disabled) { background: linear-gradient(180deg, #fbfdff, #dfeaf7); border-color: #7aa3d4; }
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]:disabled { color: #8a8a8a; cursor: default; }
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.label"] { display: none; }
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"]::after {
content: attr(aria-label);
font-size: 11px;
line-height: 1;
white-space: nowrap;
}
/* home.visitor-count: a compact Classic status line under the announcement.
The host omits the widget when it has no visitor number; collapse the empty
wrapper too. Only the decorative aria-hidden orbit/spark are hidden — the
label, total and icon stay visible on the light window. */
:root .ts-home-visitors { display: block; min-width: 0; margin-top: 8px; }
:root .ts-home-visitors:empty { display: none; }
:root .ts-home-visitors [data-ws-part="home.visitors"] {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
margin: 0;
padding: 3px 7px;
border: 1px solid #dcdcdc;
border-radius: 0;
background: #f8f8f8;
box-shadow: none;
animation: none;
color: #333333;
font-size: 11px;
line-height: 1.5;
}
:root .ts-home-visitors [data-ws-part="home.visitors.orbit"],
:root .ts-home-visitors [data-ws-part="home.visitors.spark"] { display: none; }
:root .ts-home-visitors [data-ws-part="home.visitors.icon"] { display: inline-flex; align-items: center; flex: none; color: var(--skin-icon); }
:root .ts-home-visitors [data-ws-part="home.visitors.icon"] svg { width: 13px; height: 13px; }
:root .ts-home-visitors [data-ws-part="home.visitors.label"] { color: #333333; font-size: 11px; }
:root .ts-home-visitors [data-ws-part="home.visitors.divider"] { flex: none; width: 1px; height: 11px; background: #c4c4c4; }
:root .ts-home-visitors [data-ws-part="home.visitors.total"] { color: #555555; font-size: 11px; }
/* 4.1.8: desktop — keep WebSpeak's audio settings dialog clear of the host recovery pills (bottom-left, ~84px band). */
@media (min-width: 741px) {
:root [data-ws-part="voice.audio-settings"] {
margin-bottom: 56px;
max-height: min(760px, calc(var(--ws-viewport-height, 100dvh) - 112px)) !important;
}
}
/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
:root .ts-workspace { grid-template-columns: 220px minmax(0, 1fr); }
:root .ts-info-facts { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
:root .ts-watermark { font-size: 16px; }
}
@media (max-width: 900px) {
:root .ts-home-body { grid-template-columns: minmax(0, 1fr); width: calc(100% - 20px); align-content: start; padding: 14px 0; }
:root .ts-toolbar-note { display: none; }
/* 4.1.14: finger-sized official /admin target on phones and narrow widths.
The host label on <a href="/admin"> stays visible; only the non-link
page-title note is hidden here. */
:root .ts-toolbar .ts-tool-admin a[href="/admin"],
:root .ts-toolbar [data-ws-part="home.social-links"] a[href="/admin"] {
min-width: 44px;
min-height: 44px;
height: 44px;
padding: 0 10px;
}
/* 4.1.15: finger-sized official sign-in button; width follows the host
label so the group-box form is not stretched by a huge square. */
:root .ts-home-identity-provider [data-ws-part="home.identity-provider.button"] {
width: auto;
min-height: 44px;
height: 44px;
padding: 0 12px;
}
}
/* Narrow screens (<=740px): a single-column vertical flow. The page itself
scrolls, so no grid track may compress the info/banner panes — the welcome
banner used to cover the info pane's last row when vertical space ran short.
Desktop (>=741px) keeps the fixed workspace grid above. */
@media (max-width: 740px) {
/* 4.1.5: the live host locks html/body (overflow:hidden, fixed height), so
page-level scrolling never happens there. The skin root itself becomes the
viewport-tall scroll container; everything inside flows at natural height. */
:root {
height: 100vh;
height: 100dvh;
height: var(--ws-viewport-height, 100dvh);
min-height: 0;
max-height: var(--ws-viewport-height, 100dvh);
scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-y: contain;
-webkit-overflow-scrolling: touch;
}
:root .ts-app {
display: block;
height: auto;
min-height: 100%;
max-height: none;
overflow: visible;
/* 4.1.6: WebSpeak's recovery pill (使用内置皮肤 / 应用库) floats over the
bottom-left of the screen and cannot be moved; leave room after the
content so the composer, status bar and metrics scroll above it. */
padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
:root .ts-tool-mobile-audio { display: inline-flex; }
/* 4.1.7: compact expanded voice metrics on phones; capped height, scrolls inside. */
:root .ts-info-voice [data-ws-part="voice.performance.panel"] {
max-height: clamp(110px, calc(var(--ws-viewport-height, 100dvh) - 540px), 190px) !important;
overflow-x: hidden !important;
overflow-y: auto !important;
overscroll-behavior: contain;
padding: 3px 5px 4px;
font-size: 10px;
line-height: 1.3;
}
:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header { align-items: center; padding-bottom: 2px; }
:root .ts-info-voice [data-ws-part="voice.performance.panel"] > header small { display: none; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] { margin: 2px 0; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] strong { font-size: 11px; }
:root .ts-info-voice [data-ws-part="voice.performance.route"] small { font-size: 10px; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] { gap: 3px; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] article { padding: 1px 4px; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] strong { font-size: 11px; }
:root .ts-info-voice [data-ws-part="voice.performance.metrics"] span { font-size: 10px; line-height: 1.3; }
:root .ts-info-voice .voice-audio-details { margin-top: 2px; gap: 0 6px; font-size: 10px; line-height: 1.3; }
:root .ts-info-voice [data-ws-part="voice.performance.status"] { margin-top: 2px; font-size: 9.5px; line-height: 1.3; }
/* 4.1.7: keep WebSpeak's audio settings sheet above the host recovery pills. */
:root [data-ws-part="voice.audio-settings"] {
margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
max-height: calc(var(--ws-viewport-height, 100dvh) - 92px - env(safe-area-inset-bottom, 0px)) !important;
border-bottom-left-radius: 14px;
border-bottom-right-radius: 14px;
}
/* 4.1.12: keep the compact Classic bar on phones too; the two 22px icon
buttons stay in normal toolbar flow, so no recovery slot needs its own
row (the bar may still wrap its ordinary groups). */
:root .ts-toolbar { flex-wrap: wrap; row-gap: 2px; height: auto; min-height: 30px; }
/* The host gives the screen-share widget wrapper a 44px min-height; inside a
wrapping (auto-height) toolbar that would stretch the bar. The visible
button keeps its own size. */
:root .ts-toolbar .ts-tool-share { min-height: 0; }
:root .ts-workspace { display: block; }
/* Tree keeps a reasonable minimum height; long lists scroll inside it. */
:root .ts-tree { min-height: 220px; max-height: none; border-right: 0; border-bottom: 1px solid #b0b0b0; }
:root .ts-channel-tree { flex: none; max-height: 42vh; }
/* Info and banner size to their content and can never be overpainted. */
:root .ts-right { display: block; grid-template-rows: none; }
:root .ts-info { overflow: visible; }
:root .ts-info-voice { max-width: none; }
:root .ts-info-facts { grid-template-columns: minmax(0, 1fr); }
:root .ts-log { height: 320px; }
:root .ts-watermark { top: 7px; right: 10px; font-size: 13px; }
:root .ts-toolbar-edition { display: none; }
:root .ts-status-edition { display: none; }
/* Single column: keep the input clear of the editor recovery pill. */
:root [data-ws-part="voice.chat.composer"] { padding-left: clamp(0px, 200px, calc(100vw - 150px)); }
:root .ts-home-body { grid-template-columns: minmax(0, 1fr); }
/* 4.1.6: keep the connect form + announcement clear of the host recovery pill. */
:root .ts-home-body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
/* ---------- 4.1.15: member action card (right-click a member) ----------
The per-member volume action, private message, poke, whisper target, copy
and "move to channel" all live in WebSpeak's own member menu. A skin cannot
call those actions itself (the public skin API only exposes the local
user's audio actions), so the only supported route is the host menu with
`voice.channel-tree.options.memberActions`. This block restyles that
host-rendered card through the public part hooks; placement, values and
actions stay with the host. */
:root [data-ws-part="voice.context-menu"] {
min-width: 200px;
gap: 0;
padding: 0;
border: 1px solid #808080 !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: 2px 2px 4px #00000033 !important;
color: #1a1a1a;
font-family: var(--skin-font);
font-size: 11px;
z-index: 70 !important;
}
:root [data-ws-part="voice.context-menu"] [data-ws-part="voice.context-menu.header"] {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
min-height: 22px;
padding: 3px 5px 3px 8px;
border-bottom: 1px solid #c0c0c0;
background: linear-gradient(180deg, #f6f6f6, #e4e4e4);
}
:root [data-ws-part="voice.context-menu.header"] strong {
min-width: 0;
overflow: hidden;
padding: 0;
color: #1b3357;
font-size: 11px;
font-weight: 700;
letter-spacing: .02em;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The host hides its close button on desktop and shows it in the phone sheet.
Keep that behaviour, just draw the classic square button. */
:root [data-ws-part="voice.context-menu.header"] .member-menu-close {
flex: none;
display: grid;
place-items: center;
width: 18px;
height: 18px;
min-height: 18px;
padding: 0;
border: 1px solid transparent;
border-radius: 0;
background: transparent;
color: #333333;
}
:root [data-ws-part="voice.context-menu.header"] .member-menu-close:hover { border-color: #9db8d8; background: #dbe7f7; }
:root [data-ws-part="voice.context-menu.header"] .member-menu-close svg { width: 11px; height: 11px; }
/* Volume: a classic sunken groove with a rectangular thumb. The host writes an
inline gradient on the range input, so the track must be overridden with
!important; the thumb pseudo-elements are ours. */
:root [data-ws-part="voice.context-menu"] .menu-volume {
gap: 5px;
padding: 7px 8px 8px;
color: #333333;
font-size: 10px;
}
:root [data-ws-part="voice.context-menu"] .menu-volume > span { letter-spacing: .02em; }
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"] {
width: 100%;
height: 5px;
margin: 3px 0 0;
border: 0;
border-radius: 0;
background: #ffffff !important;
box-shadow: inset 0 0 0 1px #9a9a9a, inset 0 1px 2px #0000001f;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-webkit-slider-thumb {
width: 11px;
height: 15px;
border: 1px solid #7f9db9;
border-radius: 0;
background: linear-gradient(180deg, #fdfdfd, #e2e2e2);
box-shadow: none;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
}
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-thumb {
width: 11px;
height: 15px;
border: 1px solid #7f9db9;
border-radius: 0;
background: linear-gradient(180deg, #fdfdfd, #e2e2e2);
box-shadow: none;
cursor: pointer;
}
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-track {
height: 5px;
border: 0;
background: transparent;
}
/* Action rows: flat classic menu items, blue selection on hover/focus. */
:root [data-ws-part="voice.context-menu"] > button,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
min-height: 22px;
padding: 3px 8px;
border: 1px solid transparent;
border-radius: 0;
background: transparent;
color: #1a1a1a;
font: inherit;
font-size: 11px;
text-align: left;
cursor: pointer;
}
:root [data-ws-part="voice.context-menu"] > button:hover,
:root [data-ws-part="voice.context-menu"] > button:focus-visible,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:hover,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:focus-visible,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger[aria-expanded="true"] {
border-color: var(--skin-blue-deep);
background: var(--skin-blue);
color: #ffffff;
}
:root [data-ws-part="voice.context-menu"] > button svg,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger svg {
flex: none;
width: 13px;
height: 13px;
color: var(--skin-icon);
}
:root [data-ws-part="voice.context-menu"] > button:hover svg,
:root [data-ws-part="voice.context-menu"] > button:focus-visible svg,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:hover svg,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:focus-visible svg,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger[aria-expanded="true"] svg { color: #ffffff; }
:root [data-ws-part="voice.context-menu"] .member-menu-submenu { position: relative; }
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-arrow { margin-left: auto; }
/* "Move to channel" submenu: same card, classic list. */
:root [data-ws-part="voice.context-menu.move-submenu"] {
min-width: 190px;
gap: 0;
padding: 2px;
border: 1px solid #808080;
border-radius: 0;
background: #ffffff !important;
box-shadow: 2px 2px 4px #00000033;
font-size: 11px;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
min-width: 0;
min-height: 22px;
padding: 3px 6px;
border: 1px solid transparent;
border-radius: 0;
background: transparent;
color: #1a1a1a;
font: inherit;
font-size: 11px;
text-align: left;
cursor: pointer;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled),
:root [data-ws-part="voice.context-menu.move-submenu"] button:focus-visible:not(:disabled) {
border-color: var(--skin-blue-deep);
background: var(--skin-blue);
color: #ffffff;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button:disabled { border-color: transparent; background: transparent; color: #8a8a8a; cursor: default; }
:root [data-ws-part="voice.context-menu.move-submenu"] button svg { flex: none; width: 13px; height: 13px; color: var(--skin-icon); }
:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled) svg,
:root [data-ws-part="voice.context-menu.move-submenu"] button:focus-visible:not(:disabled) svg { color: #ffffff; }
:root [data-ws-part="voice.context-menu.move-submenu"] button span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button small {
flex: none;
margin-left: auto;
color: #666666;
font-size: 10px;
white-space: nowrap;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button:hover:not(:disabled) small { color: #dbe7f7; }
:root [data-ws-part="voice.context-menu.move-submenu"] .member-submenu-empty { display: block; padding: 6px 8px; color: #777777; font-size: 10px; }
/* Phone sheet backdrop: plain dim, no blur. */
:root [data-ws-part="voice.context-menu-backdrop"] { background: #00000045; backdrop-filter: none; }
/* Hover affordance on member rows so the right-click target reads as active. */
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"]:hover { background: var(--skin-blue-hover); }
:root .ts-channel-tree [data-ws-part="voice.channel-tree.member"][data-dragging="true"]:hover { background: transparent; }
@media (max-width: 740px) {
:root [data-ws-part="voice.context-menu"] {
min-width: 0;
padding: 0 !important;
border: 0 !important;
border-top: 1px solid #808080 !important;
border-radius: 0 !important;
box-shadow: 0 -2px 8px #00000033 !important;
}
:root [data-ws-part="voice.context-menu"] [data-ws-part="voice.context-menu.header"] { min-height: 44px; padding: 4px 6px 4px 12px; }
:root [data-ws-part="voice.context-menu.header"] strong { font-size: 13px; }
:root [data-ws-part="voice.context-menu.header"] .member-menu-close { width: 36px; height: 36px; min-height: 36px; }
:root [data-ws-part="voice.context-menu"] > button,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger { min-height: 44px; padding: 8px 12px; font-size: 13px; }
:root [data-ws-part="voice.context-menu"] > button svg,
:root [data-ws-part="voice.context-menu"] .member-menu-submenu-trigger svg { width: 15px; height: 15px; }
:root [data-ws-part="voice.context-menu"] .menu-volume { padding: 8px 12px 10px; font-size: 12px; }
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"] { height: 7px; }
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-webkit-slider-thumb { width: 15px; height: 21px; }
:root [data-ws-part="voice.context-menu"] .menu-volume input[type="range"]::-moz-range-thumb { width: 15px; height: 21px; }
:root [data-ws-part="voice.context-menu.move-submenu"] {
min-width: 0;
margin: 2px 0 0;
padding: 0 0 0 16px;
border: 0;
border-top: 1px solid #d0d0d0;
box-shadow: none;
}
:root [data-ws-part="voice.context-menu.move-submenu"] button { min-height: 40px; padding: 8px 6px; font-size: 12px; }
:root [data-ws-part="voice.context-menu-backdrop"] { background: #00000059; }
}
@media (prefers-reduced-motion: reduce) {
:root * { animation-duration: .01ms; transition-duration: .01ms; }
}