/* Soft desktop shell. Business controls and decoration rules remain in style.css. */
body.soft-ui {
  --soft-panel: var(--bg2);
  --soft-selected: var(--panel2);
  --soft-line: var(--border);
  --soft-surface: var(--panel2);
  --soft-shadow: 0 2px 5px rgb(0 0 0 / .12), 0 8px 24px rgb(0 0 0 / .07);
  --soft-hero-glow: var(--accent-soft);
  --soft-hero-dot: color-mix(in srgb, var(--accent) 30%, transparent);
  --soft-avatar: var(--panel2);
  --radius: 8px;
  --radius-card: 14px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font: 13px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

html:not([data-theme]) body.soft-ui,
html[data-theme="white"] body.soft-ui {
  --bg: #f3f3f3;
  --bg2: #fff;
  --panel: #fff;
  --panel2: #f7f7f8;
  --text: #2d2e32;
  --muted: #828287;
  --border: #eaeaec;
  --accent: #ef8b42;
  --accent2: #e87f32;
  --grad: linear-gradient(135deg, #f5984f, #ec853c);
  --ok: #36a67e;
  --warn: #aa7b39;
  --hover: #e8e8e9;
  --accent-soft: #fff3e8;
  --focus-ring: rgb(239 139 66 / .18);
  --on-soft: rgb(54 166 126 / .045);
  --on-color: #36a67e;
  --on-glow: rgb(54 166 126 / .2);
  --led: #36a67e;
  --soft-selected: #e8e8e9;
  --soft-shadow: 0 2px 5px #23273514, 0 8px 24px #23273509;
  --soft-hero-glow: #f9e9be6b;
  --soft-hero-dot: #d7b46b70;
  --soft-avatar: #ebe8da;
  --n1: #526b69;
  --n2: #746579;
  --n3: #628772;
  --n4: #8a7266;
}

body.soft-ui button,
body.soft-ui input,
body.soft-ui select { font-family: inherit; }
body.soft-ui button { cursor: pointer; }
body.soft-ui button:disabled { cursor: not-allowed; }
body.soft-ui button:focus-visible,
body.soft-ui a:focus-visible,
body.soft-ui input:focus-visible,
body.soft-ui select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body.soft-ui svg.soft-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  flex: 0 0 auto;
  stroke-width: 1.7;
}
body.soft-ui .soft-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
body.soft-ui .app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* A quiet title bar leaves the room itself as the main heading. */
body.soft-ui .topbar {
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0 15px;
  gap: 12px;
  flex-wrap: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
}
body.soft-ui .room-brand { gap: 7px; }
body.soft-ui .soft-app-title { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; }
body.soft-ui .soft-connection-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
body.soft-ui .soft-title-button { display: grid; place-items: center; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: var(--text); }
body.soft-ui .soft-title-button:hover { background: var(--soft-selected); }
body.soft-ui .soft-title-button svg { width: 13px; height: 13px; }
body.soft-ui .room-logo,
body.soft-ui .soft-brand-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: none;
  font-size: 0;
}
body.soft-ui .room-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
body.soft-ui .room-right,
body.soft-ui .soft-title-tools { display: flex; align-items: center; gap: 11px; }
body.soft-ui .topbar .icon-btn {
  height: 26px;
  width: 26px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
}
body.soft-ui .topbar .icon-btn:hover { background: var(--soft-selected); color: var(--text); }

/* Keep the split handles and the original resizable flex items. */
body.soft-ui .layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
body.soft-ui .sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 210px;
  width: 210px;
  min-width: 190px;
  min-height: 0;
  max-width: min(640px, 52vw);
  padding: 21px 12px 22px;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.soft-ui .vsplit {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  align-self: stretch;
  border-radius: 4px;
  background: transparent;
  touch-action: none;
}
body.soft-ui .vsplit:hover,
body.soft-ui .vsplit.active { background: var(--focus-ring); }
body.soft-ui .main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px 27px 26px;
  gap: 18px;
  background: var(--soft-panel);
  border-radius: 24px 0 0;
  overflow: hidden;
}
body.soft-ui .main > .panel,
body.soft-ui .sidebar > .panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Account and channels. The channel list stays scrollable with many rooms. */
body.soft-ui .soft-profile {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 12px;
  padding: 0 7px 19px;
  border-bottom: 1px solid var(--soft-line);
  margin-bottom: 19px;
}
body.soft-ui #softProfileAvatar {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--soft-line);
  background: linear-gradient(140deg, #e2c49d, #877361);
  background-size: cover;
  background-position: center;
  color: #fff8ed;
  font-size: 18px;
  font-weight: 600;
}
body.soft-ui #softProfileButton {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
body.soft-ui #softProfileButton:hover #softProfileName { color: var(--accent); }
body.soft-ui .soft-profile-info { flex: 1 1 75px; min-width: 0; }
body.soft-ui #softProfileName {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.soft-ui .soft-profile .vd-role {
  display: block;
  max-width: 100%;
  padding: 2px 0 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.soft-ui .soft-account-actions {
  display: flex;
  flex: 1 0 100%;
  gap: 7px;
  min-width: 0;
}
body.soft-ui .soft-account-actions:empty { display: none; }
body.soft-ui .soft-profile .vd-ow-login {
  flex: 1;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: 7px;
  background: var(--soft-selected);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
body.soft-ui .soft-profile .vd-ow-login:hover { color: var(--text); border-color: var(--soft-line); }
body.soft-ui .soft-channel-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 100px; }
body.soft-ui .soft-channel-panel h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
body.soft-ui .h2-link {
  float: none;
  font-size: 10px;
  font-weight: 400;
  padding: 3px 4px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
}
body.soft-ui .h2-link:hover { color: var(--text); background: var(--soft-selected); box-shadow: none; }
body.soft-ui .chan-tree {
  flex: 1 1 auto;
  min-height: 50px;
  max-height: none;
  margin: 0;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
body.soft-ui .tree-room {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 37px;
  padding: 9px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
}
body.soft-ui .tree-room:hover { background: var(--soft-selected); }
body.soft-ui .tree-room.current { color: var(--text); background: var(--soft-selected); font-weight: 600; }
body.soft-ui .tree-room.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  min-height: 14px;
  border-radius: 2px;
  background: var(--accent);
}
body.soft-ui .tree-room.sub { margin-left: 12px; font-size: 11px; }
body.soft-ui .tree-label { min-width: 0; flex: 1 1 auto; }
body.soft-ui .tree-meta { flex: 0 0 auto; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body.soft-ui .chan-mg {
  flex: 0 0 auto;
  font-weight: 400;
  color: var(--muted);
  padding: 1px 3px;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
}
body.soft-ui .chan-mg:hover { color: var(--accent); background: var(--accent-soft); }
body.soft-ui .tree-mem { flex: 0 0 auto; padding: 0 4px 0 22px; font-size: 10px; line-height: 1.7; }
body.soft-ui .tree-mem::before { content: "·"; left: 13px; }
body.soft-ui .chan-empty { font-size: 12px; padding: 9px; }
body.soft-ui .soft-invite {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0 7px;
}
body.soft-ui .soft-invite label { flex: 1 0 100%; color: var(--muted); font-size: 10px; }
body.soft-ui .soft-invite input { width: 0; min-width: 50px; padding: 6px 7px; font-size: 10px; background: var(--bg); }
body.soft-ui .soft-invite .mini { padding: 6px 8px; font-size: 10px; background: transparent; }
body.soft-ui .soft-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  flex: 0 0 auto;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--soft-line);
}
body.soft-ui .soft-tools button,
body.soft-ui .soft-tools .mute-btn,
body.soft-ui .soft-tools .icon-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: auto;
  min-height: 35px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}
body.soft-ui .soft-tools button:hover { background: var(--soft-selected); color: var(--text); }
body.soft-ui .soft-tools svg { width: 14px; height: 14px; color: var(--muted); }
body.soft-ui .soft-sidebar-bottom {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 12px 7px 0;
  color: var(--muted);
  font-size: 10px;
}
body.soft-ui .soft-sidebar-bottom .route-btn {
  height: 26px;
  padding: 3px 8px;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
  font-weight: 400;
}
body.soft-ui .soft-sidebar-bottom .icon-btn { width: 26px; height: 26px; border-radius: 5px; background: transparent; font-size: 15px; }
body.soft-ui .soft-sidebar-bottom #retryBtn { width: 100%; padding: 7px 8px; font-size: 11px; }
body.soft-ui .soft-sidebar-bottom .warn { flex: 1 0 100%; font-size: 10px; padding: 0; margin: 4px 0; }
body.soft-ui .soft-connection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; width: 100%; }
body.soft-ui .soft-connection-label { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; }

/* Room identity uses the reference's warm dotted light, without replacing live data. */
body.soft-ui .soft-room-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 154px;
  padding: 15px 18px 21px;
  border: 1px solid color-mix(in srgb, var(--soft-line) 50%, transparent);
  border-radius: 18px;
  background: radial-gradient(ellipse at 51% 57%, var(--soft-hero-glow), transparent 67%), radial-gradient(var(--soft-hero-dot) .55px, transparent .65px), var(--soft-panel);
  background-size: auto, 11px 11px, auto;
  box-shadow: 0 5px 12px #2327350b, 0 12px 35px #2327350b;
}
body.soft-ui .soft-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
body.soft-ui .soft-hero-mark { font-size: 9px; letter-spacing: 2px; color: var(--muted); font-weight: 500; }
body.soft-ui #currentRoomManageBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--soft-panel) 80%, transparent);
  color: var(--muted);
  padding: 6px 9px;
  min-height: 29px;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
body.soft-ui #currentRoomManageBtn:hover:not(:disabled) { background: var(--soft-surface); color: var(--text); }
body.soft-ui #currentRoomManageBtn:disabled { opacity: .5; }
body.soft-ui #currentRoomManageBtn svg { width: 12px; height: 12px; }
body.soft-ui .soft-room-hero h1,
body.soft-ui .soft-room-hero #vdRoom {
  display: block;
  width: 100%;
  margin: 15px 0 7px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 25px #d3a85740;
}
body.soft-ui .soft-hero-sub,
body.soft-ui .soft-room-hero .room-sub {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
body.soft-ui .soft-hero-sub svg { width: 11px; height: 11px; }
body.soft-ui .soft-hero-sub .dot { margin: 0 3px; opacity: .5; }
body.soft-ui #status { overflow-wrap: anywhere; }

/* The card keeps every avatar, frame, medal, verification and title node intact. */
body.soft-ui .main > .mic-panel {
  display: flex;
  flex: 1 1 190px;
  min-height: 140px;
  max-height: none;
  overflow: hidden;
}
body.soft-ui .mic-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 600;
}
body.soft-ui .mic-tip { font-size: 10px; margin-left: 5px; font-weight: 400; color: var(--muted); opacity: 1; }
body.soft-ui .mic-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, min(100%, 220px)));
  align-content: start;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 10px 6px 14px;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.soft-ui .mic-strip > .chan-empty { grid-column: 1 / -1; padding: 18px 8px; }
body.soft-ui .mic-strip .vm {
  position: relative;
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-content: center;
  align-items: center;
  justify-items: start;
  gap: 4px 13px;
  width: auto;
  min-width: 0;
  min-height: 108px;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--soft-line) 75%, transparent);
  border-radius: 14px;
  background: var(--soft-panel);
  box-shadow: var(--soft-shadow);
}
body.soft-ui .mic-strip .vm:hover { background: var(--soft-panel); border-color: var(--border); }
body.soft-ui .mic-strip .vm.talking { background: var(--on-soft); }
body.soft-ui .mic-strip .vm > .vm-avatar {
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 52px;
  height: 52px;
  justify-self: center;
  align-self: center;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--soft-avatar);
  background-image: none;
  background-size: cover;
  background-position: center;
}
body.soft-ui .mic-strip .vm > .vm-avatar.me { border-color: var(--accent); }
body.soft-ui .mic-strip .vm-avatar > .bd-emblem { z-index: 3; }
body.soft-ui .mic-strip .vm > .vm-nick {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding-right: 6px;
}
body.soft-ui .mic-strip .vm > .vm-badge,
body.soft-ui .mic-strip .vm > .ti-plate { grid-column: 2; max-width: 100%; margin: 0; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
body.soft-ui .mic-strip .vm > .vm-badge { padding: 1px 6px; border-radius: 4px; }
body.soft-ui .mic-strip .vm > .vm-badge.v { width: auto; height: auto; min-width: 13px; border-radius: 50%; padding: 0 4px; }
body.soft-ui .mic-strip .vm > .vm-mic { position: absolute; top: 10px; right: 11px; font-size: 11px; }
body.soft-ui .mic-strip .vm > .vm-act { grid-column: 2; }
body.soft-ui .mic-strip .vm:has(> .vm-info) { grid-template-columns: 72px minmax(0, 1fr); }
body.soft-ui .mic-strip .vm:has(> .vm-info) > .vm-avatar { grid-row: 1; }
body.soft-ui .vm-info { display: flex; grid-column: 2; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: 100%; }
body.soft-ui .vm-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
body.soft-ui .vm-name-row .vm-nick { min-width: 0; max-width: 100%; font-size: 13px; font-weight: 600; line-height: 1.5; }
body.soft-ui .vm-name-row .vm-badge.v { flex: 0 0 16px; width: 16px; height: 16px; padding: 0; margin: 0; font-size: 10px; line-height: 1; }
body.soft-ui .vm-info > .vm-badge.vt { max-width: 100%; margin: 0; padding: 1px 7px; border-radius: 999px; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
body.soft-ui .vm-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
body.soft-ui .vm-badges > .ti-plate,
body.soft-ui .vm-badges > .vm-badge { margin: 0; max-width: 100%; padding: 2px 6px; border-radius: 5px; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }

/* Live screen notices keep their own .panel ancestor for app.js visibility. */
body.soft-ui .main > .stats-panel { flex: 0 0 auto; min-height: 0; }
body.soft-ui .screen-bar {
  margin: 0;
  padding: 9px 12px;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--soft-surface);
  font-size: 11px;
}
body.soft-ui #screenBarTxt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
body.soft-ui .hsplit {
  display: grid;
  flex: 0 0 10px;
  height: 10px;
  margin: -12px 0;
  min-height: 10px;
  touch-action: none;
}
body.soft-ui .hsplit span { width: 42px; height: 3px; opacity: .65; }

/* Chat remains a resizable flex item, with only its log scrolling. */
body.soft-ui .main > .chat-panel {
  display: flex;
  flex: 0 0 clamp(205px, 31vh, 280px);
  flex-direction: column;
  min-height: 150px;
  min-width: 0;
  max-height: none;
  overflow: hidden;
}
body.soft-ui .chat-head {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 36px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
body.soft-ui .chat-head > span:first-child,
body.soft-ui .soft-chat-title { position: relative; }
body.soft-ui .chat-head .icon-btn { width: 27px; height: 27px; padding: 4px; border-radius: 6px; font-size: 14px; background: transparent; border: 0; }
body.soft-ui .chat-head .icon-btn:hover:not(:disabled) { color: var(--text); background: var(--soft-surface); }
body.soft-ui .chat-head .icon-btn:disabled { opacity: .4; cursor: not-allowed; }
body.soft-ui .soft-file-tab { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 2px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }
body.soft-ui .soft-file-tab svg { width: 13px; height: 13px; }
body.soft-ui .soft-file-tab:hover:not(:disabled) { background: var(--soft-surface); color: var(--text); }
body.soft-ui .soft-file-tab:disabled { opacity: .4; }
body.soft-ui .chat-log {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 12px 0 10px;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
body.soft-ui .chat-line { flex: 0 0 auto; padding: 6px 9px; font-size: 12px; line-height: 1.7; border-radius: 7px; }
body.soft-ui .chat-name { font-weight: 500; }
body.soft-ui .chat-hint { margin: auto 0; padding: 20px 8px; font-size: 11px; }
body.soft-ui .chat-file-link { color: var(--accent); overflow-wrap: anywhere; }
body.soft-ui .chat-row {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 8px;
  margin-top: 3px;
  padding: 6px 7px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: var(--soft-panel);
  box-shadow: 0 2px 5px #23273505;
}
body.soft-ui .chat-row #chatInput {
  width: 0;
  min-width: 0;
  padding: 5px 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}
body.soft-ui #chatInput::placeholder { color: var(--muted); }
body.soft-ui .chat-row .chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 400;
}
body.soft-ui .chat-row .file-btn { width: 27px; padding: 5px; background: transparent; color: var(--muted); font-size: 17px; }
body.soft-ui .chat-row .file-btn:hover:not(:disabled) { background: var(--soft-surface); color: var(--text); }

/* Dock controls use the existing real volume inputs and mic state. */
body.soft-ui .main > .voice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  flex-wrap: wrap;
  min-height: 51px;
  margin: 0;
  padding: 14px 0 0;
  gap: 10px;
  border-top: 1px solid var(--soft-line);
  background: transparent;
}
body.soft-ui .voice-dock-start,
body.soft-ui .voice-dock-end { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
body.soft-ui .voice-bar .talk-wrap { display: inline-flex; flex: 0 0 auto; min-width: 0; }
body.soft-ui .voice-bar .talk {
  min-width: 0;
  min-height: 35px;
  margin: 0;
  padding: 9px 12px;
  gap: 6px;
  border-radius: 7px 0 0 7px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
}
body.soft-ui .voice-bar .talk.active { background: var(--on-grad); color: var(--on-text); }
body.soft-ui #micVolumeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  padding: 7px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / .24);
  border-radius: 0 7px 7px 0;
  background: var(--accent);
  color: #fff;
}
body.soft-ui #micVolumeToggle:hover { filter: brightness(.96); }
body.soft-ui #micVolumeToggle svg { width: 12px; height: 12px; }
body.soft-ui .talk-wrap:has(.talk.active) #micVolumeToggle { background: #22a35a; }
body.soft-ui .voice-bar .mute-btn,
body.soft-ui .voice-bar .screen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 33px;
  padding: 7px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
}
body.soft-ui .voice-bar .screen-btn:hover:not(:disabled) { background: var(--soft-surface); border-color: var(--soft-line); }
body.soft-ui .voice-bar .screen-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
body.soft-ui .channel-volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}
body.soft-ui .channel-volume-control #muteBtn {
  min-height: 30px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
body.soft-ui .channel-volume-control #muteBtn.muted { color: var(--accent); }
body.soft-ui .channel-volume-control #chanVol { flex: 0 1 90px; width: 90px; min-width: 50px; margin: 0; accent-color: var(--accent); }
body.soft-ui .channel-volume-control #chanVolVal { min-width: 31px; font-size: 10px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
body.soft-ui .talk-wrap .vol-pop {
  width: 240px;
  max-width: calc(100vw - 40px);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 5px 25px #23273520;
  transition: opacity .15s, visibility .15s, transform .15s;
}
body.soft-ui .talk-wrap:hover .vol-pop,
body.soft-ui .talk-wrap:has(:focus-visible) .vol-pop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}
body.soft-ui .talk-wrap.is-open .vol-pop,
body.soft-ui .talk-wrap[data-open="true"] .vol-pop,
body.soft-ui .talk-wrap[aria-expanded="true"] .vol-pop,
body.soft-ui .talk-wrap:has(#micVolumeToggle[aria-expanded="true"]) .vol-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
body.soft-ui .vol-pop-head { color: var(--text); font-size: 12px; margin-bottom: 13px; }
body.soft-ui .vol-pop input { margin: 0; }
body.soft-ui .soft-volume-caption { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 10px; }

/* Dialogs, transfer UI and screen viewing retain their original functionality. */
body.soft-ui .modal { padding: 24px; background: rgb(26 27 32 / .24); backdrop-filter: blur(3px); }
body.soft-ui .modal-box { width: min(100%, 480px); max-height: calc(100dvh - 48px); padding: 23px; border-radius: 18px; box-shadow: 0 18px 65px #16182135; }
body.soft-ui .modal-box h3 { font-size: 17px; font-weight: 600; }
body.soft-ui .modal-box .primary { background: var(--accent); color: #fff; font-weight: 500; }
body.soft-ui .modal-box .ghost,
body.soft-ui .modal-box .mini { background: var(--soft-panel); }
body.soft-ui .modal-box .modal-btns { flex-wrap: wrap; }
body.soft-ui .set-nav { gap: 6px; flex-wrap: wrap; }
body.soft-ui .set-nav-btn { border-radius: 7px; font-size: 12px; }
body.soft-ui .xfer-panel { border-radius: 13px; bottom: 90px; }
body.soft-ui .screen-viewer { z-index: 95; }
body.soft-ui .sv-head { flex-wrap: wrap; }
body.soft-ui .sv-ops { flex-wrap: wrap; }

/* Beat old 860px/640px rules explicitly; desktop stays split down to 700px. */
@media (min-width: 701px) and (max-width: 1100px) {
  body.soft-ui .sidebar { flex-basis: 190px; width: 190px; padding-left: 10px; padding-right: 10px; }
  body.soft-ui .main { padding: 20px 22px 25px; gap: 16px; }
  body.soft-ui .soft-room-hero { min-height: 143px; }
  body.soft-ui .soft-room-hero h1,
  body.soft-ui .soft-room-hero #vdRoom { font-size: 23px; }
  body.soft-ui .mic-strip { gap: 12px; }
  body.soft-ui .mic-strip .vm { padding: 14px 13px; grid-template-columns: 55px minmax(0, 1fr); gap: 4px 10px; }
  body.soft-ui .mic-strip .vm > .vm-avatar { width: 48px; height: 48px; font-size: 18px; }
  body.soft-ui .channel-volume-control { gap: 6px; }
  body.soft-ui .channel-volume-control #chanVol { width: 73px; flex-basis: 73px; }
  body.soft-ui .voice-bar { column-gap: 8px; }
}
@media (min-width: 701px) and (max-height: 760px) {
  body.soft-ui .main { gap: 14px; padding-top: 18px; padding-bottom: 23px; }
  body.soft-ui .soft-room-hero { min-height: 125px; padding-top: 12px; padding-bottom: 15px; }
  body.soft-ui .soft-room-hero h1,
  body.soft-ui .soft-room-hero #vdRoom { margin-top: 9px; font-size: 22px; }
  body.soft-ui .main > .mic-panel { min-height: 125px; }
  body.soft-ui .main > .chat-panel { flex-basis: 210px; min-height: 140px; }
  body.soft-ui .main > .voice-bar { padding-top: 11px; min-height: 47px; }
  body.soft-ui .soft-profile { margin-bottom: 14px; padding-bottom: 15px; }
  body.soft-ui .soft-tools { margin-top: 14px; padding-top: 10px; }
  body.soft-ui .soft-tools button { min-height: 32px; padding-top: 6px; padding-bottom: 6px; }
}
@media (min-width: 701px) and (max-width: 860px) {
  body.soft-ui { overflow: hidden; }
  body.soft-ui .app { height: 100vh; height: 100dvh; min-height: 0; }
  body.soft-ui .layout { flex-direction: row; }
  body.soft-ui .main { min-height: 0; padding-left: 18px; padding-right: 18px; }
  body.soft-ui .sidebar { overflow-y: auto; }
  body.soft-ui .vsplit { display: block; }
  body.soft-ui .topbar { flex-wrap: nowrap; }
  body.soft-ui .main > .voice-bar { justify-content: flex-start; }
  body.soft-ui .channel-volume-control { margin-left: 0; flex: 1 1 auto; }
}

/* Small windows expose all tools in a compact, naturally scrolling layout. */
@media (max-width: 700px) {
  body.soft-ui { overflow: auto; -webkit-tap-highlight-color: transparent; }
  body.soft-ui .app { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  body.soft-ui .topbar { min-height: 36px; flex-basis: 36px; padding: 0 12px; }
  body.soft-ui .layout { flex: 1 0 auto; flex-direction: column; overflow: visible; padding: 0; }
  body.soft-ui .sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    overflow: visible;
    padding: 15px 14px 18px;
  }
  body.soft-ui .soft-profile { padding: 0 3px 13px; margin-bottom: 13px; gap: 10px; }
  body.soft-ui #softProfileAvatar { flex-basis: 36px; width: 36px; height: 36px; font-size: 15px; }
  body.soft-ui .soft-profile-info { flex: 1 1 80px; }
  body.soft-ui .soft-profile .vd-role { display: block; font-size: 10px; }
  body.soft-ui .soft-account-actions { flex: 0 1 auto; max-width: 45%; }
  body.soft-ui .soft-profile .vd-ow-login { padding: 7px 9px; font-size: 10px; }
  body.soft-ui .soft-channel-panel { flex: 0 0 auto; min-height: 0; }
  body.soft-ui .chan-tree { display: flex; max-height: 245px; min-height: 0; gap: 4px; }
  body.soft-ui .tree-room { min-height: 36px; padding: 8px; font-size: 11px; }
  body.soft-ui .tree-room.sub { margin-left: 8px; }
  body.soft-ui .tree-mem { padding-left: 14px; }
  body.soft-ui .tree-mem::before { left: 6px; }
  body.soft-ui .soft-invite { margin-top: 11px; padding: 0 4px; flex-wrap: nowrap; }
  body.soft-ui .soft-invite label { flex: 0 0 auto; font-size: 10px; }
  body.soft-ui .soft-invite input { max-width: none; font-size: 12px; padding: 7px; }
  body.soft-ui .soft-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; padding-top: 10px; gap: 4px; }
  body.soft-ui .soft-tools button,
  body.soft-ui .soft-tools .mute-btn,
  body.soft-ui .soft-tools .icon-btn { padding: 7px 8px; min-height: 35px; font-size: 11px; }
  body.soft-ui .soft-sidebar-bottom { margin-top: 8px; padding: 7px 4px 0; gap: 8px; }
  body.soft-ui .vsplit { display: none; }
  body.soft-ui .main { flex: 0 0 auto; min-height: 0; padding: 19px 16px 30px; border-radius: 22px 22px 0 0; gap: 20px; overflow: visible; }
  body.soft-ui .soft-room-hero { min-height: 154px; padding: 13px 14px 18px; }
  body.soft-ui .soft-hero-mark { font-size: 8px; letter-spacing: 1px; }
  body.soft-ui .soft-room-hero h1,
  body.soft-ui .soft-room-hero #vdRoom { font-size: 21px; margin: 17px 0 8px; }
  body.soft-ui .soft-hero-sub { font-size: 10px; }
  body.soft-ui #currentRoomManageBtn { padding: 6px 7px; font-size: 10px; }
  body.soft-ui .main > .mic-panel { flex: 0 0 auto; min-height: 0; overflow: visible; }
  body.soft-ui .mic-head { margin-bottom: 7px; font-size: 13px; }
  body.soft-ui .mic-tip { font-size: 9px; }
  body.soft-ui .mic-strip { max-height: 380px; min-height: 0; padding: 10px 5px 14px; gap: 12px; }
  body.soft-ui .mic-strip .vm { min-height: 108px; }
  body.soft-ui .mic-strip .vm > .vm-nick { max-width: 100%; }
  body.soft-ui .hsplit { display: grid; margin: -13px 0; }
  body.soft-ui .main > .chat-panel { flex: 0 0 auto; height: 340px; min-height: 230px; max-height: 65dvh; }
  body.soft-ui .chat-log { height: auto; min-height: 0; flex: 1 1 auto; }
  body.soft-ui .chat-row #chatInput { font-size: 16px; }
  body.soft-ui .main > .voice-bar { position: relative; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-start; gap: 12px; padding: 16px 0 max(8px, env(safe-area-inset-bottom, 0px)); }
  body.soft-ui .voice-bar .talk-wrap { flex: 0 0 auto; }
  body.soft-ui .voice-bar .talk { flex: 0 0 auto; }
  body.soft-ui .voice-dock-start,
  body.soft-ui .voice-dock-end { flex: 0 1 auto; gap: 10px; }
  body.soft-ui .channel-volume-control { flex: 1 0 100%; margin-left: 0; justify-content: space-between; }
  body.soft-ui .channel-volume-control #chanVol { flex: 1 1 auto; width: auto; max-width: 200px; }
  body.soft-ui .talk-wrap .vol-pop { max-width: calc(100vw - 42px); }
  body.soft-ui .modal { padding: 15px; }
  body.soft-ui .modal-box { max-height: calc(100dvh - 30px); padding: 19px; }
  body.soft-ui .modal-box input[type="text"],
  body.soft-ui .modal-box input[type="password"],
  body.soft-ui .modal-box select { font-size: 16px; }
  body.soft-ui .roster-row { flex-wrap: wrap; }
  body.soft-ui .roster-nick { flex-basis: 100%; }
  body.soft-ui .xfer-panel { left: 10px; right: 10px; width: auto; bottom: 20px; }
  body.soft-ui .soft-icp { position: static !important; margin: 0; padding: 6px 12px 12px; background: var(--soft-panel); }
}
@media (pointer: coarse) {
  body.soft-ui #micVolumeToggle { min-width: 40px; }
  body.soft-ui .tree-room,
  body.soft-ui .soft-tools button,
  body.soft-ui .voice-bar .talk,
  body.soft-ui .voice-bar .mute-btn { min-height: 42px; }
  body.soft-ui .chan-mg { padding: 4px; }
}

/* Shared room tools and identical microphone/channel volume controls. */
body.soft-ui [hidden] { display: none !important; }
body.soft-ui .soft-hero-top { align-items: flex-start; gap: 12px; }
body.soft-ui .soft-hero-mark { padding-top: 8px; }
body.soft-ui .soft-room-actions { position: relative; display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 5px; }
body.soft-ui .soft-room-actions-secondary { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
body.soft-ui .soft-room-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 25px; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; cursor: pointer; }
body.soft-ui .soft-room-action svg { width: 12px; height: 12px; }
body.soft-ui .soft-room-action:hover:not(:disabled),
body.soft-ui .soft-room-action[aria-expanded="true"] { background: var(--soft-selected); color: var(--text); }
body.soft-ui .soft-room-action:disabled { opacity: .5; cursor: not-allowed; }
body.soft-ui .soft-room-hero h1 { margin-top: 0; }
body.soft-ui .soft-invite-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: 65; display: block; width: 310px; max-width: calc(100vw - 60px); margin: 0; padding: 15px; background: var(--soft-panel); border: 1px solid var(--soft-line); border-radius: 11px; box-shadow: var(--soft-shadow); }
body.soft-ui .soft-invite-popover label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--text); }
body.soft-ui .soft-invite-popover .row { width: 100%; margin: 0; gap: 7px; }
body.soft-ui .soft-invite-popover input { flex: 1 1 auto; width: auto; min-width: 0; font-size: 11px; padding: 8px; }
body.soft-ui .soft-invite-popover .mini { padding: 7px 10px; font-size: 11px; }
body.soft-ui .soft-invite-note { margin: 9px 0 0; font-size: 10px; color: var(--muted); }
body.soft-ui .soft-chat-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; margin-left: auto; }
body.soft-ui .chat-head #fileBtn { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 400; color: var(--muted); }
body.soft-ui .voice-dock-start { gap: 10px; }
body.soft-ui .voice-bar .audio-control-wrap { display: inline-flex; position: relative; flex: 0 0 auto; }
body.soft-ui .audio-control-wrap > .talk { min-height: 35px; padding: 9px 12px; gap: 6px; font-size: 11px; font-weight: 600; border: 0; border-radius: 7px 0 0 7px; background: var(--accent); color: #fff; box-shadow: none; }
body.soft-ui .audio-control-wrap > .volume-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; padding: 7px; border: 0; border-left: 1px solid rgb(255 255 255 / .24); border-radius: 0 7px 7px 0; background: var(--accent); color: #fff; cursor: pointer; }
body.soft-ui .audio-control-wrap > .volume-toggle svg { width: 12px; height: 12px; }
body.soft-ui .audio-control-wrap > .volume-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
body.soft-ui .audio-control-wrap > .volume-toggle:hover { filter: brightness(.96); }
body.soft-ui .audio-control-wrap > .talk.active { background: var(--on-grad); color: var(--on-text); }
body.soft-ui .audio-control-wrap:has(.talk.active) > .volume-toggle { background: #22a35a; }
body.soft-ui .audio-control-wrap > .channel-talk.muted { background: var(--soft-selected); color: var(--muted); }
body.soft-ui .audio-control-wrap:has(.channel-talk.muted) > .volume-toggle { background: var(--soft-selected); color: var(--muted); border-left-color: var(--soft-line); }
body.soft-ui .audio-control-wrap .vol-pop { width: 240px; max-width: calc(100vw - 40px); left: 0; padding: 16px; border-radius: 12px; box-shadow: 0 5px 25px #23273520; transition: opacity .15s, visibility .15s, transform .15s; }
body.soft-ui .audio-control-wrap:hover .vol-pop,
body.soft-ui .audio-control-wrap:has(:focus-visible) .vol-pop { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); }
body.soft-ui .audio-control-wrap[data-open="true"] .vol-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
body.soft-ui .audio-control-wrap .vol-pop input { width: 100%; }
body.soft-ui .audio-control-wrap .soft-volume-caption { margin: 9px 0 0; font-size: 10px; font-weight: 400; color: var(--muted); }
@media (max-width: 700px) {
  body.soft-ui .soft-room-actions { gap: 4px; }
  body.soft-ui .soft-hero-top { gap: 7px; }
  body.soft-ui .soft-hero-mark { font-size: 8px; letter-spacing: 1px; }
  body.soft-ui .soft-room-hero h1 { margin-top: 8px; }
  body.soft-ui .soft-chat-actions { gap: 9px; }
  body.soft-ui .chat-head .soft-file-tab { font-size: 10px; gap: 4px; }
  body.soft-ui .voice-dock-start { flex-wrap: wrap; gap: 10px; }
  body.soft-ui .audio-control-wrap > .talk { padding: 9px 10px; }
  body.soft-ui .channel-wrap .vol-pop { left: auto; right: 0; width: 220px; }
}
@media (pointer: coarse) {
  body.soft-ui .audio-control-wrap > .volume-toggle { min-width: 40px; }
  body.soft-ui .soft-room-action { min-height: 36px; }
}

/* Compact cards, classic vertical seats, and shared title-bar controls. */
body.soft-ui .soft-title-tools { margin-left: auto; flex: 0 0 auto; gap: 9px; }
body.soft-ui .topbar .soft-connection-actions { width: auto; flex-wrap: nowrap; gap: 9px; }
body.soft-ui .topbar .route-btn { min-height: 24px; padding: 3px 7px; border: 1px solid var(--soft-line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
body.soft-ui .topbar .route-btn.route-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
body.soft-ui .topbar .soft-connection-label { margin-right: 2px; font-size: 10px; white-space: nowrap; }
body.soft-ui .soft-room-action { text-decoration: none; }
body.soft-ui .mic-layout-switch { display: inline-flex; align-items: center; margin-left: 9px; padding: 2px; gap: 2px; border: 1px solid var(--soft-line); border-radius: 7px; }
body.soft-ui .mic-layout-switch button { padding: 3px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.4; }
body.soft-ui .mic-layout-switch button[aria-pressed="true"] { background: var(--soft-selected); color: var(--text); }
body.soft-ui .mic-strip[data-layout="cards"] .vm { padding: 14px 12px; gap: 4px 8px; }
body.soft-ui .mic-strip[data-layout="cards"] .vm:has(> .vm-info) { grid-template-columns: 68px minmax(0, 1fr); }
body.soft-ui .mic-strip[data-layout="cards"] .vm:has(> .avframe-vdragon) { grid-template-columns: 76px minmax(0, 1fr); min-height: 120px; }
body.soft-ui .mic-strip[data-layout="classic"] { grid-template-columns: repeat(auto-fill, minmax(0, min(100%, 108px))); align-items: start; }
body.soft-ui .mic-strip[data-layout="classic"] .vm { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 192px; padding: 16px 6px 10px; }
body.soft-ui .mic-strip[data-layout="classic"] .vm > .vm-avatar { flex: 0 0 52px; width: 52px; height: 52px; margin: 2px 0 10px; }
body.soft-ui .mic-strip[data-layout="classic"] .vm > .avframe-vdragon { margin-top: 6px; margin-bottom: 31px; }
body.soft-ui .mic-strip[data-layout="classic"] .vm > .vm-nick { text-align: center; padding: 0; font-size: 12px; font-weight: 500; }
body.soft-ui .mic-strip[data-layout="classic"] .vm > .vm-badge.v { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; padding: 0; line-height: 1; }
body.soft-ui .mic-strip[data-layout="classic"] .vm > .vm-badge.vt { text-align: center; border-radius: 999px; }
body.soft-ui .voice-bar .screen-talk { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 9px 12px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }
body.soft-ui .voice-bar .screen-talk.active { background: var(--on-grad); color: var(--on-text); }
body.soft-ui .voice-bar .screen-talk svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  body.soft-ui .topbar { padding: 0 9px; gap: 4px; }
  body.soft-ui .soft-app-title { flex: 1 1 auto; font-size: 9px; overflow: hidden; white-space: nowrap; }
  body.soft-ui .soft-title-tools,
  body.soft-ui .topbar .soft-connection-actions { gap: 4px; }
  body.soft-ui .soft-room-actions-secondary { flex-wrap: wrap; max-width: 236px; gap: 2px; }
  body.soft-ui .soft-room-action { padding-left: 4px; padding-right: 4px; font-size: 9px; }
  body.soft-ui .mic-head { flex-wrap: wrap; row-gap: 5px; }
  body.soft-ui .mic-tip { font-size: 8px; }
  body.soft-ui .voice-bar .screen-talk { padding: 9px 10px; }
}
