@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: none;
  --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="industrial"] {
  --wallpaper-image: url("./assets/industrial-room-v2.webp");
}

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);
}

/* Hidden retained views do not fetch or paint their background. */
html[data-workspace-visible="false"] .dashboard-shell {
  background-image: none;
}

.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%);
}

.hook-navigation-controls {
  zoom: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  background: rgb(24 25 27 / var(--glass-toolbar));
}

.hook-navigation-controls .hook-navigation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--chip-black);
  background: rgb(187 187 187 / var(--glass-toolbar));
  font: 700 13px/1 var(--ui-font);
  white-space: nowrap;
  cursor: pointer;
}

.hook-navigation-controls .hook-navigation-button.is-active {
  color: var(--chip-paper);
  background: rgb(32 32 32 / var(--glass-toolbar));
}

.hook-navigation-controls .hook-navigation-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.hook-navigation-controls .hook-navigation-button:focus-visible {
  outline: 2px solid var(--chip-paper);
  outline-offset: 2px;
}

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

.device-account-modes {
  position: absolute;
  z-index: 5;
  top: 92px;
  left: 50%;
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--glass-control-border);
  border-radius: 999px;
  background: rgb(24 25 27 / var(--glass-toolbar));
  transform: translateX(-50%);
}

.device-account-modes[hidden] {
  display: none !important;
}

.device-account-mode {
  height: 24px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--chip-black);
  background: rgb(187 187 187 / var(--glass-toolbar));
  font: 700 10px/1 var(--ui-font);
  cursor: pointer;
}

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

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

.device-account-label[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  opacity: .65;
}

.workspace-window.is-workflow-tabs-open.has-account-mode-controls .content-scroll {
  padding-top: 128px;
}

.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: visible;
  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 {
  position: relative;
  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 {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 4;
  display: inline-block;
  width: min(520px, 100%);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 16px;
  margin-left: 0;
  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: transform 120ms ease-out;
}

.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 {
  content: none;
}

.group-command-button.command-execute svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: none;
}

.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: 30px;
  min-width: 30px;
  background: rgb(20, 20, 20);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  outline: none;
  transform: scale(1.5);
}

.group-command-button.command-execute:hover::before,
.group-command-button.command-execute:focus-visible::before,
.group-command-button.command-execute.is-triggered::before {
  content: none;
}

.group-command-button.command-execute:hover svg,
.group-command-button.command-execute:focus-visible svg,
.group-command-button.command-execute.is-triggered svg {
  width: 12px;
  height: 12px;
  transform: none;
}

.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: transform 120ms ease-out;
}

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

.table-home-button::before {
  content: none;
}

.table-home-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: none;
}

.table-home-button:hover,
.table-home-button:focus-visible,
.table-home-button:active {
  width: 30px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  transform: scale(1.5);
}

.table-home-button:hover::before,
.table-home-button:focus-visible::before {
  content: none;
}

.table-home-button:hover svg,
.table-home-button:focus-visible svg {
  width: 12px;
  height: 12px;
  transform: none;
}

.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: 1400px;
  border-collapse: collapse;
  table-layout: fixed;
}

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

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

.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-note-width: 132px;
  --device-note-space: 168px;
  --device-account-anchor: calc(50px + var(--device-info-width) + var(--device-column-gap));
  --device-action-left: calc(var(--device-account-anchor) + var(--device-note-space));
}

.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-note-width: 132px;
  --device-note-space: 168px;
  --device-account-anchor: calc(50px + var(--device-info-width) + var(--device-column-gap));
  --device-action-left: calc(var(--device-account-anchor) + var(--device-note-space));
}

.device-account-label {
  position: absolute;
  z-index: 1;
  left: calc(var(--device-account-anchor) - var(--device-account-gap) - var(--device-account-width) - 20px);
  display: flex;
  width: var(--device-account-width);
  align-items: center;
  justify-content: center;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.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-row-note-input {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-account-anchor) - var(--device-account-gap) - 8px);
  width: var(--device-note-width);
  height: 28px;
  box-sizing: border-box;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-bottom-color: rgba(226, 231, 237, 0.2);
  border-radius: 4px;
  background: transparent;
  color: rgba(239, 241, 244, 0.88);
  font-family: var(--ui-font);
  font-size: 12px;
  text-overflow: ellipsis;
  transform: translateY(-50%);
}
.device-row-note-input::placeholder { color: rgba(226, 231, 237, 0.42); }
.device-row-note-input:hover:not(:disabled) { background: rgba(255, 255, 255, 0.04); }
.device-row-note-input:focus {
  outline: none;
  border-color: #22cea5;
  background: rgba(16, 23, 27, 0.65);
}
.device-row-note-input:disabled { visibility: hidden; }
.device-row-note-input[aria-invalid="true"] { border-color: #ed8291; }

.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(720px, 100dvh);
  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-account-menu.is-manual {
  width: min(600px, calc(100vw - 16px));
}

.device-account-menu.is-manual .device-account-option {
  grid-template-columns: minmax(0, 1.6fr) 76px minmax(0, 1fr) 68px;
}

.device-account-reason {
  display: block;
  margin-top: 3px;
  color: #dca7a7;
  font-size: 11px;
  white-space: normal;
}

.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;
}

.column-title > .add-row {
  margin-left: 0;
  padding: 2px 6px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.column-title > .add-row .add-row-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.column-title > .add-row .team-count-input {
  width: 28px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.column-title > .add-row .add-team-button,
.column-title > .add-row .remove-team-button,
.column-title > .add-row .clear-team-button {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.column-title > .add-row .add-team-button:hover,
.column-title > .add-row .remove-team-button:hover,
.column-title > .add-row .clear-team-button:hover,
.column-title > .add-row .add-team-button:active,
.column-title > .add-row .remove-team-button:active,
.column-title > .add-row .clear-team-button:active {
  color: #ffffff;
}

.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-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-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-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 .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.is-selected-elsewhere,
.startup-device-option.is-selected-elsewhere:hover,
.startup-device-option.is-selected-elsewhere:focus-visible {
  color: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.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[data-preset-verification="verified"] {
  background: rgba(36, 151, 110, 0.16);
  border-color: rgba(85, 215, 164, 0.5);
}

.device-table .preset-button[data-preset-verification="verified"] .avg-speed-label {
  color: #61d8ae;
}

.device-table .preset-button[data-preset-verification="failed"] {
  background: rgba(205, 117, 117, 0.14);
  border-color: rgba(225, 151, 151, 0.45);
}

.device-table .preset-button[data-preset-verification="failed"] .avg-speed-label {
  color: #edaaaa;
}

.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,
.device-match-progress.is-rematching {
  max-width: 148px;
  height: 30px;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  background: linear-gradient(rgba(50, 214, 166, 0.16), rgba(50, 214, 166, 0.16)) left center / 100% 6px no-repeat;
}

.device-match-progress.is-preparing::before,
.device-match-progress.is-rematching::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--match-preparation-scale, 0.05));
  height: 6px;
  border-radius: 3px;
  background: #32d6a6;
  content: "";
  transition: 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-found[data-green-team-match="true"] {
  color: #58a6ff;
}

.device-match-progress.is-cancelling,
.device-match-progress.is-abandoning {
  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,
  .device-match-progress::before,
  .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 {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  margin-left: 24px;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.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;
}


.has-account-libraries .device-account-menu-heading {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.device-account-library-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 4px;
}
.device-account-library-tab {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #b7c1c5;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.device-account-library-tab:hover {
  background: #2b3539;
  color: #edf0f2;
}
.device-account-library-tab.is-active {
  border-color: #2b947d;
  background: #234239;
  color: #50dfbc;
}
.device-account-library-tab:focus-visible {
  outline: 2px solid #73e5c9;
  outline-offset: 1px;
}
.has-account-libraries .device-account-state-filter {
  flex: 0 0 auto;
  min-width: 98px;
  min-height: 32px;
  margin-left: 4px;
}

/* Manual navigation selection lives in the existing team-tag dot. */
.team-tag[data-hook-navigation-toggle="true"][aria-disabled="false"] {
  cursor: pointer;
  user-select: none;
}

.team-tag[data-hook-navigation-toggle="true"][aria-disabled="false"]:focus-visible {
  outline: 2px solid #20e49b;
  outline-offset: 3px;
}

.team-tag[data-hook-navigation-toggle="true"][aria-pressed="true"]::before {
  background: #16f28d;
  box-shadow: 0 0 0 1.5px rgba(0, 65, 38, 0.75), 0 0 7px rgba(22, 242, 141, 0.55);
}

/* Shared configuration categories; loadout contents and assignments stay separate. */
.device-preset-menu.has-preset-categories { width: min(420px, calc(100vw - 16px)); overflow: hidden; }
.device-preset-categories { display: flex; gap: 4px; flex: 0 0 auto; overflow-x: auto; padding: 3px 0; }
.device-preset-category-tab, .device-preset-category-add, .device-preset-category-editor button {
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); border-radius: 5px;
  padding: 7px 10px; background: rgba(255,255,255,.05); color: #d5dadc; cursor: pointer; white-space: nowrap;
}
.device-preset-category-tab[aria-pressed="true"] { background: #20c9a0; border-color: #20c9a0; color: #10201c; }
.device-preset-category-tab.is-drop-target { outline: 2px solid #7aefd1; outline-offset: -2px; background: #237c68; color: white; }
.device-preset-category-editor { display: flex; gap: 5px; flex: 0 0 auto; }
.device-preset-category-editor input { flex: 1; min-width: 0; padding: 7px; color: white; background: #20272b; border: 1px solid #52615d; border-radius: 5px; }
.device-preset-category-hint { flex: 0 0 auto; padding: 3px 5px; font-size: 11px; color: #a2b1ab; }
.device-preset-category-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.device-preset-category-items .device-preset-option-row { user-select: none; -webkit-user-select: none; touch-action: none; }
.device-preset-category-items .is-preset-dragging { opacity: .45; }
.device-preset-category-empty { color: #a2b1ab; padding: 12px; text-align: center; }
.device-preset-category-editor[hidden], .device-preset-category-empty[hidden], .device-preset-option-row[hidden] { display: none !important; }
.device-preset-drag-ghost { position: fixed; z-index: 11000; pointer-events: none; padding: 9px 14px; border: 1px solid #60dec0; border-radius: 6px; background: #233d35; color: #fff; box-shadow: 0 8px 20px #0006; }

/* Compact pointer-position category context menu. */
.device-preset-category-context { position: fixed; z-index: 11001; display: block; min-width: 76px; box-sizing: border-box; padding: 4px; border: 1px solid #52615d; border-radius: 5px; background: #20272b; box-shadow: 0 5px 16px #0006; }
.device-preset-category-context[hidden] { display: none !important; }
.device-preset-category-context button { display: block; width: 100%; padding: 6px 14px; border: 0; border-radius: 3px; background: transparent; color: #ff8178; cursor: pointer; white-space: nowrap; font-size: 13px; }
.device-preset-category-context button:hover, .device-preset-category-context button:focus-visible { background: #653730; outline: none; }

/* Manual commands wrap within their track without moving match selectors. */
.workspace-window[data-account-selection-mode="manual"] .group-header {
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  column-gap: 16px;
  row-gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.workspace-window[data-account-selection-mode="manual"] .group-commands { flex-wrap: wrap; row-gap: 8px; }
.workspace-window[data-account-selection-mode="manual"] .group-commands > * { flex-shrink: 0; }
.workspace-window[data-account-selection-mode="manual"] .group-command-status { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.workspace-window[data-account-selection-mode="manual"] .group-command-status:empty { display: none; }
.workspace-window[data-account-selection-mode="manual"] .group-match-context { justify-self: end; flex-shrink: 0; }
.workspace-window[data-account-selection-mode="manual"] .match-context-button { flex-shrink: 0; }
.workspace-window[data-account-selection-mode="manual"] .group-dates { max-width: 240px; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 1100px) {
  .workspace-window[data-account-selection-mode="manual"] .group-header { grid-template-columns: minmax(0, 1fr) max-content; }
  .workspace-window[data-account-selection-mode="manual"] .group-dates { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 680px) {
  .workspace-window[data-account-selection-mode="manual"] .group-header { grid-template-columns: minmax(0, 1fr); }
  .workspace-window[data-account-selection-mode="manual"] .group-match-context { grid-column: 1; }
}

/* Restricted accounts: hidden before the session finishes loading. */
html:not([data-full-feature-access="true"]) [data-device-workflow-tab="transfer"],
html:not([data-full-feature-access="true"]) [data-device-workflow-tab="upgrade"],
html:not([data-full-feature-access="true"]) [data-device-workflow-panel="transfer"],
html:not([data-full-feature-access="true"]) [data-device-workflow-panel="upgrade"],
html:not([data-full-feature-access="true"]) [data-device-account-modes],
html:not([data-full-feature-access="true"]) [data-hook-navigation],
html:not([data-full-feature-access="true"]) [data-account-action="create-account"],
html:not([data-full-feature-access="true"]) [data-account-category="idle"],
html:not([data-full-feature-access="true"]) [data-account-category="cycle"],
html:not([data-full-feature-access="true"]) [data-account-import-category="idle"],
html:not([data-full-feature-access="true"]) [data-account-import-category="cycle"] { display: none !important; }
html:not([data-site-authenticated="true"]) [data-device-binding-entry],
html:not([data-site-authenticated="true"]) .au-open,
html:not([data-site-authenticated="true"]) .au-dialog,
html:not([data-full-feature-access="true"]) .au-download { display: none !important; }

html:not([data-full-feature-access="true"]) [data-device-workflow-tab="evacuation"],
html:not([data-full-feature-access="true"]) [data-device-workflow-panel="evacuation"] { display: none !important; }
[data-device-workflow-panel="evacuation"] [data-device-command]:disabled,
[data-device-workflow-panel="evacuation"] .table-home-button:disabled,
[data-device-workflow-panel="evacuation"] [data-device-regroup]:disabled { opacity: .45; cursor: default; }

/* Slot targets persist independently of the formation-wide count override. */
[data-device-workflow-panel="evacuation"] .evacuation-row-target {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(var(--device-action-left, 344px) - 124px);
  display: inline-flex; align-items: center; gap: 4px;
  color: #d7e2e7; font-size: 12px; z-index: 3;
}
[data-device-workflow-panel="evacuation"] .evacuation-row-target[hidden] { display: none; }
[data-device-workflow-panel="evacuation"] .evacuation-row-target input {
  width: 57px; height: 28px; box-sizing: border-box; border: 1px solid #64716e;
  border-radius: 4px; background: #252b31; color: #fff; padding: 3px 4px;
}
/* Evacuation count and level are independent of upgrade activity duration. */
[data-device-workflow-panel="evacuation"] .evacuation-progress { display: none; }
[data-device-workflow-panel="evacuation"] .evacuation-count {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--device-action-left, 344px) - 40px);
  width: 134px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--color-accent, #1ccba5);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%);
}
[data-device-workflow-panel="evacuation"] .upgrade-target-control select { background: transparent; color: inherit; border: 1px solid #64716e; border-radius: 5px; padding: 4px 8px; }
[data-device-workflow-panel="evacuation"] .evacuation-account-level { color: #d7e2e7; font-size: 11px; }
[data-device-workflow-panel="evacuation"] .evacuation-target-control { width: 226px; flex-basis: 226px; }
[data-device-workflow-panel="evacuation"] .evacuation-target-control input { width: 48px; }
[data-device-workflow-panel="evacuation"] .evacuation-level-control { width: 190px; flex-basis: 190px; }
[data-device-workflow-panel="evacuation"] .evacuation-level-control input { width: 36px; }
[data-device-workflow-panel="evacuation"] .evacuation-target-control input:disabled { opacity: .45; }
.evacuation-goal-toggle { position: relative; flex: 0 0 26px; width: 26px; height: 14px; border: 0; border-radius: 8px; background: #626b71; cursor: pointer; padding: 0; }
.evacuation-goal-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .12s; }
.evacuation-goal-toggle[aria-checked="true"] { background: #159d77; }
.evacuation-goal-toggle[aria-checked="true"]::after { transform: translateX(12px); }
.evacuation-goal-toggle:focus-visible { outline: 2px solid #ffbf00; outline-offset: 3px; }
.evacuation-goal-toggle:disabled { opacity: .45; cursor: default; }

/* Stopped accounts remain distinct from pending work. */
.status-pill.status-stopped { color: #bbc3c5; background: #343c40; border-color: #657277; }
html:not([data-full-feature-access="true"]) [data-account-stop-business="evacuation"] { display: none !important; }

[data-device-workflow-panel="evacuation"] .device-activity-duration,
[data-device-workflow-panel="evacuation"] .device-row-timer {
  display: none !important;
}

.device-preset-purchase { flex: 0 0 52px; align-self: center; min-height: 34px; padding: 4px 7px; border: 1px solid #52615f; border-radius: 6px; background: transparent; color: #bac3c2; cursor: pointer; }
.device-preset-purchase[aria-pressed="true"] { border-color: #20cda6; background: #20cda6; color: #10251f; }
.device-preset-purchase:focus-visible { outline: 2px solid #ffbf00; outline-offset: 2px; }

/* Account replacement categories share the account page libraries. */
.device-account-menu > .device-account-library-tabs {
  flex: 0 0 auto;
  padding: 0 12px 8px;
}
.device-account-menu > .device-account-options { min-height: 0; }

/* Keep the selected loot policy visible beside automatic purchase. */
.device-preset-menu.has-preset-categories { width: min(560px, calc(100vw - 16px)); }
.device-preset-policy-separator { flex: 0 0 auto; color: #bac3c2; padding: 0 2px; align-self: center; user-select: none; }
.device-preset-loot-toggle { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.device-preset-loot { min-height: 34px; padding: 4px 8px; border: 1px solid #52615f; border-radius: 6px; background: transparent; color: #bac3c2; cursor: pointer; }
.device-preset-loot[aria-pressed="true"] { border-color: #20cda6; background: #20cda6; color: #10251f; }
.device-preset-loot:focus-visible { outline: 2px solid #ffbf00; outline-offset: 2px; }
@media (max-width: 480px) {
  .device-preset-option-row { flex-wrap: wrap; }
  .device-preset-option-row > .device-preset-option { flex-basis: calc(100% - 40px); }
}

/* Keep manual surrender beside cancel without widening the command bar. */
[data-device-workflow-panel="hook-return"] .command-surrender {
  min-width: 64px;
  padding-inline: 16px;
}
[data-device-workflow-panel="hook-return"] .group-rematch-control {
  width: 158px;
  min-width: 0;
}
[data-device-workflow-panel="hook-return"] .group-rematch-options {
  width: 100%;
  justify-content: space-between;
  gap: 4px;
}
[data-device-workflow-panel="hook-return"] .group-match-id-window {
  min-width: 0;
  padding-inline: 4px;
  gap: 3px;
}
[data-device-workflow-panel="hook-return"] .group-match-id-window input {
  width: 34px;
  min-width: 0;
}
[data-device-workflow-panel="hook-return"] .group-auto-rematch-toggle {
  width: 62px;
  flex: 0 0 62px;
}

/* Owner-wide emergency business stop, separate from selected-row controls. */
.workspace-stop-all {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 6;
  min-width: 100px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #f16b58;
  border-radius: 6px;
  background: #d94d37;
  color: #fff;
  font: 700 13px/1 var(--ui-font);
  cursor: pointer;
}
.workspace-stop-all:hover { background: #ee5a42; }
.workspace-stop-all:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.workspace-stop-all:disabled { opacity: .7; cursor: wait; }
@media (max-width: 680px) {
  .workspace-stop-all { top: 54px; right: 8px; min-width: 76px; padding: 0 10px; }
}


/* Compact picker columns with an independent note editor. */
.device-account-menu.has-runtime-details {
  width: min(1016px, calc(100vw - 16px));
}
.device-account-menu.has-runtime-details .device-account-columns,
.device-account-menu.has-runtime-details .device-account-option-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) 76px minmax(64px, .6fr) minmax(88px, .85fr) 60px minmax(70px, .65fr) minmax(140px, 1.25fr) minmax(115px, 1fr);
  gap: 8px;
  padding: 0 10px;
  align-items: center;
}
.device-account-menu.has-runtime-details .device-account-columns { padding-top: 6px; padding-bottom: 6px; }
.device-account-option-row { border-bottom: 1px solid #353d42; }
.device-account-family-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #353d42;
  border-radius: 0;
  background: #141b1f;
  color: #edf0f2;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.device-account-family-heading:hover { background: #24312f; }
.device-account-family-heading:focus-visible { outline: 2px solid #27d4aa; outline-offset: -2px; }
.device-account-family-heading > strong { overflow-wrap: anywhere; }
.device-account-family-arrow { flex: 0 0 14px; font-size: 10px; }
.device-account-family-count { flex-shrink: 0; color: #aeb7bd; font-size: 12px; }
.device-account-family-note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aeb7bd;
  font-size: 12px;
}
.device-account-family-members[hidden] { display: none; }
.device-account-menu.has-runtime-details .device-account-select {
  grid-column: 1 / 8;
  grid-template-columns: subgrid;
  gap: 8px;
  padding: 8px 0;
  border: 0;
}
.device-account-select > span:nth-child(6) { color: #43d9b1; }
.device-account-select.is-unassigned > span:nth-child(6) { color: #aeb7bd; }
.device-account-select > span:nth-child(7) { font-size: 12px; color: #b5c1c7; }
.device-account-select > span.device-account-location-conflict:nth-child(7) { color: #ff7676; }
.device-account-picker-token { font-weight: 700; font-size: 12px; }
.device-account-picker-token.is-loaded { color: #20cfa9; }
.device-account-picker-token.is-expiring { color: #eab850; }
.device-account-picker-token.is-invalid { color: #ef7d87; }
.device-account-picker-token.is-unloaded { color: #858d93; }
.device-account-note-input {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 4px 6px;
  border: 1px solid #485259;
  border-radius: 4px;
  background: #192023;
  color: #edf0f2;
  font: inherit;
}
.device-account-note-input:focus { outline: 1px solid #27d4aa; border-color: #27d4aa; }
.device-account-note-input[aria-invalid="true"] { border-color: #f56b58; }
@media (max-width: 780px) {
  .device-account-menu.has-runtime-details .device-account-columns { display: none; }
  .device-account-menu.has-runtime-details .device-account-option-row { grid-template-columns: minmax(0, 1fr) 115px; }
  .device-account-menu.has-runtime-details .device-account-select {
    grid-column: 1;
    grid-template-columns: minmax(85px, 1fr) 70px minmax(65px, 1fr);
  }
}

/* Keep controls fixed while preserving their original transparent surfaces. */
.device-workflow-panel .device-table-wrap {
  overflow: visible;
  transform: none;
  width: calc(100% + 60px);
  padding-left: 60px;
  box-sizing: border-box;
}
.device-workflow-panel .device-table {
  border-collapse: separate;
  border-spacing: 0;
}
.device-workflow-panel .group-header {
  position: sticky;
  top: 0;
  z-index: 4;
}
.device-workflow-panel .team-number-toolbar {
  position: sticky;
  top: var(--workflow-header-height, 54px);
  z-index: 4;
}
.device-workflow-panel .device-table thead {
  position: sticky;
  top: calc(var(--workflow-header-height, 54px) + var(--workflow-number-height, 40px));
  z-index: 4;
}

/* Keep navigation immediately after regroup, including manual selection mode. */
.workspace-window .group-commands:has(> [data-hook-navigation]) {
  flex-wrap: nowrap;
  min-width: max-content;
}
.group-commands > [data-hook-navigation] {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 36px;
  box-sizing: border-box;
  flex-wrap: nowrap !important;
}
[data-hook-navigation] > .hook-navigation-controls {
  flex: 0 0 auto;
}
[data-hook-navigation] > [role="status"] {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 0;
  max-height: 32px;
  line-height: 16px;
  overflow: auto;
  overflow-wrap: anywhere;
}

/* Reserve a device selection column after each workspace startup button. */
.device-workflow-panel .device-table-wrap {
  width: calc(100% + 140px);
  padding-left: 140px;
}
.device-workflow-panel .team-number-toolbar {
  width: calc(100% - 140px);
  margin-left: 140px;
}
.device-workflow-panel .device-startup-status { left: 138px; }
.device-startup-selection {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 62px;
  width: 70px;
  height: 30px;
  box-sizing: border-box;
  padding: 0 5px;
  border: 1px solid rgba(226, 231, 237, 0.2);
  border-radius: 5px;
  background: rgba(20, 20, 20, 0.72);
  color: rgba(226, 231, 237, 0.45);
  font-family: var(--ui-font);
  font-size: 11px;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-startup-selection.is-selected { color: #e2e7ed; }
.device-startup-selection[hidden] { display: none; }

/* Keep wheel scrolling inside the startup device picker. */
.startup-device-menu { overscroll-behavior: contain; }

/* The selected device box is the workspace device picker trigger. */
.device-startup-selection { cursor: pointer; font-weight: 400; }
.device-startup-selection:hover,
.device-startup-selection[aria-expanded="true"] {
  border-color: #22cea5;
  background: #20282b;
}
.device-startup-selection:focus-visible { outline: 1px solid #22cea5; outline-offset: 2px; }
.startup-device-picker { position: fixed; z-index: 10005; }

.device-table thead th:first-child {
  overflow: visible;
}

/* Place the all-players execute control above the per-device controls. */
.device-table thead th:first-child .table-all-execute {
  position: absolute;
  z-index: 6;
  top: 9.25px;
  left: -121.25px;
  width: 32.5px;
  height: 32.5px;
  min-width: 32.5px;
  padding: 0;
  transform: none;
}
.device-table thead th:first-child .table-all-execute svg {
  width: 12.5px;
  height: 12.5px;
}
.device-table thead th:first-child .table-all-execute:hover,
.device-table thead th:first-child .table-all-execute:focus-visible,
.device-table thead th:first-child .table-all-execute:active,
.device-table thead th:first-child .table-all-execute.is-triggered {
  width: 32.5px;
  min-width: 32.5px;
  height: 32.5px;
  transform: none;
}
.startup-device-picker > .startup-device-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}

/* Compact Upgrade settings without clipping their numeric values. */
[data-device-workflow-panel="upgrade"] .upgrade-target-control {
  width: auto;
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 0 7px;
  gap: 4px;
}
[data-device-workflow-panel="upgrade"] .upgrade-target-control.upgrade-timing-control {
  margin-left: 4px;
  gap: 3px;
}
[data-device-workflow-panel="upgrade"] .upgrade-target-control input {
  width: 36px;
  min-width: 36px;
  padding: 0 2px;
  appearance: textfield;
  -moz-appearance: textfield;
}
[data-device-workflow-panel="upgrade"] .upgrade-target-control input::-webkit-inner-spin-button,
[data-device-workflow-panel="upgrade"] .upgrade-target-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Share the original family note with the account picker. */
.device-account-family-header { display: flex; align-items: center; gap: 10px; padding-right: 10px; background: #141b1f; border-bottom: 1px solid #353d42; }
.device-account-family-header > .device-account-family-heading { flex: 0 1 auto; width: auto; min-width: 0; border-bottom: 0; }
.device-account-family-note-input { flex: 0 1 280px; min-width: 70px; height: 30px; padding: 4px 8px; border: 1px solid #46565d; border-radius: 4px; background: #1b2327; color: #edf0f2; font: inherit; }
.device-account-family-note-input:focus { outline: 1px solid #27d4aa; }

/* Keep the optional trade entry above the original route button. */
.hook-navigation-route-entry {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.hook-navigation-controls .hook-navigation-rally {
  position: absolute;
  left: 78px;
  bottom: calc(100% + 9px);
  min-width: 60px;
  height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}
.hook-navigation-controls .hook-navigation-trade {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  min-width: 60px;
  height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}
[data-hook-navigation] > [role="status"] {
  bottom: calc(100% + 38px);
}

/* Account replacement temporarily shares the match progress surface. */
.device-match-progress[data-account-switch-state] {
  max-width: 190px; height: 30px; color: transparent; font-size: 0; text-shadow: none;
  background: linear-gradient(rgba(50,214,166,.16), rgba(50,214,166,.16)) left 24px / 100% 6px no-repeat;
}
.device-match-progress[data-account-switch-state]::before {
  position: absolute; top: 24px; left: 0; height: 6px; border-radius: 3px;
  width: var(--account-switch-progress, 5%); background: #32d6a6; content: "";
  transform: none;
  transition: width 180ms ease;
}
.device-match-progress[data-account-switch-state]::after {
  position: absolute; inset: 0 0 auto; height: 20px; line-height: 20px;
  content: attr(data-account-switch-label); color: #32d6a6; font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: none; background: transparent;
}
.device-match-progress[data-account-switch-state="failed"]::before { background: #ed8291; }
.device-match-progress[data-account-switch-state="failed"]::after { color: #ed8291; }


.device-match-progress.is-preparing[data-preparation-label]:not([data-team-error])::after,
.device-match-progress.is-rematching[data-preparation-label]:not([data-team-error])::after {
  content: attr(data-preparation-label);
  position: absolute;
  top: 19px;
  left: 0;
  max-width: 100%;
  color: #92d9c6;
  font-size: 10px;
  line-height: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expand only the focused note over adjacent controls, preserving row geometry. */
.device-table tbody td.is-device-note-expanded { z-index: 4; overflow: visible; }
.device-row-note-input.is-note-expanded {
  z-index: 20;
  width: var(--device-note-expanded-width);
  max-width: none;
  background: #20282c;
  text-overflow: clip;
}

.group-partial-match-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  color: #c4cdcf;
  white-space: nowrap;
}
.group-partial-match-label { color: #d7e2e7; font-size: 12px; }
.group-partial-match-toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #596268;
  cursor: pointer;
}
.group-partial-match-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform .12s;
}
.group-partial-match-toggle[aria-checked="true"] { background: #159d77; }
.group-partial-match-toggle[aria-checked="true"]::after { transform: translateX(12px); }
.group-partial-match-toggle:focus-visible { outline: 2px solid #ffbf00; outline-offset: 2px; }
.group-partial-match-count { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.group-partial-match-count input {
  width: 38px;
  min-width: 38px;
  height: 25px;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #64716e;
  border-radius: 4px;
  background: #252b31;
  color: #fff;
  text-align: center;
}
.group-partial-match-control[data-invalid="true"] { border-color: #ef7464; }
@media (max-width: 900px) {
  .group-partial-match-control { order: 8; }
}


.group-partial-match-control[hidden] { display: none !important; }
.device-table .group-partial-match-control { margin-left: auto; flex: 0 0 auto; font-weight: normal; }
.group-partial-match-count input:disabled { opacity: .45; }

/* Compact row actions after removing the legacy account-role column. */
[data-device-workflow-panel="hook-return"] .device-table .avg-speed-button-primary,
[data-device-workflow-panel="transfer"] .device-table .avg-speed-button-primary {
  left: calc(var(--device-action-left, 344px) + 42px);
}

[data-device-workflow-panel="hook-return"] .device-table .home-square-button,
[data-device-workflow-panel="transfer"] .device-table .home-square-button {
  left: calc(var(--device-action-left, 344px) + 178px);
}

[data-device-workflow-panel="hook-return"] .device-table .device-token-status,
[data-device-workflow-panel="transfer"] .device-table .device-token-status {
  left: calc(var(--device-action-left, 344px) + 276px);
}

[data-device-workflow-panel="hook-return"] .device-table .device-identity-status,
[data-device-workflow-panel="transfer"] .device-table .device-identity-status {
  left: calc(var(--device-action-left, 344px) + 344px);
}

[data-device-workflow-panel="hook-return"] .device-table .device-match-progress,
[data-device-workflow-panel="transfer"] .device-table .device-match-progress {
  left: calc(var(--device-action-left, 344px) + 446px);
}

