:root {
  color-scheme: dark;
  --bg: #080e19;
  --panel: #101827;
  --line: #ffffff0d;
  --text: #e8eef8;
  --muted: #73839d;
  --mint: #4af2c4;
  --blue: #66bcff;
  --violet: #ad97ff;
  --amber: #f4ba64;
  --red: #ff8194;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  background-image: radial-gradient(
    ellipse at 70% -20%,
    #16354555,
    transparent 55%
  );
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus {
  outline: none;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.mono {
  font-family: var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
main {
  margin: 0 auto;
  padding: 0 34px 24px;
  max-width: 1900px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.live-tag .status-dot {
  box-shadow: 0 0 9px currentColor;
  animation: pulse 3s ease-in-out infinite;
}
.server-status.error {
  color: var(--amber);
}
.icon-button {
  display: grid;
  place-items: center;
  color: #92a4bc;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff03;
  transition:
    color 0.2s,
    background 0.2s;
}
.icon-button:hover {
  color: var(--mint);
  background: #4af2c40a;
}
.icon-button .icon {
  width: 15px;
  height: 15px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 29px;
  gap: 20px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero .eyebrow {
  color: var(--mint);
  letter-spacing: 2.3px;
}
.eyebrow > span {
  width: 4px;
  height: 4px;
  background: var(--mint);
  box-shadow: 0 0 9px #4af2c4;
  border-radius: 50%;
}
h1 {
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1.3;
  margin: 10px 0 8px;
  font-weight: 650;
}
.heading-dot {
  color: var(--mint);
  margin-left: 4px;
}
.hero p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.last-sync {
  color: #5c6f89;
  font-size: 10px;
  text-align: right;
}
.last-sync time {
  display: block;
  color: #9badc5;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  white-space: nowrap;
  min-height: 37px;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.secondary {
  color: #afbdd2;
  background: #ffffff04;
  border-color: #ffffff12;
}
.button.secondary:hover {
  background: #ffffff08;
  border-color: #ffffff20;
}
.button.primary {
  color: #072c25;
  background: var(--mint);
  box-shadow: 0 0 25px #4af2c418;
}
.button.primary:hover {
  background: #75ffd8;
  box-shadow: 0 0 30px #4af2c42b;
}
.button.danger {
  background: #ff819409;
  color: var(--red);
  border-color: #ff81942b;
}
.button.danger:hover {
  background: #ff819419;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #f4ba6430;
  background: #f4ba6409;
  color: var(--amber);
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  position: relative;
  padding: 17px 19px 14px;
  border: 1px solid #ffffff0e;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(120deg, #131e2e, #101826);
  --accent: var(--mint);
}
.metric.blue {
  --accent: var(--blue);
}
.metric.violet {
  --accent: var(--violet);
}
.metric.amber {
  --accent: var(--amber);
}
.metric-label {
  color: #8b9bb3;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-label .icon {
  color: var(--accent);
  width: 17px;
  height: 17px;
  opacity: 0.75;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  padding: 11px 0 9px;
}
.metric-value > span:first-child {
  font-family: var(--mono);
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.4;
}
.metric-unit {
  font-size: 10px;
  color: #5e708a;
}
.metric-footer {
  border-top: 1px solid #ffffff07;
  padding-top: 10px;
  color: #586f89;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.metric-footer .status-dot {
  color: var(--accent);
  opacity: 0.65;
  width: 4px;
  height: 4px;
}
.metric-decoration {
  position: absolute;
  right: 0;
  bottom: 18px;
  opacity: 0.35;
  color: var(--accent);
}
.bars {
  display: flex;
  align-items: flex-end;
  height: 30px;
  gap: 4px;
}
.bars i {
  width: 4px;
  background: linear-gradient(0deg, #4af2c430, var(--mint));
  height: 10px;
  border-radius: 2px;
}
.bars i:nth-child(2) {
  height: 17px;
}
.bars i:nth-child(3) {
  height: 13px;
}
.bars i:nth-child(4) {
  height: 25px;
}
.bars i:nth-child(5) {
  height: 29px;
}
.rings,
.radar {
  height: 36px;
  width: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: 5px;
}
.rings:before,
.rings:after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.rings:after {
  inset: 12px;
  background: currentColor;
  border: 0;
}
.radar {
  background: conic-gradient(from 30deg, transparent 65%, #f4ba6430);
  border-style: dashed;
  animation: orbit 30s linear infinite;
}
.radar:after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.waveform {
  width: 73px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.workspace {
  min-width: 0;
}
.panel {
  border: 1px solid #ffffff0d;
  background: linear-gradient(160deg, #111b2a, #0e1725);
  border-radius: 12px;
  box-shadow: 0 5px 35px #00000012;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 21px 19px;
  border-bottom: 1px solid #ffffff07;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #d7e1ef;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.2px;
}
.panel-heading p {
  margin: 7px 0 0;
  color: #60718a;
  font-size: 10px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  font-family: var(--mono);
  font-size: 9px;
  border: 1px solid #ffffff12;
  border-radius: 4px;
  color: #8296b2;
  margin-left: 3px;
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--mint);
  border: 1px solid #4af2c425;
  background: #4af2c408;
  border-radius: 4px;
  padding: 4px 7px;
}
.device-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 21px;
}
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.toolbar-actions .search {
  flex: 1;
  min-width: 140px;
}
.toolbar-actions .button {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 10px;
}
#toggle-selection[aria-pressed="true"] {
  color: var(--mint);
  border-color: #4af2c430;
  background: #4af2c408;
}
.selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 21px 16px;
  padding: 12px 14px;
  border: 1px solid #4af2c425;
  border-radius: 9px;
  background: #4af2c405;
  color: var(--muted);
  font-size: 11px;
}
.selection-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.selection-bar .selection-summary {
  gap: 14px;
}
#selection-count {
  color: var(--mint);
}
.selection-clear {
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
}
.selection-clear:hover {
  color: var(--text);
}
.selection-chevron {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}
.selection-result {
  margin: 0 21px 16px;
  color: var(--muted);
  font-size: 11px;
}
.selection-result p {
  margin: 0;
}
.selection-result details {
  margin-top: 8px;
  color: var(--amber);
}
.selection-result ul {
  max-height: 160px;
  overflow-y: auto;
  padding-left: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.selection-bar .button {
  padding: 7px 11px;
  font-size: 11px;
}
.device-select {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--mint);
  cursor: pointer;
}
th .device-select {
  margin-right: 10px;
  vertical-align: middle;
}
.device-select:disabled {
  cursor: default;
  opacity: 0.35;
}
.filters {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 6px;
  background: #070e1960;
  border: 1px solid #ffffff06;
}
.filters button {
  background: transparent;
  color: #6f819b;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
}
.filters button:hover {
  color: #bfccdd;
}
.filters button.active {
  color: var(--mint);
  background: #4af2c412;
  box-shadow: inset 0 0 0 1px #4af2c414;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff0c;
  background: #070e1930;
  border-radius: 6px;
  padding: 7px 9px;
  min-width: 0;
  width: 210px;
}
.search .icon {
  width: 13px;
  height: 13px;
  color: #4f637f;
}
.search input {
  background: none;
  border: 0;
  color: #bdd0e6;
  font-size: 10px;
  width: 100%;
  min-width: 0;
  outline: none;
}
.search:focus-within {
  border-color: #4af2c445;
}
.search input::placeholder {
  color: #4f6079;
}
.table-wrap {
  position: relative;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
thead th {
  background: #080f192e;
  padding: 10px 12px;
  font-size: 9px;
  color: #526681;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
thead th:first-child {
  padding-left: 21px;
}
thead th:last-child {
  width: 62px;
  padding-right: 20px;
}
tbody tr {
  cursor: pointer;
  position: relative;
  border-top: 1px solid #ffffff04;
  transition: background 0.2s;
}
tbody tr:hover {
  background: #ffffff05;
}
tbody tr.selected {
  background: #ffffff06;
}
tbody td {
  padding: 19px 12px;
  font-size: 11px;
  white-space: nowrap;
}
tbody td:first-child {
  padding-left: 21px;
}
.device-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.col-device {
  width: 22%;
}
.col-account {
  width: 17%;
}
.col-request {
  width: 12%;
}
.col-ping {
  width: 7%;
}
.col-integrity {
  width: 9%;
}
.col-level {
  width: 8%;
}
.level-value {
  color: #a8c0d9;
  font-family: var(--mono);
  font-size: 10px;
}
#detail-integrity-note {
  white-space: pre-line;
}
#detail-integrity-note.info-error {
  padding: 12px;
  border-left: 2px solid var(--amber);
  border-radius: 4px;
  background: #efbb5f08;
  font-size: 10px;
  line-height: 1.8;
}
.col-actions {
  width: 62px;
}
.col-request .badge {
  white-space: normal;
}
.device-cell > div {
  min-width: 0;
}
.device-system {
  display: none;
}
.row-avatar {
  display: grid;
  place-items: center;
  color: var(--mint);
  width: 32px;
  height: 38px;
}
.row-avatar .icon {
  width: 17px;
  height: 17px;
}
.row-avatar.offline {
  color: #53657f;
}
.device-name {
  font-family: var(--mono);
  color: #c1d3e8;
  font-size: 10px;
  letter-spacing: 0.3px;

  overflow: hidden;
  text-overflow: ellipsis;
}
.device-ip {
  font-family: var(--mono);
  font-size: 9px;
  color: #516783;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-cell {
  max-width: 100%;
  color: #adc8d9;
  font-size: 10px;
}
.account-cell > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-cell small {
  display: block;
  color: #617791;
  font-size: 9px;
  margin-top: 5px;
}
.system-cell {
  color: #a8c0d9;
  font-family: var(--mono);
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  border: 1px solid #ffffff0d;
  color: #6f819b;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge .status-dot {
  height: 4px;
  width: 4px;
}
.badge.mint {
  color: var(--mint);
  background: #4af2c408;
  border-color: #4af2c420;
}
.badge.blue {
  color: #89c4ff;
  background: #66bcff08;
  border-color: #66bcff20;
}
.badge.violet {
  color: #b7a3ff;
  background: #ad97ff0a;
  border-color: #ad97ff22;
}
.badge.amber {
  color: var(--amber);
  background: #f4ba6409;
  border-color: #f4ba6420;
}
.badge.red {
  color: var(--red);
  background: #ff819408;
  border-color: #ff819420;
}
.muted {
  color: #50657e;
}
.request-idle {
  color: #758ba6;
  font-size: 10px;
}
.ping-value {
  color: #b4c8df;
  font-family: var(--mono);
  font-size: 11px;
}
.ping-value small {
  font-size: 9px;
  color: #596e88;
}
.table-footer {
  border-top: 1px solid #ffffff07;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 21px;
  color: #4f647e;
  font-size: 9px;
  gap: 10px;
}
.table-footer > span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
}
.table-footer .status-dot {
  height: 4px;
  width: 4px;
  color: var(--mint);
}
.empty-state {
  padding: 46px 20px 50px;
  text-align: center;
}
.empty-orbit {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #4af2c412, transparent 70%);
  border: 1px dashed #4af2c422;
  border-radius: 50%;
  position: relative;
}
.empty-orbit:before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #4af2c412;
  border-radius: 50%;
}
.empty-orbit .icon {
  width: 28px;
  height: 28px;
  color: #4af2c485;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 500;
  color: #aabbd0;
  margin: 0 0 9px;
}
.empty-state p {
  font-size: 11px;
  color: #5c718d;
  margin: 0 0 22px;
}
#device-detail {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 440px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 24px;
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at 50% 0%, #173f3935, transparent 38%),
    linear-gradient(160deg, #111b2a, #0e1725);
}
#device-detail::backdrop {
  background: #03081370;
  backdrop-filter: blur(2px);
}
#device-detail .primary {
  margin-top: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}
.detail-heading .eyebrow {
  color: #658095;
  letter-spacing: 1.7px;

  font-size: 8px;
}
.detail-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-identity > div {
  min-width: 0;
}
.device-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 48px;
  border: 1px solid #4af2c432;
  background: linear-gradient(145deg, #4af2c416, #4af2c405);
  border-radius: 9px;
  box-shadow: 0 0 25px #4af2c408;
  color: var(--mint);
  flex-shrink: 0;
}
.device-avatar .icon {
  width: 23px;
  height: 23px;
}
.detail-identity h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0 0 5px;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}
.detail-identity .icon-button {
  margin-left: auto;
  border-color: transparent;
  background: none;
  flex-shrink: 0;
}
.detail-id {
  font-size: 8px;
  color: #56728c;
  letter-spacing: 0.2px;
  margin: 13px 0 20px;
  overflow-wrap: anywhere;
}
.detail-controls {
  margin-bottom: 24px;
}
#detail-integrity {
  width: 100%;
}
.topology {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 14px 14px;
  background-image:
    linear-gradient(#ffffff02 1px, transparent 1px),
    linear-gradient(90deg, #ffffff02 1px, transparent 1px);
  background-size: 12px 12px;
  background-color: #080f1940;
  border: 1px solid #ffffff07;
  border-radius: 8px;
}
.topology-node {
  text-align: center;
  position: relative;
  z-index: 1;
}
.topology-node > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #131e2d;
  border: 1px solid #ffffff0d;
  border-radius: 9px;
  color: #465976;
  transition:
    color 0.4s,
    border-color 0.4s;
}
.topology-node .icon {
  width: 16px;
  height: 16px;
}
.topology-node small {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  color: #4e6580;
  letter-spacing: 0.7px;
  margin-top: 9px;
}
.topology-node.active > span {
  color: var(--mint);
  border-color: #4af2c43c;
  background: #0e2c28;
  box-shadow: 0 0 18px #4af2c407;
}
.topology-node.active small {
  color: #78b6a5;
}
.topology-link {
  flex: 1;
  height: 1px;
  background: #ffffff0c;
  position: relative;
  margin-top: 17px;
}
.topology-link.active {
  background: linear-gradient(90deg, #4af2c42c, #4af2c46f, #4af2c42c);
  box-shadow: 0 0 8px #4af2c419;
}
.topology-link.active i {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 6px;
  background: var(--mint);
  box-shadow: 0 0 8px #4af2c4;
  border-radius: 2px;
  animation: packet 2.4s linear infinite;
}
.device-facts {
  margin: 21px 0;
  padding: 0 0 15px;
  border-bottom: 1px solid #ffffff08;
}
.device-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 10px;
}
.device-facts > div:last-child {
  margin-bottom: 0;
}
.device-facts dt {
}
.device-facts dd {
  margin: 0;
  color: #b1c4d9;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.device-facts dt {
  flex-shrink: 0;
}
.device-facts dd.positive {
  color: var(--mint);
}
.device-facts dd.warning {
  color: var(--amber);
}
.device-info {
  margin-bottom: 21px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff08;
  min-width: 0;
}
.info-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #96a9c2;
  font-size: 11px;
}
.info-heading .icon-button {
  width: 36px;
  height: 36px;
}
.info-heading .refreshing .icon {
  animation: orbit 1s linear infinite;
}
.info-facts {
  margin: 12px 0;
}
.info-facts > div + div {
  margin-top: 12px;
}
.info-facts dt {
  color: #617791;
  font-size: 9px;
  margin-bottom: 5px;
}
.info-facts dd {
  margin: 0;
  color: #bdd7e3;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#detail-accounts {
  white-space: pre-line;
}
.info-facts small {
  display: block;
  color: #68849b;
  font-size: 9px;
}
.info-note,
.info-error {
  margin: 10px 0 0;
  color: #617791;
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.info-error {
  color: var(--amber);
}
.task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #96a9c2;
  font-size: 11px;
  margin-bottom: 11px;
}
.task-heading .badge {
  font-size: 8px;
  padding: 2px 6px;
}
.task-card {
  padding: 13px 12px;
  background: #070d1840;
  border: 1px solid #ffffff08;
  border-radius: 7px;
  min-height: 78px;
}
.task-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.task-card .mono {
  font-size: 11px;
  color: #aebfd4;
}
.task-card #task-duration {
  color: #647c98;
  font-family: var(--mono);
  font-size: 9px;
}
.task-card p {
  color: #506885;
  font-size: 9px;
  margin: 8px 0 0;
  line-height: 1.7;
}
.task-card .task-error {
  color: #ed8b9d;
  overflow-wrap: anywhere;
}
.task-progress {
  height: 2px;
  border-radius: 3px;
  background: #ad97ff12;
  overflow: hidden;
  margin-top: 13px;
}
.task-progress span {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  animation: progress 1.8s ease-in-out infinite;
}
.device-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.device-actions .secondary {
  flex: 1;
}
.device-actions .danger {
  width: 44px;
  padding: 8px;
}
.detail-footnote {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #445c76;
  font-size: 8px;
  padding-top: 13px;
}
.detail-footnote .icon {
  width: 11px;
  height: 11px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #3e546e;
  font-size: 9px;
  margin: 25px 2px 0;
}
.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
}
dialog {
  width: 420px;
  max-width: calc(100vw - 32px);
  border: 1px solid #4af2c428;
  border-radius: 16px;
  padding: 30px;
  background: linear-gradient(145deg, #172637, #0d1726);
  color: var(--text);
  box-shadow: 0 30px 120px #00000090;
}
dialog::backdrop {
  background: #030813bb;
  backdrop-filter: blur(8px);
}
#device-info-dialog {
  width: 680px;
  max-height: calc(100dvh - 32px);
}
#device-info-dialog h2 {
  margin: 0;
}
#device-info-json {
  display: block;
  width: 100%;
  height: min(360px, 50dvh);
  padding: 16px;
  border: 1px solid #ffffff15;
  border-radius: 7px;
  background: #080e1980;
  color: #bdd0e7;
  font: 12px / 1.8 var(--mono);
  overflow-wrap: anywhere;
  resize: vertical;
}
#update-dialog {
  width: 580px;
  max-height: calc(100dvh - 32px);
}
#update-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#update-dialog > :not(.update-targets) {
  flex-shrink: 0;
}
#update-dialog .detail-heading {
  padding-bottom: 8px;
}
#update-dialog h2 {
  margin: 0;
}
#update-apk[hidden] {
  display: none;
}
.apk-dropzone {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 16px;
  border: 1px dashed #4af2c450;
  border-radius: 12px;
  color: var(--mint);
  background: radial-gradient(ellipse at top, #4af2c416, #4af2c403);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.apk-dropzone:hover,
.apk-dropzone.dragging {
  border-color: var(--mint);
  background: #4af2c418;
}
.apk-dropzone .icon {
  width: 28px;
  height: 28px;
}
.apk-dropzone strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 500;
}
.apk-dropzone span {
  color: var(--muted);
  font-size: 11px;
}
.apk-dropzone:disabled {
  cursor: default;
  opacity: 0.65;
}
.apk-dropzone.has-file {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 14px 16px;
  border-style: solid;
  border-color: #4af2c423;
  text-align: left;
}
.apk-dropzone.has-file .icon {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
}
.apk-dropzone.has-file strong {
  font-size: 12px;
}
.apk-dropzone.has-file span {
  font-size: 10px;
}
#update-dialog .update-message {
  margin: 14px 0 0;
  color: var(--mint);
}
#update-dialog .update-message.error {
  color: var(--red);
}
.update-list-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 14px 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
}
.update-targets {
  display: grid;
  min-height: 0;
  flex-shrink: 1;
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #73839d40 transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080e1928;
}
.update-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.update-target:last-child {
  border-bottom: 0;
}
.update-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.update-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.update-identity small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.update-meta-dot {
  padding: 0 6px;
  color: #485c77;
}
.update-state {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.update-state .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}
.update-state small {
  font-family: var(--mono);
  font-size: 10px;
}
.update-state.mint {
  color: var(--mint);
}
.update-state.blue {
  color: var(--blue);
}
.update-state.violet {
  color: var(--violet);
}
.update-state.red {
  color: var(--red);
}
.update-state.blue .status-dot,
.update-state.violet .status-dot {
  animation: pulse 2s ease-in-out infinite;
}
.update-target progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  accent-color: var(--blue);
}
.update-target progress::-webkit-progress-bar {
  background: #ffffff0a;
}
.update-target progress::-webkit-progress-value {
  background: var(--blue);
}
.update-target .update-error {
  grid-column: 1 / -1;
  min-width: 0;
  padding-left: 8px;
  border-left: 2px solid #ff819438;
  color: #cc929d;
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.update-error summary {
  list-style: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.update-error summary::-webkit-details-marker {
  display: none;
}
.update-error summary::before {
  content: "+";
  margin-right: 6px;
}
.update-error[open] summary::before {
  content: "−";
}
.update-error summary:focus-visible {
  outline: 1px solid #ff819450;
  outline-offset: 3px;
}
.update-error[open] > div {
  margin-top: 6px;
}
dialog h2 {
  font-size: 23px;
  font-weight: 550;
  margin: 11px 0 12px;
}
dialog p {
  color: #8ba0bc;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 22px;
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #4af2c434;
  background: #4af2c40a;
  color: var(--mint);
  border-radius: 12px;
  margin-bottom: 22px;
}
.dialog-icon .icon {
  width: 22px;
  height: 22px;
}
dialog label {
  font-size: 10px;
  color: #708aa6;
  display: block;
  margin-bottom: 8px;
}
dialog input {
  display: block;
  width: 100%;
  color: #bdd0e7;
  background: #080e1980;
  border: 1px solid #ffffff15;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  outline: none;
}
dialog input:focus {
  border-color: #4af2c452;
}
dialog .primary {
  width: 100%;
  margin-top: 21px;
}
#auth-cancel {
  width: 100%;
  margin-top: 9px;
}
dialog .form-error {
  color: var(--red);
  font-size: 10px;
  margin: 10px 0 0;
}
.address-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-field input {
  font-family: var(--mono);
  font-size: 11px;
  min-width: 0;
}
.address-field .icon-button {
  height: 42px;
  width: 39px;
  flex-shrink: 0;
}
dialog .dialog-note {
  font-size: 10px;
  color: #637d9a;
  margin-top: 18px;
  margin-bottom: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}
.toast {
  position: fixed;
  margin: 0;
  top: auto;
  right: auto;
  width: max-content;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  padding: 12px 19px;
  background: #142b2a;
  border: 1px solid #4af2c440;
  color: #b2f5dd;
  border-radius: 9px;
  box-shadow: 0 10px 50px #00000060;
  font-size: 12px;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.toast.error {
  background: #30222c;
  color: #ffb4bf;
  border-color: #ff819435;
}
.context-menu,
.context-submenu {
  position: fixed;
  z-index: 200;
  width: 220px;
  padding: 7px;
  border: 1px solid #4af2c430;
  border-radius: 10px;
  background: #112333f5;
  box-shadow: 0 14px 50px #00000070;
  backdrop-filter: blur(16px);
}
.context-submenu {
  position: absolute;
  width: 265px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
}
.context-menu {
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
}
.selection-menu {
  inset: auto;
  margin: 0;
  overflow-y: auto;
}
.context-device {
  padding: 7px 10px 10px;
  font-size: 10px;
  color: #6e91a5;
  overflow-wrap: anywhere;
}
.context-shortcuts {
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.context-footer {
  padding-top: 4px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.context-menu button {
  --menu-icon: var(--mint);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  color: #c5e5df;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
}
.context-menu button[data-tone="blue"] {
  --menu-icon: var(--blue);
}
.context-menu button[data-tone="amber"] {
  --menu-icon: var(--amber);
}
.context-menu button[data-tone="violet"] {
  --menu-icon: var(--violet);
}
.context-menu button:hover,
.context-menu button:focus-visible,
.context-category[aria-expanded="true"] {
  background: #ffffff09;
}
.context-menu button .icon {
  color: var(--menu-icon);
}
.context-menu button .context-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.context-menu .context-back {
  display: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 4px;
}
.context-compact {
  width: 265px;
  overflow-y: auto;
}
.context-compact .context-shortcuts,
.context-compact .context-category,
.context-compact .context-footer {
  display: none;
}
.context-compact .context-submenu {
  position: static;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
.context-compact .context-back {
  display: flex;
}
.context-note {
  margin: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#install-dialog {
  width: 560px;
  max-width: calc(100vw - 32px);
}
#install-dialog h2 {
  margin: 0;
}
#install-device {
  margin: 4px 0 20px;
}
.install-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.install-task-device {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
}
.install-input {
  display: flex;
  gap: 10px;
}
.install-input input {
  min-width: 0;
  font-family: var(--mono);
}
#install-submit {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
#install-submit.danger {
  color: #351018;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 25px #ff819418;
}
#install-submit.danger:hover:not(:disabled) {
  background: #ffabb7;
}
.install-message {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: 12px;
}
.install-message.error {
  color: var(--red);
}
.install-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
  font-size: 12px;
  color: var(--muted);
}
#install-refresh {
  padding: 7px 10px;
  font-size: 11px;
}
#install-refresh .icon {
  width: 14px;
  height: 14px;
}
.install-tasks {
  max-height: 42dvh;
  overflow-y: auto;
}
.install-task {
  padding: 15px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
}
.install-task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.install-task-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 12px var(--mono);
  color: #c4d5eb;
}
.install-task progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 4px;
  margin: 16px 0 10px;
  overflow: hidden;
  background: #ffffff0b;
  color: var(--mint);
  accent-color: var(--mint);
}
.install-task progress::-webkit-progress-bar {
  background: #ffffff0b;
}
.install-task progress::-webkit-progress-value {
  background: var(--mint);
  border-radius: 4px;
  transition: width 0.3s;
}
.install-task progress::-moz-progress-bar {
  background: var(--mint);
}
.install-task.red progress {
  accent-color: var(--red);
}
.install-task.red progress::-webkit-progress-value {
  background: var(--red);
}
.install-task-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font: 10px var(--mono);
  color: var(--muted);
}
.install-task .install-task-error {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 11px;
}
.install-empty {
  padding: 22px 10px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.install-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
#install-app-status {
  margin-top: 16px;
}
.install-confirm {
  padding: 14px;
  margin-top: 16px;
  border: 1px solid var(--amber);
  border-radius: 9px;
  font-size: 12px;
}
.install-confirm strong {
  overflow-wrap: anywhere;
}
.install-confirm p {
  margin: 10px 0;
  color: var(--muted);
}
#install-dialog .install-keep-data {
  display: flex;
  align-items: center;
  gap: 8px;
}
#install-dialog .install-keep-data input {
  width: auto;
  accent-color: var(--mint);
}
.wireless-adb-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 12px;
  margin-bottom: 12px;
  color: var(--mint);
}
.wireless-adb-loader {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #4af2c414, transparent 70%);
}
.wireless-adb-loader::before,
.wireless-adb-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #4af2c417;
  border-radius: 50%;
}
.wireless-adb-loader::after {
  inset: 16px;
  border-color: #4af2c426;
  box-shadow: inset 0 0 20px #4af2c407;
}
.wireless-adb-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(transparent 55%, #4af2c433 80%, var(--mint));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  filter: drop-shadow(0 0 7px #4af2c470);
  animation: orbit 1.8s linear infinite;
}
.wireless-adb-loader .icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px #4af2c44a);
  animation: pulse 2.4s ease-in-out infinite;
}
#wireless-adb-message {
  font-size: 14px;
  font-weight: 500;
}
.wireless-adb-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.wireless-adb-status.error {
  align-items: flex-start;
  padding: 0;
  color: var(--red);
}
.wireless-adb-status.error .wireless-adb-loader,
.wireless-adb-status.error .wireless-adb-hint {
  display: none;
}
#integrity-dialog {
  width: 580px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
#integrity-dialog .integrity-device {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
}
.integrity-fields label {
  margin-top: 17px;
}
.integrity-fields label span {
  color: #536b85;
}
#integrity-version {
  appearance: textfield;
}
#integrity-version::-webkit-inner-spin-button,
#integrity-version::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#integrity-dialog select,
#integrity-dialog textarea {
  width: 100%;
  border: 1px solid #ffffff15;
  border-radius: 7px;
  background: #080e1980;
  color: #bdd0e7;
  font-size: 12px;
  padding: 12px;
  outline: none;
}
#integrity-dialog textarea {
  font-family: var(--mono);
  font-size: 10px;
  resize: vertical;
  line-height: 1.6;
}
#integrity-result {
  margin-top: 22px;
}
#copy-integrity-token {
  margin-top: 10px;
}
#integrity-dialog .dialog-actions .primary {
  width: auto;
  margin-top: 0;
}
#integrity-dialog .integrity-status {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #ffffff10;
  background: #080e1940;
  border-radius: 7px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.integrity-status.running {
  color: #b4a2ff;
}
.integrity-status.success {
  color: var(--mint);
}
.integrity-status.error {
  color: var(--red);
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes packet {
  to {
    left: calc(100% - 6px);
  }
}
@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(390%);
  }
}
@media (min-width: 1700px) {
  main {
    padding-inline: 48px;
  }
  .metrics {
    gap: 22px;
  }
  .metric {
    padding: 21px 23px 17px;
  }
  tbody td {
    padding-block: 24px;
  }
}
@media (max-width: 1100px) {
  main {
    padding-inline: 24px;
  }
  .col-system,
  .col-account,
  .col-ping {
    display: none;
  }
  .device-system {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
  }
  .col-device {
    width: 38%;
  }
  .col-request {
    width: 23%;
  }
  .col-integrity,
  .col-level {
    width: 12%;
  }
  .metric-decoration {
    display: none;
  }
  .metric-footer {
    white-space: normal;
    align-items: baseline;
  }
}
@media (max-width: 760px) {
  main {
    padding: 0 16px 20px;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 0 18px;
    gap: 8px;
  }
  .hero > div:first-child {
    display: contents;
  }
  .hero h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .hero p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  h1 {
    font-size: 25px;
  }
  .hero-actions {
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    gap: 8px;
  }
  .hero-actions .button {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .hero-actions .button .icon {
    width: 18px;
    height: 18px;
  }
  .hero-actions .button-label {
    display: none;
  }
  .last-sync {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 10px 12px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-value > span:first-child {
    font-size: 27px;
  }
  .metric-footer {
    font-size: 11px;
    white-space: normal;
    align-items: baseline;
  }
  .panel-heading {
    padding: 18px 16px;
  }
  .panel-heading p {
    max-width: 250px;
  }
  .device-toolbar {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filters {
    align-self: flex-start;
  }
  .search {
    width: 100%;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    display: block;
  }
  thead {
    display: none;
  }
  tbody {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
  }
  tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff02;
  }
  tbody td {
    width: auto;
    padding: 0;
  }
  tbody td:first-child {
    padding-left: 0;
  }
  .col-device {
    width: auto;
    grid-column: 1 / -1;
    padding-right: 30px;
  }
  .device-cell {
    align-items: flex-start;
  }
  .row-avatar {
    display: none;
  }
  .device-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }
  .device-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .device-system {
    display: inline;
    color: var(--muted);
    font-size: 12px;
  }
  .device-ip {
    font-size: 11px;
  }
  .col-connection,
  .col-worker,
  .col-integrity,
  .col-level,
  .col-request {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
  }
  .col-request {
    width: auto;
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .col-actions {
    width: auto;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .col-integrity,
  .col-level {
    width: auto;
  }
  .row-menu {
    width: 40px;
    height: 40px;
  }
  .table-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .page-footer {
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  #device-detail {
    width: 100%;
    padding: 20px;
    border-radius: 0;
  }
  .empty-state {
    padding: 36px 16px;
  }
  dialog {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

#screen-dialog {
  width: fit-content;
  min-width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: 12px;
}
#screen-dialog:has(#screen-canvas:not([hidden])) {
  min-width: 0;
}
.screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
}
#screen-device {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-heading-device {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.screen-route {
  flex-shrink: 0;
  color: #91adc9;
  font-size: 10px;
}
#screen-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  background: none;
}
.screen-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.screen-display.is-loading {
  min-height: 240px;
  overflow: hidden;
  background: #0b121e;
}
.screen-display.is-loading #screen-canvas {
  opacity: 0.25;
  pointer-events: none;
}
.screen-loading {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #0c17288c, #090f1ce0);
}
.screen-loading:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: calc(50% - 140px);
  top: calc(50% - 160px);
  background: radial-gradient(
    ellipse,
    #82b5ed1f,
    #82b5ed08 40%,
    transparent 70%
  );
  animation: screen-glow 4s ease-in-out infinite;
}
.screen-loading[hidden] {
  display: none;
}
.screen-loader {
  position: relative;
  width: 108px;
  height: 80px;
}
.screen-loader:before {
  content: "";
  position: absolute;
  inset: 8px 10px 12px;
  border: 1px solid #a4c4ec1c;
  border-radius: 12px;
  background: linear-gradient(135deg, #a4c4ec0a, #a4c4ec02);
  transform: translate(-8px, -7px) rotate(-9deg);
}
.screen-loader-panel {
  position: absolute;
  inset: 8px 4px 8px;
  overflow: hidden;
  border: 1px solid #c1dcff45;
  border-radius: 12px;
  background: linear-gradient(135deg, #8ab9f21c, #8ab9f207);
  box-shadow:
    inset 0 1px 0 #ffffff0c,
    0 18px 40px #00000030;
  animation: screen-float 4s ease-in-out infinite;
}
.screen-loader-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    #dcecff2b 50%,
    transparent 75%
  );
  animation: screen-sweep 2.4s ease-in-out infinite;
}
.screen-loader-panel:after {
  content: "";
  position: absolute;
  inset: auto 16px 12px;
  height: 1px;
  background: linear-gradient(90deg, #dcecff08, #dcecff4d, #dcecff08);
}
#screen-loading-label {
  position: relative;
  margin: 0;
  color: #d8e5f5;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
@keyframes screen-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes screen-float {
  0%,
  100% {
    transform: translateY(3px);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes screen-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
#screen-canvas {
  display: block;
  max-width: min(960px, calc(100vw - 34px));
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  background: #000;
  border-radius: 0;
  touch-action: none;
}
#screen-canvas[hidden] {
  display: none;
}
.screen-status {
  margin: 4px 0 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  max-width: 480px;
}
.screen-status.error {
  color: var(--red);
}
#screen-keyboard {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  resize: none;
}
#screen-clipboard {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 6px;
  padding: 6px 8px;
  border: 1px solid #ffffff15;
  border-radius: 6px;
  background: #080e1980;
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  resize: vertical;
}
.screen-controls {
  display: flex;
  justify-content: center;
  padding: 2px 8px;
  border-top: 1px solid var(--line);
}
.screen-controls button {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 44px;
  max-width: 88px;
  height: 40px;
  padding: 0;
  color: #92a4bc;
  border: 0;
  border-radius: 6px;
  background: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.screen-controls button:hover:not(:disabled),
.screen-controls button:focus-visible {
  color: var(--mint);
  background: #4af2c40a;
}
.screen-controls .icon {
  width: 18px;
  height: 18px;
}
.screen-controls .screen-power {
  max-width: 56px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.root-label {
  display: block;
  margin-top: 5px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
}
