refactor: share admin contracts and isolate page styles

This commit is contained in:
illusia committed 2026-10-01 10:55:36 +08:00
1 parent e2f0a43762
commit f0712fa3fc
26 files changed
+2231 -1733

No files matched your search

+5
View File
@@ -3,6 +3,11 @@
</template>
<style>
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { border: 0; }
:root {
--ui-scale: 1;
}
@@ -0,0 +1,62 @@
<template>
<header class="join-header" data-ws-part="home.header">
<div class="brand-lockup" data-ws-part="home.brand">
<img class="brand-mark" src="/网站图标.jpg" alt="WebSpeak" />
<div>
<strong :title="brandName">{{ brandName }}</strong>
<small>{{ t('browserWorkspace') }}</small>
</div>
</div>
<div class="header-tools" data-ws-part="home.header-tools">
<div class="header-note" data-ws-part="home.gateway-status"><span class="tiny-dot"></span> {{ t('secureGateway') }}</div>
<a class="github-button" href="https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak" target="_blank" rel="noreferrer" :title="t('githubRepository')" :aria-label="t('githubRepository')">
<Icon name="github" :size="18" /><span>{{ t('githubRepository') }}</span>
</a>
<button type="button" class="qq-button" :title="t('qqGroup')" :aria-label="t('qqGroup')" aria-haspopup="dialog" @click="emit('openQq')">
<Icon name="qq" :size="18" /><span class="qq-label">{{ t('qqGroup') }}</span>
</button>
<a class="bilibili-button" href="https://space.bilibili.com/25414873" target="_blank" rel="noreferrer" :title="t('bilibiliProfile')" :aria-label="t('bilibiliProfile')">
<span class="bilibili-glyph">B</span><span class="bilibili-label">{{ t('bilibiliProfile') }}</span>
</a>
<span class="version-badge" :title="`${t('currentVersion')}: v${appVersion}`" :aria-label="`${t('currentVersion')}: v${appVersion}`">v{{ appVersion }}</span>
<a class="changelog-button" href="https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/CHANGELOG.md" target="_blank" rel="noreferrer" :title="t('viewChangelog')" :aria-label="t('viewChangelog')">
<Icon name="clock" :size="16" /><span>{{ t('viewChangelog') }}</span>
</a>
<a v-if="!mobile" class="guide-button" href="/admin" :title="t('adminConsole')" :aria-label="t('adminConsole')">
<Icon name="settings" :size="15" /><span>{{ t('adminConsole') }}</span>
</a>
<SkinSwitcher v-model="skinId" class="join-skin-switcher" :menu-label="t('skinSelector')" :options="skinOptions" @change="emit('skinChange', $event)" />
<LanguageSwitcher v-model="language" class="join-language-switcher" :menu-label="t('languageMenu')" @change="emit('languageChange')" />
</div>
</header>
</template>
<script setup lang="ts">
import Icon from "../Icon.vue";
import SkinSwitcher, { type SkinOption } from "../SkinSwitcher.vue";
import LanguageSwitcher from "../LanguageSwitcher.vue";
import type { Language } from "../../i18n/web-client.js";
defineProps<{
brandName: string;
appVersion: string;
mobile: boolean;
skinOptions: SkinOption[];
t: (key: string, variables?: Record<string, string | number>) => string;
}>();
const language = defineModel<Language>("language", { required: true });
const skinId = defineModel<string>("skinId", { required: true });
const emit = defineEmits<{
openQq: [];
skinChange: [value: string];
languageChange: [];
}>();
</script>
<style scoped>
.brand-lockup { min-width: 0; max-width: 100%; }
.brand-lockup > div { min-width: 0; }
.brand-mark { flex: 0 0 auto; }
.brand-lockup strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-note .tiny-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #65d879; box-shadow: 0 0 0 4px rgba(101, 216, 121, .14); }
</style>
+9 -10
View File
@@ -1,6 +1,7 @@
import { createScreenShareController } from "../voice/screen-share.js";
export type { ScreenShareOutputSettings, ScreenShareCaptureStats, ScreenSharePeerStats, ScreenShareWebRtcStats } from "../voice/screen-share.js";
import { parseServerMessage } from "../../../src/shared/server-messages.js";
import { isSessionDescription, type WebRtcClientMessage } from "../../../src/shared/webrtc.js";
import type { ClientCommandPayloads, ClientCommandType } from "../../../src/shared/client-commands.js";
export type { ScreenShareStreamDescription as ScreenShareStream, ScreenShareViewerDescription as ScreenShareViewer, ScreenSharePeerSignal as ScreenShareSignal } from "../../../src/shared/screen-share.js";
import type { ChannelMember, ChannelInfo, ChatMessage, ServerEvent, VoiceAudioBridgeStats } from "../../../src/shared/voice-models.js";
@@ -220,6 +221,10 @@ class CancelledMediaOperation extends Error {
constructor() { super("媒体操作已取消"); this.name = "AbortError"; }
}
function sendWebRtcMessage(socket: WebSocket, message: WebRtcClientMessage): void {
socket.send(JSON.stringify(message));
}
export function useVoiceWebSocket() {
const ws = shallowRef<WebSocket | null>(null);
const state = reactive<VoiceState>({ connected: false, connecting: false, reconnecting: false, reconnectAttempt: 0, reconnectFailed: false, tsClientId: 0, error: "", errorCode: "", microphoneError: "", microphoneErrorCode: "", audioNotice: "", audioNoticeCode: "", channelSwitchedChannelId: "" });
@@ -1059,12 +1064,12 @@ export function useVoiceWebSocket() {
await waitForIceGathering(peer);
if (!isCurrentPeer()) return;
const description = peer.localDescription;
if (!description) throw new Error("WebRTC offer was not created");
socket.send(JSON.stringify({ type: "webrtcOffer", payload: {
if (!description || description.type !== "offer") throw new Error("WebRTC offer was not created");
sendWebRtcMessage(socket, { type: "webrtcOffer", payload: {
sdp: { type: description.type, sdp: description.sdp },
muted: microphoneMuted.value,
accompanimentActive: accompanimentActive.value,
} }));
} });
webrtcAnswerTimer = window.setTimeout(() => {
webrtcAnswerTimer = null;
if (isCurrentPeer() && !peer.remoteDescription) void fallbackFromWebRtc(sequence, socket, "WEBRTC_ANSWER_TIMEOUT");
@@ -1124,7 +1129,7 @@ export function useVoiceWebSocket() {
if (sequence !== connectionSequence || ws.value !== socket || !state.connected || webrtcFallbackStarted) return;
webrtcFallbackStarted = true;
webrtcActive.value = false;
if (socket.readyState === WebSocket.OPEN) socket.send(JSON.stringify({ type: "webrtcStop" }));
if (socket.readyState === WebSocket.OPEN) sendWebRtcMessage(socket, { type: "webrtcStop" });
stopWebRtcTransport();
if (socket.readyState === WebSocket.OPEN && state.connected) {
// Degrading to the compatibility transport must be visible: the user is
@@ -1209,12 +1214,6 @@ export function useVoiceWebSocket() {
if (resetLevel) micLevel.value = 0;
}
function isSessionDescription(value: unknown, type: "answer"): value is RTCSessionDescriptionInit {
return Boolean(value) && typeof value === "object"
&& (value as { type?: unknown }).type === type
&& typeof (value as { sdp?: unknown }).sdp === "string";
}
function stopCaptureGraph(): void {
accumLen = 0;
voxAttack = 0;
+984
View File
@@ -0,0 +1,984 @@
export const copy = {
zh: {
loading: "正在载入管理控制台…",
adminConsole: "管理控制台",
changePasswordTitle: "首次登录需要修改密码",
changePasswordLead: "默认密码仅用于首次登录。请设置一个至少 12 个字符的新管理员密码。",
savePassword: "保存新密码",
defaultCredentialNotice: "默认账号:admin,默认密码:admin。修改后旧密码将立即失效。",
adminUsername: "管理员账号",
newPassword: "新管理员密码",
passwordPlaceholder: "至少 12 个字符",
passwordHint: "建议使用长且唯一的密码。",
confirmPassword: "确认管理员密码",
languageMenu: "语言",
languageSwitch: "English",
themeSystem: "跟随系统",
themeLight: "浅色主题",
themeDark: "深色主题",
switchToLightTheme: "切换到浅色主题",
switchToDarkTheme: "切换到深色主题",
welcomeAdmin: "欢迎回来",
loginLead: "输入管理员账号和密码以管理此 WebSpeak 实例。",
adminPassword: "管理员密码",
login: "登录",
backHome: "返回首页",
overview: "概览",
server: "服务器",
operations: "运维",
skinLibrary: "皮肤",
skinLibraryLead: "查看访客可选的默认皮肤和实例自定义皮肤;支持导入皮肤包。",
skinDay: "默认日间模式",
skinNight: "默认夜间模式",
skinIllusia: "ILLUSIA风",
skinBuiltin: "内置",
skinProtected: "内置皮肤,不可移除",
skinDefault: "默认皮肤",
skinDefaultLead: "访客首次访问时使用;访客已有选择时保留其偏好。",
skinEnabled: "已启用",
skinDisabled: "已停用",
skinDefaultSaved: "默认皮肤已更新。",
skinEnabledNotice: "皮肤已启用并向访客开放。",
skinDisabledNotice: "皮肤已停用,不再向访客提供。",
skinDayDescription: "WebSpeak 默认的明亮日间外观。",
skinNightDescription: "WebSpeak 默认的深色夜间外观。",
skinIllusiaDescription: "覆盖首页、语音房间和演示页的 ILLUSIA 美术皮肤。",
skinLibraryScope: "皮肤会作为可选项提供给访客;每位访客可在前台自行选择。管理后台始终保持原样式。",
skinUpload: "导入皮肤包",
skinUploading: "正在校验并导入…",
skinEmpty: "尚未导入自定义皮肤",
skinEmptyLead: "选择符合 WebSpeak 皮肤规范的 .wskin 文件开始使用。",
skinAuthor: "作者",
skinLicense: "许可证",
skinMinVersion: "最低版本",
skinPreview: "查看预览",
skinRemove: "移除",
skinRemoving: "正在移除…",
skinConfirmRemove: "确定从此实例中移除此皮肤吗?已选择该皮肤的访客会在下次加载时回退。",
skinReplaceConfirm: "已有同 ID 皮肤。要用这个版本替换吗?",
skinImported: "皮肤已导入并向访客开放。",
skinRemoved: "皮肤已从实例中移除。",
openGuest: "打开访客页面",
logout: "退出登录",
gatewayRunning: "网关运行中",
serverSettings: "服务器设置",
serverSettingsLead: "管理默认 TeamSpeak 目标、访问策略和访客页面内容。",
saving: "正在保存…",
saveChanges: "保存更改",
teamSpeakTarget: "默认 TeamSpeak 目标",
serverAddress: "TeamSpeak 服务器地址",
serverPlaceholder: "例如:ts.example.com 或 127.0.0.1",
serverPort: "语音端口",
serverPortPlaceholder: "9987",
serverHint: "请分别填写服务器地址和语音端口;IPv6 地址可直接填写,不需要方括号。",
serverPassword: "服务器密码",
optional: "可选",
optionalPassword: "无密码则留空",
passwordConfigured: "已配置密码(留空保持不变)",
change: "修改",
remove: "移除",
testConnection: "测试连接",
testing: "正在测试…",
connectionReady: "连接成功",
connectionFailed: "连接失败",
packetLoss: "丢包率",
networkReachable: "网络可达(未验证密码)",
networkReachableHint: "Ping 成功;管理员测试不会创建额外 TeamSpeak 成员,因此未验证服务器密码。",
failureReason: "原因",
failureDetail: "诊断",
hostNotFoundError: "找不到服务器",
networkUnreachableError: "网络不可达",
connectionRefusedError: "服务器拒绝连接",
connectionResetError: "连接被服务器或网络重置",
networkTimeoutError: "网络请求超时",
serverPasswordRequiredError: "服务器需要密码",
invalidServerPasswordError: "服务器密码错误",
protocolFailureError: "TeamSpeak 协议协商失败",
serverRejectedError: "服务器拒绝连接",
invalidNicknameError: "昵称长度不符合服务器要求",
pingUnavailableError: "无法执行网络探测",
accessAndIdentity: "访问与站点信息",
advancedSettings: "高级参数",
advancedSettingsLead: "仅在需要时调整网关的高级传输参数。",
enabledStatus: "已启用",
disabledStatus: "未启用",
relayNodeCount: "{{count}} 个节点",
webrtcSettings: "WebRTC 语音",
webrtcLead: "由当前 WebSpeak 网关直接提供低延迟语音传输,无需配置其他服务器。",
webrtcEnabled: "启用 WebRTC",
webrtcEnabledLead: "浏览器和网络支持时使用实时语音通道,否则自动回退到兼容模式。",
webrtcPortRange: "WebRTC UDP 端口范围",
webrtcPortRangeLead: "请在 WebSpeak 所在主机的防火墙和安全组放行整个范围。",
webrtcPortStart: "起始端口",
webrtcPortEnd: "结束端口",
webrtcApplyHint: "端口范围仅可在 WebRTC 关闭时修改;开启后会锁定,保存后对新连接生效。",
webrtcPortNoticeTitle: "请先放行 WebRTC 端口",
webrtcPortNotice: "需要开启端口,范围是 {{range}}(UDP)。请先在主机防火墙、安全组和 Docker 端口映射中放行该范围。",
relaySettings: "中继服务器",
relaySettingsLead: "配置访客连接使用的中继节点;名称会显示在首页加速选项中。",
relayEnabled: "启用中继加速",
relayEnabledLead: "访客勾选加速后,通过此中继访问目标 TeamSpeak 服务器。",
relayName: "中继显示名称",
relayNamePlaceholder: "例如:大陆节点、香港节点",
relayTarget: "中继服务器地址",
relayTargetPlaceholder: "例如:relay.example.com#39087",
relayToken: "中继令牌",
relayTokenPlaceholder: "填写中继服务令牌",
relayTokenConfigured: "已配置令牌(留空保持不变)",
relayAdd: "添加中继节点",
relayNodeEmpty: "尚未配置中继节点。",
relayUnnamed: "未命名中继",
relayManagedHint: "当前使用管理控制台保存的中继配置。令牌只保存为加密密文,不会返回到页面。",
relayEnvironmentHint: "中继仅使用此页面保存的配置;关闭并保存后,访客页面不会显示中继选项。",
accessMode: "访客访问模式",
fixedMode: "仅限此 TeamSpeak 服务器",
fixedModeLead: "访客只需填写昵称,目标和密码由 WebSpeak 管理。",
openMode: "允许访客输入其他服务器",
openModeLead: "访客可输入公网 TeamSpeak 地址;内网和保留地址会被阻止。",
siteName: "站点显示名称",
welcomeText: "欢迎词",
welcomeLanguage: "欢迎词语言",
welcomeLanguageHint: "切换语言编辑对应文本;留空时自动使用默认模板。",
welcomeFallbackHint: "留空将回退到该语言的默认欢迎词。",
runtimeFacts: "运行时信息",
lastTest: "最近测试",
latency: "延迟",
internalPort: "内部端口",
unknown: "未知",
legacyImported: "已导入旧 config.json。WebSpeak 现在由管理控制台管理,原文件不会再作为实时配置源。",
gotIt: "知道了",
systemStatus: "系统状态",
everythingRunning: "WebSpeak 正常运行",
overviewLead: "管理服务可用;TeamSpeak 可达性以最近一次连接测试为准。",
running: "运行中",
gateway: "网关",
activeSessions: "活动会话",
peakSessions: "本次启动峰值 {{count}}",
targetHealth: "目标状态",
targetHealthLead: "最近一次短连接测试的结果。",
manage: "管理",
status: "状态",
recentEvents: "最近事件",
recentEventsLead: "仅记录管理和系统事件,不包含聊天内容。",
noRecentEvents: "暂无事件",
reachable: "可连接",
unreachable: "不可连接",
notTested: "尚未测试",
setupPasswordsMismatch: "两次输入的密码不一致。",
setupPasswordShort: "管理员密码至少需要 12 个字符。",
invalidPassword: "管理员密码错误。",
rateLimited: "尝试次数过多,请稍后再试。",
requestFailed: "请求失败,请检查输入后重试。",
loginEvent: "管理员登录成功",
logoutEvent: "管理员退出登录",
settingsEvent: "服务器设置已更新",
initializedEvent: "默认管理员账号已创建",
importedEvent: "已导入旧配置",
testEvent: "连接测试完成",
operationsLead: "无需登录服务器终端即可完成日常维护和问题定位。",
refresh: "刷新",
sessions: "活动会话",
sessionsLead: "查看当前浏览器连接,并在必要时安全断开单个会话。",
sessionEmpty: "当前没有活动会话。",
nickname: "昵称",
sessionState: "状态",
age: "持续时间",
memberCount: "成员数",
endSession: "断开",
terminating: "断开中…",
sessionTerminated: "会话已断开。",
confirmTerminate: "确定断开「{{nickname}}」吗?",
invites: "受控邀请",
invitesLead: "创建可过期、可限次的邀请链接;链接中不包含服务器密码。",
inviteChannel: "目标频道",
inviteChannelPlaceholder: "留空使用默认频道",
expiresIn: "有效期(小时)",
maxUses: "最多使用次数",
unlimitedUses: "填写 0 表示不限次数。",
createInvite: "创建邀请链接",
inviteCreated: "邀请链接已创建",
inviteSecurity: "请立即复制并分享链接。出于安全原因,页面不会再次显示完整令牌。",
copyLink: "复制链接",
copiedLink: "邀请链接已复制。",
defaultChannel: "默认频道",
revoke: "撤销",
inviteRevoked: "邀请链接已撤销。",
confirmRevoke: "确定撤销这个邀请链接吗?",
active: "有效",
expired: "已过期",
exhausted: "已用尽",
revoked: "已撤销",
diagnostics: "诊断信息",
diagnosticsLead: "用于反馈问题的运行时摘要;导出的报告会自动脱敏。",
runtime: "运行时",
platform: "平台",
databaseSchema: "数据库版本",
createdSessions: "累计会话",
downloadReport: "下载诊断报告",
exportBackup: "导出数据库备份",
logViewer: "运行日志",
logViewerLead: "最近的网关日志及用户连接记录,不包含聊天内容。",
connectionHistory: "用户连接记录",
connectionHistoryLead: "按用户合并连接、断开与持续时间。",
connectionFromTo: "来源 {{ip}} → 目标 {{target}}",
connectionViaRelay: "中继 {{relay}}",
connectionActive: "连接中",
connectionConnecting: "准备连接",
connectionDisconnected: "已断开",
connectedAt: "接入",
connectionAttemptedAt: "尝试",
disconnectedAt: "断开",
duration: "时长",
logsUnavailable: "未配置日志文件",
noLogs: "暂无可查看日志。",
operationFailed: "运维操作失败,请稍后重试。",
updateNotice: "当前运行版本为 {{version}}。如需升级,请先导出备份,再按部署文档替换应用版本。",
version: "版本",
audit: "审计记录",
auditLead: "管理员和系统操作记录,不包含聊天内容或敏感值。",
auditEmpty: "暂无审计记录。",
},
en: {
loading: "Loading the admin console…",
adminConsole: "Admin Console",
changePasswordTitle: "Change the default password",
changePasswordLead: "The default password is for first sign-in only. Set a new admin password with at least 12 characters.",
savePassword: "Save new password",
defaultCredentialNotice: "Default account: admin. Default password: admin. The old password expires immediately after you save.",
adminUsername: "Admin username",
newPassword: "New admin password",
passwordPlaceholder: "At least 12 characters",
passwordHint: "Use a long, unique password.",
confirmPassword: "Confirm admin password",
languageMenu: "Language",
languageSwitch: "中文",
themeSystem: "System theme",
themeLight: "Light theme",
themeDark: "Dark theme",
switchToLightTheme: "Switch to light theme",
switchToDarkTheme: "Switch to dark theme",
welcomeAdmin: "Welcome back",
loginLead: "Enter the admin account and password to manage this WebSpeak instance.",
adminPassword: "Admin password",
login: "Sign in",
backHome: "Back to home",
overview: "Overview",
server: "Server",
operations: "Operations",
skinLibrary: "Skins",
skinLibraryLead: "View the default and custom skins available to visitors; import instance-wide skin packages.",
skinDay: "Default day mode",
skinNight: "Default night mode",
skinIllusia: "ILLUSIA style",
skinBuiltin: "Built in",
skinProtected: "Built-in skin · cannot be removed",
skinDefault: "Default skin",
skinDefaultLead: "Used for first-time visitors; existing visitor choices are preserved.",
skinEnabled: "Enabled",
skinDisabled: "Disabled",
skinDefaultSaved: "Default skin updated.",
skinEnabledNotice: "Skin enabled and available to visitors.",
skinDisabledNotice: "Skin disabled and hidden from visitors.",
skinDayDescription: "WebSpeak's default light appearance.",
skinNightDescription: "WebSpeak's default dark appearance.",
skinIllusiaDescription: "ILLUSIA artwork for the home, voice room, and demo pages.",
skinLibraryScope: "Skins are offered as visitor-selectable options. Each visitor chooses a skin on the public page; the admin console always keeps its own appearance.",
skinUpload: "Import skin package",
skinUploading: "Validating and importing…",
skinEmpty: "No custom skins yet",
skinEmptyLead: "Choose a .wskin package that follows the WebSpeak skin specification.",
skinAuthor: "Author",
skinLicense: "License",
skinMinVersion: "Minimum version",
skinPreview: "Preview",
skinRemove: "Remove",
skinRemoving: "Removing…",
skinConfirmRemove: "Remove this skin from the instance? Visitors using it will fall back the next time they load the page.",
skinReplaceConfirm: "A skin with this ID already exists. Replace it with this package?",
skinImported: "Skin imported and made available to visitors.",
skinRemoved: "Skin removed from the instance.",
openGuest: "Open guest page",
logout: "Log out",
gatewayRunning: "Gateway running",
serverSettings: "Server settings",
serverSettingsLead: "Manage the default TeamSpeak target, access policy, and guest-facing content.",
saving: "Saving…",
saveChanges: "Save changes",
teamSpeakTarget: "Default TeamSpeak target",
serverAddress: "TeamSpeak server address",
serverPlaceholder: "e.g. ts.example.com or 127.0.0.1",
serverPort: "Voice port",
serverPortPlaceholder: "9987",
serverHint: "Enter the server address and voice port separately. IPv6 addresses do not need brackets.",
serverPassword: "Server password",
optional: "Optional",
optionalPassword: "Leave blank when unused",
passwordConfigured: "Password configured (leave blank to keep it)",
change: "Change",
remove: "Remove",
testConnection: "Test connection",
testing: "Testing…",
connectionReady: "Connection ready",
connectionFailed: "Connection failed",
packetLoss: "Packet loss",
networkReachable: "Network reachable (password not verified)",
networkReachableHint: "Ping succeeded. The admin test does not create an extra TeamSpeak client, so the server password was not verified.",
failureReason: "Reason",
failureDetail: "Diagnostics",
hostNotFoundError: "Server not found",
networkUnreachableError: "Network unreachable",
connectionRefusedError: "Connection refused",
connectionResetError: "Connection reset",
networkTimeoutError: "Network request timed out",
serverPasswordRequiredError: "Server password required",
invalidServerPasswordError: "Invalid server password",
protocolFailureError: "TeamSpeak protocol negotiation failed",
serverRejectedError: "Server rejected the connection",
invalidNicknameError: "The nickname length does not meet the server requirements",
pingUnavailableError: "Network probe unavailable",
accessAndIdentity: "Access and site identity",
advancedSettings: "Advanced settings",
advancedSettingsLead: "Adjust gateway transport options only when needed.",
enabledStatus: "Enabled",
disabledStatus: "Disabled",
relayNodeCount: "{{count}} nodes",
webrtcSettings: "WebRTC audio",
webrtcLead: "Low-latency voice is provided by this WebSpeak gateway; no extra server is required.",
webrtcEnabled: "Enable WebRTC",
webrtcEnabledLead: "Use realtime audio when supported; browsers and networks fall back automatically.",
webrtcPortRange: "WebRTC UDP port range",
webrtcPortRangeLead: "Allow the complete range through the host firewall and security group.",
webrtcPortStart: "Start port",
webrtcPortEnd: "End port",
webrtcApplyHint: "The range can only be edited while WebRTC is off. It is locked while enabled and applies to new connections after saving.",
webrtcPortNoticeTitle: "Allow WebRTC ports first",
webrtcPortNotice: "Ports must be opened: {{range}} (UDP). Allow this range in the host firewall, security group, and Docker port mapping first.",
relaySettings: "Relay server",
relaySettingsLead: "Configure the relay used by accelerated guest connections; its name is shown on the welcome page.",
relayEnabled: "Enable relay acceleration",
relayEnabledLead: "Guests who select acceleration will reach their TeamSpeak target through this relay.",
relayName: "Relay display name",
relayNamePlaceholder: "For example: Mainland relay or Japan relay",
relayTarget: "Relay server address",
relayTargetPlaceholder: "For example: relay.example.com#39087",
relayToken: "Relay token",
relayTokenPlaceholder: "Enter the relay service token",
relayTokenConfigured: "Token configured (leave blank to keep it)",
relayAdd: "Add relay node",
relayNodeEmpty: "No relay nodes are configured.",
relayUnnamed: "Unnamed relay",
relayManagedHint: "The relay is managed from the console. The token is stored encrypted and is never returned to the browser.",
relayEnvironmentHint: "The relay uses only the settings saved here. After you disable and save it, visitors will no longer see the relay option.",
accessMode: "Guest access mode",
fixedMode: "Only this TeamSpeak server",
fixedModeLead: "Guests enter only a nickname; WebSpeak manages the target and password.",
openMode: "Allow other TeamSpeak servers",
openModeLead: "Guests may enter public TeamSpeak addresses; private and reserved networks are blocked.",
siteName: "Site display name",
welcomeText: "Welcome message",
welcomeLanguage: "Welcome message language",
welcomeLanguageHint: "Switch languages to edit each message. Leave it blank to use the built-in template.",
welcomeFallbackHint: "An empty field falls back to the built-in template for this language.",
runtimeFacts: "Runtime facts",
lastTest: "Last test",
latency: "Latency",
internalPort: "Internal port",
unknown: "Unknown",
legacyImported: "Legacy config.json was imported. WebSpeak is now managed here and the old file is no longer a live configuration source.",
gotIt: "Got it",
systemStatus: "SYSTEM STATUS",
everythingRunning: "WebSpeak is running",
overviewLead: "The management service is available. TeamSpeak reachability reflects the latest connection test.",
running: "Running",
gateway: "Gateway",
activeSessions: "Active sessions",
peakSessions: "Peak this run: {{count}}",
targetHealth: "Target health",
targetHealthLead: "Result of the latest short-lived connection test.",
manage: "Manage",
status: "Status",
recentEvents: "Recent events",
recentEventsLead: "Only system and admin events are recorded; chat content is excluded.",
noRecentEvents: "No recent events",
reachable: "Reachable",
unreachable: "Unreachable",
notTested: "Not tested",
setupPasswordsMismatch: "The two passwords do not match.",
setupPasswordShort: "The admin password must be at least 12 characters.",
invalidPassword: "The admin password is incorrect.",
rateLimited: "Too many attempts. Try again later.",
requestFailed: "The request failed. Check the fields and try again.",
loginEvent: "Administrator signed in",
logoutEvent: "Administrator signed out",
settingsEvent: "Server settings changed",
initializedEvent: "Default administrator account created",
importedEvent: "Legacy configuration imported",
testEvent: "Connection test completed",
operationsLead: "Handle routine maintenance and troubleshooting without shell access.",
refresh: "Refresh",
sessions: "Active sessions",
sessionsLead: "Inspect browser connections and safely terminate an individual session when needed.",
sessionEmpty: "There are no active sessions.",
nickname: "Nickname",
sessionState: "State",
age: "Age",
memberCount: "Members",
endSession: "Terminate",
terminating: "Terminating…",
sessionTerminated: "Session terminated.",
confirmTerminate: "Terminate “{{nickname}}”?",
invites: "Managed invites",
invitesLead: "Create expiring, usage-limited invite links without putting the server password in the URL.",
inviteChannel: "Target channel",
inviteChannelPlaceholder: "Leave blank for the default channel",
expiresIn: "Expires in (hours)",
maxUses: "Maximum uses",
unlimitedUses: "Use 0 for unlimited uses.",
createInvite: "Create invite link",
inviteCreated: "Invite link created",
inviteSecurity: "Copy and share it now. For security, the full token will not be shown again.",
copyLink: "Copy link",
copiedLink: "Invite link copied.",
defaultChannel: "Default channel",
revoke: "Revoke",
inviteRevoked: "Invite link revoked.",
confirmRevoke: "Revoke this invite link?",
active: "Active",
expired: "Expired",
exhausted: "Exhausted",
revoked: "Revoked",
diagnostics: "Diagnostics",
diagnosticsLead: "Runtime facts for troubleshooting; downloaded reports are sanitized.",
runtime: "Runtime",
platform: "Platform",
databaseSchema: "Database schema",
createdSessions: "Sessions created",
downloadReport: "Download diagnostic report",
exportBackup: "Export database backup",
logViewer: "Runtime logs",
logViewerLead: "Recent gateway logs and user connection records; chat content is not recorded.",
connectionHistory: "User connection records",
connectionHistoryLead: "Connections, disconnects, and durations grouped by user.",
connectionFromTo: "From {{ip}} To {{target}}",
connectionViaRelay: "Via relay {{relay}}",
connectionActive: "Connected",
connectionConnecting: "Connecting",
connectionDisconnected: "Disconnected",
connectedAt: "Connected",
connectionAttemptedAt: "Attempted",
disconnectedAt: "Disconnected",
duration: "Duration",
logsUnavailable: "Log file unavailable",
noLogs: "No logs are available.",
operationFailed: "The operation failed. Try again later.",
updateNotice: "Running version {{version}}. Export a backup before upgrading, then replace the application version using the deployment guide.",
version: "Version",
audit: "Audit trail",
auditLead: "Administrator and system actions; chat content and secrets are excluded.",
auditEmpty: "No audit events.",
},
} as const;
export const germanCopy = {
...copy.en,
loading: "Administrationskonsole wird geladen…",
adminConsole: "Administrationskonsole",
changePasswordTitle: "Standardpasswort ändern",
changePasswordLead: "Das Standardpasswort ist nur für die erste Anmeldung gedacht. Lege ein neues Passwort mit mindestens 12 Zeichen fest.",
savePassword: "Neues Passwort speichern",
defaultCredentialNotice: "Standardkonto: admin. Standardpasswort: admin. Das alte Passwort wird nach dem Speichern sofort ungültig.",
adminUsername: "Administratorname",
newPassword: "Neues Administratorpasswort",
passwordPlaceholder: "Mindestens 12 Zeichen",
passwordHint: "Verwende ein langes, eindeutiges Passwort.",
confirmPassword: "Administratorpasswort bestätigen",
languageMenu: "Sprache",
languageSwitch: "中文",
welcomeAdmin: "Willkommen zurück",
loginLead: "Melde dich an, um diese WebSpeak-Instanz zu verwalten.",
adminPassword: "Administratorpasswort",
login: "Anmelden",
backHome: "Zur Startseite",
overview: "Übersicht",
server: "Server",
operations: "Betrieb",
skinLibrary: "Skins",
skinLibraryLead: "Standard- und benutzerdefinierte Skins für Besucher anzeigen und instanzweite Skin-Pakete importieren.",
skinDay: "Standard-Tagesmodus",
skinNight: "Standard-Nachtmodus",
skinIllusia: "ILLUSIA-Stil",
skinBuiltin: "Integriert",
skinProtected: "Integrierter Skin · nicht entfernbar",
skinDefault: "Standard-Skin",
skinDefaultLead: "Wird bei neuen Besuchern verwendet; bestehende Auswahl bleibt erhalten.",
skinEnabled: "Aktiviert",
skinDisabled: "Deaktiviert",
skinDefaultSaved: "Standardskin aktualisiert.",
skinEnabledNotice: "Skin aktiviert und für Besucher verfügbar.",
skinDisabledNotice: "Skin deaktiviert und für Besucher ausgeblendet.",
skinDayDescription: "Das standardmäßige helle WebSpeak-Design.",
skinNightDescription: "Das standardmäßige dunkle WebSpeak-Design.",
skinIllusiaDescription: "ILLUSIA-Grafiken für Startseite, Sprachraum und Demo.",
skinLibraryScope: "Skins werden Besuchern zur Auswahl angeboten. Jeder Besucher wählt das Design auf der öffentlichen Seite; die Administrationsoberfläche bleibt unverändert.",
skinUpload: "Skin-Paket importieren",
skinUploading: "Wird geprüft und importiert…",
skinEmpty: "Noch keine benutzerdefinierten Skins",
skinEmptyLead: "Wähle ein .wskin-Paket nach der WebSpeak-Skin-Spezifikation aus.",
skinAuthor: "Autor",
skinLicense: "Lizenz",
skinMinVersion: "Mindestversion",
skinPreview: "Vorschau",
skinRemove: "Entfernen",
skinRemoving: "Wird entfernt…",
skinConfirmRemove: "Diesen Skin aus der Instanz entfernen? Besucher wechseln beim nächsten Laden zurück.",
skinReplaceConfirm: "Ein Skin mit dieser ID ist bereits vorhanden. Durch dieses Paket ersetzen?",
skinImported: "Skin importiert und für Besucher freigegeben.",
skinRemoved: "Skin aus der Instanz entfernt.",
openGuest: "Gastseite öffnen",
logout: "Abmelden",
gatewayRunning: "Gateway läuft",
serverSettings: "Servereinstellungen",
serverSettingsLead: "Standard-TeamSpeak-Ziel, Zugriffsregeln und Inhalte der Gastseite verwalten.",
saving: "Wird gespeichert…",
saveChanges: "Änderungen speichern",
teamSpeakTarget: "Standard-TeamSpeak-Ziel",
serverAddress: "TeamSpeak-Serveradresse",
serverPlaceholder: "z. B. ts.example.com oder 127.0.0.1",
serverPort: "Sprachport",
serverHint: "Serveradresse und Sprachport getrennt eingeben. IPv6-Adressen benötigen keine Klammern.",
serverPassword: "Serverpasswort",
optional: "Optional",
optionalPassword: "Leer lassen, wenn kein Passwort verwendet wird",
passwordConfigured: "Passwort konfiguriert (leer lassen, um es beizubehalten)",
change: "Ändern",
remove: "Entfernen",
testConnection: "Verbindung testen",
testing: "Wird getestet…",
connectionReady: "Verbindung hergestellt",
connectionFailed: "Verbindung fehlgeschlagen",
packetLoss: "Paketverlust",
networkReachable: "Netzwerk erreichbar (Passwort nicht geprüft)",
networkReachableHint: "Ping erfolgreich. Der Admin-Test erstellt keinen zusätzlichen TeamSpeak-Client und prüft daher das Serverpasswort nicht.",
failureReason: "Grund",
failureDetail: "Diagnose",
hostNotFoundError: "Server nicht gefunden",
networkUnreachableError: "Netzwerk nicht erreichbar",
connectionRefusedError: "Verbindung abgelehnt",
connectionResetError: "Verbindung zurückgesetzt",
networkTimeoutError: "Netzwerk-Zeitüberschreitung",
serverPasswordRequiredError: "Serverpasswort erforderlich",
invalidServerPasswordError: "Falsches Serverpasswort",
protocolFailureError: "Aushandlung des TeamSpeak-Protokolls fehlgeschlagen",
serverRejectedError: "Server hat die Verbindung abgelehnt",
invalidNicknameError: "Die Länge des Spitznamens entspricht nicht den Serveranforderungen",
pingUnavailableError: "Netzwerkprüfung nicht verfügbar",
accessAndIdentity: "Zugriff und Website-Informationen",
advancedSettings: "Erweiterte Einstellungen",
advancedSettingsLead: "Erweiterte Gateway-Transportparameter nur bei Bedarf ändern.",
enabledStatus: "Aktiviert",
disabledStatus: "Deaktiviert",
relayNodeCount: "{{count}} Knoten",
webrtcSettings: "WebRTC-Audio",
webrtcEnabled: "WebRTC aktivieren",
webrtcPortRange: "WebRTC-UDP-Portbereich",
webrtcPortStart: "Startport",
webrtcPortEnd: "Endport",
relaySettings: "Relay-Server",
relaySettingsLead: "Konfiguriere den Relay-Knoten für beschleunigte Verbindungen; sein Name wird auf der Startseite angezeigt.",
relayEnabled: "Relay-Beschleunigung aktivieren",
relayEnabledLead: "Besucher mit aktivierter Beschleunigung erreichen ihr TeamSpeak-Ziel über diesen Relay.",
relayName: "Anzeigename des Relays",
relayNamePlaceholder: "Zum Beispiel: Festland-Relay oder Japan-Relay",
relayTarget: "Relay-Serveradresse",
relayTargetPlaceholder: "Zum Beispiel: relay.example.com#39087",
relayToken: "Relay-Token",
relayTokenPlaceholder: "Token des Relay-Dienstes eingeben",
relayTokenConfigured: "Token konfiguriert (leer lassen zum Beibehalten)",
relayAdd: "Relay-Knoten hinzufügen",
relayNodeEmpty: "Keine Relay-Knoten konfiguriert.",
relayUnnamed: "Unbenannter Relay",
relayManagedHint: "Der Relay wird über die Konsole verwaltet. Das Token wird verschlüsselt gespeichert und nie an den Browser zurückgegeben.",
relayEnvironmentHint: "Der Relay verwendet nur die hier gespeicherten Einstellungen. Nach dem Deaktivieren und Speichern wird die Option für Besucher ausgeblendet.",
accessMode: "Gastzugriff",
fixedMode: "Nur dieser TeamSpeak-Server",
openMode: "Andere TeamSpeak-Server erlauben",
siteName: "Anzeigename der Website",
welcomeText: "Willkommenstext",
welcomeLanguage: "Sprache des Willkommenstexts",
welcomeLanguageHint: "Sprache auswählen und den jeweiligen Text bearbeiten. Leer lassen, um die Vorlage zu verwenden.",
welcomeFallbackHint: "Ein leeres Feld verwendet automatisch die Vorlage dieser Sprache.",
runtimeFacts: "Laufzeitinformationen",
lastTest: "Letzter Test",
latency: "Latenz",
internalPort: "Interner Port",
unknown: "Unbekannt",
gotIt: "Verstanden",
systemStatus: "SYSTEMSTATUS",
everythingRunning: "WebSpeak läuft",
overviewLead: "Der Verwaltungsdienst ist verfügbar. Die Erreichbarkeit von TeamSpeak entspricht dem letzten Verbindungstest.",
running: "Läuft",
gateway: "Gateway",
activeSessions: "Aktive Sitzungen",
targetHealth: "Zielstatus",
status: "Status",
recentEvents: "Letzte Ereignisse",
noRecentEvents: "Keine aktuellen Ereignisse",
reachable: "Erreichbar",
unreachable: "Nicht erreichbar",
notTested: "Nicht getestet",
invalidPassword: "Das Administratorpasswort ist falsch.",
rateLimited: "Zu viele Versuche. Bitte später erneut versuchen.",
requestFailed: "Anfrage fehlgeschlagen. Prüfe die Eingaben und versuche es erneut.",
refresh: "Aktualisieren",
sessions: "Aktive Sitzungen",
sessionEmpty: "Keine aktiven Sitzungen.",
nickname: "Name",
sessionState: "Status",
age: "Dauer",
memberCount: "Mitglieder",
endSession: "Trennen",
terminating: "Wird getrennt…",
sessionTerminated: "Sitzung getrennt.",
invites: "Verwaltete Einladungen",
inviteChannel: "Zielkanal",
expiresIn: "Gültig für (Stunden)",
maxUses: "Maximale Nutzungen",
createInvite: "Einladungslink erstellen",
inviteCreated: "Einladungslink erstellt",
copyLink: "Link kopieren",
copiedLink: "Einladungslink kopiert.",
revoke: "Widerrufen",
inviteRevoked: "Einladungslink widerrufen.",
active: "Aktiv",
expired: "Abgelaufen",
exhausted: "Aufgebraucht",
revoked: "Widerrufen",
diagnostics: "Diagnose",
downloadReport: "Diagnosebericht herunterladen",
exportBackup: "Datenbanksicherung exportieren",
logViewer: "Laufzeitprotokoll",
connectionHistory: "Verbindungsaufzeichnungen",
connectionFromTo: "Von {{ip}} zu {{target}}",
connectionViaRelay: "Über Relay {{relay}}",
connectionActive: "Verbunden",
connectionConnecting: "Verbindung wird hergestellt",
connectionDisconnected: "Getrennt",
connectedAt: "Verbunden",
connectionAttemptedAt: "Versuch",
disconnectedAt: "Getrennt",
duration: "Dauer",
logsUnavailable: "Protokolldatei nicht verfügbar",
noLogs: "Keine Protokolle verfügbar.",
operationFailed: "Vorgang fehlgeschlagen. Bitte später erneut versuchen.",
version: "Version",
audit: "Prüfprotokoll",
auditEmpty: "Keine Prüfereignisse.",
} as const;
export const russianCopy = {
...copy.en,
loading: "Загрузка панели администратора…",
adminConsole: "Панель администратора",
changePasswordTitle: "Измените пароль по умолчанию",
changePasswordLead: "Пароль по умолчанию используется только для первого входа. Задайте новый пароль длиной не менее 12 символов.",
savePassword: "Сохранить новый пароль",
languageMenu: "Язык",
welcomeAdmin: "С возвращением",
loginLead: "Войдите, чтобы управлять этим экземпляром WebSpeak.",
adminPassword: "Пароль администратора",
login: "Войти",
backHome: "На главную",
overview: "Обзор",
server: "Сервер",
operations: "Операции",
skinLibrary: "Оформление",
skinLibraryLead: "Просматривайте стандартное и пользовательское оформление и импортируйте пакеты для всего экземпляра.",
skinDay: "Стандартная дневная тема",
skinNight: "Стандартная ночная тема",
skinIllusia: "Стиль ILLUSIA",
skinBuiltin: "Встроено",
skinProtected: "Встроенная тема · нельзя удалить",
skinDefault: "Тема по умолчанию",
skinDefaultLead: "Используется при первом посещении; сохранённый выбор пользователя не меняется.",
skinEnabled: "Включена",
skinDisabled: "Отключена",
skinDefaultSaved: "Тема по умолчанию обновлена.",
skinEnabledNotice: "Тема включена и доступна посетителям.",
skinDisabledNotice: "Тема отключена и скрыта от посетителей.",
skinDayDescription: "Стандартное светлое оформление WebSpeak.",
skinNightDescription: "Стандартное тёмное оформление WebSpeak.",
skinIllusiaDescription: "Иллюстрации ILLUSIA для главной страницы, голосовой комнаты и демо.",
skinLibraryScope: "Оформление предлагается посетителям на выбор; каждый выбирает его на публичной странице. Панель администратора сохраняет собственный стиль.",
skinUpload: "Импортировать пакет оформления",
skinUploading: "Проверка и импорт…",
skinEmpty: "Пользовательское оформление ещё не добавлено",
skinEmptyLead: "Выберите файл .wskin, соответствующий спецификации WebSpeak.",
skinAuthor: "Автор",
skinLicense: "Лицензия",
skinMinVersion: "Мин. версия",
skinPreview: "Предпросмотр",
skinRemove: "Удалить",
skinRemoving: "Удаление…",
skinConfirmRemove: "Удалить оформление из этого экземпляра? При следующей загрузке посетители вернутся к стандартному.",
skinReplaceConfirm: "Оформление с таким ID уже существует. Заменить его этим пакетом?",
skinImported: "Оформление импортировано и доступно посетителям.",
skinRemoved: "Оформление удалено из экземпляра.",
openGuest: "Открыть страницу гостя",
logout: "Выйти",
gatewayRunning: "Шлюз работает",
serverSettings: "Настройки сервера",
serverSettingsLead: "Управляйте целью TeamSpeak, политикой доступа и содержимым для гостей.",
saving: "Сохранение…",
saveChanges: "Сохранить изменения",
teamSpeakTarget: "Цель TeamSpeak по умолчанию",
serverAddress: "Адрес сервера TeamSpeak",
serverPlaceholder: "например, ts.example.com или 127.0.0.1",
serverPort: "Голосовой порт",
serverPassword: "Пароль сервера",
optional: "необязательно",
optionalPassword: "Оставьте пустым, если пароль не нужен",
passwordConfigured: "Пароль настроен (оставьте пустым, чтобы сохранить)",
change: "Изменить",
remove: "Удалить",
testConnection: "Проверить подключение",
testing: "Проверка…",
connectionReady: "Подключение установлено",
connectionFailed: "Подключение не удалось",
packetLoss: "Потери пакетов",
accessAndIdentity: "Доступ и данные сайта",
advancedSettings: "Расширенные настройки",
advancedSettingsLead: "Изменяйте расширенные параметры передачи только при необходимости.",
enabledStatus: "Включено",
disabledStatus: "Выключено",
relayNodeCount: "Узлов: {{count}}",
webrtcEnabled: "Включить WebRTC",
relaySettings: "Сервер ретрансляции",
relaySettingsLead: "Настройте узлы ретрансляции для ускоренных подключений.",
relayEnabled: "Включить ретрансляцию",
relayName: "Название ретранслятора",
relayTarget: "Адрес ретранслятора",
relayToken: "Токен ретранслятора",
relayAdd: "Добавить узел ретрансляции",
relayNodeEmpty: "Узлы ретрансляции не настроены.",
relayUnnamed: "Ретранслятор без названия",
accessMode: "Режим доступа гостей",
fixedMode: "Только этот сервер TeamSpeak",
openMode: "Разрешить другие серверы TeamSpeak",
siteName: "Отображаемое имя сайта",
welcomeText: "Приветственное сообщение",
welcomeLanguage: "Язык приветственного сообщения",
welcomeLanguageHint: "Переключайте язык, чтобы редактировать отдельное сообщение. Оставьте поле пустым для встроенного шаблона.",
welcomeFallbackHint: "Пустое поле автоматически использует шаблон выбранного языка.",
runtimeFacts: "Сведения о работе",
lastTest: "Последняя проверка",
latency: "Задержка",
internalPort: "Внутренний порт",
systemStatus: "СОСТОЯНИЕ СИСТЕМЫ",
everythingRunning: "WebSpeak работает",
running: "Работает",
gateway: "Шлюз",
activeSessions: "Активные сессии",
targetHealth: "Состояние цели",
status: "Состояние",
recentEvents: "Последние события",
noRecentEvents: "Нет последних событий",
reachable: "Доступен",
unreachable: "Недоступен",
notTested: "Не проверен",
requestFailed: "Запрос не выполнен. Проверьте поля и повторите попытку.",
refresh: "Обновить",
sessions: "Активные сессии",
sessionEmpty: "Нет активных сессий.",
nickname: "Имя",
sessionState: "Состояние",
age: "Длительность",
memberCount: "Участники",
endSession: "Отключить",
terminating: "Отключение…",
invites: "Управляемые приглашения",
inviteChannel: "Целевой канал",
expiresIn: "Срок действия (часы)",
maxUses: "Максимум использований",
createInvite: "Создать ссылку-приглашение",
inviteCreated: "Ссылка-приглашение создана",
copyLink: "Копировать ссылку",
copiedLink: "Ссылка-приглашение скопирована.",
revoke: "Отозвать",
active: "Активно",
expired: "Истекло",
exhausted: "Лимит исчерпан",
revoked: "Отозвано",
diagnostics: "Диагностика",
downloadReport: "Скачать отчёт диагностики",
exportBackup: "Экспортировать резервную копию",
logViewer: "Рабочие журналы",
connectionHistory: "История подключений пользователей",
connectionFromTo: "От {{ip}} к {{target}}",
connectionViaRelay: "Через ретранслятор {{relay}}",
connectionActive: "Подключён",
connectionConnecting: "Подключение",
connectionDisconnected: "Отключён",
connectedAt: "Подключён",
connectionAttemptedAt: "Попытка",
disconnectedAt: "Отключён",
duration: "Длительность",
noLogs: "Нет доступных журналов.",
operationFailed: "Операция не выполнена. Повторите позже.",
version: "Версия",
audit: "Журнал аудита",
auditEmpty: "Нет событий аудита.",
} as const;
export const japaneseCopy = {
...copy.en,
loading: "管理コンソールを読み込み中…",
adminConsole: "管理コンソール",
changePasswordTitle: "初期パスワードを変更",
changePasswordLead: "初期パスワードは初回ログイン専用です。12文字以上の新しい管理者パスワードを設定してください。",
savePassword: "新しいパスワードを保存",
languageMenu: "言語",
welcomeAdmin: "おかえりなさい",
loginLead: "ログインして WebSpeak を管理します。",
adminPassword: "管理者パスワード",
login: "ログイン",
backHome: "ホームに戻る",
overview: "概要",
server: "サーバー",
operations: "運用",
skinLibrary: "スキン",
skinLibraryLead: "訪問者向けの標準スキンとカスタムスキンを表示し、インスタンス共通のパッケージを読み込みます。",
skinDay: "標準の昼モード",
skinNight: "標準の夜モード",
skinIllusia: "ILLUSIA スタイル",
skinBuiltin: "組み込み",
skinProtected: "組み込みスキン · 削除不可",
skinDefault: "デフォルトスキン",
skinDefaultLead: "初回訪問時に適用します。訪問者が選択済みの場合はその設定を維持します。",
skinEnabled: "有効",
skinDisabled: "無効",
skinDefaultSaved: "デフォルトスキンを更新しました。",
skinEnabledNotice: "スキンを有効にし、訪問者に公開しました。",
skinDisabledNotice: "スキンを無効にし、訪問者の選択肢から隠しました。",
skinDayDescription: "WebSpeak の標準ライト外観です。",
skinNightDescription: "WebSpeak の標準ダーク外観です。",
skinIllusiaDescription: "ホーム、ボイスルーム、デモ用の ILLUSIA アートです。",
skinLibraryScope: "スキンは訪問者向けの選択肢として公開され、各訪問者が公開ページで選択します。管理画面の外観は変更されません。",
skinUpload: "スキンパッケージを読み込む",
skinUploading: "検証・読み込み中…",
skinEmpty: "カスタムスキンはまだありません",
skinEmptyLead: "WebSpeak スキン仕様に準拠した .wskin ファイルを選択してください。",
skinAuthor: "作者",
skinLicense: "ライセンス",
skinMinVersion: "最低バージョン",
skinPreview: "プレビュー",
skinRemove: "削除",
skinRemoving: "削除中…",
skinConfirmRemove: "このインスタンスからスキンを削除しますか?利用中の訪問者は次回読み込み時に標準へ戻ります。",
skinReplaceConfirm: "同じ ID のスキンがあります。このパッケージで置き換えますか?",
skinImported: "スキンを読み込み、訪問者が選択できるようにしました。",
skinRemoved: "インスタンスからスキンを削除しました。",
openGuest: "ゲストページを開く",
logout: "ログアウト",
gatewayRunning: "ゲートウェイ稼働中",
serverSettings: "サーバー設定",
serverSettingsLead: "TeamSpeak 接続先、アクセス方針、ゲスト向け内容を管理します。",
saving: "保存中…",
saveChanges: "変更を保存",
teamSpeakTarget: "デフォルト TeamSpeak 接続先",
serverAddress: "TeamSpeak サーバーアドレス",
serverPlaceholder: "例: ts.example.com または 127.0.0.1",
serverPort: "音声ポート",
serverPassword: "サーバーパスワード",
optional: "任意",
optionalPassword: "不要な場合は空欄",
passwordConfigured: "パスワード設定済み(変更しない場合は空欄)",
change: "変更",
remove: "削除",
testConnection: "接続をテスト",
testing: "テスト中…",
connectionReady: "接続準備完了",
connectionFailed: "接続に失敗しました",
packetLoss: "パケット損失",
accessAndIdentity: "アクセスとサイト情報",
advancedSettings: "詳細設定",
advancedSettingsLead: "必要な場合だけゲートウェイの詳細な転送設定を変更します。",
enabledStatus: "有効",
disabledStatus: "無効",
relayNodeCount: "{{count}} ノード",
webrtcEnabled: "WebRTC を有効化",
relaySettings: "中継サーバー",
relaySettingsLead: "高速接続で使用する中継ノードを設定します。",
relayEnabled: "中継を有効化",
relayName: "中継名",
relayTarget: "中継サーバーアドレス",
relayToken: "中継トークン",
relayAdd: "中継ノードを追加",
relayNodeEmpty: "中継ノードは設定されていません。",
relayUnnamed: "名前のない中継",
accessMode: "ゲストアクセスモード",
fixedMode: "この TeamSpeak サーバーのみ",
openMode: "他の TeamSpeak サーバーを許可",
siteName: "サイト表示名",
welcomeText: "ウェルカムメッセージ",
welcomeLanguage: "ウェルカムメッセージの言語",
welcomeLanguageHint: "言語を切り替えて個別のメッセージを編集します。空欄の場合は組み込みテンプレートを使用します。",
welcomeFallbackHint: "空欄にすると選択した言語のデフォルトテンプレートに戻ります。",
runtimeFacts: "実行情報",
lastTest: "最終テスト",
latency: "遅延",
internalPort: "内部ポート",
systemStatus: "システム状態",
everythingRunning: "WebSpeak は稼働中です",
running: "稼働中",
gateway: "ゲートウェイ",
activeSessions: "アクティブセッション",
targetHealth: "接続先の状態",
status: "状態",
recentEvents: "最近のイベント",
noRecentEvents: "最近のイベントはありません",
reachable: "接続可能",
unreachable: "接続不可",
notTested: "未テスト",
requestFailed: "リクエストに失敗しました。入力を確認して再試行してください。",
refresh: "更新",
sessions: "アクティブセッション",
sessionEmpty: "アクティブなセッションはありません。",
nickname: "名前",
sessionState: "状態",
age: "経過時間",
memberCount: "メンバー",
endSession: "切断",
terminating: "切断中…",
invites: "管理済み招待",
inviteChannel: "参加先チャンネル",
expiresIn: "有効期間(時間)",
maxUses: "最大使用回数",
createInvite: "招待リンクを作成",
inviteCreated: "招待リンクを作成しました",
copyLink: "リンクをコピー",
copiedLink: "招待リンクをコピーしました。",
revoke: "取り消す",
active: "有効",
expired: "期限切れ",
exhausted: "上限到達",
revoked: "取り消し済み",
diagnostics: "診断情報",
downloadReport: "診断レポートをダウンロード",
exportBackup: "データベースをバックアップ",
logViewer: "実行ログ",
connectionHistory: "ユーザー接続履歴",
connectionFromTo: "{{ip}} から {{target}} へ",
connectionViaRelay: "中継 {{relay}} 経由",
connectionActive: "接続中",
connectionConnecting: "接続準備中",
connectionDisconnected: "切断済み",
connectedAt: "接続",
connectionAttemptedAt: "試行",
disconnectedAt: "切断",
duration: "時間",
noLogs: "表示できるログはありません。",
operationFailed: "操作に失敗しました。後でもう一度お試しください。",
version: "バージョン",
audit: "監査ログ",
auditEmpty: "監査イベントはありません。",
} as const;
+8 -5
View File
@@ -3,9 +3,6 @@ import { createPinia } from "pinia";
import { createRouter, createWebHistory } from "vue-router";
import { bootstrapPlatform } from "./platform/bootstrap.js";
import App from "./App.vue";
import WebClient from "./views/WebClient.vue";
import AdminView from "./views/AdminView.vue";
import DemoView from "./views/DemoView.vue";
import "./services/theme.js";
const BASELINE_WIDTH = 1920;
@@ -27,17 +24,23 @@ function applyUiScale(): void {
applyUiScale();
window.addEventListener("resize", applyUiScale, { passive: true });
const WebClient = () => import("./views/WebClient.vue");
const routes = [
{ path: "/", name: "webclient", component: WebClient },
{ path: "/join", name: "join", component: WebClient },
{ path: "/demo", name: "demo", component: DemoView },
{ path: "/admin/:pathMatch(.*)*", name: "admin", component: AdminView },
{ path: "/demo", name: "demo", component: () => import("./views/DemoView.vue") },
{ path: "/admin/:pathMatch(.*)*", name: "admin", component: () => import("./views/AdminView.vue") },
];
const router = createRouter({
history: createWebHistory(),
routes,
});
// Route chunks keep their CSS after navigation. Gate document-level layout so
// visiting the admin console cannot constrain scrolling on the public pages.
router.afterEach(to => {
document.documentElement.dataset.wsRoute = to.name === "admin" ? "admin" : to.name === "demo" ? "demo" : "webclient";
});
void bootstrapPlatform(mountApp);
+95
View File
@@ -0,0 +1,95 @@
import assert from "node:assert/strict";
import test from "node:test";
import { AdminApiError, createAdminApi } from "./admin-api.js";
import { adminResponses } from "../../../src/shared/admin-responses.js";
import { strToU8, zipSync } from "fflate";
const json = (value: unknown, status = 200) => new Response(JSON.stringify(value), { status });
test("admin mutations read the current CSRF token and encode resource IDs", async () => {
let token = "first-test-token";
const calls: Array<{ url: string; init: RequestInit }> = [];
const api = createAdminApi({ csrfToken: () => token, fetch: async (url, init = {}) => {
calls.push({ url: String(url), init });
return json({ ok: true });
} });
await api.changePassword("test-password");
token = "replacement-test-token";
await api.revokeInvite("a/b ?");
assert.equal(new Headers(calls[0].init.headers).get("x-csrf-token"), "first-test-token");
assert.equal(new Headers(calls[1].init.headers).get("x-csrf-token"), token);
assert.equal(calls[1].url, "/api/admin/invites/a%2Fb%20%3F/revoke");
assert.equal(calls[0].init.body, JSON.stringify({ newPassword: "test-password" }));
});
test("skin uploads preserve the binary body, validate the package and honor replacement cancellation", async () => {
const skin = { schemaVersion: 1, id: "api-test-skin", name: "Test", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.4", entry: "skin.css" };
const file = new File([zipSync({ "manifest.json": strToU8(JSON.stringify(skin)), "skin.css": strToU8('[data-ws-part="home"] { color: #123456; }') })], "test.wskin");
let requests = 0;
const api = createAdminApi({ csrfToken: () => "upload-test-token", fetch: async (url, init) => {
requests++;
assert.equal(url, "/api/admin/skins/api-test-skin");
assert.equal(init?.body, file);
assert.equal(new Headers(init.headers).get("content-type"), "application/octet-stream");
assert.equal(new Headers(init.headers).get("x-csrf-token"), "upload-test-token");
return json({ ok: true, skin: { ...skin, installedAt: 1 } });
} });
assert.equal(await api.uploadSkin(file, () => false), null);
assert.equal(requests, 0);
assert.equal((await api.uploadSkin(file))?.id, skin.id);
assert.equal(requests, 1);
await assert.rejects(api.uploadSkin(new File(["not a zip"], "broken.wskin")));
assert.equal(requests, 1);
});
test("backup downloads use the common expired-session path and retain binary data", async () => {
let expired = 0;
const api = createAdminApi({ csrfToken: () => "", onUnauthorized: () => expired++, fetch: async () => new Response("Expired", { status: 401 }) });
await assert.rejects(api.backup(), error => error instanceof AdminApiError && error.status === 401);
assert.equal(expired, 1);
const binary = createAdminApi({ csrfToken: () => "", fetch: async (_url, init) => {
assert.equal(new Headers(init?.headers).get("accept"), "application/octet-stream");
return new Response(new Uint8Array([0, 1, 255]));
} });
assert.deepEqual(new Uint8Array(await (await binary.backup()).arrayBuffer()), new Uint8Array([0, 1, 255]));
});
test("login errors retain their code without expiring an unrelated session or sending CSRF", async () => {
let expired = 0;
const api = createAdminApi({ csrfToken: () => "private-test-token", onUnauthorized: () => expired++, fetch: async (_url, init) => {
assert.equal(new Headers(init?.headers).has("x-csrf-token"), false);
return json({ code: "INVALID_PASSWORD" }, 401);
} });
await assert.rejects(api.login("admin", "incorrect"), error => error instanceof AdminApiError && error.code === "INVALID_PASSWORD" && error.status === 401);
assert.equal(expired, 0);
});
test("expired sessions notify the page even when the error response is not JSON", async () => {
let expired = 0;
const api = createAdminApi({ csrfToken: () => "", onUnauthorized: () => expired++, fetch: async () => new Response("Proxy authentication required", { status: 401 }) });
await assert.rejects(api.overview(), error => error instanceof AdminApiError && error.status === 401);
assert.equal(expired, 1);
});
test("successful HTTP status cannot turn an incomplete settings or login response into success", async () => {
for (const value of [{}, null, [], { ok: true }, { ok: true, settings: { target: "voice.example:9987" } }]) {
const api = createAdminApi({ csrfToken: () => "", fetch: async () => json(value) });
await assert.rejects(api.settings(), error => error instanceof AdminApiError && error.code === "INVALID_ADMIN_RESPONSE");
await assert.rejects(api.login("admin", "test"), error => error instanceof AdminApiError && error.code === "INVALID_ADMIN_RESPONSE");
}
assert.throws(() => adminResponses.session({ authenticated: true, mustChangePassword: false }), /INVALID_ADMIN_RESPONSE/);
assert.deepEqual(adminResponses.session({ authenticated: false }), { authenticated: false, mustChangePassword: undefined, csrfToken: undefined });
});
test("nested malformed list entries are rejected before replacing the current page snapshot", async () => {
const api = createAdminApi({ csrfToken: () => "", fetch: async () => json({ sessions: [{ id: "incomplete" }] }) });
await assert.rejects(api.sessions(), error => error instanceof AdminApiError && error.code === "INVALID_ADMIN_RESPONSE");
assert.throws(() => adminResponses.logs({ available: true, sessions: [], entries: [{ timestamp: null, level: "INFO", message: "test", context: { nested: {} } }] }), /INVALID_ADMIN_RESPONSE/);
});
test("HTTP failures and network failures are normalized without exposing arbitrary response text", async () => {
const failed = createAdminApi({ csrfToken: () => "", fetch: async () => json({ code: "WEBRTC_PORT_LOCKED" }, 409) });
await assert.rejects(failed.dismissLegacyNotice(), error => error instanceof AdminApiError && error.code === "WEBRTC_PORT_LOCKED");
const offline = createAdminApi({ csrfToken: () => "", fetch: async () => { throw new Error("private network details"); } });
await assert.rejects(offline.overview(), error => error instanceof AdminApiError && error.message === "REQUEST_FAILED");
});
+88
View File
@@ -0,0 +1,88 @@
import { adminResponses, type AdminResponseReader } from "../../../src/shared/admin-responses.js";
import type { AdminSettingsInput, ManagedInviteInput } from "../../../src/shared/admin-inputs.js";
export class AdminApiError extends Error {
constructor(readonly code: string, readonly status = 0, message = code) {
super(message);
this.name = "AdminApiError";
}
}
interface AdminApiOptions {
csrfToken(): string;
onUnauthorized?(): void;
fetch?: typeof fetch;
}
export function createAdminApi(options: AdminApiOptions) {
const fetcher = options.fetch ?? ((...args: Parameters<typeof fetch>) => fetch(...args));
async function transport(path: string, init: RequestInit = {}, authenticated = true): Promise<Response> {
const headers = new Headers(init.headers);
if (!headers.has("accept")) headers.set("accept", "application/json");
if (init.method && init.method !== "GET") {
const token = authenticated ? options.csrfToken() : "";
if (token) headers.set("x-csrf-token", token);
}
let response: Response;
try {
response = await fetcher(`/api/admin${path}`, { ...init, headers });
} catch {
throw new AdminApiError("REQUEST_FAILED");
}
// Notify even if a proxy returned HTML instead of a JSON error body.
if (response.status === 401 && authenticated) options.onUnauthorized?.();
if (!response.ok) {
const value: unknown = await response.json().catch(() => undefined);
const code = value && typeof value === "object" && "code" in value && typeof value.code === "string" && value.code
? value.code : "REQUEST_FAILED";
const message = value && typeof value === "object" && "message" in value && typeof value.message === "string" ? value.message : code;
throw new AdminApiError(code, response.status, message);
}
return response;
}
async function decode<T>(response: Response, read: AdminResponseReader<T>): Promise<T> {
const value: unknown = await response.json().catch(() => undefined);
try { return read(value); }
catch { throw new AdminApiError("INVALID_ADMIN_RESPONSE", response.status); }
}
async function request<T>(path: string, read: AdminResponseReader<T>, method = "GET", body?: unknown, authenticated = true): Promise<T> {
const response = await transport(path, {
method, ...(body === undefined ? {} : { body: JSON.stringify(body), headers: { "content-type": "application/json" } }),
}, authenticated);
return decode(response, read);
}
return {
session: () => request("/session", adminResponses.session),
login: (username: string, password: string) => request("/login", adminResponses.login, "POST", { username, password }, false),
changePassword: (newPassword: string) => request("/change-password", adminResponses.ok, "POST", { newPassword }),
logout: () => request("/logout", adminResponses.ok, "POST", {}),
overview: () => request("/overview", adminResponses.overview),
settings: () => request("/server", adminResponses.settings),
saveSettings: (body: AdminSettingsInput) => request("/server", adminResponses.savedSettings, "PUT", body),
probe: (body: Pick<AdminSettingsInput, "target" | "serverPassword" | "passwordAction">) => request("/server/test", adminResponses.probe, "POST", body),
sessions: () => request("/sessions", adminResponses.sessions),
terminateSession: (id: string) => request(`/sessions/${encodeURIComponent(id)}/terminate`, adminResponses.ok, "POST", {}),
invites: () => request("/invites", adminResponses.invites),
createInvite: (body: ManagedInviteInput) => request("/invites", adminResponses.createdInvite, "POST", body),
revokeInvite: (id: string) => request(`/invites/${encodeURIComponent(id)}/revoke`, adminResponses.ok, "POST", {}),
diagnostics: () => request("/diagnostics", adminResponses.diagnostics),
logs: () => request("/logs?limit=100", adminResponses.logs),
audit: () => request("/audit?limit=50", adminResponses.audit),
skins: () => request("/skins", adminResponses.skins),
setDefaultSkin: (id: string) => request("/skins/default", adminResponses.defaultSkin, "PUT", { id }),
setSkinEnabled: (id: string, enabled: boolean) => request(`/skins/${encodeURIComponent(id)}/enabled`, adminResponses.updatedSkin, "PUT", { enabled }),
deleteSkin: (id: string) => request(`/skins/${encodeURIComponent(id)}`, adminResponses.ok, "DELETE", {}),
async uploadSkin(file: File, confirmReplace?: (id: string) => boolean) {
const { importSkinPack } = await import("./skin-pack.js");
const skin = await importSkinPack(file);
if (confirmReplace && !confirmReplace(skin.id)) return null;
const response = await transport(`/skins/${encodeURIComponent(skin.id)}`, {
method: "PUT", headers: { "content-type": "application/octet-stream" }, body: file,
});
return (await decode(response, adminResponses.uploadedSkin)).skin;
},
async backup() { return (await transport("/backup", { headers: { accept: "application/octet-stream" } })).blob(); },
dismissLegacyNotice: () => request("/legacy-import/dismiss", adminResponses.ok, "POST", {}),
};
}
-26
View File
@@ -104,29 +104,3 @@ export async function listPublicSkins(): Promise<SkinCatalogEntry[]> {
return BUILTIN_SKIN_CATALOG;
}
}
export async function uploadSkinPackage(file: File, csrfToken: string, confirmReplace?: (id: string) => boolean): Promise<SkinCatalogEntry | null> {
const { importSkinPack } = await import("./skin-pack.js");
const skin = await importSkinPack(file);
if (confirmReplace && !confirmReplace(skin.id)) return null;
const response = await fetch(`/api/admin/skins/${encodeURIComponent(skin.id)}`, {
method: "PUT",
headers: { "content-type": "application/octet-stream", "x-csrf-token": csrfToken, accept: "application/json" },
body: file,
});
const payload = await response.json().catch(() => null) as { skin?: SkinCatalogEntry; message?: string; code?: string } | null;
if (!response.ok || !payload?.skin) throw new Error(payload?.message || payload?.code || `HTTP_${response.status}`);
return payload.skin;
}
export async function deleteSkinPackage(id: string, csrfToken: string): Promise<void> {
const response = await fetch(`/api/admin/skins/${encodeURIComponent(id)}`, {
method: "DELETE",
headers: { "content-type": "application/json", "x-csrf-token": csrfToken, accept: "application/json" },
body: "{}",
});
if (!response.ok) {
const payload = await response.json().catch(() => null) as { code?: string } | null;
throw new Error(payload?.code || `HTTP_${response.status}`);
}
}
+3 -2
View File
@@ -78,15 +78,16 @@ test("community skins use a scoped light fallback instead of inheriting the nigh
});
test("all public skin parts are documented and the admin console is outside skin scope", async () => {
const [webClient, demo, skinSwitcher, languageSwitcher, admin, documentation] = await Promise.all([
const [webClient, header, demo, skinSwitcher, languageSwitcher, admin, documentation] = await Promise.all([
readFile(new URL("../views/WebClient.vue", import.meta.url), "utf8"),
readFile(new URL("../components/web-client/WebClientHeader.vue", import.meta.url), "utf8"),
readFile(new URL("../views/DemoView.vue", import.meta.url), "utf8"),
readFile(new URL("../components/SkinSwitcher.vue", import.meta.url), "utf8"),
readFile(new URL("../components/LanguageSwitcher.vue", import.meta.url), "utf8"),
readFile(new URL("../views/AdminView.vue", import.meta.url), "utf8"),
readFile(new URL("../../../docs/SKIN_DEVELOPMENT.md", import.meta.url), "utf8"),
]);
const publicParts = new Set([...`${webClient}\n${demo}\n${skinSwitcher}\n${languageSwitcher}`.matchAll(/data-ws-part="([^"]+)"/g)].map((match) => match[1]));
const publicParts = new Set([...`${webClient}\n${header}\n${demo}\n${skinSwitcher}\n${languageSwitcher}`.matchAll(/data-ws-part="([^"]+)"/g)].map((match) => match[1]));
for (const part of publicParts) assert.ok(documentation.includes(`\`${part}\``), `Undocumented skin part: ${part}`);
assert.match(skinSwitcher, /data-ws-skin-id/);
assert.match(skinSwitcher, /data-ws-state/);
+440
View File
@@ -0,0 +1,440 @@
.intro-copy h1{font-size:clamp(38px,4.2vw,56px)!important;line-height:1.05!important;letter-spacing:-.055em!important}
.admin-topbar .theme-toggle{display:inline-flex;align-items:center;gap:6px}
:global(html[data-ws-route="admin"] *){box-sizing:border-box}:global(html[data-ws-route="admin"] body){margin:0;font-family:Inter,"Segoe UI","PingFang SC",sans-serif;color:#20302c;background:#f4f8f6}.admin-root{min-height:100dvh}.auth-layout{display:grid;min-height:100dvh;grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr)}.auth-intro{display:flex;flex-direction:column;padding:48px clamp(38px,6vw,92px);color:#e8fffa;background:radial-gradient(circle at 20% 0,rgba(90,211,191,.28),transparent 32rem),#063f3b}.admin-brand{display:flex;align-items:center;gap:12px}.admin-brand>span{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:#07877d;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.15)}.admin-brand strong,.admin-brand small{display:block}.admin-brand strong{font-size:20px;letter-spacing:-.04em}.admin-brand small{margin-top:3px;color:#9bc9c2;font-size:11px}.intro-copy{margin:auto 0 48px}.intro-copy i{color:#75e3d2;font-size:12px;font-style:normal;font-weight:800;letter-spacing:.12em}.intro-copy h1{max-width:540px;margin:16px 0;font-size:clamp(40px,5vw,66px);line-height:1.03;letter-spacing:-.065em}.intro-copy p{max-width:530px;color:#a9d0ca;font-size:16px;line-height:1.75}.step-list{display:grid;gap:10px}.step-list button{display:flex;align-items:center;gap:13px;width:100%;padding:13px;color:#89bbb4;text-align:left;background:transparent;border:1px solid transparent;border-radius:12px}.step-list button.active{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1)}.step-list button.done{color:#8ee4d7}.step-list button>span{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:800}.step-list strong,.step-list small{display:block}.step-list strong{font-size:13px}.step-list small{margin-top:3px;font-size:10px;opacity:.75}.auth-panel{position:relative;display:grid;place-items:center;padding:80px 40px;background:radial-gradient(circle at 80% 10%,rgba(99,205,188,.15),transparent 25rem),#f5f9f7}.panel-tools{position:absolute;top:28px;right:34px}.panel-tools button,.language-link,.admin-topbar button{color:#08766e;background:#e4f3ef;border:1px solid #cae7e0;border-radius:8px;padding:8px 12px;font-size:11px;font-weight:700;cursor:pointer}.setup-card,.login-card{width:min(560px,100%);padding:36px;background:#fff;border:1px solid #dfeae6;border-radius:20px;box-shadow:0 20px 55px rgba(27,69,61,.09)}.setup-card header small{color:#07877d;font-size:11px;font-weight:800;letter-spacing:.08em}.setup-card header h2,.login-card h1{margin:10px 0 7px;font-size:29px;letter-spacing:-.045em}.setup-card header p,.login-card header p{margin:0;color:#71817c;font-size:13px;line-height:1.6}.form-stack,.login-card form{display:grid;gap:17px;margin-top:27px}label>span,fieldset legend{display:block;margin-bottom:7px;color:#40514c;font-size:12px;font-weight:700}label em{color:#91a09c;font-size:10px;font-style:normal;font-weight:500}label small{display:block;margin-top:6px;color:#899792;font-size:10px;line-height:1.5}input,textarea{width:100%;padding:11px 12px;color:#22332f;background:#fbfdfc;border:1px solid #dbe7e3;border-radius:9px;font:inherit;font-size:13px;outline:none}input{height:43px}input:focus,textarea:focus{border-color:#54bdb2;box-shadow:0 0 0 3px rgba(84,189,178,.13)}textarea{resize:vertical}.strength{height:4px;overflow:hidden;background:#e7eeeb;border-radius:4px}.strength i{display:block;height:100%;background:linear-gradient(90deg,#e7a452,#50c5a2);transition:.2s}fieldset{display:grid;gap:9px;margin:0;padding:0;border:0}.choice{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #dfe9e6;border-radius:10px;cursor:pointer}.choice:has(input:checked){border-color:#62bfb5;background:#eff8f6}.choice input{width:16px;height:16px;flex:none;margin:2px 0}.choice strong,.choice small{display:block}.choice strong{font-size:12px}.choice small{margin-top:4px;color:#7b8985;font-size:10px;line-height:1.45}.setup-card footer{display:flex;align-items:center;justify-content:space-between;margin-top:28px;padding-top:20px;border-top:1px solid #edf1ef}.primary-button,.secondary-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:9px;font-size:12px;font-weight:800;cursor:pointer}.primary-button{color:#fff;background:#087d74}.primary-button:hover{background:#056b63}.primary-button:disabled,.secondary-button:disabled{opacity:.55;cursor:not-allowed}.secondary-button{color:#08776e;background:#eaf6f3;border:1px solid #cfe9e3}.text-button{color:#687a74;background:transparent}.wide{width:100%}.spinner{display:inline-block;width:22px;height:22px;border:2px solid #cde6df;border-top-color:#087d74;border-radius:50%;animation:spin .7s linear infinite}.spinner.small{width:15px;height:15px;border-color:rgba(255,255,255,.35);border-top-color:currentColor}@keyframes spin{to{transform:rotate(360deg)}}.alerLine truncated
@media(max-width:850px){.auth-layout{display:block}.auth-intro{min-height:auto;padding:28px 24px}.intro-copy{margin:55px 0 35px}.step-list{display:none}.auth-panel{padding:35px 18px 60px}.panel-tools{top:18px;right:18px}.admin-shell{display:block}.admin-sidebar{position:static;width:100%;height:auto;flex-direction:row;align-items:center;padding:12px 16px}.admin-sidebar .admin-brand{padding:0}.admin-sidebar .admin-brand small{display:none}.admin-sidebar nav{display:flex;margin-left:auto}.admin-sidebar nav a{font-size:0}.admin-sidebar nav a .ui-icon{width:20px;height:20px}.sidebar-bottom{display:flex;margin:0 0 0 8px;padding:0;border:0}.sidebar-bottom a{display:none}.sidebar-bottom button{font-size:0}.settings-grid,.overview-columns{grid-template-columns:1fr}.readonly-card dl{grid-template-columns:1fr 1fr}.admin-topbar{padding:0 18px}.page-content{width:min(100% - 28px,700px);padding-top:24px}.metric-grid{grid-template-columns:1fr}.hero-status{align-items:flex-start;gap:20px}.hero-status p{max-width:75%}}
@media(max-width:520px){.setup-card,.login-card{padding:25px 20px;border-radius:15px}.setup-card header h2{font-size:24px}.admin-topbar>div:last-child{font-size:0}.page-heading{gap:15px}.page-heading .primary-button{padding-inline:12px}.settings-card,.readonly-card,.overview-card{padding:18px}.readonly-card dl,.overview-card dl{grid-template-columns:1fr}.password-row{grid-template-columns:1fr}.password-actions{padding:0}.hero-status{padding:23px}.status-badge{display:none}}
.security-note{margin:18px 0 0;color:#879590;font-size:11px;line-height:1.5}
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-root), :global(html[data-ws-route="admin"][data-theme="dark"] .login-page), :global(html[data-ws-route="admin"][data-theme="dark"] .auth-panel) { color: #e8f3f0; background: #101918; }
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar), :global(html[data-ws-route="admin"][data-theme="dark"] .setup-card), :global(html[data-ws-route="admin"][data-theme="dark"] .login-card), :global(html[data-ws-route="admin"][data-theme="dark"] .settings-card), :global(html[data-ws-route="admin"][data-theme="dark"] .readonly-card), :global(html[data-ws-route="admin"][data-theme="dark"] .overview-card), :global(html[data-ws-route="admin"][data-theme="dark"] input), :global(html[data-ws-route="admin"][data-theme="dark"] textarea) { color: #e8f3f0; background: #172321; border-color: #30413d; }
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar), :global(html[data-ws-route="admin"][data-theme="dark"] .settings-card), :global(html[data-ws-route="admin"][data-theme="dark"] .readonly-card), :global(html[data-ws-route="admin"][data-theme="dark"] .overview-card) { border-color: #30413d; }
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar h1), :global(html[data-ws-route="admin"][data-theme="dark"] .page-heading h2), :global(html[data-ws-route="admin"][data-theme="dark"] .settings-card h3), :global(html[data-ws-route="admin"][data-theme="dark"] .readonly-card h3), :global(html[data-ws-route="admin"][data-theme="dark"] .overview-card h3), :global(html[data-ws-route="admin"][data-theme="dark"] .login-card h1) { color: #e8f3f0; }
:global(html[data-ws-route="admin"][data-theme="dark"] .page-heading p), :global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar small), :global(html[data-ws-route="admin"][data-theme="dark"] label > span) { color: #9bb0aa; }
:global(html[data-ws-route="admin"][data-theme="dark"] .metric-grid article), :global(html[data-ws-route="admin"][data-theme="dark"] .readonly-card dl div), :global(html[data-ws-route="admin"][data-theme="dark"] .overview-card dl div), :global(html[data-ws-route="admin"][data-theme="dark"] .event-list li) { background: #202f2c; border-color: #30413d; }
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar button), :global(html[data-ws-route="admin"][data-theme="dark"] .admin-topbar .language-select), :global(html[data-ws-route="admin"][data-theme="dark"] .language-link), :global(html[data-ws-route="admin"][data-theme="dark"] .home-link) { color: #a9d9d1; background: #203531; border-color: #38564f; }
@media (prefers-color-scheme: dark) { :global(html[data-ws-route="admin"][data-theme="system"] .admin-root), :global(html[data-ws-route="admin"][data-theme="system"] .login-page), :global(html[data-ws-route="admin"][data-theme="system"] .auth-panel) { color: #e8f3f0; background: #101918; } :global(html[data-ws-route="admin"][data-theme="system"] .admin-topbar), :global(html[data-ws-route="admin"][data-theme="system"] .setup-card), :global(html[data-ws-route="admin"][data-theme="system"] .login-card), :global(html[data-ws-route="admin"][data-theme="system"] .settings-card), :global(html[data-ws-route="admin"][data-theme="system"] .readonly-card), :global(html[data-ws-route="admin"][data-theme="system"] .overview-card) { background: #172321; border-color: #30413d; } }
.operations-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:18px}.system-notice{display:flex;align-items:center;gap:8px;margin-bottom:18px}.operation-card{min-width:0;padding:22px;background:#fff;border:1px solid #dfe8e5;border-radius:14px}.operation-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.operation-card h3{margin:0;font-size:15px}.operation-card header p{margin:5px 0 0;color:#7e8c88;font-size:10px;line-height:1.5}.operation-card header>strong{color:#087d74;font-size:22px}.table-wrap{margin:18px -22px -22px;overflow:auto;border-top:1px solid #edf1ef}.table-wrap table{width:100%;min-width:600px;border-collapse:collapse;text-align:left}.table-wrap th,.table-wrap td{padding:12px 14px;border-bottom:1px solid #edf1ef;font-size:11px;white-space:nowrap}.table-wrap th{color:#83928d;font-size:10px;font-weight:700}.table-wrap td strong,.table-wrap td small{display:block}.table-wrap td small{margin-top:3px;color:#8a9994;font-size:9px}.state-pill{display:inline-flex;padding:4px 7px;color:#236c63;background:#e5f5f1;border-radius:99px;font-size:10px;font-weight:700}.state-pill.expired,.state-pill.exhausted,.state-pill.revoked{color:#8b6259;background:#f8ece9}.danger-button,.text-danger{color:#a34f48;background:#fff0ee;border:1px solid #f1d2cd;border-radius:7px;font-size:10px;font-weight:700;cursor:pointer}.danger-button{padding:7px 9px}.text-danger{padding:4px 7px;border:0}.danger-button:disabled{opacity:.55;cursor:wait}.operation-empty{display:grid;place-items:center;gap:8px;min-height:130px;color:#8b9994;text-align:center;font-size:11px}.operation-empty .ui-icon{color:#72afa7}.invite-form{display:grid;gap:14px;margin-top:18px}.invite-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-help{margin-top:-8px;color:#899792;font-size:10px}.generated-invite{display:grid;gap:8px;margin-top:17px;padding:12px;color:#29685f;background:#eaf7f3;border-radius:9px}.generated-invite strong{font-size:11px}.generated-invite small{color:#648780;font-size:9px;line-height:1.45}.generated-link{display:flex;gap:6px}.generated-link input{height:36px;min-width:0;padding:8px;font-size:10px}.generated-link .secondary-button{min-height:36px;padding-inline:9px;white-space:nowrap;font-size:10px}.invite-list{display:grid;gap:9px;margin-top:18px;padding-top:15px;border-top:1px solid #edf1ef}.invite-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px;background:#f6f9f8;border-radius:9px}.invite-row>div:first-child{min-width:0}.invite-row strong,.invite-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invite-row strong{font-size:11px}.invite-row small{max-width:260px;margin-top:4px;color:#86958f;font-size:9px}.invite-row-meta{display:flex;align-items:center;gap:7px;flex:none;color:#70827b;font-size:9px}.lower-operations{margin-top:18px}.text-link{color:#087d74;font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap}.diagnostic-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.diagnostic-list div{padding:10px;background:#f6f9f8;border-radius:8px}.diagnostic-list dt{color:#8a9893;font-size:9px}.diagnostic-list dd{margin:4px 0 0;overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.logs-card{display:flex;min-height:250px;flex-direction:column}.audit-card{min-height:250px}.muted-label{color:#9aa6a2;font-size:9px}.log-list{display:grid;gap:7px;max-height:280px;margin-top:16px;overflow:auto}.log-row{display:flex;align-items:flex-start;gap:8px;padding:8px;background:#f6f9f8;border-radius:7px}.log-row>div{min-width:0}.log-row strong,.log-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-row strong{font-size:10px}.log-row small{margin-top:4px;color:#899792;font-size:8px}.log-level{flex:none;padding:3px 5px;border-radius:4px;color:#356c62;background:#e3f3ef;font-size:8px;font-weight:800}.log-level.warn{color:#8b6a3e;background:#fbf1dc}.log-level.error,.log-level.fatal{color:#a34f48;background:#fff0ee}
:global(html[data-ws-route="admin"][data-theme="dark"] .connection-row),:global(html[data-ws-route="admin"][data-theme="dark"] .connection-history-heading){color:#e8f3f0;background:#202f2c;border-color:#30413d}
:global(html[data-ws-route="admin"][data-theme="dark"] .operation-card),:global(html[data-ws-route="admin"][data-theme="dark"] .invite-row),:global(html[data-ws-route="admin"][data-theme="dark"] .diagnostic-list div),:global(html[data-ws-route="admin"][data-theme="dark"] .log-row){color:#e8f3f0;background:#202f2c;border-color:#30413d}:global(html[data-ws-route="admin"][data-theme="dark"] .table-wrap){border-color:#30413d}:global(html[data-ws-route="admin"][data-theme="dark"] .table-wrap th),:global(html[data-ws-route="admin"][data-theme="dark"] .table-wrap td),:global(html[data-ws-route="admin"][data-theme="dark"] .invite-list){border-color:#30413d}:global(html[data-ws-route="admin"][data-theme="dark"] .operation-card header p),:global(html[data-ws-route="admin"][data-theme="dark"] .table-wrap th),:global(html[data-ws-route="admin"][data-theme="dark"] .table-wrap td small),:global(html[data-ws-route="admin"][data-theme="dark"] .invite-row small){color:#9bb0aa}
@media(max-width:850px){.operations-grid{grid-template-columns:1fr}.operation-wide{overflow:hidden}}
@media(max-width:520px){.operation-card{padding:18px}.table-wrap{margin-left:-18px;margin-right:-18px;margin-bottom:-18px}.invite-form-grid,.diagnostic-list{grid-template-columns:1fr}.generated-link{display:grid}.invite-row{align-items:flex-start;flex-direction:column}.invite-row-meta{width:100%;justify-content:flex-end}.lower-operations{margin-top:14px}}
.target-fields{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:12px}
.webrtc-card .card-help{margin:5px 0 0;color:#7e8c88;font-size:10px;line-height:1.5}.toggle-choice{margin:0}.webrtc-card>.field-help{margin-top:-8px}
@media(max-width:520px){.target-fields{grid-template-columns:1fr}}
/* Theme all native scrollbars used by the admin surfaces. */
:global(html[data-ws-route="admin"] *){scrollbar-color:#8fcfc7 transparent;scrollbar-width:thin}
:global(html[data-ws-route="admin"] *::-webkit-scrollbar){width:8px;height:8px}
:global(html[data-ws-route="admin"] *::-webkit-scrollbar-track){background:transparent}
:global(html[data-ws-route="admin"] *::-webkit-scrollbar-thumb){background:#a7d9d2;background-clip:padding-box;border:2px solid transparent;border-radius:999px}
:global(html[data-ws-route="admin"] *::-webkit-scrollbar-thumb:hover){background:#6bbab1;background-clip:padding-box;border-width:1px}
:global(:root[data-ws-route="admin"][data-theme="dark"] *){scrollbar-color:#438f88 transparent}
:global(:root[data-ws-route="admin"][data-theme="dark"] *::-webkit-scrollbar-thumb){background:#438f88;border-color:transparent}
:global(:root[data-ws-route="admin"][data-theme="dark"] *::-webkit-scrollbar-thumb:hover){background:#69c7bc}
.advanced-card{grid-column:1 / -1}
.advanced-card .card-help{margin:5px 0 0;color:#7e8c88;font-size:10px;line-height:1.5}
.advanced-card .toggle-choice{margin:0}
.relay-card{grid-column:1 / -1}
.relay-card .card-help{margin:5px 0 0;color:#7e8c88;font-size:10px;line-height:1.5}
.relay-card .toggle-choice{margin:0}
.relay-node-list{display:grid;gap:10px}
.relay-node{display:grid;gap:10px;padding:12px;background:#f6f9f8;border:1px solid #e4efeb;border-radius:10px}
.relay-node-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.relay-enabled{display:flex;align-items:center;gap:8px;margin:0;cursor:pointer}
.relay-enabled input{width:16px;height:16px;margin:0;accent-color:#087d74}
.relay-enabled strong{font-size:12px}
.relay-empty{padding:10px 12px;color:#82908c;background:#f6f9f8;border:1px dashed #cfe3de;border-radius:9px;font-size:11px}
.relay-add{justify-self:start;min-height:34px;padding-inline:13px}
.relay-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.relay-fields .password-row{grid-column:1 / -1}
.relay-card .field-help{line-height:1.55}
.welcome-editor{display:grid;gap:10px;padding:12px;background:#f6f9f8;border:1px solid #e4efeb;border-radius:10px}
.welcome-editor-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);align-items:end;gap:12px}
.welcome-editor-heading label{min-width:0}
.welcome-editor-heading>small{margin:0;color:#899792;font-size:10px;line-height:1.5}
.welcome-editor select{width:100%;height:40px;padding:0 10px;color:#22332f;background:#fbfdfc;border:1px solid #dbe7e3;border-radius:9px;font:inherit;font-size:12px;outline:none}
.welcome-editor select:focus{border-color:#54bdb2;box-shadow:0 0 0 3px rgba(84,189,178,.13)}
.welcome-editor textarea{background:#fff}
.webrtc-port-fields{display:grid;gap:10px;padding:14px;background:#f6f9f8;border:1px solid #e4efeb;border-radius:10px}
.port-fields-heading strong,.port-fields-heading small{display:block}
.port-fields-heading strong{font-size:11px}
.port-fields-heading small{margin-top:4px;color:#899792;font-size:10px;line-height:1.45}
.port-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.port-inputs label>span{font-size:10px}
.port-inputs input:disabled{color:#70817b;background:#e9f1ee;border-color:#d7e5e1;cursor:not-allowed;opacity:1}
.modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:22px;background:rgba(5,41,38,.38);backdrop-filter:blur(3px)}
.modal-card{width:min(410px,100%);padding:26px;background:#fff;border:1px solid #d9e9e4;border-radius:16px;box-shadow:0 20px 60px rgba(14,62,55,.2)}
:global(html[data-ws-route="admin"][data-theme="dark"] .relay-node),:global(html[data-ws-route="admin"][data-theme="dark"] .relay-empty){color:#e8f3f0;background:#202f2c;border-color:#30413d}
.modal-icon{display:grid;place-items:center;width:38px;height:38px;color:#087d74;background:#e3f5f0;border-radius:11px}
.modal-card h2{margin:16px 0 8px;font-size:20px}
.modal-card p{margin:0 0 20px;color:#71817c;font-size:12px;line-height:1.7}
:global(html[data-ws-route="admin"][data-theme="dark"] .webrtc-port-fields){background:#202f2c;border-color:#30413d}
:global(html[data-ws-route="admin"][data-theme="dark"] .port-fields-heading small){color:#9bb0aa}
:global(html[data-ws-route="admin"][data-theme="dark"] .port-inputs input:disabled){color:#9bb0aa;background:#263a35;border-color:#3a514b}
:global(html[data-ws-route="admin"][data-theme="dark"] .welcome-editor){background:#202f2c;border-color:#30413d}
:global(html[data-ws-route="admin"][data-theme="dark"] .welcome-editor select),:global(html[data-ws-route="admin"][data-theme="dark"] .welcome-editor textarea){color:#e8f3f0;background:#172321;border-color:#30413d}
:global(html[data-ws-route="admin"][data-theme="dark"] .welcome-editor-heading>small){color:#9bb0aa}
:global(html[data-ws-route="admin"][data-theme="dark"] .modal-card){color:#e8f3f0;background:#172321;border-color:#30413d}
:global(html[data-ws-route="admin"][data-theme="dark"] .modal-card p){color:#9bb0aa}
@media(max-width:850px){.relay-card{grid-column:auto}.relay-fields{grid-template-columns:1fr}.relay-fields .password-row{grid-column:auto}}
@media(max-width:520px){.advanced-card{grid-column:auto}.port-inputs{grid-template-columns:1fr}}
@media(max-width:520px){.welcome-editor-heading{grid-template-columns:1fr;gap:6px}}
/* Server settings keep their natural height; the main content area owns scrolling. */
.server-page{min-width:0}
.server-page .settings-grid{flex:0 0 auto;min-height:auto;align-items:start;overflow:visible;grid-auto-rows:auto}
.server-page .settings-card{height:auto;min-height:0;overflow:visible;padding:16px;gap:12px}
.server-page .settings-card input{height:40px}
.server-page .settings-card .choice{padding:10px;gap:8px}
.server-page .settings-card .choice small{margin-top:3px}
.server-page .webrtc-port-fields{padding:12px;gap:8px}
/* Long log messages should wrap on every screen size instead of widening the
log card or introducing page-level horizontal scrolling. */
.logs-card .log-row{min-width:0}
.logs-card .log-row strong,.logs-card .log-row small{overflow-wrap:anywhere;white-space:normal;word-break:break-word}
.connection-list{display:grid;gap:7px;margin-top:12px}
.connection-history-heading{display:grid;gap:3px;padding:0 0 6px;border-bottom:1px solid #edf1ef}
.connection-history-heading strong{font-size:10px}
.connection-history-heading small{color:#899792;font-size:8px}
.connection-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px;background:#f6f9f8;border-radius:7px}
.connection-person,.connection-detail{min-width:0}
.connection-person{flex:1 1 auto}
.connection-person strong,.connection-person small,.connection-detail small{display:block;overflow-wrap:anywhere;word-break:break-word}
.connection-person strong{font-size:10px}
.connection-person small{margin-top:3px;color:#899792;font-size:8px}
.connection-person .connection-route{color:#5f9189;font-weight:600}
.connection-detail{display:grid;flex:0 1 58%;justify-items:end;gap:2px;text-align:right}
.connection-detail small{color:#899792;font-size:8px}
.connection-status{display:inline-flex;padding:3px 6px;border-radius:999px;color:#236c63;background:#e3f3ef;font-size:8px;font-weight:800}
.connection-status.disconnected{color:#687a74;background:#e9efed}
.connection-status.failed{color:#a34f48;background:#fff0ee}
.connection-status.connecting{color:#8b6a3e;background:#fbf1dc}
@media(max-width:520px){
.connection-row{display:grid;gap:7px}
.connection-detail{justify-items:start;text-align:left}
}
.login-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.login-actions .language-link{margin-top:0}
.home-link{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;color:#08766e;background:#e4f3ef;border:1px solid #cae7e0;border-radius:8px;font-size:11px;font-weight:700;text-decoration:none}
.home-link:hover{background:#d8eee9}
.language-link{margin-top:20px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important}
.login-actions .language-link{margin-top:0!important}
/* Flexible fields must be allowed to shrink within responsive columns. */
.settings-card,.relay-card,.relay-node,.relay-fields,.relay-node-heading,.relay-enabled,.relay-fields>label,.password-row,.password-row>label{min-width:0}
.relay-enabled strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.relay-fields input{min-width:0}
.password-actions{flex:0 0 auto}
/* The application is zoomed up on large displays so the 1920×1080 layout
stays readable. Compensate viewport heights for that zoom; otherwise a
2K viewport becomes a 1920px-tall admin shell and clips its lower cards. */
@media(min-width:851px){
:global(html[data-ws-route="admin"]),:global(html[data-ws-route="admin"] body){height:100dvh;max-height:100dvh}
:global(html[data-ws-route="admin"] #app),.admin-root,.admin-shell,.admin-sidebar{height:calc(100dvh / var(--ui-scale));min-height:calc(100dvh / var(--ui-scale));max-height:calc(100dvh / var(--ui-scale))}
.admin-main{height:100%;min-height:0}
}
/* Server settings: stacked, independently collapsible groups with related
controls arranged in columns when there is enough room. */
.server-page .settings-grid{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;flex:0 0 auto;min-height:0;overflow:visible}
.server-page .settings-accordion{display:block;min-width:0;height:auto;overflow:visible;padding:0;border-radius:13px}
.settings-accordion-header{display:flex;min-height:70px;align-items:center;gap:18px;padding:14px 18px;list-style:none;cursor:pointer}
.settings-accordion-header::-webkit-details-marker{display:none}
.settings-accordion-header:focus-visible{outline:3px solid color-mix(in srgb,var(--admin-accent) 42%,transparent);outline-offset:3px;border-radius:10px}
.settings-accordion-heading{display:grid;min-width:0;flex:1 1 auto;gap:4px}
.settings-accordion-heading strong{overflow:hidden;color:var(--admin-text);font-size:14px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.settings-accordion-heading small{overflow:hidden;color:var(--admin-muted);font-size:10px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.settings-accordion-header>.ui-icon{flex:none;color:var(--admin-muted);transition:transform .18s ease}
.settings-accordion[open]>.settings-accordion-header{border-bottom:1px solid var(--admin-border)}
.settings-accordion[open]>.settings-accordion-header>.ui-icon{transform:rotate(180deg)}
.settings-accordion-statuses{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 1 auto;flex-wrap:wrap}
.settings-summary-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;color:var(--admin-muted);background:var(--admin-raised);border:1px solid var(--admin-border);border-radius:999px;font-size:10px;line-height:1.2;white-space:nowrap}
.settings-summary-chip i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#87958f}
.settings-summary-chip i.active{background:#50c879;box-shadow:0 0 0 3px color-mix(in srgb,#50c879 16%,transparent)}
.settings-accordion-content{min-width:0;padding:16px 18px 18px}
.target-settings-layout{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) minmax(220px,280px);align-items:end;gap:12px}
.access-settings-layout,.advanced-settings-grid{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
.site-identity-fields{display:grid;min-width:0;align-content:start;gap:13px}
.target-fields{grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr) 150px;gap:12px}
.target-settings-layout>.password-row{grid-column:1/-1;grid-row:2;align-self:end}
.target-settings-layout>.target-test-button{grid-column:2;grid-row:1;justify-self:stretch;width:100%;min-width:0;min-height:40px;align-self:end}
.target-test-result{grid-column:1/-1;min-width:0;margin:0}
.target-runtime-block{display:grid;grid-column:1/-1;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px;padding-top:2px}
.target-runtime-block h4{margin:0;color:var(--admin-text);font-size:11px}
.target-runtime-facts{display:grid;grid-column:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.target-runtime-facts>div{min-width:0;padding:9px;background:var(--admin-surface);border:1px solid var(--admin-border);border-radius:8px}
.target-runtime-facts>div:first-child{grid-column:auto}
.target-runtime-facts dt{color:var(--admin-muted);font-size:9px}
.target-runtime-facts dd{margin:4px 0 0;overflow-wrap:anywhere;color:var(--admin-text);font-size:11px;font-weight:700}
.access-settings-layout{grid-template-columns:minmax(0,1fr)}
.access-mode-fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));align-content:start;gap:9px;min-width:0;margin:0;padding:0;border:0}
.access-mode-fieldset legend{grid-column:1/-1;margin-bottom:2px;color:var(--admin-muted);font-size:10px;font-weight:700}
.site-identity-fields>label{display:grid;gap:6px}
.site-identity-fields>label>span,.access-mode-fieldset .choice strong{color:var(--admin-text)}
.site-identity-fields .welcome-editor{min-width:0;margin:0}
.settings-subsection{display:grid;min-width:0;align-content:start;gap:12px;padding:15px;background:var(--admin-raised);border:1px solid var(--admin-border);border-radius:11px}
.settings-subsection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.settings-subsection-heading h4{margin:0;color:var(--admin-text);font-size:13px}
.settings-subsection-heading .card-help{margin:4px 0 0;color:var(--admin-muted);font-size:10px;line-height:1.5}
.settings-subsection .choice{margin:0;background:var(--admin-surface);border-color:var(--admin-border)}
.settings-subsection .choice strong{color:var(--admin-text)}
.settings-subsection .choice small{color:var(--admin-muted)}
.settings-subsection .field-help{margin:0;color:var(--admin-muted);line-height:1.5}
.settings-subsection .relay-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.settings-subsection .relay-fields .password-row{grid-column:1/-1}
.advanced-settings-grid>.relay-card,.advanced-settings-grid>.webrtc-card{grid-column:auto}
.settings-subsection .relay-node{background:var(--admin-surface);border-color:var(--admin-border)}
.settings-subsection .relay-empty{color:var(--admin-muted);background:var(--admin-surface);border-color:var(--admin-border)}
/* One palette is shared by explicit dark mode and system dark mode. */
.admin-root{--admin-page:#f4f8f6;--admin-surface:#fff;--admin-raised:#f6f9f8;--admin-field:#fff;--admin-text:#20302c;--admin-muted:#657873;--admin-border:#dfe8e5;--admin-accent:#087d74;--admin-accent-soft:#e4f3ef;color:var(--admin-text);background:var(--admin-page)}
:global(html[data-ws-route="admin"][data-theme="dark"] .admin-root){--admin-page:#101918;--admin-surface:#172321;--admin-raised:#202f2c;--admin-field:#111d1b;--admin-text:#e8f3f0;--admin-muted:#b6c8c2;--admin-border:#3a514b;--admin-accent:#79ddd1;--admin-accent-soft:#1b3935}
@media(prefers-color-scheme:dark){:global(html[data-ws-route="admin"][data-theme="system"] .admin-root){--admin-page:#101918;--admin-surface:#172321;--admin-raised:#202f2c;--admin-field:#111d1b;--admin-text:#e8f3f0;--admin-muted:#b6c8c2;--admin-border:#3a514b;--admin-accent:#79ddd1;--admin-accent-soft:#1b3935}}
.admin-root .admin-main{color:var(--admin-text);background:var(--admin-page)}
.admin-root .admin-topbar,.admin-root .settings-card,.admin-root .readonly-card,.admin-root .overview-card,.admin-root .operation-card,.admin-root .metric-grid article,.admin-root .setup-card,.admin-root .login-card{color:var(--admin-text);background:var(--admin-surface);border-color:var(--admin-border)}
.admin-root .settings-card h3,.admin-root .settings-card h4,.admin-root .readonly-card h3,.admin-root .overview-card h3,.admin-root .operation-card h3,.admin-root .page-heading h2,.admin-root .admin-topbar h1,.admin-root .settings-card label>span,.admin-root .settings-card legend,.admin-root .settings-card .choice strong{color:var(--admin-text)}
.admin-root .page-heading p,.admin-root .admin-topbar small,.admin-root .settings-card .card-help,.admin-root .settings-card .field-help,.admin-root .settings-card .choice small,.admin-root .settings-card .welcome-editor-heading>small,.admin-root .settings-card .port-fields-heading small,.admin-root .readonly-card dt,.admin-root .overview-card dt,.admin-root .metric-grid small,.admin-root .metric-grid em,.admin-root .overview-card header p,.admin-root .operation-card header p{color:var(--admin-muted)}
.admin-root input:not([type="checkbox"]):not([type="radio"]),.admin-root textarea,.admin-root select{color:var(--admin-text);background:var(--admin-field);border-color:var(--admin-border)}
.admin-root input::placeholder,.admin-root textarea::placeholder{color:var(--admin-muted);opacity:1}
.admin-root input:disabled,.admin-root textarea:disabled,.admin-root select:disabled{color:var(--admin-muted);background:var(--admin-raised);border-color:var(--admin-border);opacity:1}
.admin-root input[type="checkbox"],.admin-root input[type="radio"]{accent-color:var(--admin-accent)}
.admin-root .settings-card .choice{color:var(--admin-text);background:var(--admin-raised);border-color:var(--admin-border)}
.admin-root .settings-card .choice.selected{background:color-mix(in srgb,var(--admin-accent) 10%,var(--admin-surface));border-color:color-mix(in srgb,var(--admin-accent) 48%,var(--admin-border))}
.admin-root .welcome-editor,.admin-root .webrtc-port-fields,.admin-root .relay-node,.admin-root .relay-empty,.admin-root .readonly-card dl div,.admin-root .overview-card dl div,.admin-root .event-list li,.admin-root .connection-row,.admin-root .connection-history-heading,.admin-root .diagnostic-list div,.admin-root .log-row,.admin-root .invite-row{color:var(--admin-text);background:var(--admin-raised);border-color:var(--admin-border)}
.admin-root .welcome-editor select,.admin-root .welcome-editor textarea{color:var(--admin-text);background:var(--admin-field);border-color:var(--admin-border)}
.admin-root .welcome-editor-heading>small,.admin-root .port-fields-heading small,.admin-root .field-help,.admin-root .relay-empty,.admin-root .target-runtime-facts dt,.admin-root .connection-person small,.admin-root .connection-detail small,.admin-root .connection-history-heading small,.admin-root .diagnostic-list dt,.admin-root .log-row small,.admin-root .invite-row small{color:var(--admin-muted)}
.admin-root .settings-subsection{color:var(--admin-text);background:var(--admin-raised);border-color:var(--admin-border)}
.admin-root .target-runtime-facts>div,.admin-root .settings-subsection .choice,.admin-root .settings-subsection .relay-node,.admin-root .settings-subsection .relay-empty{background:var(--admin-surface);border-color:var(--admin-border)}
.admin-root .password-actions button{color:var(--admin-accent);background:var(--admin-accent-soft)}
.admin-root .password-actions button.active,.admin-root .primary-button{color:#fff;background:#087d74}
.admin-root .password-actions button.danger,.admin-root .danger-button,.admin-root .text-danger{color:#d66d65;background:color-mix(in srgb,#d66d65 12%,var(--admin-surface));border-color:color-mix(in srgb,#d66d65 30%,var(--admin-border))}
.admin-root .secondary-button,.admin-root .admin-topbar button,.admin-root .admin-topbar .language-select,.admin-root .home-link{color:var(--admin-accent);background:var(--admin-accent-soft);border-color:var(--admin-border)}
.admin-root .settings-accordion-header>.ui-icon{color:var(--admin-muted)}
.admin-root .settings-summary-chip{color:var(--admin-muted);background:var(--admin-raised);border-color:var(--admin-border)}
.admin-root .admin-sidebar nav a{color:#c2d8d3}
.admin-root .admin-sidebar nav a.active{color:#eafffb;background:#0d615a}
@media(max-width:1050px){
.target-settings-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.target-fields,.target-test-result,.target-runtime-block{grid-column:1/-1}
.target-settings-layout>.password-row{grid-column:1}
.target-settings-layout>.target-test-button{grid-column:2}
.access-settings-layout,.advanced-settings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:850px){
.server-page .settings-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;overflow:visible}
.settings-accordion-header{min-height:64px;gap:10px;padding:12px 14px}
.settings-accordion-statuses{justify-content:flex-start}
.settings-accordion-content{padding:13px 14px 15px}
.settings-subsection .relay-fields{grid-template-columns:minmax(0,1fr)}
.settings-subsection .relay-fields .password-row{grid-column:auto}
}
@media(max-width:560px){
.settings-accordion-header{align-items:flex-start;flex-wrap:wrap}
.settings-accordion-heading{flex-basis:calc(100% - 34px)}
.settings-accordion-statuses{order:3;width:100%;padding-right:25px}
.settings-accordion-header>.ui-icon{margin-left:auto}
.target-settings-layout{grid-template-columns:minmax(0,1fr)}
.target-fields,.port-inputs,.target-runtime-facts{grid-template-columns:minmax(0,1fr)}
.target-settings-layout>.password-row,.target-settings-layout>.target-test-button,.target-test-result,.target-runtime-block{grid-column:1}
.target-runtime-facts>div:first-child{grid-column:auto}
.target-runtime-block{grid-template-columns:minmax(0,1fr)}
.target-runtime-facts{grid-column:auto}
.target-settings-layout,.access-settings-layout,.advanced-settings-grid{gap:11px}
.access-mode-fieldset .choice{padding:10px}
}
/* Admin layout contract: the desktop shell stays in the viewport, the main
content is the only page-level scroller, and cards size to their content. */
:global(html[data-ws-route="admin"]),:global(html[data-ws-route="admin"] body),:global(html[data-ws-route="admin"] #app){width:100%;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
.admin-root{min-height:0;overflow:hidden}
.admin-shell{display:grid;min-height:0;grid-template-columns:236px minmax(0,1fr);overflow:hidden}
.admin-main{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden}
.admin-topbar{flex:0 0 auto}
.admin-main>.page-alert{flex:0 0 auto;margin:12px clamp(18px,2.4vw,44px) 0}
.page-content{display:block;flex:1 1 auto;width:100%;max-width:none;min-width:0;min-height:0;margin:0;padding:clamp(18px,2vw,32px) clamp(18px,2.4vw,44px) 34px;overflow-x:hidden;overflow-y:auto}
.login-page{height:100dvh;min-height:0;overflow:hidden}
.login-card{max-height:calc(100dvh - 50px);overflow-y:auto}
.overview-page{display:grid;align-content:start;grid-template-columns:minmax(0,1fr);gap:14px}
.overview-page .import-notice,.overview-page .metric-grid{margin:0}
.overview-page .hero-status{padding:clamp(18px,2vw,28px)}
.overview-page .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.overview-page .overview-columns{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px}
.overview-page .overview-card{min-width:0;height:auto;min-height:0;overflow:visible}
.overview-page .target-health-card dl{grid-template-columns:repeat(3,minmax(0,1fr))}
.overview-page .recent-events-card .event-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));max-height:none;overflow:visible}
.server-page{min-width:0}
.server-page .settings-grid{grid-template-columns:minmax(0,1fr);align-content:start;gap:12px}
.server-page .settings-card{height:auto;min-height:0;overflow:visible}
.operations-page{display:grid;align-content:start;gap:14px;width:auto;height:auto;min-height:0;padding-top:0;padding-bottom:0}
.operations-page .page-heading,.operations-page .system-notice{margin:0}
.operations-page .operations-grid{min-width:0;align-items:start;gap:14px}
.operations-primary{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}
.lower-operations{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));margin-top:0}
.operation-card{height:auto;min-height:0;overflow:visible}
.operation-empty{min-height:84px}
.operations-primary .table-wrap{max-height:min(42vh,420px);overflow:auto}
.operations-primary .invite-list{max-height:min(32vh,280px);overflow-y:auto}
.connection-list{max-height:min(34vh,280px);overflow-y:auto}
.logs-card .log-list,.audit-card .event-list{max-height:min(38vh,340px);overflow-y:auto}
.logs-card,.audit-card{min-height:0}
.logs-card .log-row{min-width:0;max-width:100%}
.logs-card .log-row>div{min-width:0;flex:1 1 auto}
.logs-card .log-row strong,.logs-card .log-row small{overflow-wrap:anywhere;white-space:normal;word-break:break-word}
@media(min-width:1101px){
.operations-page .invite-form{grid-template-columns:minmax(220px,1.2fr) minmax(280px,1fr) auto;align-items:end;gap:12px 16px}
.operations-page .invite-form>label{grid-column:1;grid-row:1}
.operations-page .invite-form-grid{grid-column:2;grid-row:1;align-self:end}
.operations-page .invite-form>.field-help{grid-column:1/3;grid-row:2}
.operations-page .invite-form>.primary-button{grid-column:3;grid-row:1;white-space:nowrap}
.operations-page .diagnostics-card{display:grid;grid-template-columns:minmax(0,1fr)}
.operations-page .diagnostics-card>header{grid-column:1/-1}
.operations-page .diagnostics-card>.diagnostic-list{grid-column:1;grid-row:2}
.operations-page .diagnostics-card>.secondary-button{grid-column:1;grid-row:3;justify-self:end;white-space:nowrap}
}
@media(max-width:1100px){
.target-settings-layout{grid-template-columns:minmax(0,1fr) minmax(180px,.42fr)}
.target-fields{grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr) 132px}
.target-settings-layout>.password-row{grid-column:1/-1;grid-row:2}
.target-settings-layout>.target-test-button{grid-column:2;grid-row:1}
.access-settings-layout,.advanced-settings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:850px){
:global(html[data-ws-route="admin"]),:global(html[data-ws-route="admin"] body),:global(html[data-ws-route="admin"] #app){height:auto;min-height:100%;max-height:none;overflow:auto}
.admin-root{height:auto;min-height:100dvh;overflow:visible}
.admin-shell{display:flex;height:auto;min-height:100dvh;flex-direction:column;overflow:visible}
.admin-sidebar{position:static;width:100%;height:auto;min-height:0;flex-direction:row;align-items:center;padding:12px 16px}
.admin-sidebar .admin-brand{padding:0}
.admin-sidebar .admin-brand small{display:none}
.admin-sidebar nav{display:flex;margin-left:auto}
.sidebar-bottom{display:flex;margin:0 0 0 8px;padding:0;border:0}
.sidebar-bottom a{display:none}
.sidebar-bottom button{font-size:0}
.admin-main{height:auto;min-height:0;overflow:visible}
.admin-topbar{min-height:68px;padding:0 18px}
.admin-main>.page-alert{margin:10px 14px 0}
.page-content{display:block;width:100%;height:auto;min-height:0;padding:20px clamp(14px,3vw,28px) 28px;overflow:visible}
.login-page{height:auto;min-height:100dvh;overflow:visible}
.login-card{max-height:none;overflow:visible}
.overview-page{min-height:0}
.overview-page .metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:9px}
.overview-page .overview-columns{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.operations-page .operations-primary{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.operations-page .lower-operations{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.operations-page .operation-card{height:auto;min-height:0;overflow:visible}
.operations-primary .table-wrap{max-height:min(48vh,420px);overflow:auto}
.operations-primary .invite-list{max-height:min(38vh,320px);overflow-y:auto}
.connection-list{max-height:min(38vh,320px);overflow-y:auto}
.logs-card .log-list,.audit-card .event-list{max-height:min(45vh,380px);overflow-y:auto}
}
@media(max-width:560px){
.admin-topbar{gap:8px}
.admin-topbar>div:last-child{gap:5px}
.overview-page .hero-status{padding:18px}
.overview-page .hero-status h2{font-size:24px}
.overview-page .metric-grid article{padding:14px}
.overview-page .metric-grid article>span{top:11px;right:11px;width:30px;height:30px}
.overview-page .metric-grid strong{margin-top:10px;font-size:16px}
.overview-page .target-health-card dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
.operations-page .operations-primary,.operations-page .lower-operations{grid-template-columns:minmax(0,1fr)}
.operations-page .operation-card{padding:16px}
.operations-page .table-wrap{margin-right:-16px;margin-left:-16px;margin-bottom:-16px}
.operations-page .invite-form-grid,.operations-page .diagnostic-list{grid-template-columns:minmax(0,1fr)}
.operations-page .generated-link{display:grid}
.operations-page .invite-row{align-items:flex-start;flex-direction:column}
.operations-page .invite-row-meta{width:100%;justify-content:flex-end}
.operations-page .connection-row{display:grid;gap:7px}
.operations-page .connection-detail{justify-items:start;text-align:left}
.target-settings-layout{grid-template-columns:minmax(0,1fr)}
.target-fields,.port-inputs,.target-runtime-facts{grid-template-columns:minmax(0,1fr)}
.target-fields{grid-column:1;grid-row:1}
.target-settings-layout>.password-row{grid-column:1;grid-row:2}
.target-settings-layout>.target-test-button{grid-column:1;grid-row:3;justify-self:stretch;width:100%}
.target-test-result{grid-column:1;grid-row:4}
.target-runtime-block{grid-column:1;grid-row:5}
.target-runtime-block{grid-template-columns:minmax(0,1fr)}
.target-runtime-facts{grid-column:auto}
}
.skin-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.skin-library-page{display:grid;align-content:start;gap:16px}
.skin-library-page>.page-heading,.skin-library-page>.skin-library-scope{margin:0}
.skin-library-scope{display:flex;align-items:center;gap:9px}
.skin-default-control{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;background:var(--admin-surface,#fff);border:1px solid var(--admin-border,#dce7e3);border-radius:12px}
.skin-default-control strong{color:var(--admin-text,#20312d);font-size:13px}
.skin-default-control p{margin:4px 0 0;color:var(--admin-muted,#687a74);font-size:11px}
.skin-default-control select{min-width:min(100%,270px);padding:10px 12px;color:var(--admin-text,#20312d);background:var(--admin-field,#fff);border:1px solid var(--admin-border,#dce7e3);border-radius:9px;font:inherit}
.skin-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:14px;align-content:start}
.skin-library-card{display:grid;grid-template-columns:minmax(140px,.78fr) minmax(0,1.22fr);min-width:0;overflow:hidden;background:var(--admin-surface,#fff);border:1px solid var(--admin-border,#dce7e3);border-radius:14px;box-shadow:0 6px 20px rgba(20,60,53,.04)}
.skin-preview{position:relative;display:grid;place-items:center;min-height:180px;overflow:hidden;color:#5f9f97;background:linear-gradient(145deg,#e5f5f1,#f5f8f7)}
.skin-preview--day{color:#087e86;background:linear-gradient(145deg,#e8fbfb 0%,#c7f0ed 52%,#fff 100%)}
.skin-preview--night{color:#b5e8df;background:linear-gradient(145deg,#122320 0%,#223a37 55%,#0b1514 100%)}
.skin-preview img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.skin-preview>span{display:grid;place-items:center;width:54px;height:54px;border:1px solid #cde8e2;border-radius:16px;background:rgba(255,255,255,.68)}
.skin-preview--night>span{border-color:rgba(181,232,223,.32);background:rgba(225,255,249,.1)}
.skin-preview small{position:absolute;right:9px;bottom:9px;padding:4px 7px;color:#f7fffd;background:rgba(17,40,37,.72);border-radius:6px;font-size:10px}
.skin-builtin-badge{position:absolute;top:9px;left:9px;padding:4px 7px;color:#075f5d;background:rgba(240,255,252,.92);border:1px solid rgba(255,255,255,.72);border-radius:6px;font-size:10px}
.skin-library-copy{display:flex;min-width:0;flex-direction:column;padding:14px}
.skin-library-title{display:grid;gap:3px;min-width:0}
.skin-library-title h3{margin:0;color:var(--admin-text,#20312d);font-size:15px}
.skin-library-title>span{overflow:hidden;color:var(--admin-muted,#7d8d88);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.skin-library-copy>p{margin:10px 0 0;color:var(--admin-muted,#687a74);font-size:11px;line-height:1.5}
.skin-library-copy dl{display:grid;gap:5px;margin:12px 0 0}
.skin-library-copy dl>div{display:flex;justify-content:space-between;gap:12px;font-size:10px}
.skin-library-copy dt{color:var(--admin-muted,#879590)}
.skin-library-copy dd{margin:0;color:var(--admin-text,#30423d);text-align:right;overflow-wrap:anywhere}
.skin-library-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px}
.skin-library-actions button,.skin-library-actions a{font-size:11px}
.skin-protected-label{color:var(--admin-muted,#687a74);font-size:10px}
.skin-enabled-control{display:inline-flex;align-items:center;gap:6px;color:var(--admin-muted,#687a74);font-size:10px;white-space:nowrap}
.skin-enabled-control input{width:16px;height:16px;margin:0;accent-color:#07877e}
.skin-library-empty,.skin-library-loading{display:grid;justify-items:center;gap:9px;padding:48px 18px;color:var(--admin-muted,#7d8d88);text-align:center;background:var(--admin-surface,#fff);border:1px dashed var(--admin-border,#dce7e3);border-radius:14px}
.skin-library-empty>span{display:grid;place-items:center;width:46px;height:46px;color:#0b8075;background:#e5f5f1;border-radius:14px}
.skin-library-empty strong{color:var(--admin-text,#263a35);font-size:14px}
.skin-library-empty p{margin:0;font-size:11px}
.skin-library-loading{display:flex;justify-content:center}
@media(max-width:620px){.skin-library-card{grid-template-columns:minmax(0,1fr)}.skin-preview{min-height:190px;aspect-ratio:16/9}.skin-library-page>.page-heading{align-items:flex-start}.skin-library-page>.page-heading .primary-button{white-space:nowrap}.skin-default-control{align-items:flex-start;flex-direction:column}.skin-default-control select{width:100%}}
.operations-page .operations-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
.operations-page .operations-primary,.operations-page .lower-operations{grid-template-columns:minmax(0,1fr);margin-top:0}
.operations-page .operation-card{height:auto;min-height:0;overflow:visible}
.operations-page .operation-empty{min-height:84px}
.operations-page .diagnostic-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
.operations-page .audit-card .event-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
@media(min-width:1101px){
.operations-page .invite-form{grid-template-columns:minmax(220px,1.2fr) minmax(280px,1fr) auto;align-items:end;gap:12px 16px}
.operations-page .invite-form>label{grid-column:1;grid-row:1}
.operations-page .invite-form-grid{grid-column:2;grid-row:1;align-self:end}
.operations-page .invite-form>.field-help{grid-column:1/3;grid-row:2}
.operations-page .invite-form>.primary-button{grid-column:3;grid-row:1;white-space:nowrap}
.operations-page .diagnostics-card{display:grid;grid-template-columns:minmax(0,1fr)}
.operations-page .diagnostics-card>header{grid-column:1/-1}
.operations-page .diagnostics-card>.diagnostic-list{grid-column:1;grid-row:2;grid-template-columns:repeat(5,minmax(0,1fr))}
.operations-page .diagnostics-card>.secondary-button{grid-column:1;grid-row:3;justify-self:end;white-space:nowrap}
}
@media(max-width:1100px){
.operations-page .diagnostic-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
}
@media(max-width:850px){
.operations-page .operations-primary,.operations-page .lower-operations{grid-template-columns:minmax(0,1fr)}
.operations-page .invite-form{grid-template-columns:minmax(0,1fr)}
.operations-page .invite-form>label,.operations-page .invite-form-grid,.operations-page .invite-form>.field-help,.operations-page .invite-form>.primary-button{grid-column:1;grid-row:auto}
.operations-page .diagnostics-card{display:block}
}
@media(max-width:560px){
.operations-page .diagnostic-list{grid-template-columns:minmax(0,1fr)}
}
+97 -88
View File
@@ -1,7 +1,7 @@
:global(*) { box-sizing: border-box; }
:global(body) { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:global(button), :global(input) { font: inherit; }
:global(button) { border: 0; }
:global(html[data-ws-route="webclient"] *) { box-sizing: border-box; }
:global(html[data-ws-route="webclient"] body) { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:global(html[data-ws-route="webclient"] button), :global(html[data-ws-route="webclient"] input) { font: inherit; }
:global(html[data-ws-route="webclient"] button) { border: 0; }
.web-client { min-height: 100dvh; outline: none; background: var(--surface-0); color: var(--text-primary); }
.web-client.skin-initializing { visibility: hidden; }
@@ -9,25 +9,25 @@
.join-header, .join-content, .join-footer { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.join-header, .join-content, .join-footer { position: relative; z-index: 1; }
.join-header { z-index: 10; }
.join-header .language-switcher { z-index: 50; }
.join-header :deep(.language-switcher) { z-index: 50; }
.join-footer { z-index: 2; }
.join-header { width: min(1680px, calc(100% - 32px)); }
.join-footer { width: 100%; padding-inline: max(20px, calc((100% - 1240px) / 2)); }
.join-header { min-height: 84px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 clamp(12px, 1.4vw, 22px); box-sizing: border-box; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark, .rail-logo { display: grid; place-items: center; color: #fff; background: #006a64; box-shadow: 0 8px 18px rgba(0, 106, 100, .15); }
.brand-mark { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.brand-lockup strong { display: block; color: #006a64; font-size: 18px; letter-spacing: -.04em; }
.brand-lockup strong span { color: #24312f; font-weight: 500; }
.brand-lockup small { display: block; margin-top: 2px; color: #7b8885; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.header-tools { display: flex; min-width: 0; max-width: 100%; flex: 1 1 640px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(6px, 1vw, 14px); row-gap: 6px; }
.github-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; color: #fff; background: #1f2d2b; border: 1px solid #1f2d2b; border-radius: 9px; box-shadow: 0 5px 12px rgba(31,45,43,.16); font-size: 12px; font-weight: 800; text-decoration: none; transition: .18s; }
.github-button:hover { color: #fff; background: #006a64; border-color: #006a64; box-shadow: 0 7px 16px rgba(0,106,100,.2); transform: translateY(-1px); }
.github-button .ui-icon { flex: 0 0 auto; }
.version-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; color: #006a64; background: #e7f4f1; border: 1px solid #cfe9e4; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.changelog-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 10px; color: #006a64; background: #f2f8f6; border: 1px solid #dcebe7; border-radius: 8px; font-size: 11px; font-weight: 700; text-decoration: none; transition: .18s; }
.changelog-button:hover { color: #fff; background: #006a64; border-color: #006a64; }
.header-note { display: flex; align-items: center; gap: 8px; color: #71807c; font-size: 12px; }
:deep(.brand-lockup) { display: flex; align-items: center; gap: 12px; }
:deep(.brand-mark), .rail-logo { display: grid; place-items: center; color: #fff; background: #006a64; box-shadow: 0 8px 18px rgba(0, 106, 100, .15); }
:deep(.brand-mark) { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
:deep(.brand-lockup strong) { display: block; color: #006a64; font-size: 18px; letter-spacing: -.04em; }
:deep(.brand-lockup strong span) { color: #24312f; font-weight: 500; }
:deep(.brand-lockup small) { display: block; margin-top: 2px; color: #7b8885; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
:deep(.header-tools) { display: flex; min-width: 0; max-width: 100%; flex: 1 1 640px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(6px, 1vw, 14px); row-gap: 6px; }
:deep(.github-button) { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; color: #fff; background: #1f2d2b; border: 1px solid #1f2d2b; border-radius: 9px; box-shadow: 0 5px 12px rgba(31,45,43,.16); font-size: 12px; font-weight: 800; text-decoration: none; transition: .18s; }
:deep(.github-button:hover) { color: #fff; background: #006a64; border-color: #006a64; box-shadow: 0 7px 16px rgba(0,106,100,.2); transform: translateY(-1px); }
:deep(.github-button .ui-icon) { flex: 0 0 auto; }
:deep(.version-badge) { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; color: #006a64; background: #e7f4f1; border: 1px solid #cfe9e4; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
:deep(.changelog-button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 10px; color: #006a64; background: #f2f8f6; border: 1px solid #dcebe7; border-radius: 8px; font-size: 11px; font-weight: 700; text-decoration: none; transition: .18s; }
:deep(.changelog-button:hover) { color: #fff; background: #006a64; border-color: #006a64; }
:deep(.header-note) { display: flex; align-items: center; gap: 8px; color: #71807c; font-size: 12px; }
.language-switch { min-width: 50px; min-height: 28px; padding: 0 9px; color: #006a64; background: #e2f2ef; border: 1px solid #c8e6e1; border-radius: 7px; font-size: 10px; font-weight: 700; cursor: pointer; transition: .18s; }
.language-switch:hover { color: #fff; background: #006a64; border-color: #006a64; }
.language-menu-row { display: flex; align-items: center; gap: 10px; }
@@ -170,7 +170,7 @@
@media (max-width: 1200px) { .app-shell { grid-template-columns: 72px 255px minmax(0, 1fr) 218px; }.workspace-content { width: min(900px, calc(100% - 42px)); }.control-dock { padding-inline: 18px; }.dock-center { gap: 8px; }.mic-mode-switch button { padding-inline: 7px; }.member-panel { padding-inline: 12px; }.member-volume { display: none; } }
@media (max-width: 980px) { .app-shell { grid-template-columns: 70px 245px minmax(0, 1fr); }.member-panel { display: none; }.room-hero { min-height: 180px; }.hero-visual { right: 24px; opacity: .55; }.join-content { gap: 40px; }.join-card { padding: 28px; } }
@media (max-width: 740px) { .join-header, .join-content, .join-footer { width: min(100% - 32px, 560px); }.join-header { min-height: 70px; }.header-note { display: none; }.join-content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 35px; padding: 36px 0 48px; }.join-copy h1 { margin-top: 15px; font-size: 45px; }.join-description { font-size: 14px; }.promise-list { gap: 13px; margin-top: 27px; }.promise-item { min-width: 0; flex: 1 1 30%; }.promise-item small { display: none; }.visitor-count { margin-top: 24px; }.join-card { padding: 24px 20px; }.join-footer { min-height: 53px; }.join-footer .footer-spacer { display: none; }.join-footer span:last-child { margin-left: auto; }.field-grid { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }.app-shell { display: block; height: 100dvh; }.nav-rail, .channel-sidebar, .member-panel { display: none; }.workspace { height: 100%; }.workspace-header { min-height: 61px; padding: 0 15px; }.mobile-brand { display: inline; }.crumb-muted, .breadcrumbs > .ui-icon, .breadcrumbs > strong { display: none; }.workspace-actions { gap: 3px; }.disconnect-button { margin-left: 2px; padding-inline: 9px; }.disconnect-button .ui-icon { display: none; }.workspace-content { width: calc(100% - 30px); padding-top: 18px; }.room-hero { min-height: 182px; padding: 23px 21px; }.room-hero h1 { font-size: 22px; }.room-hero p { max-width: 74%; font-size: 11px; }.hero-visual { right: -15px; bottom: 4px; transform: scale(.75); transform-origin: right bottom; }.voice-section, .chat-panel { margin-top: 25px; }.voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.voice-card { min-height: 143px; }.message-row { max-width: 92%; }.control-dock { min-height: 66px; padding: 8px 15px; }.dock-user { min-width: 0; }.dock-user > div:last-child { display: none; }.dock-center { flex: 1; justify-content: center; }.mic-mode-switch button { padding: 6px 7px; font-size: 9px; }.ptt-indicator { display: none; }.dock-actions { min-width: 75px; }.settings-modal { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }.settings-content { padding: 24px 20px; }.settings-header { min-height: 62px; padding-inline: 20px; }.settings-header h2 { font-size: 19px; }.settings-footer { min-height: 61px; padding-inline: 20px; } }
@media (max-width: 740px) { .join-header, .join-content, .join-footer { width: min(100% - 32px, 560px); }.join-header { min-height: 70px; }:deep(.header-note) { display: none; }.join-content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 35px; padding: 36px 0 48px; }.join-copy h1 { margin-top: 15px; font-size: 45px; }.join-description { font-size: 14px; }.promise-list { gap: 13px; margin-top: 27px; }.promise-item { min-width: 0; flex: 1 1 30%; }.promise-item small { display: none; }.visitor-count { margin-top: 24px; }.join-card { padding: 24px 20px; }.join-footer { min-height: 53px; }.join-footer .footer-spacer { display: none; }.join-footer span:last-child { margin-left: auto; }.field-grid { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }.app-shell { display: block; height: 100dvh; }.nav-rail, .channel-sidebar, .member-panel { display: none; }.workspace { height: 100%; }.workspace-header { min-height: 61px; padding: 0 15px; }.mobile-brand { display: inline; }.crumb-muted, .breadcrumbs > .ui-icon, .breadcrumbs > strong { display: none; }.workspace-actions { gap: 3px; }.disconnect-button { margin-left: 2px; padding-inline: 9px; }.disconnect-button .ui-icon { display: none; }.workspace-content { width: calc(100% - 30px); padding-top: 18px; }.room-hero { min-height: 182px; padding: 23px 21px; }.room-hero h1 { font-size: 22px; }.room-hero p { max-width: 74%; font-size: 11px; }.hero-visual { right: -15px; bottom: 4px; transform: scale(.75); transform-origin: right bottom; }.voice-section, .chat-panel { margin-top: 25px; }.voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.voice-card { min-height: 143px; }.message-row { max-width: 92%; }.control-dock { min-height: 66px; padding: 8px 15px; }.dock-user { min-width: 0; }.dock-user > div:last-child { display: none; }.dock-center { flex: 1; justify-content: center; }.mic-mode-switch button { padding: 6px 7px; font-size: 9px; }.ptt-indicator { display: none; }.dock-actions { min-width: 75px; }.settings-modal { max-height: calc(100dvh - 28px); }.settings-nav { display: none; }.settings-content { padding: 24px 20px; }.settings-header { min-height: 62px; padding-inline: 20px; }.settings-header h2 { font-size: 19px; }.settings-footer { min-height: 61px; padding-inline: 20px; } }
@media (max-width: 420px) { .join-copy h1 { font-size: 38px; }.promise-list { display: grid; grid-template-columns: 1fr; }.promise-item small { display: block; }.join-card { border-radius: 15px; }.voice-grid { gap: 8px; }.voice-card { padding-inline: 6px; }.section-counter { display: none; }.workspace-actions .header-action:first-child { display: none; }.dock-icon { display: none; }.dock-actions { min-width: 37px; }.room-stats { gap: 6px; }.room-stats span:last-child, .stat-divider { display: none; } }
@media (max-width: 740px) {
@@ -315,8 +315,8 @@
.settings-modal .mic-test-header button { font-size: 12.5px; }
.settings-modal .meter-labels { font-size: 10px; }
.settings-modal .mode-note { font-size: 12.5px; }
.join-page .brand-lockup strong { font-size: 22.5px; }
.join-page .brand-lockup small, .join-page .header-note { font-size: 12.5px; }
.join-page :deep(.brand-lockup strong) { font-size: 22.5px; }
.join-page :deep(.brand-lockup small), .join-page :deep(.header-note) { font-size: 12.5px; }
.join-page .language-switch { font-size: 12.5px; }
.join-page .eyebrow { font-size: 13.75px; }
.join-page .join-copy h1 { font-size: clamp(52px, 6.6vw, 90px); }
@@ -340,8 +340,8 @@
/* Keep the connected workspace sized to the browser viewport and let the
workspace and member tree own their scroll areas when the window shrinks. */
:global(html), :global(body), :global(#app) { width: 100%; height: 100dvh; min-height: 0; max-height: 100dvh; }
:global(body) { overflow-x: hidden; overflow-y: auto; }
:global(html[data-ws-route="webclient"]), :global(html[data-ws-route="webclient"] body), :global(html[data-ws-route="webclient"] #app) { width: 100%; height: 100dvh; min-height: 0; max-height: 100dvh; }
:global(html[data-ws-route="webclient"] body) { overflow-x: hidden; overflow-y: auto; }
.web-client { height: 100dvh; min-height: 0; max-height: 100dvh; }
.web-client { overflow: hidden; }
.join-page { height: 100dvh; min-height: 0; overflow-y: auto; }
@@ -362,17 +362,17 @@
@media (max-width: 740px) {
.join-header { flex-wrap: nowrap; gap: 6px; }
.header-tools { min-width: 0; flex: 0 1 auto; flex-wrap: nowrap; gap: 7px; }
:deep(.header-tools) { min-width: 0; flex: 0 1 auto; flex-wrap: nowrap; gap: 7px; }
.app-shell { grid-template-rows: minmax(0, 1fr) 220px; }
}
/* Desktop audio controls live in the member rail so the workspace header
stays focused on navigation. Mobile keeps its existing controls below the
voice cards and in the More panel. */
.header-tools { align-items: center; }
:deep(.header-tools) { align-items: center; }
.header-action, .round-icon { line-height: 0; }
.guide-button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; color: #006a64; background: #edf7f4; border: 1px solid #d7ebe6; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.guide-button:hover { color: #fff; background: #006a64; border-color: #006a64; }
:deep(.guide-button) { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; color: #006a64; background: #edf7f4; border: 1px solid #d7ebe6; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
:deep(.guide-button:hover) { color: #fff; background: #006a64; border-color: #006a64; }
.workspace-actions { align-items: center; flex-wrap: nowrap; }
.workspace-actions .header-action { flex: 0 0 34px; padding: 0; line-height: 0; }
.workspace-actions .header-action .ui-icon { margin: 0; }
@@ -390,12 +390,12 @@
.settings-hint { margin: -1px 0 19px; color: #8b9994; font-size: 11px; }
@media (max-width: 740px) {
.header-tools { gap: 7px; }
.header-note, .github-button span, .qq-button .qq-label, .changelog-button span, .guide-button span { display: none; }
.github-button { width: 34px; justify-content: center; padding: 0; }
.qq-button { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
.changelog-button { width: 32px; min-width: 32px; min-height: 32px; padding: 0; }
.guide-button { width: 32px; justify-content: center; padding: 0; }
:deep(.header-tools) { gap: 7px; }
:deep(.header-note),:deep( .github-button span),:deep( .qq-button .qq-label),:deep( .changelog-button span),:deep( .guide-button span) { display: none; }
:deep(.github-button) { width: 34px; justify-content: center; padding: 0; }
:deep(.qq-button) { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
:deep(.changelog-button) { width: 32px; min-width: 32px; min-height: 32px; padding: 0; }
:deep(.guide-button) { width: 32px; justify-content: center; padding: 0; }
}
.chat-tabs { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 18px; overflow-x: auto; padding-bottom: 3px; }
.chat-tabs button { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 7px 10px; color: #74837e; background: #f3f7f5; border: 1px solid transparent; border-radius: 7px; font-size: 11px; cursor: pointer; }
@@ -523,7 +523,7 @@
/* The document itself never becomes the scroll surface. Each view owns its
content scroll area so headers, controls and mobile navigation stay fixed. */
:global(html), :global(body), :global(#app) { width: 100%; height: 100dvh; min-height: 0; max-height: 100dvh; overflow: hidden; }
:global(html[data-ws-route="webclient"]), :global(html[data-ws-route="webclient"] body), :global(html[data-ws-route="webclient"] #app) { width: 100%; height: 100dvh; min-height: 0; max-height: 100dvh; overflow: hidden; }
.join-page { height: 100dvh; min-height: 0; overflow: hidden; }
.join-content { min-height: 0; overflow-y: auto; }
@@ -536,8 +536,8 @@
Non-zero fixed offsets (toast, poke banner) are divided back to CSS pixels
because zoom also scales fixed coordinates against the viewport. */
@media (min-width: 851px) {
:global(html), :global(body) { height: 100dvh; max-height: 100dvh; }
:global(#app), .web-client, .join-page, .app-shell { height: calc(100dvh / var(--ui-scale)); min-height: 0; max-height: calc(100dvh / var(--ui-scale)); }
:global(html[data-ws-route="webclient"]), :global(html[data-ws-route="webclient"] body) { height: 100dvh; max-height: 100dvh; }
:global(html[data-ws-route="webclient"] #app), .web-client, .join-page, .app-shell { height: calc(100dvh / var(--ui-scale)); min-height: 0; max-height: calc(100dvh / var(--ui-scale)); }
.toast { right: calc(24px / var(--ui-scale)); bottom: calc(24px / var(--ui-scale)); }
.poke-banner { top: calc(82px / var(--ui-scale)); right: calc(24px / var(--ui-scale)); }
}
@@ -571,7 +571,7 @@
.member-menu-close { display: none; }
@media (max-width: 740px) {
:global(html), :global(body), :global(#app) { height: 100dvh; height: 100svh; min-height: 100dvh; min-height: 100svh; max-height: 100dvh; max-height: 100svh; }
:global(html[data-ws-route="webclient"]), :global(html[data-ws-route="webclient"] body), :global(html[data-ws-route="webclient"] #app) { height: 100dvh; height: 100svh; min-height: 100dvh; min-height: 100svh; max-height: 100dvh; max-height: 100svh; }
.web-client { height: 100dvh; height: 100svh; min-height: 100dvh; min-height: 100svh; max-height: 100dvh; max-height: 100svh; }
.app-shell { height: 100dvh; height: 100svh; min-height: 100dvh; min-height: 100svh; max-height: 100dvh; max-height: 100svh; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.app-shell .workspace { height: calc(100dvh - 74px - env(safe-area-inset-bottom, 0px)); height: calc(100svh - 74px - env(safe-area-inset-bottom, 0px)); min-height: 0; max-height: calc(100dvh - 74px - env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 74px - env(safe-area-inset-bottom, 0px)); overflow: hidden; }
@@ -688,10 +688,10 @@
}
@media (max-width: 390px) {
.join-page .header-tools { gap: 4px; }
.join-page .github-button, .join-page .changelog-button, .join-page .guide-button { width: 32px; min-width: 32px; min-height: 32px; height: 32px; }
.join-page .version-badge { min-height: 32px; padding-inline: 6px; font-size: 10px; }
.join-page .language-switcher { min-width: 62px; }
.join-page :deep(.header-tools) { gap: 4px; }
.join-page :deep(.github-button), .join-page :deep(.changelog-button), .join-page :deep(.guide-button) { width: 32px; min-width: 32px; min-height: 32px; height: 32px; }
.join-page :deep(.version-badge) { min-height: 32px; padding-inline: 6px; font-size: 10px; }
.join-page :deep(.language-switcher) { min-width: 62px; }
.workspace-header { padding-inline: 10px; }
.workspace-actions .header-action { width: 32px; height: 32px; flex-basis: 32px; }
.disconnect-button { width: 32px; height: 32px; }
@@ -707,49 +707,49 @@
/* Keep every welcome-page action inside the viewport on narrow phones. */
@media (max-width: 420px) {
.join-page .join-header { width: calc(100% - 20px); gap: 6px; }
.join-page .brand-lockup { min-width: 0; flex: 1 1 auto; gap: 7px; }
.join-page .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.join-page .brand-lockup strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.join-page .brand-lockup small { display: none; }
.join-page .header-tools { min-width: 0; flex: 0 0 auto; gap: 2px; }
.join-page .github-button, .join-page .bilibili-button, .join-page .changelog-button, .join-page .guide-button { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
.join-page .github-button, .join-page .bilibili-button, .join-page .changelog-button, .join-page .guide-button { justify-content: center; }
.join-page .github-button .ui-icon { width: 16px; height: 16px; }
.join-page .bilibili-glyph { width: 18px; height: 18px; }
.join-page .version-badge { min-width: 28px; min-height: 28px; padding-inline: 4px; font-size: 9px; }
.join-page .language-switcher { min-width: 58px; }
.join-page :deep(.brand-lockup) { min-width: 0; flex: 1 1 auto; gap: 7px; }
.join-page :deep(.brand-mark) { width: 32px; height: 32px; border-radius: 9px; }
.join-page :deep(.brand-lockup strong) { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.join-page :deep(.brand-lockup small) { display: none; }
.join-page :deep(.header-tools) { min-width: 0; flex: 0 0 auto; gap: 2px; }
.join-page :deep(.github-button), .join-page :deep(.bilibili-button), .join-page :deep(.changelog-button), .join-page :deep(.guide-button) { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
.join-page :deep(.github-button), .join-page :deep(.bilibili-button), .join-page :deep(.changelog-button), .join-page :deep(.guide-button) { justify-content: center; }
.join-page :deep(.github-button .ui-icon) { width: 16px; height: 16px; }
.join-page :deep(.bilibili-glyph) { width: 18px; height: 18px; }
.join-page :deep(.version-badge) { min-width: 28px; min-height: 28px; padding-inline: 4px; font-size: 9px; }
.join-page :deep(.language-switcher) { min-width: 58px; }
}
@media (max-width: 360px) {
.join-page .brand-lockup > div { display: none; }
.join-page .brand-lockup { flex: 0 0 32px; }
.join-page :deep(.brand-lockup > div) { display: none; }
.join-page :deep(.brand-lockup) { flex: 0 0 32px; }
}
.bilibili-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; color: #e56b91; background: #fff0f5; border: 1px solid #f6d2df; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; transition: .18s; }
.bilibili-button:hover { color: #fff; background: #e56b91; border-color: #e56b91; box-shadow: 0 7px 16px rgba(229,107,145,.2); transform: translateY(-1px); }
.bilibili-glyph { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: #e56b91; border-radius: 5px; font-size: 11px; line-height: 1; }
.bilibili-button:hover .bilibili-glyph { color: #e56b91; background: #fff; }
:deep(.bilibili-button) { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; color: #e56b91; background: #fff0f5; border: 1px solid #f6d2df; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; transition: .18s; }
:deep(.bilibili-button:hover) { color: #fff; background: #e56b91; border-color: #e56b91; box-shadow: 0 7px 16px rgba(229,107,145,.2); transform: translateY(-1px); }
:deep(.bilibili-glyph) { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: #e56b91; border-radius: 5px; font-size: 11px; line-height: 1; }
:deep(.bilibili-button:hover .bilibili-glyph) { color: #e56b91; background: #fff; }
.qq-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; color: #1684b8; background: #eef9ff; border: 1px solid #cdeafa; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .18s; }
.qq-button:hover { color: #fff; background: #168fca; border-color: #168fca; box-shadow: 0 7px 16px rgba(22,143,202,.2); transform: translateY(-1px); }
.qq-button .ui-icon { color: #168fca; }
.qq-button:hover .ui-icon { color: #fff; }
:deep(.qq-button) { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; color: #1684b8; background: #eef9ff; border: 1px solid #cdeafa; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .18s; }
:deep(.qq-button:hover) { color: #fff; background: #168fca; border-color: #168fca; box-shadow: 0 7px 16px rgba(22,143,202,.2); transform: translateY(-1px); }
:deep(.qq-button .ui-icon) { color: #168fca; }
:deep(.qq-button:hover .ui-icon) { color: #fff; }
@media (max-width: 740px) {
.bilibili-button { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
.bilibili-button .bilibili-label { display: none; }
.qq-button { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
.qq-button .qq-label { display: none; }
:deep(.bilibili-button) { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
:deep(.bilibili-button .bilibili-label) { display: none; }
:deep(.qq-button) { width: 32px; min-width: 32px; min-height: 32px; justify-content: center; padding: 0; }
:deep(.qq-button .qq-label) { display: none; }
}
@media (max-width: 390px) {
.join-page .bilibili-button { width: 32px; min-width: 32px; min-height: 32px; height: 32px; }
.join-page :deep(.bilibili-button) { width: 32px; min-width: 32px; min-height: 32px; height: 32px; }
}
/* Override the shared Bilibili sizing above for the tighter welcome header. */
@media (max-width: 420px) {
.join-page .bilibili-button { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
.join-page .qq-button { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
.join-page :deep(.bilibili-button) { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
.join-page :deep(.qq-button) { width: 28px; min-width: 28px; min-height: 28px; height: 28px; padding: 0; }
}
.network-performance { position: relative; z-index: 8; }
@@ -805,22 +805,22 @@
/* Latin-script translations need a little more room than Chinese copy. Keep
the Chinese layout unchanged and use a compact type scale for English and
German so headings, labels, and actions do not force awkward wrapping. */
.web-client.language-en .join-page .brand-lockup strong,
.web-client.language-de .join-page .brand-lockup strong { font-size: 19.8px; }
.web-client.language-en .join-page .brand-lockup small,
.web-client.language-en .join-page .header-note,
.web-client.language-de .join-page .brand-lockup small,
.web-client.language-de .join-page .header-note { font-size: 11px; }
.web-client.language-en .join-page .github-button,
.web-client.language-en .join-page .qq-button,
.web-client.language-en .join-page .bilibili-button,
.web-client.language-en .join-page .changelog-button,
.web-client.language-en .join-page .guide-button,
.web-client.language-de .join-page .github-button,
.web-client.language-de .join-page .qq-button,
.web-client.language-de .join-page .bilibili-button,
.web-client.language-de .join-page .changelog-button,
.web-client.language-de .join-page .guide-button { font-size: 9.7px; }
.web-client.language-en .join-page :deep(.brand-lockup strong),
.web-client.language-de .join-page :deep(.brand-lockup strong) { font-size: 19.8px; }
.web-client.language-en .join-page :deep(.brand-lockup small),
.web-client.language-en .join-page :deep(.header-note),
.web-client.language-de .join-page :deep(.brand-lockup small),
.web-client.language-de .join-page :deep(.header-note) { font-size: 11px; }
.web-client.language-en .join-page :deep(.github-button),
.web-client.language-en .join-page :deep(.qq-button),
.web-client.language-en .join-page :deep(.bilibili-button),
.web-client.language-en .join-page :deep(.changelog-button),
.web-client.language-en .join-page :deep(.guide-button),
.web-client.language-de .join-page :deep(.github-button),
.web-client.language-de .join-page :deep(.qq-button),
.web-client.language-de .join-page :deep(.bilibili-button),
.web-client.language-de .join-page :deep(.changelog-button),
.web-client.language-de .join-page :deep(.guide-button) { font-size: 9.7px; }
.web-client.language-en .join-page .eyebrow,
.web-client.language-de .join-page .eyebrow { font-size: 12px; }
.web-client.language-en .join-page .join-copy h1,
@@ -864,8 +864,8 @@
}
@media (max-width: 420px) {
.web-client.language-en .join-page .brand-lockup strong,
.web-client.language-de .join-page .brand-lockup strong { font-size: 13.2px; }
.web-client.language-en .join-page :deep(.brand-lockup strong),
.web-client.language-de .join-page :deep(.brand-lockup strong) { font-size: 13.2px; }
}
@media (max-width: 740px) {
@@ -1275,3 +1275,12 @@
.identity-import-header { padding-right: 27px; }
.identity-import-header h2 { font-size: 18px; }
}
/* Give the brand and actions their own rows before they can overlap. */
@media (max-width: 740px) {
.join-page .join-header { flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.join-page :deep(.brand-lockup) { flex: 1 1 100%; min-width: 0; }
.join-page :deep(.brand-lockup > div) { display: block; min-width: 0; }
.join-page :deep(.brand-mark) { flex: 0 0 auto; }
.join-page :deep(.header-tools) { flex: 1 1 100%; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
}
File diff suppressed because it is too large. Load diff
+13 -10
View File
@@ -2,16 +2,18 @@
<div :class="['web-client', 'ws-skin-root', `language-${language}`, { 'skin-initializing': !skinReady }]" data-ws-part="app" :data-ws-page="voiceState.connected || voiceState.reconnecting || voiceState.reconnectFailed ? 'voice' : 'home'">
<!-- Connection / welcome screen -->
<section v-if="!voiceState.connected && !voiceState.reconnecting && !voiceState.reconnectFailed" class="join-page" data-ws-part="home">
<header class="join-header" data-ws-part="home.header">
<div class="brand-lockup" data-ws-part="home.brand">
<img class="brand-mark" src="/网站图标.jpg" alt="WebSpeak" />
<div>
<strong>{{ skinHomeCopy.brandName || siteName }}</strong>
<small>{{ t('browserWorkspace') }}</small>
</div>
</div>
<div class="header-tools" data-ws-part="home.header-tools"><div class="header-note" data-ws-part="home.gateway-status"><span class="tiny-dot"></span> {{ t('secureGateway') }}</div><a class="github-button" href="https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak" target="_blank" rel="noreferrer" :title="t('githubRepository')" :aria-label="t('githubRepository')"><Icon name="github" :size="18" /><span>{{ t('githubRepository') }}</span></a><button type="button" class="qq-button" :title="t('qqGroup')" :aria-label="t('qqGroup')" aria-haspopup="dialog" @click="qqModalOpen = true"><Icon name="qq" :size="18" /><span class="qq-label">{{ t('qqGroup') }}</span></button><a class="bilibili-button" href="https://space.bilibili.com/25414873" target="_blank" rel="noreferrer" :title="t('bilibiliProfile')" :aria-label="t('bilibiliProfile')"><span class="bilibili-glyph">B</span><span class="bilibili-label">{{ t('bilibiliProfile') }}</span></a><span class="version-badge" :title="`${t('currentVersion')}: v${appVersion}`" :aria-label="`${t('currentVersion')}: v${appVersion}`">v{{ appVersion }}</span><a class="changelog-button" href="https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/blob/master/CHANGELOG.md" target="_blank" rel="noreferrer" :title="t('viewChangelog')" :aria-label="t('viewChangelog')"><Icon name="clock" :size="16" /><span>{{ t('viewChangelog') }}</span></a><a v-if="!mobileMode" class="guide-button" href="/admin" :title="t('adminConsole')" :aria-label="t('adminConsole')"><Icon name="settings" :size="15" /><span>{{ t('adminConsole') }}</span></a><SkinSwitcher v-model="activeSkinId" class="join-skin-switcher" :menu-label="t('skinSelector')" :options="skinOptions" @change="onSkinChange" /><LanguageSwitcher v-model="language" class="join-language-switcher" :menu-label="t('languageMenu')" @change="persistLanguage" /></div>
</header>
<WebClientHeader
v-model:language="language"
v-model:skin-id="activeSkinId"
:brand-name="skinHomeCopy.brandName || siteName"
:app-version="appVersion"
:mobile="mobileMode"
:skin-options="skinOptions"
:t="t"
@open-qq="qqModalOpen = true"
@skin-change="onSkinChange"
@language-change="persistLanguage"
/>
<main class="join-content" data-ws-part="home.content">
<div class="join-copy" data-ws-part="home.hero">
@@ -394,6 +396,7 @@
<script setup lang="ts">
import { computed, nextTick, onMounted, onUnmounted, reactive, ref, shallowRef, watch } from "vue";
import Icon from "../components/Icon.vue";
import WebClientHeader from "../components/web-client/WebClientHeader.vue";
import LanguageSwitcher from "../components/LanguageSwitcher.vue";
import SkinSwitcher, { type SkinOption } from "../components/SkinSwitcher.vue";
import { useWebClientChat } from "../composables/useWebClientChat.js";