@font-face {
  font-family: "ARC ZCOOL";
  src: url("./assets/fonts/zcool-qingke-huangyou.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ARC MiSans";
  src: url("./assets/fonts/misans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ARC MiSans";
  src: url("./assets/fonts/misans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "ARC Source Han";
  src: url("./assets/fonts/noto-sans-sc-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ARC Source Han";
  src: url("./assets/fonts/noto-sans-sc-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ui-font: "Bahnschrift Condensed", Bahnschrift, "Arial Narrow", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --display-font: Impact, "Bahnschrift Condensed", "Arial Narrow", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-family: var(--ui-font);
  font-synthesis: none;
  font-stretch: condensed;
  letter-spacing: 0;
  --bg: #ffffff;
  --surface: #ffffff;
  --chrome: #e4e4e4;
  --surface-soft: #fafafa;
  --surface-muted: #f4f4f3;
  --line: #e5e5e3;
  --line-strong: #d8d8d5;
  --text: #111110;
  --muted: #72726e;
  --subtle: #a3a39e;
  --black: #090909;
  --white: #ffffff;
  --soft-shadow: rgba(0, 0, 0, 0.035);
  --glass-tint: 255 255 255;
  --glass-top: 0.28;
  --glass-side: 0.38;
  --glass-panel: 0.34;
  --glass-toolbar: 1;
  --device-type-size: 12px;
  --glass-bg: rgb(var(--glass-tint) / var(--glass-top));
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-shadow: rgba(17, 17, 16, 0.12);
  --glass-control-bg: rgba(255, 255, 255, 0.48);
  --glass-control-border: rgba(17, 17, 16, 0.1);
  --glass-control-shadow: rgba(17, 17, 16, 0.04);
  --glass-key-bg: rgba(255, 255, 255, 0.54);
  --glass-key-border: rgba(17, 17, 16, 0.08);
  --backdrop-wash: rgba(242, 240, 234, 0.06);
  --panel-bg: rgb(var(--glass-tint) / var(--glass-panel));
  --sidebar-bg: rgb(var(--glass-tint) / var(--glass-side));
  --chip-black: #202020;
  --chip-gray: #bbbbbb;
  --chip-yellow: #ffb900;
  --chip-red: #ff573a;
  --chip-paper: #f8f8f5;
  --wallpaper-image: url("./assets/industrial-room.png");
  --wallpaper-position: center;
  --wallpaper-size: cover;
}

html[data-font="apple"] {
  --ui-font: "Bahnschrift Condensed", Bahnschrift, "Arial Narrow", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --display-font: Impact, "Bahnschrift Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

.project-brand strong,
.workspace-title strong,
.group-name h2,
.device-name strong,
.profile-copy strong {
  font-family: var(--display-font);
  font-stretch: condensed;
  letter-spacing: 0;
}

html[data-wallpaper="spacecraft"] {
  --wallpaper-image: url("./assets/spacecraft-paper-mono.jpg");
  --wallpaper-position: center bottom;
  --wallpaper-size: cover;
}

html[data-wallpaper="cats"] {
  --wallpaper-image: url("./assets/cats-bottom.png");
  --wallpaper-position: center bottom;
  --wallpaper-size: auto 100%;
}

html[data-wallpaper="poster"] {
  --wallpaper-image: url("./assets/arc-raiders-poster.png");
  --wallpaper-position: center;
  --wallpaper-size: cover;
}

html[data-theme="dark"] {
  color-scheme: dark !important;
  --bg: #0f1012;
  --surface: #151618;
  --chrome: #1c1d20;
  --surface-soft: #1e2023;
  --surface-muted: #24262a;
  --line: #2b2d31;
  --line-strong: #3a3d42;
  --text: #f3f3f1;
  --muted: #aaa9a5;
  --subtle: #7f7f7b;
  --black: #f2f2f0;
  --white: #111214;
  --soft-shadow: rgba(0, 0, 0, 0.2);
  --glass-tint: 15 16 18;
  --glass-top: 0.34;
  --glass-side: 0.4;
  --glass-panel: 0.36;
  --glass-bg: rgb(var(--glass-tint) / var(--glass-top));
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.28);
  --glass-control-bg: rgba(255, 255, 255, 0.06);
  --glass-control-border: rgba(255, 255, 255, 0.12);
  --glass-control-shadow: rgba(0, 0, 0, 0.18);
  --glass-key-bg: rgba(255, 255, 255, 0.06);
  --glass-key-border: rgba(255, 255, 255, 0.1);
  --backdrop-wash: rgba(8, 9, 12, 0.22);
  --panel-bg: rgb(var(--glass-tint) / var(--glass-panel));
  --sidebar-bg: rgb(var(--glass-tint) / var(--glass-side));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1180px;
  min-height: 100%;
  margin: 0;
  forced-color-adjust: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  color: var(--text) !important;
  background: var(--bg) !important;
  font-size: 12px;
}

html,
html[data-darkreader-mode],
html[data-darkreader-scheme] {
  background: var(--bg) !important;
  filter: none !important;
}

html[data-theme="light"] {
  color-scheme: light !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-shell {
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 1180px;
  min-height: 760px;
  grid-template-columns: 252px minmax(0, 1fr);
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--backdrop-wash), var(--backdrop-wash)),
    var(--wallpaper-image);
  background-position: center, var(--wallpaper-position);
  background-repeat: no-repeat;
  background-size: cover, var(--wallpaper-size);
}

.sidebar {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 14px 12px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(86%);
  -webkit-backdrop-filter: blur(20px) saturate(86%);
}

.project-brand,
.nav-heading,
.side-link,
.nav-fold,
.profile-card,
.topbar,
.top-actions,
.contextbar,
.breadcrumb,
.context-actions,
.context-actions span,
.project-header,
.project-title,
.project-actions,
.avatar-stack,
.outline-button,
.black-button,
.view-tabs,
.group-header,
.group-name,
.group-dates,
.group-dates span,
.device-name,
.row-tools,
.tree-item,
.status-mark,
.add-row,
.main-footer,
.footer-pager,
.footer-tools {
  display: flex;
  align-items: center;
}

.project-brand {
  min-height: 42px;
  gap: 10px;
  padding: 0 4px;
  font-size: 14px;
}

.brand-orbit,
.title-orbit {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--black);
  border-radius: 50%;
}

.brand-orbit {
  width: 30px;
  height: 30px;
}

.brand-orbit i,
.title-orbit i {
  display: block;
  background: var(--white);
  border-radius: 50%;
}

.brand-orbit i {
  width: 11px;
  height: 11px;
}

.project-brand strong {
  white-space: nowrap;
}

.nav-heading {
  min-height: 36px;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 2px;
}

.single-device-nav {
  margin-top: 18px;
}

.side-link {
  min-height: 39px;
  gap: 11px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
}

.side-link svg {
  width: 17px;
  height: 17px;
}

.side-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link b {
  margin-left: auto;
  font-size: 16px;
  font-weight: 400;
}

.side-link em {
  display: grid;
  width: 21px;
  height: 21px;
  margin-left: auto;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.side-link em + b {
  margin-left: 0;
}

.side-link.is-active {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 3px 10px var(--soft-shadow);
  font-weight: 700;
}

.nav-fold {
  min-height: 47px;
  justify-content: space-between;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.nav-fold b {
  font-size: 16px;
  font-weight: 400;
}

.sidebar-bottom {
  display: grid;
  gap: 13px;
}

.secondary-nav {
  gap: 1px;
}

.theme-row {
  width: 100%;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.static-switch {
  position: relative;
  width: 36px;
  height: 21px;
  margin-left: auto;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background-color 180ms ease;
}

.static-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  content: "";
  transition: background-color 180ms ease, transform 180ms ease;
}

html[data-theme="dark"] .static-switch {
  background: var(--text);
}

html[data-theme="dark"] .static-switch::after {
  background: var(--bg);
  transform: translateX(15px);
}

.profile-card {
  min-width: 0;
  min-height: 59px;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.profile-avatar,
.avatar-stack span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
}

.profile-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-copy strong,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 11px;
}

.profile-copy small {
  color: var(--muted);
  font-size: 8px;
}

.main-area {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr);
  background: transparent;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 252px;
  height: 60px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 8px;
  padding: 0 17px;
  overflow: visible;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 12px var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(86%);
  -webkit-backdrop-filter: blur(20px) saturate(86%);
  isolation: isolate;
}

.topbar-device-overview {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.topbar-device-overview .group-name {
  flex: 0 0 auto;
}

.topbar-device-overview .device-status-summary {
  min-width: 0;
  overflow: hidden;
}

.workspace-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 58px;
  margin: 0 14px 14px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 3px 14px var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(86%);
  -webkit-backdrop-filter: blur(20px) saturate(86%);
  isolation: isolate;
}

.workspace-toolbar {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 50%;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 32px);
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  color: var(--text);
  transform: translateX(-50%);
}

.device-workflow-tabs {
  position: absolute;
  z-index: 5;
  top: 54px;
  left: 50%;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: rgb(24 25 27 / var(--glass-toolbar));
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  transform: translateX(-50%);
}

.device-workflow-tabs[hidden] {
  display: none !important;
}

.device-workflow-tab {
  display: inline-flex;
  min-width: 68px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--chip-black);
  background: rgb(187 187 187 / var(--glass-toolbar));
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 700 10px/1 var(--ui-font);
  white-space: nowrap;
}

.device-workflow-tab.is-active {
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
  border-color: rgb(32 32 32 / var(--glass-toolbar));
}

.device-workflow-tab:focus-visible {
  outline: 1px solid var(--glass-border);
  outline-offset: 2px;
}

.workspace-title {
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
  border: 1px solid rgb(32 32 32 / var(--glass-toolbar));
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  white-space: nowrap;
}

.workspace-title:focus-visible {
  outline: 1px solid var(--glass-border);
  outline-offset: 2px;
}

.workspace-title strong {
  font-size: 10px;
}

.workspace-mark {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: var(--chip-paper);
  border: 1px solid var(--chip-paper);
  border-radius: 50%;
}

.workspace-mark i {
  width: 6px;
  height: 6px;
  background: var(--chip-black);
  border-radius: 50%;
}

.top-actions {
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.top-device-binding-entry,
.top-auth-entry {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--text);
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  cursor: pointer;
  font: 700 10px/1 var(--ui-font);
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.top-device-binding-entry svg,
.top-auth-entry svg {
  width: 15px;
  height: 15px;
}

.top-device-binding-entry:hover,
.top-device-binding-entry[data-auth-state="ready"],
.top-auth-entry:hover,
.top-auth-entry[data-auth-state="unbound"] {
  color: #151515;
  background: var(--chip-yellow);
  border-color: var(--chip-yellow);
}

.top-device-binding-entry[data-auth-state="unregistered"] {
  color: var(--muted);
}

.top-auth-entry[data-auth-state="bound"] {
  color: #071b17;
  background: #2bd1a5;
  border-color: #2bd1a5;
}

.top-device-binding-entry:active,
.top-auth-entry:active {
  transform: scale(0.96);
}

.top-device-binding-entry:focus-visible,
.top-auth-entry:focus-visible {
  outline: 2px solid var(--chip-yellow);
  outline-offset: 2px;
}

.top-guide-button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #f8f8f5;
  background: rgba(24, 25, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font: 700 10px/1 var(--ui-font);
  white-space: nowrap;
}

.top-guide-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-guide-button:hover,
.top-guide-button[aria-expanded="true"] {
  color: #151515;
  background: var(--chip-yellow);
  border-color: var(--chip-yellow);
}

.top-guide-button:focus-visible {
  outline: 2px solid var(--chip-yellow);
  outline-offset: 2px;
}

.font-picker {
  display: flex;
  height: 35px;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 9px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.font-picker span {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.font-picker select {
  width: 72px;
  height: 25px;
  padding: 0 4px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.font-picker option {
  color: #111110;
  background: #ffffff;
}

.type-controls {
  position: relative;
}

.type-controls summary {
  display: flex;
  height: 35px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.type-controls summary::-webkit-details-marker {
  display: none;
}

.type-controls summary b {
  font-size: 9px;
  white-space: nowrap;
}

.type-control-panel {
  position: absolute;
  z-index: 20;
  top: 43px;
  right: 0;
  width: 238px;
  padding: 14px;
  background: rgb(var(--glass-tint) / 0.78);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(86%);
  -webkit-backdrop-filter: blur(20px) saturate(86%);
}

.type-control-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
}

.type-control-panel label {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  min-height: 32px;
  align-items: center;
  gap: 8px;
}

.type-control-panel label span,
.type-control-panel output {
  color: var(--muted);
  font-size: 9px;
}

.type-control-panel output {
  text-align: right;
}

.type-control-panel input {
  width: 100%;
  margin: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.glass-controls {
  position: relative;
}

.glass-controls summary {
  display: flex;
  width: auto;
  height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 50%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  list-style: none;
}

.glass-controls summary::-webkit-details-marker {
  display: none;
}

.glass-controls summary span {
  font-size: 14px;
  line-height: 1;
}

.glass-controls summary b {
  font-size: 9px;
  white-space: nowrap;
}

.glass-control-panel {
  position: absolute;
  z-index: 20;
  top: 43px;
  right: 0;
  width: 238px;
  padding: 14px;
  background: rgb(var(--glass-tint) / 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(86%);
  -webkit-backdrop-filter: blur(20px) saturate(86%);
}

.glass-control-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
}

.glass-control-panel label {
  display: grid;
  grid-template-columns: 46px 1fr 34px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.glass-control-panel label span,
.glass-control-panel output {
  color: var(--muted);
  font-size: 9px;
}

.glass-control-panel output {
  text-align: right;
}

.glass-control-panel input {
  width: 100%;
  height: 14px;
  margin: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.top-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: transparent;
  border-radius: 50%;
}

.theme-icon-button,
.wallpaper-icon-button,
.settings-icon-button {
  transition: background-color 180ms ease, transform 180ms ease;
}

.theme-icon-button:hover,
.wallpaper-icon-button:hover,
.settings-icon-button:hover {
  background: var(--glass-control-bg);
}

.theme-icon-button:active,
.wallpaper-icon-button:active,
.settings-icon-button:active {
  transform: scale(0.94);
}

.theme-icon-button:focus-visible,
.wallpaper-icon-button:focus-visible,
.settings-icon-button:focus-visible {
  outline-color: var(--line-strong);
  outline-offset: 0;
}

.top-icon svg {
  width: 17px;
  height: 17px;
}

.contextbar {
  justify-content: space-between;
  gap: 20px;
  padding: 0 31px 0 20px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
}

.breadcrumb svg {
  width: 15px;
  height: 15px;
}

.context-actions {
  gap: 28px;
}

.context-actions span {
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.context-actions svg {
  width: 16px;
  height: 16px;
}

.project-header {
  min-width: 0;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px 0 74px;
  border-bottom: 1px solid var(--line);
}

.project-title {
  min-width: 0;
  gap: 11px;
}

.title-orbit {
  width: 24px;
  height: 24px;
}

.title-orbit i {
  width: 8px;
  height: 8px;
}

.project-title h1 {
  margin: 0;
  font-size: 17px;
  white-space: nowrap;
}

.project-title > svg {
  width: 15px;
  height: 15px;
  margin-left: 5px;
}

.project-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.avatar-stack {
  padding-right: 8px;
}

.avatar-stack span {
  width: 29px;
  height: 29px;
  margin-right: -7px;
  color: var(--white);
  background: #202020;
  border: 2px solid var(--white);
  font-size: 6px;
}

.avatar-stack span:nth-child(2) { background: #555552; }
.avatar-stack span:nth-child(3) { background: #868681; }
.avatar-stack span:nth-child(4) { background: #b2b2ad; color: var(--black); }
.avatar-stack span:nth-child(5) { background: #dadad6; color: var(--black); }

.avatar-stack .avatar-more {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 8px;
}

.outline-button,
.black-button {
  min-height: 36px;
  gap: 8px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.outline-button {
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.black-button {
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
}

.outline-button svg {
  width: 16px;
  height: 16px;
}

.black-button span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}

.view-tabs {
  flex: 1;
  min-width: 0;
  gap: 3px;
  height: 100%;
  padding: 0;
  border-bottom: 0;
}

.view-tabs a {
  position: relative;
  display: flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--chip-black);
  background: rgb(187 187 187 / var(--glass-toolbar));
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.view-tabs a svg {
  width: 16px;
  height: 16px;
}

.view-tabs a.is-active {
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
  border-color: rgb(32 32 32 / var(--glass-toolbar));
  box-shadow: none;
}

.view-tabs a.is-active::after {
  content: none;
}

.view-tabs a.tab-account {
  color: var(--chip-black);
  background: rgb(255 185 0 / var(--glass-toolbar));
  border-color: rgb(255 185 0 / var(--glass-toolbar));
}

.view-tabs a.tab-log {
  color: var(--chip-black);
  background: rgb(255 87 58 / var(--glass-toolbar));
  border-color: rgb(255 87 58 / var(--glass-toolbar));
}

.content-scroll {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 56px 0 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.device-workflow-panel[data-workflow-clone="true"] {
  position: absolute;
  z-index: 2;
  inset: 0 0 58px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: transparent;
}

.workspace-window.is-workflow-tabs-open .content-scroll {
  padding-top: 96px;
}

.device-workflow-panel[hidden] {
  display: none !important;
}

.device-workflow-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}

.device-workflow-empty strong {
  color: var(--text);
  font: 700 18px/1 var(--display-font);
}

.device-workflow-empty span {
  font-size: 11px;
}

.inventory-tab-panel {
  position: absolute;
  z-index: 30000;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: start center;
  padding: 0 16px 16px;
  overflow: hidden;
}

.has-inventory-modal .device-speed-menu,
.has-inventory-modal .device-preset-menu {
  display: none !important;
}

.inventory-tab-panel[hidden] {
  display: none !important;
}

.inventory-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.16);
  backdrop-filter: blur(6px) saturate(86%);
  -webkit-backdrop-filter: blur(6px) saturate(86%);
}

.inventory-glass-window {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1520px, calc(100% - 12px));
  height: min(920px, calc(100% - 12px));
  min-width: 0;
  min-height: 0;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  color: var(--text);
  background: rgb(var(--glass-tint) / max(var(--glass-panel), 0.92));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(17, 17, 16, 0.28), 0 3px 14px var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(90%);
  -webkit-backdrop-filter: blur(28px) saturate(90%);
}

.inventory-dialog-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  background: var(--glass-control-bg);
  border-bottom: 1px solid var(--glass-border);
}

.inventory-dialog-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.inventory-dialog-title strong {
  font-family: var(--display-font);
  font-size: 13px;
}

.inventory-dialog-title > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-dialog-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
  border: 1px solid rgb(32 32 32 / var(--glass-toolbar));
  border-radius: 7px;
}

.inventory-dialog-icon svg,
.inventory-dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inventory-dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
  border: 1px solid rgb(32 32 32 / var(--glass-toolbar));
  border-radius: 50%;
  cursor: pointer;
}

.inventory-dialog-close:focus-visible {
  outline: 2px solid var(--chip-yellow);
  outline-offset: 2px;
}

.inventory-frame-shell {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgb(var(--glass-tint) / 0.92);
}

.inventory-tab-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

.feature-guide {
  position: absolute;
  z-index: 35000;
  inset: 0;
  padding: 0;
}

.feature-guide[hidden] {
  display: none !important;
}

.feature-guide-window {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) 42px;
  overflow: hidden;
  color: #f3f3f1;
  background: rgba(24, 27, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(86%);
  -webkit-backdrop-filter: blur(24px) saturate(86%);
}

.feature-guide-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 22px;
  padding: 20px 24px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-guide-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--chip-yellow);
  font: 700 9px/1 var(--ui-font);
}

.feature-guide-header h2 {
  margin: 0 0 8px;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.feature-guide-header p {
  max-width: 610px;
  margin: 0;
  color: rgba(243, 243, 241, 0.66);
  font-size: 11px;
  line-height: 1.75;
}

.feature-guide-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #151515;
  background: var(--chip-red);
  border: 1px solid var(--chip-red);
  border-radius: 4px;
  cursor: pointer;
}

.feature-guide-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.feature-guide-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.feature-guide-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  overflow-y: auto;
}

.feature-guide-card {
  display: grid;
  min-height: 188px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-guide-card:nth-child(3n) {
  border-right: 0;
}

.feature-guide-index {
  color: var(--chip-red);
  font: 700 11px/1 var(--display-font);
}

.feature-guide-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.feature-guide-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-guide-card li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.feature-guide-card li strong {
  color: var(--chip-yellow);
  font-size: 10px;
  line-height: 1.55;
  white-space: nowrap;
}

.feature-guide-card li span {
  color: rgba(243, 243, 241, 0.68);
  font-size: 11px;
  line-height: 1.55;
}

.feature-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  color: rgba(243, 243, 241, 0.54);
  background: rgba(8, 9, 10, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  white-space: nowrap;
}

.device-group {
  position: relative;
  min-width: 930px;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.content-scroll > .device-group:last-child {
  border-bottom: 0;
}

.group-header {
  display: grid;
  grid-template-columns: max-content minmax(240px, 1fr) max-content;
  min-height: 54px;
  column-gap: 30px;
  padding: 0 20px;
}

.device-overview {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 20px;
  display: flex;
  width: max-content;
  min-height: 34px;
  max-width: calc(100% - 40px);
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0;
}

.device-workflow-panel > .device-overview {
  display: none;
}

.device-status-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #9aa3b2;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.device-status-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa3b2;
}

.device-status-summary i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
}

.device-status-summary b,
.device-status-summary strong {
  color: currentColor;
  font: 700 13px/1 var(--ui-font);
}

.device-status-summary em {
  color: rgba(255, 255, 255, 0.28);
  font-style: normal;
}

.device-status-summary .summary-online.is-active { color: #2ed6aa; }
.device-status-summary .summary-offline.is-active { color: #9aa3b2; }
.device-status-summary .summary-task.is-active { color: #3b82f6; }
.device-status-summary .summary-error.is-active { color: #ff6464; }
.device-status-summary .summary-token.is-active { color: #ffbc13; }
.device-status-summary .summary-complete.is-active { color: #2ed6a1; }

.device-group.is-expanded .group-header {
  border-bottom: 1px solid var(--line);
}

.group-name {
  display: grid;
  grid-template-columns: max-content max-content;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.group-name h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.group-name > span:last-child {
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.group-commands {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
}

.group-rematch-control {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.group-rematch-options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.group-rematch-control > .command-rematch {
  width: 100%;
}

.group-auto-rematch-toggle {
  display: inline-flex;
  width: 66px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: #c9cdd1;
  background: rgba(24, 27, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font: 700 10px/1 var(--ui-font);
  letter-spacing: 0;
  cursor: pointer;
}

.group-auto-rematch-track {
  position: relative;
  width: 26px;
  height: 14px;
  flex: 0 0 auto;
  background: #666b72;
  border-radius: 7px;
}

.group-auto-rematch-track::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  content: "";
}

.group-auto-rematch-toggle[aria-checked="true"] .group-auto-rematch-track {
  background: #158864;
}

.group-auto-rematch-toggle[aria-checked="true"] .group-auto-rematch-track::after {
  transform: translateX(12px);
}

.group-auto-rematch-toggle:focus-visible {
  outline: 2px solid #ffbc13;
  outline-offset: 2px;
}

.group-auto-rematch-toggle[aria-invalid="true"] {
  border-color: #ff6464;
  color: #ff6464;
}

.group-match-id-window {
  z-index: 4;
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #ffffff;
  background: rgba(24, 27, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font: 700 10px/1 var(--ui-font);
  white-space: nowrap;
}

.group-match-id-window input {
  appearance: textfield;
  width: 64px;
  height: 20px;
  padding: 0 3px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  outline: 0;
  font: 700 11px/1 var(--ui-font);
  letter-spacing: 0;
  text-align: center;
}

.group-match-id-window input::-webkit-inner-spin-button,
.group-match-id-window input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.group-match-id-window input:focus-visible {
  border-color: #ff573a;
  box-shadow: 0 0 0 1px rgba(255, 87, 58, 0.35);
}

.group-command-status {
  display: inline-block;
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  min-height: 16px;
  margin-left: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-command-status[data-state="running"],
.group-command-status[data-state="success"] {
  color: #2ed6aa;
}

.group-command-status[data-state="invalid"],
.group-command-status[data-state="error"] {
  color: #ff6b61;
}

.group-command-button {
  --command-bg: rgba(255, 255, 255, 0.05);
  position: relative;
  height: 38px;
  min-width: 76px;
  padding: 0 14px;
  overflow: hidden;
  color: var(--text);
  background: var(--command-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  cursor: pointer;
  font: 700 11px/1 var(--ui-font);
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 60ms ease-out, transform 60ms ease-out, box-shadow 60ms ease-out;
}

.group-command-button.command-start {
  min-width: 68px;
  color: #111110;
  background: #ff573a;
  border-color: transparent;
  border-radius: 999px;
}

.group-command-button.command-stop {
  min-width: 68px;
  color: #ffffff;
  background: #d84d3a;
  border-color: #ee6752;
}

.group-command-button.command-stop:hover,
.group-command-button.command-stop:focus-visible {
  background: #e65a44;
  border-color: #ff806b;
}

.group-command-button.command-stop[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.group-command-button.command-execute {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgb(20, 20, 20);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: width 300ms ease, min-width 300ms ease, border-radius 300ms ease, background-color 300ms ease;
}

.group-command-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.group-command-button:active,
.group-command-button.is-triggered {
  border-color: #ff573a;
  box-shadow: none;
  transform: translate(5px, 5px);
}

.group-command-button.command-match-test:active,
.group-command-button.command-match-test.is-triggered,
.group-command-button.command-rematch:active,
.group-command-button.command-rematch.is-triggered,
.group-command-button.command-abandon:active,
.group-command-button.command-abandon.is-triggered {
  transform: translate(2.5px, 2.5px);
}

.group-command-button.command-execute::before {
  position: absolute;
  top: -20px;
  content: attr(data-hover-label);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  font-size: 2px;
  white-space: nowrap;
  transition: transform 300ms ease, opacity 300ms ease, font-size 300ms ease;
}

.group-command-button.command-execute svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: width 300ms ease, height 300ms ease, transform 300ms ease;
}

.group-command-button.command-execute:hover,
.group-command-button.command-execute:focus-visible,
.group-command-button.command-execute:active,
.group-command-button.command-execute.is-triggered {
  width: 70px;
  min-width: 70px;
  background: rgb(255, 69, 69);
  border: 0;
  border-radius: 50px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  outline: none;
  transform: none;
}

.group-command-button.command-execute:hover::before,
.group-command-button.command-execute:focus-visible::before,
.group-command-button.command-execute.is-triggered::before {
  font-size: 11px;
  opacity: 1;
  transform: translateY(30px);
}

.group-command-button.command-execute:hover svg,
.group-command-button.command-execute:focus-visible svg,
.group-command-button.command-execute.is-triggered svg {
  width: 14px;
  height: 14px;
  transform: translateY(60%);
}

.group-match-context {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: center;
  gap: 8px;
}

.match-context-button {
  display: inline-flex;
  height: 38px;
  min-width: 116px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(20, 20, 20, 0.58);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  cursor: pointer;
  font: 700 11px/1 var(--ui-font);
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 60ms ease-out, transform 60ms ease-out, box-shadow 60ms ease-out;
}

.match-context-button[data-match-context="map"] {
  min-width: 138px;
}

.match-context-button span {
  color: var(--muted);
}

.match-context-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.match-context-button:active {
  border-color: #ff573a;
  box-shadow: none;
  transform: translate(2.5px, 2.5px);
}

.group-dates {
  justify-self: end;
  gap: 34px;
  color: #ffffff;
}

.group-dates span {
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.group-dates svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.device-table-wrap {
  overflow-x: auto;
  transform: translateX(60px);
}

.team-number-toolbar {
  display: flex;
  width: calc(100% - 60px);
  min-width: 0;
  min-height: 40px;
  margin-left: 60px;
  padding: 5px 18px 5px 28px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: rgba(8, 11, 14, 0.78);
  border-top: 1px solid rgba(46, 214, 161, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-number-title {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.team-number-list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.team-number-button,
.team-number-add,
.team-number-remove {
  display: inline-flex;
  height: 28px;
  padding: 0 10px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.team-number-button span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.team-number-button:hover,
.team-number-add:hover,
.team-number-remove:hover {
  color: #ffffff;
  border-color: rgba(46, 214, 161, 0.62);
}

.team-number-button.is-active {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
}

.team-number-button.is-active span {
  color: rgba(16, 40, 32, 0.66);
}

.team-number-add {
  color: #2ed6a1;
  border-color: rgba(46, 214, 161, 0.48);
}

.team-number-remove {
  width: 28px;
  padding: 0;
  color: #ff7565;
  border-color: rgba(255, 83, 67, 0.42);
}

.team-number-remove:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.table-home-button {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background-color: rgb(20, 20, 20);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s, border-radius 0.3s, background-color 0.3s;
}

.table-home-button[hidden] {
  display: none;
}

.table-home-button::before {
  position: absolute;
  top: -20px;
  content: attr(data-hover-label);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s, font-size 0.3s;
  font-size: 2px;
  white-space: nowrap;
}

.table-home-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: width 0.3s, height 0.3s, transform 0.3s;
}

.table-home-button:hover,
.table-home-button:focus-visible,
.table-home-button:active {
  width: 70px;
  border-radius: 50px;
  background-color: rgb(255, 69, 69);
}

.table-home-button:hover::before,
.table-home-button:focus-visible::before {
  font-size: 11px;
  opacity: 1;
  transform: translateY(30px);
}

.table-home-button:hover svg,
.table-home-button:focus-visible svg {
  width: 14px;
  height: 14px;
  transform: translateY(60%);
}

.device-startup-status {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 58px;
  display: inline-flex;
  width: 64px;
  height: 30px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(226, 231, 237, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-startup-status[hidden] {
  display: none;
}

.device-startup-status.is-processing {
  color: #ffbc13;
}

.device-startup-status.is-done {
  color: #2ed6a1;
}

.device-startup-status.is-failed {
  color: #ed8291;
}

.device-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.col-device { width: 92%; }
.col-status { width: 8%; }

[data-device-workflow-panel="upgrade"] .device-table {
  min-width: 1440px;
}

.device-table th,
.device-table td {
  height: 47px;
  padding: 0 10px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.device-table th:last-child {
  padding-left: 23px;
}

.device-table th:nth-child(n + 2),
.device-table td:nth-child(n + 2) {
  transform: translateX(-30px);
}

.device-table th {
  height: 41px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.device-table th:first-child,
.device-table td:first-child {
  padding-left: 50px;
}

.device-table th > svg {
  width: 14px;
  height: 14px;
}

.device-table td {
  color: #ffffff;
  font-size: var(--device-type-size);
}

.device-table tbody td:first-child {
  position: relative;
  --device-info-width: 270px;
  --device-player-width: 112px;
  --device-account-width: 112px;
  --device-account-gap: 34px;
  --device-column-gap: calc(var(--device-account-gap) * 2 + var(--device-account-width));
  --device-action-left: max(208px, min(calc(50px + var(--device-info-width) + var(--device-column-gap)), calc(100% - 288px)));
}

.device-table thead th:first-child {
  position: relative;
  --device-info-width: 270px;
  --device-player-width: 112px;
  --device-account-width: 112px;
  --device-account-gap: 34px;
  --device-column-gap: calc(var(--device-account-gap) * 2 + var(--device-account-width));
  --device-action-left: max(208px, min(calc(50px + var(--device-info-width) + var(--device-column-gap)), calc(100% - 288px)));
}

.device-account-label {
  position: absolute;
  z-index: 1;
  left: calc(var(--device-action-left) - var(--device-account-gap) - var(--device-account-width) - 20px);
  display: flex;
  width: var(--device-account-width);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-account-label {
  top: 50%;
  color: rgba(239, 241, 244, 0.88);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
}

.device-account-label[role="button"] {
  min-height: 28px;
  border-radius: 4px;
  cursor: pointer;
}

.device-account-label[role="button"]:hover,
.device-account-label[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.device-account-label[role="button"]:focus-visible {
  outline: 1px solid #22cea5;
  outline-offset: 2px;
}

.device-account-menu {
  position: fixed;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  border: 1px solid #565d62;
  border-radius: 6px;
  background: #202629;
  color: #edf0f2;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.device-account-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 8px;
  color: #27d4aa;
  font-weight: 700;
}

.device-account-state-filter {
  min-height: 30px;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid #566067;
  border-radius: 4px;
  color: #dce1e3;
  background: #1a2023;
  font: inherit;
}

.device-account-menu > input {
  min-width: 0;
  min-height: 34px;
  margin: 0 12px 8px;
  padding: 6px 9px;
  border: 1px solid #566067;
  border-radius: 4px;
  background: #171c1f;
  color: inherit;
  font: inherit;
}

.device-account-options {
  min-height: 0;
  max-height: min(360px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.device-account-option {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid #353d42;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.device-account-option > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.device-account-option > span:nth-child(2) {
  white-space: nowrap;
  font-family: Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.device-account-option[aria-pressed="true"] { background: #263e38; }
.device-account-option:enabled:hover,
.device-account-option:focus-visible { background: #36454b; }
.device-account-option:disabled { color: #9da3a7; cursor: not-allowed; }
.device-account-columns { min-height: 30px; color: #aeb7bd; font-size: 12px; cursor: default; }
.device-account-menu-message { padding: 8px 14px; color: #ebc976; overflow-wrap: anywhere; }
.device-account-menu-message:empty { display: none; }

.device-table tbody tr:last-child td {
  border-bottom: 0;
}

.device-primary td {
  color: #ffffff;
  font-size: var(--device-type-size);
}

.fake-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #ffffff;
  border-radius: 2px;
  font-size: 9px;
}

.fake-check.is-checked {
  color: #111110;
  background: #ffffff;
  border-color: #ffffff;
}

.column-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.team-size-control {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.device-role-select + .team-size-control {
  margin-left: 12px;
}

.team-size-control button {
  display: grid;
  width: 22px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 700 11px/1 var(--ui-font);
}

.team-size-control button:hover {
  background: var(--glass-key-bg);
}

.team-size-control button.is-active {
  color: #ffffff;
  background: #3b82f6;
}

.device-role-select {
  display: inline-flex;
  width: 72px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #ffffff;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  cursor: pointer;
  margin-right: -28px;
  transform: translateX(-28px);
}

.device-role-select:hover,
.device-role-select:active {
  background: var(--glass-key-bg);
  border-color: var(--glass-border);
}

.device-role-select .avg-speed-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.device-bulk-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.device-bulk-delivery,
.device-bulk-speed,
.device-bulk-preset,
.device-bulk-identity,
.device-bulk-clear {
  position: relative;
  display: inline-flex;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
}

.device-bulk-delivery {
  width: 40px;
  background: transparent;
  border: 1px solid transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5);
}

.device-bulk-speed {
  width: 50px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.device-bulk-preset {
  width: 132px;
  gap: 7px;
  margin-left: 6px;
  padding: 0 9px;
  justify-content: flex-start;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.device-bulk-identity {
  width: 72px;
  margin-left: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5);
}

.device-bulk-clear {
  width: 64px;
  margin-left: 8px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.device-bulk-speed:hover,
.device-bulk-speed:active,
.device-bulk-preset:hover,
.device-bulk-preset:active,
.device-bulk-clear:hover,
.device-bulk-clear:active {
  background: var(--glass-key-bg);
  border-color: var(--glass-border);
}

.device-bulk-identity:hover,
.device-bulk-identity:focus-visible,
.device-bulk-identity:active {
  background: transparent;
  border-color: transparent;
  outline: none;
}

.device-bulk-controls .avg-speed-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.device-bulk-preset .avg-speed-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  order: -1;
  overflow: hidden;
}

.device-table thead .device-bulk-preset .avg-speed-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}

.device-table thead .device-bulk-preset .avg-speed-label {
  flex: 1;
  text-align: left;
}

.device-bulk-clear span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.upgrade-target-control {
  display: inline-flex;
  width: 226px;
  height: 30px;
  flex: 0 0 226px;
  margin-left: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.upgrade-target-control input {
  width: 36px;
  height: 22px;
  padding: 0 2px;
  color: #ffffff;
  background: rgba(10, 14, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  outline: none;
  font: 700 12px/1 "Cascadia Mono", Consolas, monospace;
  text-align: center;
}

.upgrade-target-control.upgrade-timing-control {
  margin-left: 8px;
  gap: 4px;
}

.upgrade-close-delay-control {
  width: 148px;
  flex-basis: 148px;
}

.upgrade-abandon-lead-control {
  width: 142px;
  flex-basis: 142px;
}

.upgrade-rematch-delay-control {
  width: 166px;
  flex-basis: 166px;
}

.upgrade-rematch-delay-control input {
  width: 40px;
}

.upgrade-timing-control input {
  width: 32px;
}

.upgrade-target-control:focus-within,
.upgrade-target-control[data-state="editing"] {
  border-color: rgba(255, 185, 0, 0.72);
}

.upgrade-target-control[data-state="saving"] {
  opacity: 0.68;
}

.upgrade-target-control[data-state="saved"] {
  border-color: rgba(46, 214, 161, 0.72);
}

.upgrade-target-control[data-state="error"] {
  border-color: rgba(255, 87, 58, 0.82);
}

.device-bulk-preset .avg-speed-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.device-name {
  min-width: 0;
  width: var(--device-info-width, 180px);
  flex: 0 0 var(--device-info-width, 180px);
  justify-content: flex-start;
  gap: 12px;
}

.device-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-tag {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-height: 1.75em;
  padding: 0.28em 0.78em 0.28em 1.35em;
  flex: 0 0 auto;
  align-items: center;
  color: #171717;
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1;
  background: #FF8811;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.device-party-count {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  color: #2ed6a1;
  font: 800 14px/1 "Cascadia Mono", Consolas, monospace;
}

.device-party-count[data-state="unknown"] {
  color: rgba(255, 255, 255, 0.5);
}

.device-party-count[data-state="stale"] {
  color: #f4d06f;
}

.device-party-count.is-placeholder {
  visibility: hidden;
}

.team-tag::before {
  content: "";
  position: absolute;
  left: 0.48em;
  width: 0.48em;
  height: 0.48em;
  background: rgba(20, 20, 20, 0.64);
  border-radius: 50%;
}

.team-tag-01 { background: #FF8811; }
.team-tag-02 { background: #75C3D1; }
.team-tag-03 { background: #DDD2FF; }
.team-tag-04 { background: #D44D5C; }
.team-tag-05 { background: #F4D06F; }
.team-tag-06 { background: #75D1B7; }
.team-tag-07 { background: #F6B6B7; }

.team-tag-placeholder {
  visibility: hidden;
  box-shadow: none;
}

.leader-flag {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 1.2em;
  align-items: center;
  justify-content: center;
  color: #FF8811;
  font-family: Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
}

.leader-flag.team-color-01 { color: #FF8811; }
.leader-flag.team-color-02 { color: #75C3D1; }
.leader-flag.team-color-03 { color: #DDD2FF; }
.leader-flag.team-color-04 { color: #D44D5C; }
.leader-flag.team-color-05 { color: #F4D06F; }
.leader-flag.team-color-06 { color: #75D1B7; }
.leader-flag.team-color-07 { color: #F6B6B7; }

.leader-flag-placeholder {
  visibility: hidden;
}

.player-strip {
  position: relative;
  display: inline-flex;
  width: var(--device-player-width, 112px);
  min-width: var(--device-player-width, 112px);
  max-width: var(--device-player-width, 112px);
  flex: 0 0 var(--device-player-width, 112px);
  margin-right: auto;
  align-items: stretch;
  overflow: hidden;
  color: #EEEDE9;
  font-size: var(--device-type-size);
  line-height: 1;
}

.player-strip-shape {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.player-strip-shape path {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.player-strip.team-color-01 { --player-team-color: #FF8811; }
.player-strip.team-color-02 { --player-team-color: #75C3D1; }
.player-strip.team-color-03 { --player-team-color: #DDD2FF; }
.player-strip.team-color-04 { --player-team-color: #D44D5C; }
.player-strip.team-color-05 { --player-team-color: #F4D06F; }
.player-strip.team-color-06 { --player-team-color: #75D1B7; }
.player-strip.team-color-07 { --player-team-color: #F6B6B7; }

.player-name {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 1.8em;
  padding: 0.18em 0.65em;
  align-items: center;
  justify-content: center;
  color: #111111;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}

.player-name {
  font-weight: 700;
}

.player-name {
  font-family: var(--display-font);
}

.player-name.player-copy {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: copy;
  user-select: text;
  -webkit-user-select: text;
}

.player-name.player-copy:not([data-token-present="true"]) {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.player-name {
  min-width: 0;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name.player-copy,
.player-name.player-copy:hover,
.player-name.player-copy:focus-visible,
.player-name.player-copy:active {
  color: #EEEDE9;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  transform: none;
}

body[data-device-state="initializing"] .device-table tbody {
  visibility: hidden;
}

.avg-speed-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--device-action-left, max(208px, calc(100% - 284px)));
  display: flex;
  width: 132px;
  height: 38px;
  flex: 0 0 132px;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  overflow: hidden;
  color: var(--text);
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.avg-speed-button::before {
  content: none;
}

.device-table .avg-speed-button-light {
  left: calc(var(--device-action-left, max(208px, calc(100% - 326px))) + 42px);
  width: 50px;
  height: 30px;
  flex-basis: 50px;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: var(--text);
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
  border-width: 1px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
}

.device-table .avg-speed-button-light:hover,
.device-table .avg-speed-button-light:active {
  color: var(--text);
  background: var(--glass-key-bg);
  border-color: var(--glass-border);
}

.device-table .avg-speed-button-light .avg-speed-label {
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.device-table .avg-speed-button-light[data-speed-choice="hang"],
.device-table .avg-speed-button-light[data-speed-choice="hang"]:hover,
.device-table .avg-speed-button-light[data-speed-choice="hang"]:active {
  background: #6C6E7F;
  border-color: #6C6E7F;
}

.device-table .avg-speed-button-light .avg-speed-icon {
  display: none;
}

.device-table .device-delivery-button {
  left: var(--device-action-left, max(208px, calc(100% - 326px)));
  width: 40px;
  height: 30px;
  flex-basis: 40px;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.device-table .device-delivery-button:hover,
.device-table .device-delivery-button:active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}

.device-table .device-delivery-button .avg-speed-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.device-table .device-delivery-button .avg-speed-icon {
  display: none;
}

.device-table .avg-speed-button-primary {
  left: calc(var(--device-action-left, 208px) + 98px);
}

.avg-speed-button:hover {
  background: var(--glass-key-bg);
  border-color: var(--glass-border);
  transform: translateY(-50%);
}

.avg-speed-button:active {
  background: var(--glass-control-bg);
  transform: translateY(-50%);
}

.device-speed-menu {
  position: fixed;
  z-index: 10000;
  display: flex;
  width: 112px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  color: #ffffff;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22), 0 3px 14px var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}

.device-speed-menu[data-menu-type="start-mode"] {
  width: auto;
  min-width: 0;
  flex-direction: row;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.device-speed-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.device-speed-menu.is-flipped {
  transform: translateY(6px);
}

.device-speed-menu.is-flipped.is-open {
  transform: translateY(0);
}

.device-speed-option {
  display: flex;
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  align-items: center;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.device-speed-option:hover,
.device-speed-option:focus-visible,
.device-speed-option[aria-selected="true"] {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
  outline: none;
}

.startup-device-anchor {
  position: relative;
  width: 100%;
}

.startup-device-anchor::after {
  position: absolute;
  top: 0;
  left: 100%;
  width: 7px;
  height: 100%;
  content: "";
}

.startup-device-anchor.opens-left::after {
  right: 100%;
  left: auto;
}

.startup-device-menu {
  position: absolute;
  top: -5px;
  left: calc(100% + 7px);
  z-index: 1;
  display: flex;
  width: max-content;
  min-width: 144px;
  max-width: min(224px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 16px));
  box-sizing: border-box;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  overflow-y: auto;
  color: var(--text-primary);
  background: rgba(21, 26, 31, 0.98);
  border: 1px solid var(--glass-control-border);
  border-radius: 5px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}

.startup-device-anchor.opens-left .startup-device-menu {
  right: calc(100% + 7px);
  left: auto;
  transform: translateX(4px);
}

.startup-device-anchor.is-open .startup-device-menu,
.startup-device-anchor:focus-within .startup-device-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.startup-device-option {
  display: block;
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.startup-device-option:hover,
.startup-device-option:focus-visible,
.startup-device-option[aria-checked="true"] {
  color: #ffbc13;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
  outline: none;
}

.startup-device-option:disabled {
  color: rgba(255, 255, 255, 0.34);
  cursor: default;
}

.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="start"],
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="start"]:hover,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="start"]:focus-visible,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="start"][aria-selected="true"] {
  color: #ffbc13;
}

.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="complete"],
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="complete"]:hover,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="complete"]:focus-visible,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="complete"][aria-selected="true"] {
  color: #32d6a6;
}

.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="leave"],
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="leave"]:hover,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="leave"]:focus-visible,
.device-speed-menu[data-menu-type="execute-action"] .device-speed-option[data-speed-choice="leave"][aria-selected="true"] {
  color: #ff6464;
}

.device-speed-menu[data-menu-type="start-mode"] .device-speed-option {
  width: 72px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  color: #000000;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="group"],
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="group"]:hover,
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="group"]:focus-visible,
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="group"][aria-selected="true"] {
  color: #000000;
  background: #3b82f6;
  border-color: #3b82f6;
}

.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="single"],
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="single"]:hover,
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="single"]:focus-visible,
.device-speed-menu[data-menu-type="start-mode"] .device-speed-option[data-speed-choice="single"][aria-selected="true"] {
  color: #000000;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.82);
}

.device-table .avg-speed-button-primary.preset-button {
  gap: 7px;
  padding: 6px 9px;
}

.device-table .preset-button .avg-speed-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-table .preset-button .avg-speed-icon.is-empty {
  color: transparent;
}

.device-table .preset-button .avg-speed-icon.has-preset-item {
  background: var(--preset-rarity, #646c7d);
  background: color-mix(in srgb, var(--preset-rarity, #646c7d) 42%, #151a28);
  border: 2px solid var(--preset-rarity, #646c7d);
}

.device-table .preset-button .avg-speed-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.device-table .preset-button .avg-speed-icon svg {
  width: 15px;
  height: 15px;
}

.device-table .preset-button .avg-speed-label {
  font-size: 11px;
  text-align: center;
}

.preset-rarity-common { --preset-rarity: #646c7d; }
.preset-rarity-uncommon { --preset-rarity: #26bf57; }
.preset-rarity-rare { --preset-rarity: #0ba8e8; }
.preset-rarity-epic { --preset-rarity: #c42d8f; }
.preset-rarity-legendary { --preset-rarity: #e3a90c; }

.device-preset-menu {
  position: fixed;
  z-index: 10001;
  display: flex;
  width: 286px;
  max-height: min(420px, calc(100vh - 16px));
  box-sizing: border-box;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  overflow: auto;
  color: #ffffff;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 3px 14px var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}

.device-preset-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.device-preset-menu.is-flipped {
  transform: translateY(6px);
}

.device-preset-menu.is-flipped.is-open {
  transform: translateY(0);
}

.device-preset-heading {
  padding: 3px 6px 7px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.device-preset-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.device-preset-option-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 4px;
}

.device-preset-option-row > .device-preset-option {
  min-width: 0;
  flex: 1;
}

.device-preset-delete {
  display: grid;
  width: 34px;
  min-height: 42px;
  flex: 0 0 34px;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.device-preset-delete:hover,
.device-preset-delete:focus-visible {
  color: #ffffff;
  background: rgba(255, 87, 58, 0.18);
  border-color: rgba(255, 87, 58, 0.52);
  outline: none;
}

.device-preset-option:hover,
.device-preset-option:focus-visible,
.device-preset-option[aria-selected="true"] {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
  outline: none;
}

.device-preset-option-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  overflow: hidden;
  color: #2f84ee;
  background: #30292a;
  border-radius: 50%;
}

.device-preset-option-icon.has-preset-item {
  background: var(--preset-rarity, #646c7d);
  background: color-mix(in srgb, var(--preset-rarity, #646c7d) 42%, #151a28);
  border: 2px solid var(--preset-rarity, #646c7d);
}

.device-preset-option-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.device-preset-option-icon svg {
  width: 15px;
  height: 15px;
}

.device-preset-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.device-preset-option-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-preset-option-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-preset-empty {
  margin: 5px 6px 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.4;
}

.avg-speed-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  color: #2f84ee;
  background: #30292a;
  border-radius: 50%;
  box-shadow: none;
}

.avg-speed-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.avg-speed-label {
  min-width: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-square-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-action-left, 344px) + 234px);
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: rgba(255, 248, 235, 0.15);
  border: 1px solid var(--glass-control-border);
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.home-square-button:hover {
  background: rgba(255, 248, 235, 0.15);
  border-color: var(--glass-border);
}

.home-square-button:active {
  background: rgba(255, 248, 235, 0.15);
}

.home-square-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.device-row-timer {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-action-left, 344px) + 174px);
  transform: translate(-100%, -50%);
}

.device-row-timer,
.device-activity-duration {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.device-activity-duration {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--device-action-left, 344px);
  display: none;
  width: 76px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.device-activity-duration[data-source] {
  display: block;
}

.device-activity-duration[data-completion="complete"] {
  color: #2ed6a1;
  text-shadow: 0 0 10px rgba(46, 214, 161, 0.24);
}

.device-token-status {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-action-left, 344px) + 332px);
  display: inline-flex;
  width: 54px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: rgba(226, 231, 237, 0.48);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 120ms ease, text-shadow 120ms ease;
}

.device-token-status.is-loaded {
  color: #32d6a6;
  text-shadow: 0 0 10px rgb(50 214 166 / 24%);
}

.device-token-status.is-expiring {
  color: #ad7b80;
  text-shadow: 0 0 10px rgb(173 123 128 / 22%);
}

.device-token-status.is-unloaded {
  color: rgba(226, 231, 237, 0.48);
  text-shadow: none;
}

.device-token-status.is-invalid {
  color: #ffbc13;
  text-shadow: 0 0 10px rgb(255 188 19 / 24%);
}

.device-identity-status {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-action-left, 344px) + 400px);
  display: inline-flex;
  width: 72px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: rgba(226, 231, 237, 0.72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.device-identity-status:hover,
.device-identity-status:focus-visible,
.device-identity-status:active {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  outline: none;
}

.device-identity-status[data-speed-choice="execute"] {
  background: #6C6E7F;
  border-color: #6C6E7F;
}

.device-identity-status[data-speed-choice="execute"]:hover,
.device-identity-status[data-speed-choice="execute"]:focus-visible,
.device-identity-status[data-speed-choice="execute"]:active {
  background: #6C6E7F;
  border-color: #6C6E7F;
}

.device-identity-status .avg-speed-label {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.device-match-progress {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 38px;
  left: calc(var(--device-action-left, 344px) + 502px);
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(226, 231, 237, 0.72);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 30px;
  pointer-events: none;
  text-align: left;
  text-overflow: ellipsis;
  text-shadow: none;
  transform: translateY(-50%);
  transition: color 120ms ease, text-shadow 120ms ease;
  white-space: nowrap;
}

.device-match-progress.is-preparing {
  color: #ffbc13;
  text-shadow: none;
}

.device-match-progress.is-matching {
  color: #17b8d4;
  text-shadow: none;
}

.device-match-progress.is-found {
  color: #32d6a6;
  text-shadow: none;
}

.device-match-progress.is-cancelling,
.device-match-progress.is-abandoning,
.device-match-progress.is-rematching {
  color: #ffbc13;
}

.device-match-progress.is-failed {
  color: #ed8291;
}

.device-match-progress[data-team-error] {
  padding-right: 20px;
  pointer-events: auto;
}

.device-match-progress[data-team-error]::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #ed8291;
  content: "!";
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .avg-speed-button,
  .home-square-button,
  .device-token-status,
  .device-identity-status,
  .device-match-progress,
  .table-home-button,
  .table-home-button::before,
  .table-home-button svg {
    transition: none;
  }
}

.member-flag {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 1.2em;
  color: var(--player-team-color, #FF8811);
}

.member-flag.team-color-01 { color: #FF8811; }
.member-flag.team-color-02 { color: #75C3D1; }
.member-flag.team-color-03 { color: #DDD2FF; }
.member-flag.team-color-04 { color: #D44D5C; }
.member-flag.team-color-05 { color: #F4D06F; }
.member-flag.team-color-06 { color: #75D1B7; }
.member-flag.team-color-07 { color: #F6B6B7; }

.checkbox-wrapper {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  overflow: visible;
}

.checkbox-wrapper *,
.checkbox-wrapper ::after,
.checkbox-wrapper ::before {
  box-sizing: border-box;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-wrapper .label {
  display: block;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.checkbox-wrapper .label svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.checkbox-wrapper .label svg rect {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  transform: scale(0.6667);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.checkbox-wrapper .path1 {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
  transition: 0.5s stroke-dashoffset, 0.15s opacity;
}

.checkbox-wrapper .minus-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.8;
  stroke-linecap: round;
  opacity: 1;
}

.checkbox-wrapper .check:checked + .label .minus-path {
  opacity: 0;
}

.checkbox-wrapper .check:checked + .label svg g .path1 {
  stroke-dashoffset: 0;
  opacity: 1;
}

.device-table .checkbox-wrapper .check:checked + .label {
  color: #ffffff;
}

.checkbox-wrapper .check:focus-visible + .label {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}

.row-tools {
  flex: 0 0 auto;
  gap: 15px;
  padding-right: 8px;
}

.row-tools svg,
.row-comment {
  width: 14px;
  height: 14px;
}

.signal-bars {
  display: flex;
  height: 15px;
  align-items: flex-end;
  gap: 2px;
}

.signal-bars i {
  display: block;
  width: 3px;
  background: #ffffff;
  border-radius: 1px;
}

.signal-bars i:nth-child(1) { height: 5px; }
.signal-bars i:nth-child(2) { height: 9px; }
.signal-bars i:nth-child(3) { height: 13px; }
.signal-bars.is-warning i:nth-child(3) { background: rgba(255, 255, 255, 0.35); }

.tree-item {
  position: relative;
  min-height: 47px;
  gap: 12px;
  padding-left: 0;
  color: #ffffff;
  font-size: var(--device-type-size);
}

.tree-item::before { content: none; }

.status-mark {
  gap: 6px;
  width: 100%;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.status-mark.is-warning {
  color: #ffffff;
}

.status-mark::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-mark.status-online {
  color: #2dd4a8;
}

.status-mark.status-offline {
  color: #9aa3b2;
}

.status-mark.status-error {
  color: #ff6464;
}

.status-mark.status-switching {
  color: #ffbc13;
}

.status-mark.status-kicked {
  color: #3b82f6;
}

.add-row {
  width: 100%;
  min-height: 45px;
  padding: 0;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.add-team-button,
.remove-team-button,
.clear-team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 700;
  transition: color 90ms ease, opacity 90ms ease;
}

.add-team-button:hover,
.remove-team-button:hover,
.clear-team-button:hover {
  color: #ff573a;
}

.add-team-button:active,
.remove-team-button:active,
.clear-team-button:active {
  color: #ff573a;
}

.add-team-button.is-added span {
  color: #111110;
  background: #ffffff;
}

.add-team-button span,
.remove-team-button span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 10px;
}

.remove-team-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.team-count-input {
  width: 38px;
  height: 24px;
  padding: 0 5px;
  color: #ffffff;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  outline: 0;
  text-align: center;
  font: 700 11px/1 var(--ui-font);
  appearance: textfield;
}

.team-count-input::-webkit-inner-spin-button,
.team-count-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.team-count-input:focus {
  border-color: #ffffff;
}

.clear-team-button {
  margin-left: 2px;
}

.clear-team-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.device-group.is-collapsed .group-header {
  min-height: 53px;
}

.main-footer {
  grid-row: 2;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: var(--glass-control-bg);
  color: var(--muted);
  font-size: 9px;
}

.footer-pager {
  position: relative;
  gap: 7px;
}

.footer-pager > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.footer-pager > button.is-current {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.footer-pager[data-mode="scroll"] > button {
  opacity: 0.38;
}

.footer-pager > button:disabled {
  cursor: default;
}

.list-mode-switch {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  box-shadow: 0 3px 10px var(--glass-control-shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  transform: translateY(-50%);
}

.list-mode-switch button {
  min-width: 40px;
  height: 28px;
  padding: 0 7px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.list-mode-switch button.is-active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.footer-tools {
  gap: 7px;
}

.footer-tools > span {
  min-width: 130px;
  padding: 0 12px;
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
}

.footer-tools button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.footer-tools svg {
  width: 16px;
  height: 16px;
}
