:root {
  --bg-color: #0b0c0e;
  --panel-bg: rgba(26, 28, 32, 0.75);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --accent: #0a84ff;
  --accent-hover: #0071e3;
  --accent-active: #0058b0;
  --danger: #ff453a;
  --success: #30d158;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font);
  touch-action: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

/* Desktop Canvas */
#displayContainer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
  touch-action: none;
  box-sizing: border-box;
  transition: margin 0.18s cubic-bezier(0.16, 1, 0.3, 1), width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#videoCanvas,
#mseVideo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  image-rendering: auto;
  cursor: default;
  touch-action: none;
}

#mseVideo {
  pointer-events: none;
  background-color: #000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#mseVideo.hidden,
#videoCanvas.hidden {
  display: none !important;
}

#virtualCursor {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translate(-3px, -2px);
  transition: none;
  z-index: 50;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
}

.virtual-cursor-arrow {
  display: block;
  width: 22px;
  height: 22px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
}

/* Top Status Bar (horizontal mode) */
#statusBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  background: rgba(26, 26, 32, calc(0.18 + 0.72 * var(--status-bar-opacity, 0.88)));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, calc(0.08 + 0.14 * var(--status-bar-opacity, 0.88)));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 100;
  opacity: var(--status-bar-opacity, 0.88);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
  overflow: hidden; /* Prevent horizontal bar from overflowing viewport */
}

#statusBar button, #statusBar select, #statusBar input, #statusBar a, #statusBar .brand-badge, #statusBar .status-left, #statusBar .status-right {
  pointer-events: auto;
}

#statusBar:hover {
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0; /* Controls group NEVER shrinks or gets pushed off screen */
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.2px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.brand-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

.brand-badge:active {
  transform: scale(0.97);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  line-height: 1;
}

.brand-logo svg,
.apple-logo-svg {
  display: block;
  fill: currentColor;
}

.brand-text {
  white-space: nowrap;
}

.orientation-icon {
  font-size: 11px;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: 1px;
}

.brand-badge:hover .orientation-icon {
  opacity: 1;
}

.brand-version {
  font-size: 10px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.1px;
  margin-left: 2px;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-offline { background: rgba(255, 69, 58, 0.2); color: var(--danger); }
.badge-connecting { background: rgba(255, 159, 10, 0.2); color: #ff9f0a; }
.badge-online { background: rgba(48, 209, 88, 0.2); color: var(--success); }

.session-info {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  color: #e5e5ea;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.1px;
}

.stat-item {
  font-size: 11.5px;
  font-family: ui-monospace, monospace;
  color: #d1d1d6;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  padding: 3px 6px;
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.icon-btn.active {
  background: rgba(10, 132, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.6);
}

#btnBatterySaver.active {
  background: rgba(48, 209, 88, 0.25);
  box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.6);
  color: #30d158;
}

/* Status Bar Metrics & Controls Grouping */
.status-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
}

.status-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0; /* Action buttons NEVER shrink */
}

#dockSideBtn {
  display: none !important;
}

.action-btn-fullscreen {
  font-weight: bold;
  background: rgba(10, 132, 255, 0.25);
  color: #5ac8fa;
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: 6px;
}

.action-btn-fullscreen:hover {
  background: #007aff;
  color: #fff;
  border-color: #007aff;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
  transform: scale(1.1);
}

/* Duplicate language button hidden (languageBadge on the left is already the switcher) */
#btnSwitchLanguageStatus {
  display: none !important;
}

/* Progressive responsive breakpoints for horizontal bar */
@media (max-width: 950px) {
  #statusBar .brand-text {
    display: none !important;
  }
}

@media (max-width: 850px) {
  #statusBar #statsBitrate {
    display: none !important;
  }
}

@media (max-width: 720px) {
  #statusBar #statsLatency {
    display: none !important;
  }
}

@media (max-width: 600px) {
  #statusBar .status-metrics {
    display: none !important;
  }
  #statusBar #connectionBadge {
    font-size: 0 !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    margin: 0 2px !important;
  }
  #statusBar #connectionBadge.badge-online {
    background: #30d158 !important;
    box-shadow: 0 0 6px rgba(48, 209, 88, 0.8) !important;
  }
  #statusBar #connectionBadge.badge-offline {
    background: #ff453a !important;
    box-shadow: 0 0 6px rgba(255, 69, 58, 0.8) !important;
  }
  #statusBar #connectionBadge.badge-connecting {
    background: #ff9f0a !important;
    box-shadow: 0 0 6px rgba(255, 159, 10, 0.8) !important;
  }
}

@media (max-width: 480px) {
  #statusBar .session-info {
    display: none !important;
  }
}

/* Vertical Status Bar Layout (Ultra-compact translucent frosted glass dock) */
#statusBar.vertical {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  bottom: auto;
  right: auto;
  width: 28px;
  max-height: calc(100% - 16px);
  height: auto;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(26, 26, 32, calc(0.18 + 0.72 * var(--status-bar-opacity, 0.88)));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, calc(0.1 + 0.15 * var(--status-bar-opacity, 0.88)));
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  overflow: hidden;
  opacity: var(--status-bar-opacity, 0.88);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
  cursor: grab;
  user-select: none;
  pointer-events: auto !important;
}

#statusBar.vertical:active {
  cursor: grabbing;
}

#statusBar.vertical:hover {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.4);
}

#statusBar.vertical .status-left,
#statusBar.vertical .status-right,
#statusBar.vertical .status-controls {
  display: contents;
}

/* Brand badge in vertical mode (order: 1) - also drag handle */
#statusBar.vertical #brandBadge {
  order: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 6px;
  border: none;
  background: transparent;
  margin-bottom: 1px;
  cursor: grab;
  flex-shrink: 0;
}

#statusBar.vertical #brandBadge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

#statusBar.vertical #brandBadge .brand-logo {
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

#statusBar.vertical #brandBadge .brand-text {
  display: none !important;
}

#statusBar.vertical #brandBadge .orientation-icon {
  font-size: 8px;
  line-height: 1;
  opacity: 0.75;
  margin: 0;
  color: #98989d;
}

/* Server Menu Button in vertical mode (order: 2, right below brand logo) */
#statusBar.vertical #serverMenuBtn {
  order: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  margin: 1px 0;
  cursor: pointer;
  flex-shrink: 0;
}

#statusBar.vertical #serverMenuBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

#statusBar.vertical #serverMenuBtn .server-icon {
  font-size: 13px;
}

#statusBar.vertical #serverMenuBtn .server-name-text,
#statusBar.vertical #serverMenuBtn #connectionBadge {
  display: none !important;
}

#statusBar.vertical #connectionBadge.badge-online {
  background: #30d158;
  box-shadow: 0 0 5px rgba(48, 209, 88, 0.8);
}

#statusBar.vertical #connectionBadge.badge-offline {
  background: #ff453a;
  box-shadow: 0 0 5px rgba(255, 69, 58, 0.8);
}

#statusBar.vertical #connectionBadge.badge-connecting {
  background: #ff9f0a;
  box-shadow: 0 0 5px rgba(255, 159, 10, 0.8);
}

/* LANGUAGE BADGE (order: 3, right below server menu button) */
#statusBar.vertical #languageBadge {
  order: 3;
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  padding: 0;
  border-radius: 5px;
  margin: 1px 0;
  flex-shrink: 0;
  background: rgba(10, 132, 255, 0.25);
  border: 1px solid rgba(10, 132, 255, 0.4);
  color: #5ac8fa;
}

#statusBar.vertical #languageBadge:hover {
  background: rgba(10, 132, 255, 0.45);
  color: #fff;
}

/* FULLSCREEN BUTTON (order: 4) */
#statusBar.vertical #fullscreenBtn {
  order: 4;
  width: 24px;
  height: 24px;
  font-size: 13px;
  background: transparent;
  color: #5ac8fa;
  border: none;
  border-radius: 6px;
  margin: 1px 0;
  flex-shrink: 0;
}

#statusBar.vertical #fullscreenBtn:hover {
  background: rgba(10, 132, 255, 0.35);
  color: #fff;
  transform: scale(1.1);
}

/* DOCK SIDE BUTTON hidden in ultra-compact vertical mode (free dragging replaces it) */
#statusBar.vertical #dockSideBtn {
  display: none !important;
}

/* AUDIO BUTTON (order: 5) */
#statusBar.vertical #audioToggleBtn {
  order: 5;
  flex-shrink: 0;
}

/* CLIPBOARD BUTTON (order: 6) */
#statusBar.vertical #btnClipboard {
  order: 6;
  flex-shrink: 0;
}

/* WAKE SCREEN BUTTON (order: 7) */
#statusBar.vertical #wakeScreenBtn {
  order: 7;
  flex-shrink: 0;
}

/* OPACITY TOGGLE BUTTON (order: 8) */
#statusBar.vertical #btnOpacityToggle {
  order: 8;
  flex-shrink: 0;
}

/* DEBUG HUD BUTTON (order: 9) */
#statusBar.vertical #toggleHudBtn {
  order: 9;
  flex-shrink: 0;
}

/* Redundant duplicate language button hidden in vertical mode */
#statusBar.vertical #btnSwitchLanguageStatus {
  display: none !important;
}

/* Generic icon buttons in vertical mode */
#statusBar.vertical .icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  border-radius: 6px;
  background: transparent;
  margin: 1px 0;
  border: none;
  flex-shrink: 0;
  color: #f5f5f7;
  opacity: 0.92;
  transition: all 0.15s ease;
}

#statusBar.vertical .icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  color: #fff;
  transform: scale(1.1);
}

/* Status Metrics and Session info hidden in ultra-compact vertical mode */
#statusBar.vertical .status-metrics,
#statusBar.vertical .session-info {
  display: none !important;
}

/* Detailed Stats Overlay */
#detailedStats {
  position: absolute;
  top: 48px;
  right: 16px;
  padding: 12px 16px;
  z-index: 101;
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 16px;
}

/* Floating Touch Toolbar */
#touchToolbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

#touchToolbar:hover, #touchToolbar.active {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  #touchToolbar {
    display: none;
  }
}

.toolbar-drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 10px;
  letter-spacing: 2px;
  padding-right: 4px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--panel-border);
  margin: 0 4px;
}

.toolbar-btn, .modifier-btn, .special-btn, .shortcut-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.toolbar-btn:hover, .modifier-btn:hover, .special-btn:hover, .shortcut-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modifier-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-label {
  font-size: 11px;
}

#hiddenMobileInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Modal Backdrop & Dialog (macOS Glassmorphism Aesthetic) */
.modal-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(32, 34, 46, 0.78) 0%, rgba(10, 10, 15, 0.94) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 12px;
  box-sizing: border-box;
  touch-action: auto;
}

.modal-dialog,
.login-card {
  position: relative;
  margin: auto;
  width: 92%;
  max-width: 400px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 24px 22px 24px;
  background: rgba(28, 28, 36, 0.88);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
  box-sizing: border-box;
  touch-action: auto;
}

.login-card button,
.login-card input,
.login-card select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.login-card button * {
  pointer-events: none;
}

.modal-header,
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.apple-logo,
.login-card .logo,
.modal-header .logo {
  font-size: 44px;
  line-height: 1;
  margin: 0 auto 10px auto;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.3);
  display: block;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.modal-header h2,
.login-header h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin: 0 0 6px 0;
  padding: 0;
  text-align: center;
}

.modal-subtitle,
.login-card .subtitle,
.login-header .subtitle {
  font-size: 13px;
  color: #98989d;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.1px;
  text-align: center;
}

.https-protocol-banner {
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 14px;
  margin-bottom: 14px;
  text-align: left;
  box-sizing: border-box;
}

/* Login Segmented Tabs (Internet by ID vs Local LAN) */
.login-segmented-tabs {
  display: flex;
  margin: 0 0 16px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  touch-action: manipulation;
}

.login-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #8e8e93;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.login-tab-btn * {
  pointer-events: none;
}

.login-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.login-tab-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-tab-panel {
  display: block;
}

.login-tab-panel.hidden {
  display: none !important;
}

.device-id-field {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-align: center !important;
  color: #0a84ff !important;
  background: rgba(10, 132, 255, 0.08) !important;
  border-color: rgba(10, 132, 255, 0.35) !important;
}

.device-id-field:focus {
  border-color: #0a84ff !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25) !important;
  background: rgba(10, 132, 255, 0.12) !important;
}

.form-field-hint {
  font-size: 11.5px;
  color: #8e8e93;
  margin-top: 5px;
  text-align: center;
  line-height: 1.3;
}

.https-banner-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #ff9f0a;
}

.https-banner-desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: #d1d1d6;
  margin-top: 4px;
  margin-bottom: 8px;
}

.https-banner-switch-btn {
  display: block;
  text-align: center;
  background: #0a84ff;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}

.https-banner-switch-btn:hover {
  background: #0071e3;
  transform: translateY(-1px);
}

.https-banner-switch-btn:active {
  transform: translateY(0);
}

.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.form-group.half,
.flex-1 {
  flex: 1;
  min-width: 0;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #d1d1d6;
  margin-bottom: 0;
  letter-spacing: -0.1px;
  text-align: left;
}

.field-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-user-select: text;
  user-select: text;
}

.form-group input:focus,
.form-group select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.35);
}

.form-group select option {
  background: #1c1c24;
  color: #ffffff;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap input {
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  user-select: none;
}

.btn-toggle-pwd:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.remember-row,
.form-row.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px 0;
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0a84ff;
  cursor: pointer;
  margin: 0;
}

.remember-row label {
  font-size: 13px;
  color: #aeaeb2;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.primary-btn {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.45);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.6);
}

.primary-btn:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.error-msg,
.error-text {
  color: #ff453a;
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.45;
  word-break: break-word;
}

.error-msg strong,
.error-text strong {
  color: #ff6961;
}

.error-fallback-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0a84ff;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
}

.error-fallback-btn:hover {
  background: #0071e3;
  transform: translateY(-1px);
}

.error-fallback-btn:active {
  transform: translateY(0);
}

.client-version-tag {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
}

.client-header-version {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.2px;
  margin: 0 0 6px 0;
  text-align: center;
  user-select: none;
}

.field-error {
  border-color: #ff453a !important;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.35) !important;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  z-index: 300;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hidden {
  display: none !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
  #touchToolbar {
    bottom: 10px;
    width: 95%;
    overflow-x: auto;
    padding: 6px 8px;
  }
  .toolbar-actions {
    gap: 4px;
  }
  .btn-label {
    display: none;
  }
  .stat-item {
    display: none;
  }
  #statsFps {
    display: inline-block;
  }
}

/* ===========================================================================
   Server Menu Button & Status Dot
   =========================================================================== */
.server-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
  height: 26px;
  box-sizing: border-box;
}

.server-menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.server-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.server-icon {
  font-size: 13px;
  line-height: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.server-icon-wrap .status-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  border: 1.5px solid #1c1c1e;
}

.dot-online {
  background: #30d158;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.9);
}

.dot-connecting {
  background: #ff9f0a;
  box-shadow: 0 0 6px rgba(255, 159, 10, 0.9);
  animation: pulse-dot 1.2s infinite;
}

.dot-offline {
  background: #ff453a;
  box-shadow: 0 0 6px rgba(255, 69, 58, 0.9);
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.4; transform: scale(0.85); }
}

.server-name-text {
  white-space: nowrap;
  font-weight: 500;
  color: #fff;
  font-size: 12px;
}

/* ===========================================================================
   Server Menu Popover (macOS Control Center / Sequoia Style)
   =========================================================================== */
.server-menu-popover {
  position: fixed;
  z-index: 10002;
  width: 330px;
  max-width: calc(100vw - 20px);
  background: rgba(26, 26, 30, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  animation: popover-appear 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
}

@keyframes popover-appear {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.server-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.server-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-header-title {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.server-header-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
  letter-spacing: 0.1px;
  user-select: text;
}

.server-header-sub {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 1px;
}

.server-menu-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #8e8e93;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s ease;
}

.server-menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.server-menu-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-sizing: border-box;
}

/* Quick Metrics Row */
.server-menu-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 7px 6px;
  text-align: center;
}

.sm-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.sm-metric-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #5ac8fa;
}

.sm-metric-lbl {
  font-size: 9.5px;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Menu Sections */
.server-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-section-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8e8e93;
}

.server-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.setting-label {
  font-size: 12px;
  color: #d1d1d6;
}

/* Segmented Buttons */
.btn-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.sm-segmented-btn {
  background: transparent;
  border: none;
  color: #8e8e93;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sm-segmented-btn:hover {
  color: #fff;
}

.sm-segmented-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Checkbox settings rows */
.server-setting-checkbox-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.server-setting-checkbox-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.ios-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.ios-checkbox {
  accent-color: #0a84ff;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkbox-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f2f7;
  line-height: 1.25;
}

.checkbox-desc {
  font-size: 11px;
  color: #8e8e93;
  line-height: 1.3;
}

/* Battery Saver Styles */
.battery-badge {
  background: rgba(48, 209, 88, 0.18) !important;
  color: #30d158 !important;
  border: 1px solid rgba(48, 209, 88, 0.35) !important;
  font-weight: 600;
}

.battery-badge.inactive {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #8e8e93 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: normal;
}

.battery-saver-row .ios-checkbox {
  accent-color: #30d158;
}

.battery-saver-login-row {
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: 8px;
}

.battery-saver-login-row .form-checkbox-label {
  color: #f2f2f7;
  font-weight: 500;
}

.battery-saver-login-row input[type="checkbox"] {
  accent-color: #30d158;
}

/* Battery Saver Mode: Drastically reduce GPU & compositor overhead on older Macs (MacBook Pro 2014, Big Sur) */
body.battery-saver-active .glass-panel,
body.battery-saver-active .server-menu-popover,
body.battery-saver-active .status-bar,
body.battery-saver-active .ios-opacity-flyout,
body.battery-saver-active .clipboard-dialog {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(18, 22, 28, 0.96) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.cursor-settings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 2px 2px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c7c7cc;
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input[type="checkbox"] {
  accent-color: #0a84ff;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Hide client cursor mode */
body.hide-client-cursor #displayContainer,
body.hide-client-cursor #videoCanvas,
body.hide-client-cursor #mseVideo,
.hide-client-cursor #videoCanvas,
.hide-client-cursor #mseVideo {
  cursor: none !important;
}

body.hide-client-cursor #virtualCursor,
.hide-client-cursor #virtualCursor {
  display: none !important;
  visibility: hidden !important;
}

/* Action button (wide) */
.server-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.server-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.server-action-btn .action-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.server-action-btn .action-text {
  display: flex;
  flex-direction: column;
}

.server-action-btn .action-title {
  font-size: 12px;
  font-weight: 600;
}

.server-action-btn .action-desc {
  font-size: 10px;
  color: #8e8e93;
}

/* Actions Grid (2 columns) */
.server-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.server-grid-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 7px 9px;
  color: #fff;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s ease;
  user-select: none;
}

.server-grid-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.server-grid-btn .grid-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.server-grid-btn .grid-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu List */
.server-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 6px 10px;
  color: #d1d1d6;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: all 0.15s ease;
}

.server-list-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.server-list-item .item-icon {
  font-size: 13px;
  margin-right: 2px;
}

.server-list-item .item-badge {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  color: #8e8e93;
}

/* Footer (Reconnect / Disconnect) */
.server-menu-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.server-menu-version-subtle {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.2px;
  user-select: none;
}

.server-footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.server-footer-btn.reconnect {
  background: rgba(10, 132, 255, 0.2);
  color: #5ac8fa;
  border-color: rgba(10, 132, 255, 0.35);
}

.server-footer-btn.reconnect:hover {
  background: rgba(10, 132, 255, 0.35);
  color: #fff;
}

.server-footer-btn.disconnect {
  background: rgba(255, 69, 58, 0.18);
  color: #ff453a;
  border-color: rgba(255, 69, 58, 0.3);
}

.server-footer-btn.disconnect:hover {
  background: rgba(255, 69, 58, 0.3);
  color: #fff;
}

/* ===========================================================================
   Redesigned Modern Clipboard Dialog
   =========================================================================== */
.clipboard-dialog {
  max-width: 520px;
  width: 92%;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(24, 24, 28, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.clipboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.clipboard-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clipboard-title-icon {
  font-size: 22px;
  line-height: 1;
}

.clipboard-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}

.clipboard-subtitle {
  font-size: 11.5px;
  color: #8e8e93;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #8e8e93;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Segmented Tabs */
.clipboard-segmented-tabs {
  display: flex;
  margin: 14px 20px 10px 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.cb-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #8e8e93;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cb-tab-btn:hover {
  color: #fff;
}

.cb-tab-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tab-badge {
  background: #0a84ff;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.2;
}

/* Tab Content */
.cb-tab-content {
  padding: 10px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Text Tab Controls */
.cb-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #30d158;
  font-weight: 500;
}

.cb-textarea-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cb-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 110px;
  max-height: 280px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cb-textarea:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.35);
}

.cb-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11.5px;
  color: #8e8e93;
}

.cb-text-action-link {
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}

.cb-text-action-link:hover {
  color: #ff453a;
  text-decoration: underline;
}

/* Action Blocks & Buttons */
.cb-actions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-action-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-block-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8e8e93;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.direction-arrow {
  color: #0a84ff;
  font-weight: bold;
}

.cb-buttons-row {
  display: flex;
  gap: 8px;
}

.cb-primary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(10, 132, 255, 0.5);
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
  transition: all 0.15s ease;
  user-select: none;
}

.cb-primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.45);
}

.cb-primary-btn.full {
  width: 100%;
}

.cb-secondary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cb-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.cb-secondary-btn.small {
  flex: none;
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 6px;
}

/* Image Tab Cards */
.cb-image-card,
.cb-upload-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #d1d1d6;
}

.cb-image-dims-badge {
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  background: rgba(10, 132, 255, 0.2);
  color: #5ac8fa;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(10, 132, 255, 0.35);
}

.cb-image-preview-wrap {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 200px;
  overflow: hidden;
}

.cb-image-preview {
  max-width: 100%;
  max-height: 184px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.cb-image-actions {
  display: flex;
  gap: 8px;
}

/* Modern Drop Zone */
.cb-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cb-dropzone:hover,
.cb-dropzone:focus {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.06);
  outline: none;
}

.dropzone-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.dropzone-main-text {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
}

.dropzone-browse {
  color: #0a84ff;
  text-decoration: underline;
}

.dropzone-sub-text {
  font-size: 11px;
  color: #8e8e93;
}

/* ---------------------------------------------------------------------------
   iOS 27 Transparency Flyout & Control Center Sliders
   --------------------------------------------------------------------------- */
.ios-opacity-flyout {
  position: absolute;
  z-index: 2500;
  width: 184px;
  box-sizing: border-box;
  background: rgba(26, 26, 32, 0.90);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 14px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  animation: iosFlyoutPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iosFlyoutPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.ios-flyout-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  box-sizing: border-box;
}

.ios-flyout-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ios-flyout-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.ios-flyout-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #a1a1a6;
  text-transform: none;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-flyout-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Vertical iOS Pill Slider */
.ios-slider-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2px 0;
}

.ios-vertical-slider {
  position: relative;
  width: 68px;
  height: 156px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  cursor: ns-resize;
  touch-action: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

.ios-vertical-slider:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.ios-vertical-slider.is-dragging,
.ios-vertical-slider:active {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ios-slider-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 0 24px rgba(10, 132, 255, 0.5);
  pointer-events: none;
  transition: height 0.04s ease-out;
}

.ios-slider-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.ios-slider-glyph {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  opacity: 0.95;
}

/* Preset Chips */
.ios-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

.ios-preset-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 0;
  color: #d1d1d6;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ios-preset-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.ios-preset-chip.active {
  background: rgba(10, 132, 255, 0.35);
  color: #fff;
  border-color: rgba(10, 132, 255, 0.7);
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.5);
}

/* Horizontal iOS Slider in Server Menu */
.ios-section-badge {
  font-size: 11px;
  font-weight: 700;
  color: #5ac8fa;
  background: rgba(10, 132, 255, 0.2);
  border: 1px solid rgba(10, 132, 255, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
}

.ios-horizontal-slider-wrap {
  margin: 8px 0 10px 0;
  width: 100%;
}

.ios-horizontal-slider {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

.ios-horizontal-slider:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.ios-horizontal-slider.is-dragging,
.ios-horizontal-slider:active {
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(10, 132, 255, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ios-horizontal-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #007aff 0%, #5ac8fa 100%);
  border-radius: 23px;
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.4);
  pointer-events: none;
  transition: width 0.04s ease-out;
}

.ios-horizontal-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ios-h-icon {
  font-size: 16px;
  margin-right: 6px;
}

.ios-h-label {
  flex: 1;
  text-align: left;
}

.ios-h-val {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
}

.ios-presets-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.ios-chip-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 2px;
  color: #d1d1d6;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.ios-chip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ios-chip-btn.active {
  background: rgba(10, 132, 255, 0.35);
  color: #fff;
  border-color: rgba(10, 132, 255, 0.7);
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.4);
}

/* ===========================================================================
   Local Network Discovery & Apple Screen Sharing (VNC port 5900) Card
   =========================================================================== */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.btn-scan-network {
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: #5ac8fa;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-scan-network:hover {
  background: rgba(10, 132, 255, 0.3);
  color: #fff;
  border-color: rgba(10, 132, 255, 0.6);
  transform: translateY(-1px);
}

.btn-scan-network:active {
  transform: translateY(0);
}

.btn-scan-network.scanning {
  opacity: 0.8;
  pointer-events: none;
}

.discovered-servers-box {
  background: rgba(20, 20, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.discovered-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discovered-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #e5e5ea;
}

.btn-close-sub {
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-close-sub:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.scan-spinner-mini {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10, 132, 255, 0.25);
  border-top-color: #0a84ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.scan-spinner-mini.hidden {
  display: none !important;
}

.discovered-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.discovered-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.15s ease;
}

.discovered-item:hover {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.35);
}

.discovered-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.discovered-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.discovered-item-addr {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: #8e8e93;
}

.discovered-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discovered-ping-badge {
  font-size: 10px;
  color: #30d158;
  font-family: ui-monospace, monospace;
}

.discovered-btn-select {
  background: #0a84ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.discovered-btn-select:hover {
  background: #0071e3;
}

.discovered-empty {
  font-size: 11px;
  color: #8e8e93;
  text-align: center;
  padding: 8px 4px;
}

/* Reconnect Banner */
.reconnect-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.38);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 12px;
  text-align: left;
  animation: fadeIn 0.2s ease;
}

.reconnect-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 132, 255, 0.3);
  border-top-color: #0a84ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.reconnect-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.reconnect-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.reconnect-sub {
  font-size: 11px;
  color: #a0cfff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cancel-reconnect {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eee;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-cancel-reconnect:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Apple Screen Sharing Alternative Box (Collapsible details) */
.vnc-alt-card {
  margin-top: 12px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: left;
  transition: background 0.18s ease;
}

.vnc-alt-card[open] {
  background: rgba(10, 132, 255, 0.12);
  padding: 10px 12px;
}

.vnc-alt-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.vnc-alt-summary::-webkit-details-marker {
  display: none;
}

.vnc-alt-icon {
  font-size: 13px;
}

.vnc-alt-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #5ac8fa;
  flex: 1;
}

.vnc-alt-chevron {
  font-size: 12px;
  color: #5ac8fa;
  transition: transform 0.2s ease;
}

.vnc-alt-card[open] .vnc-alt-chevron {
  transform: rotate(180deg);
}

.vnc-alt-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vnc-alt-text {
  font-size: 11px;
  line-height: 1.4;
  color: #d1d1d6;
  margin: 0 0 8px 0;
}

.vnc-self-warning {
  font-size: 11px;
  line-height: 1.35;
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.vnc-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
}

.vnc-addr-label {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: #c7c7cc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vnc-copy-btn {
  background: rgba(10, 132, 255, 0.25);
  border: 1px solid rgba(10, 132, 255, 0.45);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vnc-copy-btn:hover {
  background: rgba(10, 132, 255, 0.45);
  border-color: #0a84ff;
}

/* Responsive Viewport Optimizations */
@media (max-height: 720px) {
  .modal-backdrop {
    padding: 12px 8px;
  }
  .modal-dialog, .login-card {
    padding: 16px 20px 14px 20px;
    max-height: calc(100vh - 24px);
  }
  .modal-header, .login-header {
    margin-bottom: 10px;
  }
  .apple-logo, .login-card .logo {
    font-size: 30px;
    margin-bottom: 4px;
  }
  .modal-header h2, .login-header h2 {
    font-size: 17px;
  }
  .modal-subtitle, .subtitle {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .form-group {
    margin-bottom: 8px;
  }
}

@media (max-width: 850px) {
  .session-info {
    display: none !important;
  }
  .brand-text {
    display: none !important;
  }
}

@media (max-width: 650px) {
  .status-metrics {
    display: none !important;
  }
  .server-name-text {
    display: none !important;
  }
  .status-controls {
    gap: 3px;
  }
  .status-controls .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* Continuous Discovery & Reboot Waiting */
.discovered-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-scan-action {
  background: rgba(255, 69, 58, 0.2);
  border: 1px solid rgba(255, 69, 58, 0.45);
  color: #ff453a;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-scan-action:hover {
  background: rgba(255, 69, 58, 0.35);
  border-color: #ff453a;
}

.btn-scan-action.action-start {
  background: rgba(48, 209, 88, 0.2);
  border-color: rgba(48, 209, 88, 0.45);
  color: #30d158;
}

.btn-scan-action.action-start:hover {
  background: rgba(48, 209, 88, 0.35);
  border-color: #30d158;
}

.discovered-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  margin-bottom: 8px;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 8px;
  font-size: 11px;
  color: #8ec5fc;
  font-variant-numeric: tabular-nums;
}

