body:not(.sio-perf-debug-active) .sio-perf-debug-panel {
  display: none !important;
}

.sio-perf-debug-panel {
  position: fixed;
  right: 16px;
  top: 82px;
  z-index: 2147483646;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 104px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(93, 221, 255, .46);
  border-radius: 18px;
  color: #eefaff;
  background: rgba(5, 16, 27, .95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 38px rgba(67, 211, 255, .14);
  backdrop-filter: blur(18px);
  font: 600 13px/1.35 "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}

.sio-perf-debug-panel *,
.sio-perf-debug-panel *::before,
.sio-perf-debug-panel *::after {
  box-sizing: border-box;
}

.sio-perf-debug-panel.is-collapsed {
  width: auto;
  overflow: visible;
}

.sio-perf-debug-panel.is-collapsed .sio-perf-debug-body,
.sio-perf-debug-panel.is-collapsed .sio-perf-debug-footer,
.sio-perf-debug-panel.is-collapsed .sio-perf-debug-status {
  display: none;
}

.sio-perf-debug-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sio-perf-debug-head strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
}

.sio-perf-debug-head span {
  display: block;
  color: #6be6ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sio-perf-debug-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.sio-perf-debug-actions button,
.sio-perf-debug-footer button,
.sio-perf-debug-scan {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(126, 232, 255, .28);
  border-radius: 11px;
  color: #eaffff;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sio-perf-debug-actions button:hover,
.sio-perf-debug-footer button:hover,
.sio-perf-debug-scan:hover {
  border-color: rgba(126, 232, 255, .72);
  background: rgba(91, 219, 255, .14);
  transform: translateY(-1px);
}

.sio-perf-debug-body {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.sio-perf-debug-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
}

.sio-perf-debug-pick {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(126, 232, 255, .28);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}

.sio-perf-debug-pick input {
  width: 16px;
  height: 16px;
  accent-color: #47d7ff;
}

.sio-perf-debug-row b {
  display: block;
  color: #fff;
  font-size: 13px;
}

.sio-perf-debug-row small {
  display: block;
  margin-top: 2px;
  color: rgba(222, 244, 255, .65);
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sio-perf-debug-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(89, 235, 255, .18);
  border-radius: 999px;
  color: #90edff;
  background: rgba(41, 214, 255, .08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.sio-perf-debug-row.is-off .sio-perf-debug-count,
.sio-perf-debug-subrow.is-off .sio-perf-debug-count {
  border-color: rgba(255, 89, 89, .32);
  color: #ff9a9a;
  background: rgba(255, 73, 73, .12);
}

.sio-perf-debug-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 27px;
}

.sio-perf-debug-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sio-perf-debug-switch i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .3);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sio-perf-debug-switch i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #9ab4c0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s ease;
}

.sio-perf-debug-switch input:checked + i {
  border-color: rgba(255, 104, 104, .78);
  background: rgba(255, 73, 73, .22);
  box-shadow: 0 0 18px rgba(255, 73, 73, .18), inset 0 1px 8px rgba(0, 0, 0, .26);
}

.sio-perf-debug-switch input:checked + i::after {
  transform: translateX(21px);
  background: #ff7777;
}

.sio-perf-debug-details {
  margin-top: -2px;
  min-width: 0;
  border: 1px solid rgba(71, 215, 255, .18);
  border-radius: 14px;
  background: rgba(0, 0, 0, .16);
}

.sio-perf-debug-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #bff6ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sio-perf-debug-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 8px;
  min-width: 0;
}

.sio-perf-debug-subhead span {
  color: rgba(225, 247, 255, .62);
  font-size: 11px;
}

.sio-perf-debug-scan {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.sio-perf-debug-sublist {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  overflow-x: hidden;
  padding: 0 10px 10px;
}

.sio-perf-debug-group {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(71, 215, 255, .26);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(7, 34, 51, .72), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.sio-perf-debug-group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(71, 215, 255, .24);
  border-radius: 12px;
  background: rgba(4, 22, 35, .78);
}

.sio-perf-debug-group-head b {
  display: block;
  color: #dffbff;
  font-size: 12px;
  font-weight: 950;
}

.sio-perf-debug-group-list {
  display: grid;
  gap: 6px;
  position: relative;
  margin-left: 15px;
  padding-left: 14px;
}

.sio-perf-debug-group-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(71, 215, 255, .55), rgba(71, 215, 255, .08));
}

.sio-perf-debug-subrow {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
}

.sio-perf-debug-group .sio-perf-debug-subrow {
  background: rgba(255, 255, 255, .035);
}

.sio-perf-debug-group .sio-perf-debug-subrow::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(71, 215, 255, .42);
}

.sio-perf-debug-subrow b {
  display: block;
  color: #fff;
  font-size: 12px;
}

.sio-perf-debug-subrow small {
  display: block;
  overflow: hidden;
  color: rgba(222, 244, 255, .62);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sio-perf-debug-status {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(92, 225, 255, .18);
  border-radius: 12px;
  color: rgba(229, 250, 255, .78);
  background: rgba(2, 11, 20, .42);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.sio-perf-debug-footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sio-perf-debug-footer button {
  flex: 1;
  color: #dff9ff;
}

.sio-perf-mark-green,
.sio-perf-mark-green::before,
.sio-perf-mark-green::after {
  outline: 2px solid rgba(67, 255, 148, .98) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 1px rgba(67, 255, 148, .3) !important;
}

.sio-perf-mark-red,
.sio-perf-mark-red::before,
.sio-perf-mark-red::after {
  outline: 2px solid rgba(255, 74, 74, .98) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 1px rgba(255, 74, 74, .3) !important;
}

.sio-perf-mark-green,
.sio-perf-mark-red {
  position: relative !important;
  z-index: 2147482500 !important;
}

.sio-perf-debug-overlay {
  position: fixed;
  z-index: 2147482400;
  pointer-events: none;
  border: 2px solid rgba(67, 255, 148, .96);
  border-radius: 12px;
  outline: 1px solid rgba(0, 0, 0, .4);
  background: rgba(67, 255, 148, .06);
}

.sio-perf-debug-overlay.is-off {
  border-color: rgba(255, 74, 74, .98);
  background: rgba(255, 74, 74, .06);
}

.sio-perf-debug-overlay span {
  position: absolute;
  left: 8px;
  top: -26px;
  max-width: min(280px, 70vw);
  padding: 4px 8px;
  border-radius: 999px;
  color: #02131d;
  background: #43ff94;
  font: 900 11px/1.2 "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}

.sio-perf-debug-overlay.is-off span {
  color: #fff;
  background: #ff4a4a;
}

body.sio-perf-no-css-animations *:not(.sio-perf-debug-panel):not(.sio-perf-debug-panel *),
body.sio-perf-no-css-animations *:not(.sio-perf-debug-panel):not(.sio-perf-debug-panel *)::before,
body.sio-perf-no-css-animations *:not(.sio-perf-debug-panel):not(.sio-perf-debug-panel *)::after {
  animation: none !important;
  transition-duration: 0s !important;
}

body.sio-perf-no-sio-visual .sio-avatar,
body.sio-perf-no-sio-visual .sio-avatar *,
body.sio-perf-no-sio-visual .sio-live-dock,
body.sio-perf-no-sio-visual .sio-live-dock *,
body.sio-perf-no-sio-visual .sio-live-traveler,
body.sio-perf-no-sio-visual .sio-live-traveler *,
body.sio-perf-no-sio-visual .sio-first-invite,
body.sio-perf-no-sio-visual .sio-first-invite::before,
body.sio-perf-no-sio-visual .sio-first-invite::after,
body.sio-perf-no-sio-visual #sio_live_dock,
body.sio-perf-no-sio-visual #sio_live_menu,
body.sio-perf-no-sio-visual #sio_live_traveler,
body.sio-perf-no-sio-visual #sio_first_invite,
body.sio-perf-no-sio-visual #sio_onboarding {
  animation: none !important;
  transition-duration: 0s !important;
}

body.sio-perf-hide-sio #sio_live_dock,
body.sio-perf-hide-sio #sio_live_menu,
body.sio-perf-hide-sio #sio_live_traveler,
body.sio-perf-hide-sio #sio_first_invite,
body.sio-perf-hide-sio #sio_onboarding {
  display: none !important;
}

body.sio-perf-no-bookmark-animations .bookmark-tile,
body.sio-perf-no-bookmark-animations .folder-tile,
body.sio-perf-no-bookmark-animations .folder-panel,
body.sio-perf-no-bookmark-animations .bookmark-card,
body.sio-perf-no-bookmark-animations .manager-move-toggle span,
body.sio-perf-no-bookmark-animations .folder-panel__item,
body.sio-perf-no-bookmark-animations #div_link_ul .link_li,
body.sio-perf-no-bookmark-animations #div_link_ul .link {
  animation: none !important;
  transition-duration: 0s !important;
}

body.sio-perf-no-hover-effects .bookmark-tile:hover,
body.sio-perf-no-hover-effects .folder-tile:hover,
body.sio-perf-no-hover-effects .add-button:hover,
body.sio-perf-no-hover-effects #toolbox .quick-dock-btn:hover,
body.sio-perf-no-hover-effects .sio-live-dock:hover,
body.sio-perf-no-hover-effects .link_li:hover .link,
body.sio-perf-no-hover-effects button:hover,
body.sio-perf-no-hover-effects a:hover {
  transform: none !important;
  filter: none !important;
}

body.sio-perf-hide-dashboard #sio_dashboard_host,
body.sio-perf-hide-dashboard #sio_dashboard_frame,
body.sio-perf-hide-dashboard .sio-dashboard-host,
body.sio-perf-hide-dashboard .dashboard,
body.sio-perf-hide-dashboard .dashboard-panel {
  display: none !important;
}

body.sio-perf-static-bg #aurora-river-live-canvas {
  display: none !important;
}
