[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon, button svg, .pane-title svg, .users-head svg, .server-address svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.icon-button svg { width: 22px; height: 22px; }
.connect, .disconnect { display: flex; align-items: center; justify-content: center; gap: 8px; }
.audio-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.audio-controls button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; }
.audio-controls button svg { width: 18px; height: 18px; }
.audio-controls button.enabled { color: #210b0b; background: #ff8d8d; }
.pane-title, .users-head h3 { display: flex; align-items: center; gap: 7px; }
.server-address .ui-icon { margin-right: 4px; color: #e5b84a; }
.channel-row, .tree-user { display: flex !important; align-items: center; gap: 6px; }
.channel-row .tree-chevron { width: .85em; height: .85em; opacity: .7; }
.tree-user .user-talking, .users li .user-talking { display: none; }
.tree-user.talking .user-idle, .users li.talking .user-idle { display: none; }
.tree-user.talking .user-talking, .users li.talking .user-talking { display: inline-block; color: #ffb648; filter: drop-shadow(0 0 5px #ffb648aa); }
.users li { display: flex; align-items: center; gap: 7px; }
.ptt svg { width: 30px; height: 30px; }
.ptt.transmitting svg { filter: drop-shadow(0 0 7px currentColor); }

.profile-tabs { display: flex; gap: 7px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid #294151; border-radius: 14px; background: #091620c7; scrollbar-width: thin; }
.view-switcher { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 8px; }
.view-switcher button { padding: 7px 11px; color: #9fb2be; border: 1px solid #294151; border-radius: 9px; background: #091620c7; box-shadow: none; font-size: 12px; }
.view-switcher button[aria-pressed="true"] { color: #06130f; border-color: #25d59c; background: #25d59c; }
.profiles.profiles-list { grid-template-columns: minmax(0, 1fr); }
.profile-tab { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 9px 14px; color: #9fb2be; border-radius: 10px; background: transparent; box-shadow: none; white-space: nowrap; }
.profile-tab:hover { color: #e8f0f5; background: #ffffff0a; }
.profile-tab[aria-selected="true"] { color: #06130f; background: #25d59c; }
.tab-status { width: 8px; height: 8px; border-radius: 50%; background: #71818a; }
.profile-tab.connecting .tab-status { background: #ffb648; box-shadow: 0 0 9px #ffb648; }
.profile-tab.online .tab-status { background: #25d59c; box-shadow: 0 0 9px #25d59c; }
.profile-tab[aria-selected="true"] .tab-status { background: #0d7658; box-shadow: none; }
.tab-copy { display: grid; min-width: 0; text-align: left; }
.tab-speaker { max-width: 180px; overflow: hidden; color: #7f96a4; font-size: 10px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; }
.profile-tab.receiving { color: #fff3d6; background: #ffb6481c; }
.profile-tab.receiving .tab-status { background: #ffb648; box-shadow: 0 0 12px #ffb648; animation: tab-talking-pulse .8s ease-in-out infinite alternate; }
.profile-tab.receiving .tab-speaker { color: #ffca73; }
.profile-tab[aria-selected="true"] .tab-speaker { color: #0d624c; }
@keyframes tab-talking-pulse { to { transform: scale(1.35); } }

.tree-user.talking,
.users li.talking {
  color: #25d59c;
  font-weight: 750;
  text-shadow: 0 0 10px #25d59c88;
}
.user-state { display: inline-flex; margin-left: auto; color: #ff9e9e; }
.user-state .ui-icon { width: 15px; height: 15px; }
.details-button { display: inline-grid; width: 21px; height: 21px; padding: 0; place-items: center; color: #a9bbc7; border: 1px solid currentColor; border-radius: 50%; background: transparent; box-shadow: none; font-size: 11px; }
.details-button:hover { color: #25d59c; }
.info-dialog { width: min(720px, calc(100% - 24px)); }
.target-details { max-height: min(70vh, 640px); margin-top: 14px; padding: 12px; overflow: auto; color: #b8c7d0; border: 1px solid #294151; border-radius: 10px; background: #0d202b; font-size: 12px; line-height: 1.4; }
.info-dialog[data-theme="mumble"] { color: #f1f1f1; border-color: #62676e; border-radius: 8px; background: #30343a; }
.info-dialog[data-theme="mumble"] .target-details { color: #e1e1e1; border-color: #62676e; border-radius: 3px; background: #202328; }
.info-dialog[data-theme="light"] { color: #17212a; border-color: #b6c1c9; background: #f3f6f8; }
.info-dialog[data-theme="light"] .target-details { color: #263640; border-color: #b6c1c9; background: #fff; }
.info-dialog[data-theme="light"] .details-heading { color: #17212a; }
.info-dialog[data-theme="metro-dark"] { color: #f2f4f6; border-color: #56616b; border-radius: 7px; background: #252a30; }
.info-dialog[data-theme="metro-dark"] .target-details { color: #d3dbe0; border-color: #56616b; background: #191d21; }
.info-dialog[data-theme="metro-light"] { color: #20252a; border-color: #aeb8c0; border-radius: 7px; background: #f2f4f6; }
.info-dialog[data-theme="metro-light"] .target-details { color: #29333a; border-color: #adb8c0; background: #fff; }
.info-dialog[data-theme="metro-light"] .details-heading { color: #20252a; }
.info-dialog[data-theme="radio-terminal"] { color: #7cff9e; border-color: #28a64d; border-radius: 2px; background: #020905; font-family: "Courier New", ui-monospace, monospace; }
.info-dialog[data-theme="radio-terminal"] .target-details { color: #63c97d; border-color: #207f3c; border-radius: 0; background: #010503; }
.info-dialog[data-theme="radio-terminal"] .details-heading { color: #8affaa; }
.info-dialog[data-theme="radio-terminal"] .target-details a { color: #baff4d; }
.info-dialog[data-theme="quiz-party"] { color: #fff7ff; border-color: #e559ff; background: #16062d; box-shadow: 0 24px 80px #05000dcc, 0 0 30px #ce30ff55; }
.info-dialog[data-theme="quiz-party"] .target-details { color: #f2dcff; border-color: #7830bc; background: #0d0622; }
.info-dialog[data-theme="quiz-party"] .details-heading { color: #ffd66b; }
.details-heading { margin-bottom: 5px; color: #e8f0f5; font-weight: 750; }
.target-details strong, .target-details small { display: block; }
.target-details small { margin-top: 3px; color: #ff9e9e; }
.target-details p { margin: 5px 0; }
.target-details img { display: block; max-width: 100%; max-height: 240px; margin: 7px auto; object-fit: contain; border-radius: 5px; }
.target-details h1, .target-details h2, .target-details h3, .target-details h4 { margin: 8px 0 4px; font-size: 1.15em; }
.target-details blockquote { margin: 7px 0; padding-left: 9px; border-left: 3px solid #527184; }
.target-details pre { padding: 7px; overflow: auto; border-radius: 5px; background: #07141d; white-space: pre-wrap; }
.target-details table { width: 100%; border-collapse: collapse; }
.target-details th, .target-details td { padding: 4px 6px; border: 1px solid #36505f; }
.target-details a { color: #32d9ff; text-decoration: underline; }
.connection-info + .connection-info { margin-top: 14px; }
.connection-info h3 { margin: 0 0 8px; font-size: 1.1em; }
.connection-info dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 5px 12px; margin: 0; }
.connection-info dt { color: #91a9b8; }
.connection-info dd { margin: 0; overflow-wrap: anywhere; }
.connection-info table { font-variant-numeric: tabular-nums; }
.connection-info th, .connection-info td { text-align: right; }
.connection-info th:first-child, .connection-info td:first-child { text-align: left; }
.info-loading { color: #91a9b8; }
.info-error { color: #ff9e9e; }
.user-actions-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #36505f; }
.user-actions-panel h3 { margin: 0 0 9px; }
.user-action-buttons, .user-move-row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.user-move-row select { min-width: min(260px, 100%); flex: 1; }
.user-actions-panel input { margin-top: 6px; }
.user-actions-panel .danger { margin-right: 0; }
.user-action-status { min-height: 1.3em; margin: 7px 0 0; color: #91a9b8; }

.channel-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; align-items: center; min-height: 34px; padding-left: calc(var(--depth) * 14px); border-bottom: 1px solid #ffffff08; }
.channel-line .channel-row { min-width: 0; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-actions { display: flex; align-items: center; gap: 5px; padding-right: 5px; }
.channel-join { width: auto; min-width: 34px; margin: 0; padding: 4px 7px; border-radius: 6px; font-size: 10px; line-height: 1.2; background: #1a303c; color: #b9c8d0; box-shadow: none; }
.channel-join .ui-icon { width: 16px; height: 16px; }
.channel-join:disabled { color: #70818b; background: transparent; }
.channel-join.current:disabled { color: #ffcf5a; font-size: 15px; opacity: 1; }
.tree-user { display: block; width: 100%; min-height: 0; padding-block: 5px; border: 0; border-radius: 0; background: transparent; color: #9db0bc; text-align: left; font-size: 12px; font-weight: 400; line-height: 1.35; box-shadow: none; cursor: pointer; }
.user-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px; align-items: center; padding-left: calc(var(--depth) * 14px); border-bottom: 1px solid #ffffff08; }
.user-line .tree-user { padding-left: 8px; }
.user-line .details-button { margin-right: 5px; }
.tree-user:hover { color: #e6f0f5; background: #ffffff0b; }
.channel-row.selected-target, .tree-user.selected-target { box-shadow: inset 3px 0 #ffb648; background: #ffb64818; }
.chat-pane { margin: 12px 0; border: 1px solid #294151; border-radius: 12px; overflow: hidden; }
.chat-log { height: 150px; padding: 9px; overflow-y: auto; background: #07141d; }
.chat-message { display: grid; gap: 2px; margin-bottom: 9px; font-size: 12px; }
.chat-message strong { color: #25d59c; font-size: 11px; }
.chat-message span { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-body { overflow-wrap: anywhere; white-space: normal; }
.chat-body p { margin: 2px 0 6px; }
.chat-body ul, .chat-body ol { margin: 3px 0; padding-left: 22px; }
.chat-body a { color: #32d9ff; text-decoration: underline; }
.chat-form { display: grid; gap: 7px; padding: 8px; background: #10232e; }
.chat-target-display { color: #ffcf83; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-compose { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; }
.chat-compose input { padding: 9px; }
.chat-compose button { padding: 8px 11px; }
.image-picker { display: grid; min-width: 38px; padding: 0 8px; place-items: center; border: 1px solid #36505f; border-radius: 9px; background: #1a303c; cursor: pointer; }
.image-picker:hover { border-color: #25d59c; }
.image-picker input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chat-upload-status { min-height: 15px; color: #a9bbc7; font-size: 11px; }
.chat-body img { display: block; max-width: min(100%, 480px); max-height: 360px; margin-top: 5px; border-radius: 9px; object-fit: contain; }
.connection-card[data-theme="mumble"] .chat-log { background: #202328; }
.connection-card[data-theme="mumble"] .chat-form { background: #3c4148; }
.connection-card[data-theme="light"] .chat-log { background: #fff; }
.connection-card[data-theme="light"] .chat-form { background: #e3e9ed; }

/* Layout and color schemes are independent so new skins can be added safely. */
.connection-card[data-layout="mumble-web"] {
  grid-column: 1 / -1;
  border-radius: 7px;
}
.connection-card[data-layout="mumble-web"] .mumble-workspace {
  grid-template-columns: minmax(240px, 320px) minmax(360px, 1fr);
  min-height: 480px;
}
.connection-card[data-layout="mumble-web"] .channel-browser {
  min-height: 480px;
  max-height: 620px;
  border-radius: 3px;
}
.connection-card[data-layout="mumble-web"] .voice-pane {
  display: flex;
  min-height: 480px;
  flex-direction: column;
}
.connection-card[data-layout="mumble-web"] .ptt {
  min-height: 58px;
  border-radius: 5px;
  font-size: 15px;
}
.connection-card[data-layout="mumble-web"] .level { margin: 9px 2px 13px; }
.connection-card[data-layout="mumble-web"] .users { max-height: 95px; margin-bottom: 8px; }
.connection-card[data-layout="mumble-web"] .chat-pane { display: flex; min-height: 245px; flex: 1; flex-direction: column; border-radius: 3px; }
.connection-card[data-layout="mumble-web"] .chat-log { min-height: 180px; height: auto; flex: 1; }
.connection-card[data-layout="mumble-web"] .disconnect { border-radius: 5px; }

.connection-card[data-theme="metro-dark"] {
  background: #252a30;
  color: #f2f4f6;
  border-color: #56616b;
  border-radius: 7px;
  box-shadow: 0 18px 45px #0007;
}
.connection-card[data-theme="metro-dark"] .server-address,
.connection-card[data-theme="metro-dark"] .status-row,
.connection-card[data-theme="metro-dark"] .tree-user { color: #b5c0c9; }
.connection-card[data-theme="metro-dark"] .channel-browser,
.connection-card[data-theme="metro-dark"] .chat-log { background: #191d21; border-color: #4b555e; }
.connection-card[data-theme="metro-dark"] .pane-title,
.connection-card[data-theme="metro-dark"] .chat-form { background: #343a41; border-color: #56616b; }
.connection-card[data-theme="metro-dark"] .channel-row.current { color: #fff; background: #2878b8; }
.connection-card[data-theme="metro-dark"] .channel-row.selected-target,
.connection-card[data-theme="metro-dark"] .tree-user.selected-target { box-shadow: inset 3px 0 #43a9ed; background: #2878b833; }
.connection-card[data-theme="metro-dark"] .ptt { color: #fff; background: #2878b8; box-shadow: inset 0 -5px #195b8d; }
.connection-card[data-theme="metro-dark"] .secondary { color: #f2f4f6; background: #414950; }

.connection-card[data-theme="metro-light"] {
  background: #f2f4f6;
  color: #20252a;
  border-color: #aeb8c0;
  border-radius: 7px;
  box-shadow: 0 18px 45px #0012;
}
.connection-card[data-theme="metro-light"] .server-address,
.connection-card[data-theme="metro-light"] .status-row,
.connection-card[data-theme="metro-light"] .tree-user { color: #52616c; }
.connection-card[data-theme="metro-light"] .channel-browser,
.connection-card[data-theme="metro-light"] .chat-log { background: #fff; border-color: #adb8c0; }
.connection-card[data-theme="metro-light"] .pane-title,
.connection-card[data-theme="metro-light"] .chat-form { color: #29333a; background: #dfe4e8; border-color: #adb8c0; }
.connection-card[data-theme="metro-light"] input { color: #20252a; background: #fff; border-color: #9eabb4; }
.connection-card[data-theme="metro-light"] .channel-row.current { color: #fff; background: #2878b8; }
.connection-card[data-theme="metro-light"] .channel-row.selected-target,
.connection-card[data-theme="metro-light"] .tree-user.selected-target { box-shadow: inset 3px 0 #2878b8; background: #2878b822; }
.connection-card[data-theme="metro-light"] .ptt { color: #fff; background: #2878b8; box-shadow: inset 0 -5px #195b8d; }
.connection-card[data-theme="metro-light"] .secondary { color: #263038; background: #d5dce1; }

.connection-card[data-theme="radio-terminal"] {
  font-family: "Courier New", ui-monospace, monospace;
  background: #020905;
  color: #7cff9e;
  border-color: #28a64d;
  border-radius: 2px;
  box-shadow: 0 0 24px #22d45a1f, inset 0 0 35px #00ff3310;
}
.connection-card[data-theme="radio-terminal"] .server-address,
.connection-card[data-theme="radio-terminal"] .status-row,
.connection-card[data-theme="radio-terminal"] .tree-user { color: #63c97d; }
.connection-card[data-theme="radio-terminal"] .channel-browser,
.connection-card[data-theme="radio-terminal"] .chat-pane,
.connection-card[data-theme="radio-terminal"] .chat-log { background: #010503; border-color: #207f3c; border-radius: 0; }
.connection-card[data-theme="radio-terminal"] .pane-title,
.connection-card[data-theme="radio-terminal"] .chat-form { color: #8affaa; background: #07170d; border-color: #207f3c; }
.connection-card[data-theme="radio-terminal"] input { color: #8affaa; background: #010503; border-color: #207f3c; }
.connection-card[data-theme="radio-terminal"] .channel-row.current { color: #001b08; background: #62ed84; }
.connection-card[data-theme="radio-terminal"] .channel-row.selected-target,
.connection-card[data-theme="radio-terminal"] .tree-user.selected-target { box-shadow: inset 3px 0 #c9ff4e; background: #7cff9e1c; }
.connection-card[data-theme="radio-terminal"] .ptt { color: #001b08; background: #62ed84; box-shadow: inset 0 -5px #208d40, 0 0 18px #42ff7066; }
.connection-card[data-theme="radio-terminal"] .secondary { color: #7cff9e; background: #092313; border: 1px solid #207f3c; }
.connection-card[data-theme="radio-terminal"] .status-dot.online { background: #baff4d; box-shadow: 0 0 13px #baff4d; }

.connection-card[data-theme="quiz-party"] {
  color: #fff7ff;
  border-color: #d64cff;
  background-color: #110526;
  background-image: linear-gradient(#0c0319a6, #120427e0), url("/assets/quiz/party-quiz-theme.png");
  background-position: center top;
  background-size: cover;
  box-shadow: 0 22px 70px #02000bd9, 0 0 34px #bd2cff55, inset 0 0 55px #5522b133;
}
.connection-card[data-theme="quiz-party"] .server-address,
.connection-card[data-theme="quiz-party"] .status-row,
.connection-card[data-theme="quiz-party"] .tree-user { color: #e6caff; }
.connection-card[data-theme="quiz-party"] .channel-browser,
.connection-card[data-theme="quiz-party"] .chat-pane,
.connection-card[data-theme="quiz-party"] .chat-log { border-color: #7931bd; background: #09031bdb; }
.connection-card[data-theme="quiz-party"] .pane-title,
.connection-card[data-theme="quiz-party"] .chat-form { color: #ffe5ff; border-color: #9139d1; background: #2b0a4de8; }
.connection-card[data-theme="quiz-party"] input { color: #fff; border-color: #8535ca; background: #0d0622e8; }
.connection-card[data-theme="quiz-party"] .channel-row.current { color: #180022; background: #ffd45b; }
.connection-card[data-theme="quiz-party"] .channel-row.selected-target,
.connection-card[data-theme="quiz-party"] .tree-user.selected-target { box-shadow: inset 3px 0 #ff70ec; background: #d63cff2b; }
.connection-card[data-theme="quiz-party"] .ptt { color: #17001e; background: linear-gradient(135deg, #ffcf4d, #ff67e8); box-shadow: inset 0 -6px #a32b96, 0 0 28px #ff4fd477; }
.connection-card[data-theme="quiz-party"] .ptt.transmitting { background: linear-gradient(135deg, #76eaff, #ae62ff); box-shadow: inset 0 -6px #4e33a3, 0 0 38px #44dfff99; }
.connection-card[data-theme="quiz-party"] .secondary { color: #fff4ff; border: 1px solid #7d34bb; background: #35105be6; }
.connection-card[data-theme="quiz-party"] .status-dot.online { background: #62efff; box-shadow: 0 0 15px #62efff; }
.connection-card[data-theme="quiz-party"] .chat-message strong,
.connection-card[data-theme="quiz-party"] .details-button:hover { color: #ffd45b; }

.trucker-masthead { display: none; }
.connection-card[data-theme="truckerstuen"] { grid-column: 1 / -1; overflow: hidden; color: #f8fff9; border: 2px solid #65ba2f; border-radius: 8px; background: linear-gradient(145deg, #103d20 0%, #092b18 62%, #071f13 100%); box-shadow: 0 18px 50px #03140baa, inset 0 0 0 1px #b6e86a33; }
.connection-card[data-theme="truckerstuen"] .trucker-masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -17px -17px 17px; padding: 13px 18px; color: #fff; border-bottom: 5px solid #d6ed35; background: #16843a; letter-spacing: .08em; }
.connection-card[data-theme="truckerstuen"] .trucker-masthead span { font-size: 18px; font-weight: 900; }
.connection-card[data-theme="truckerstuen"] .trucker-masthead small { color: #eaffb0; font-size: 11px; font-weight: 800; }
.connection-card[data-theme="truckerstuen"] .profile-title { text-transform: uppercase; letter-spacing: .04em; }
.connection-card[data-theme="truckerstuen"] .server-address,
.connection-card[data-theme="truckerstuen"] .status-row,
.connection-card[data-theme="truckerstuen"] .tree-user { color: #c3d9c9; }
.connection-card[data-theme="truckerstuen"] .channel-browser,
.connection-card[data-theme="truckerstuen"] .chat-pane,
.connection-card[data-theme="truckerstuen"] .chat-log { border-color: #4d8f59; border-radius: 5px; background: #061c11; }
.connection-card[data-theme="truckerstuen"] .pane-title,
.connection-card[data-theme="truckerstuen"] .chat-form { color: #f5ffd8; border-color: #4d8f59; background: #15552a; }
.connection-card[data-theme="truckerstuen"] .channel-row.current { color: #10230b; background: #cbe83e; }
.connection-card[data-theme="truckerstuen"] .channel-row.selected-target,
.connection-card[data-theme="truckerstuen"] .tree-user.selected-target { box-shadow: inset 4px 0 #d6ed35; background: #d6ed3520; }
.connection-card[data-theme="truckerstuen"] .ptt,
.connection-card[data-theme="truckerstuen"] .connect { color: #10230b; background: #cbe83e; box-shadow: inset 0 -5px #8fa91e, 0 7px 20px #0006; font-weight: 900; }
.connection-card[data-theme="truckerstuen"] .secondary { color: #f2ffe8; border: 1px solid #4d8f59; background: #174d29; }
.connection-card[data-theme="truckerstuen"] .status-dot.online { background: #d6ed35; box-shadow: 0 0 12px #d6ed35; }
.info-dialog[data-theme="truckerstuen"] { color: #f8fff9; border-color: #65ba2f; background: #0c321b; }
.info-dialog[data-theme="truckerstuen"] .target-details { color: #dbe9de; border-color: #4d8f59; background: #061c11; }

@media (max-width: 700px) {
  .connection-card[data-layout="mumble-web"], .connection-card[data-theme="truckerstuen"] { grid-column: auto; }
  .connection-card[data-theme="truckerstuen"] .trucker-masthead { align-items: flex-start; flex-direction: column; }
  .connection-card[data-layout="mumble-web"] .mumble-workspace { grid-template-columns: 1fr; min-height: 0; }
  .connection-card[data-layout="mumble-web"] .channel-browser { min-height: 170px; max-height: 250px; }
  .connection-card[data-layout="mumble-web"] .voice-pane { min-height: 0; }
  .connection-card[data-layout="mumble-web"] .chat-pane { min-height: 210px; }
}

.chat-input-label { display: grid; width: 100%; min-width: 0; gap: 4px; font-size: 13px; }
.chat-compose { align-items: end; }
.image-picker { min-height: 44px; }
.image-picker:focus-within { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #071019; }
.details-button { width: 28px; height: 28px; }
.channel-join { min-height: 28px; }
.connection-card:is([data-theme="light"], [data-theme="metro-light"]) .chat-message strong { color: #075b42; }
.connection-card:is([data-theme="light"], [data-theme="metro-light"]) .chat-target-display { color: #654000; }
.connection-card[data-theme="light"] input { color: #17212a; background: #fff; border-color: #52636e; }

/* Opt-in high contrast, independent of the connection layout. */
:is([data-theme="accessible"], [data-theme="screenreader"]) { color: #fff; background: #071019; border: 2px solid #b8c7d0; color-scheme: dark; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.server-address, .status-row, .status-row strong, .privacy, label, label span, .ptt-config>span, .ptt-config>small, .users-head h3, .tree-user, .chat-upload-status, .target-details, .pane-title) { color: #e8f0f5; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.channel-browser, .chat-log, .target-details, input, select, textarea) { color: #fff; background: #071019; border-color: #b8c7d0; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.pane-title, .chat-form, .secondary, .image-picker) { color: #fff; background: #1a303c; border: 1px solid #b8c7d0; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.channel-row, .tree-user, .details-button, .channel-join) { min-height: 44px; font-size: 16px; }
:is([data-theme="accessible"], [data-theme="screenreader"]) .details-button { width: 44px; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.server-address, .status-row, .pane-title, .chat-message, .chat-message strong, .chat-target-display, .privacy, .target-details, label, .ptt small) { font-size: 16px; line-height: 1.5; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.channel-row.selected-target, .tree-user.selected-target) { color: #fff; background: #1a303c; box-shadow: inset 4px 0 #ffcf83; }
:is([data-theme="accessible"], [data-theme="screenreader"]) .ptt { color: #071019; background: #fff; box-shadow: none; }
:is([data-theme="accessible"], [data-theme="screenreader"]) .ptt.transmitting { color: #071019; background: #ffcf83; transform: none; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.chat-body, .target-details) * { color: inherit !important; background-color: transparent !important; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(.chat-body, .target-details) a { color: #83e5ff !important; text-decoration: underline; }
:is([data-theme="accessible"], [data-theme="screenreader"]) *, :is([data-theme="accessible"], [data-theme="screenreader"]) *::after { animation: none !important; transition: none !important; text-shadow: none !important; }
:is([data-theme="accessible"], [data-theme="screenreader"]) .channel-row { white-space: normal; overflow-wrap: anywhere; }
.ptt-reason { margin: 8px 0; color: inherit; font-size: 14px; line-height: 1.5; }
.ptt-reason:empty { display: none; }
.ptt:disabled { opacity: 1; color: #e8f0f5; background: #1a303c; box-shadow: none; }
.connection-card .ptt:disabled { color: #e8f0f5; background: #1a303c; box-shadow: none; transform: none; }
:is([data-theme="accessible"], [data-theme="screenreader"]) :is(input, textarea)::placeholder { color: #b8c7d0; opacity: 1; }

.channel-row .channel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.channel-row .channel-member-count { flex-shrink: 0; margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #80808026; color: inherit; font-size: .8em; font-variant-numeric: tabular-nums; }

.channel-pane { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.channel-ptt { min-width: 0; }
.channel-ptt .level { margin-bottom: 0; }

/* Keyboard and screen-reader navigation. */
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 9999; background: #fff; color: #071019; padding: 12px; }
.skip-link:focus { transform: none; }
.connection-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; }
.connection-nav[hidden] { display: none; }
.connection-nav a { display: inline-flex; align-items: center; color: inherit; text-decoration: underline; padding: 4px 0; }
.connection-card .status-row { margin-bottom: 4px; }
.connection-card .active { margin-top: 4px; }
@media (pointer: coarse) { .connection-nav a { min-height: 44px; } }
.pane-title h3 { font: inherit; margin: 0; }
.channel-ptt h3, .navigation-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-theme="screenreader"] .mumble-workspace { display: block; }
.connection-card[data-theme="screenreader"][data-layout] .channel-browser { height: auto; max-height: none; overflow: visible; flex: 0 0 auto; }
[data-theme="screenreader"] .channel-ptt h3, [data-theme="screenreader"] .navigation-help { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
[data-theme="screenreader"] .navigation-help { font-size: 1rem; line-height: 1.5; }
[data-theme="screenreader"] .channel-join { width: auto; min-width: 44px; padding: 8px; }
[data-theme="screenreader"] .channel-line { flex-wrap: wrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #ffcf83; outline-offset: 3px; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }
[data-theme="screenreader"] .pane-title { position: static; }

/* Your own station is a label, not an unavailable action. */
.connection-card .tree-user.self-user { opacity: 1; color: #fff; background: #234759; font-weight: 800; border-inline-start: 4px solid #ffcf83; padding: 8px 12px; cursor: default; }

.tree-user .user-avatar{width:28px;height:28px;flex-shrink:0;object-fit:contain;border-radius:5px}.tree-user.talking .user-avatar{box-shadow:0 0 0 2px #ffb648}

.target-details .info-user-avatar{width:96px;height:96px;max-height:96px;margin:0 auto 12px;object-fit:contain;border-radius:8px}

.profile-tab .tab-protocol-icon{width:20px;height:20px;padding:2px;border-radius:5px;flex:0 0 20px;color:#81caff;background:#81caff16}.profile-tab[data-protocol="frn"] .tab-protocol-icon{color:#ffd082;background:#ffd08216}.profile-tab[aria-selected="true"] .tab-protocol-icon{color:#073a2c;background:#073a2c12}

/* Keep the transmit control within reach while browsing channels. */
.connection-card .channel-ptt{position:sticky;top:calc(56px + env(safe-area-inset-top));z-index:3;padding:8px;border:1px solid #36505f;border-radius:12px;background:#10232e}
.connection-card .channel-ptt .ptt{min-height:58px;font-size:16px;border-radius:9px;grid-template-columns:auto auto auto;align-items:center;gap:10px}
.connection-card .channel-ptt .ptt svg{width:24px;height:24px}
.connection-card .channel-ptt .level{margin:8px 2px 0}
.connection-card[data-theme="light"] .channel-ptt,.connection-card[data-theme="metro-light"] .channel-ptt{background:#e3e9ed}
.connection-card[data-theme="screenreader"] .channel-ptt{position:static}

.connection-card[data-theme="truckerstuen"]{overflow:clip}

/* Keep your position visible while browsing long station lists. */
.channel-browser>.pane-title{gap:8px;flex-wrap:wrap}
.connection-card .channel-row[aria-current="location"]{color:inherit;font-weight:800;background:#ffcf8320;box-shadow:inset 4px 0 #ffcf83}

/* Mumble listeners do not change channel navigation or the PTT destination. */
.channel-listen-toggle { display:inline-flex; align-items:center; justify-content:center; width:30px; min-width:30px; height:30px; margin:0; padding:5px; border-radius:6px; box-shadow:none; }
.channel-listen-toggle .ui-icon { width:19px; height:19px; }
.channel-listen-toggle[aria-pressed="true"] { background:#176743; color:#fff; border-color:#62b890; }
.channel-listen-toggle:disabled { opacity:.5; cursor:not-allowed; }

.channel-listener { padding-left:calc(var(--depth) * 14px + 8px); color:#8cafc0; font-size:12px; }
.channel-listener::before { content:"👂 "; }
.channel-listener { display:block; overflow-wrap:anywhere; min-width:0; }
