:root {
  --bg: #07080c;
  --fg: #eceef4;
  --muted: #8b91a3;
  --graphite: #c8cdd8;
  --graphite-hot: #f2f4f8;
  --field: #161922;
  --border: rgb(255 255 255 / 7%);
  --danger: #e05c6c;
  --ok: #3dce7a;
  --stage: #0e1016;
  --panel: #111318;
  --accent: #3b6fd4;
  --accent-soft: rgb(59 111 212 / 22%);
  --glow: rgb(61 206 122 / 28%);
  --radius-app: 1.1rem;
  --radius: 0.8rem;
  --radius-sm: 0.55rem;
  --font: "Bahnschrift SemiBold", Bahnschrift, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

body {
  font-family: var(--font);
  font-weight: 600;
  background: radial-gradient(80rem 36rem at 72% -12%, rgba(72, 98, 168, 0.14), transparent 52%), radial-gradient(40rem 24rem at 8% 110%, rgba(40, 48, 72, 0.18), transparent 48%), var(--bg);
  color: var(--fg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

body:has(.app) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--fg);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

[data-page=file-manager] {
  overflow: hidden;
}

.files__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.files__path {
  display: flex;
  flex: 1 1 14rem;
  align-items: center;
  min-width: 8rem;
  overflow: auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}
.files__path button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.files__sep {
  margin: 0 0.2rem;
  color: var(--muted);
}

.files__pick {
  width: auto;
  max-width: 8.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
}

.files__panel {
  flex: 1;
  min-height: 0;
}

.files__table td:first-child {
  width: 1.8rem;
}
.files__table td:nth-child(3),
.files__table td:nth-child(4) {
  color: var(--muted);
  white-space: nowrap;
}

.file__icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file__icon.is-dir {
  stroke: #c4a35a;
  fill: rgba(196, 163, 90, 0.18);
}

.files__foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--field);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
@media (hover: hover) {
  .chip:hover {
    color: var(--fg);
  }
}
.chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.1rem;
  padding: 0 0.28rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.chip[data-filter=online]::before,
.chip[data-filter=offline]::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.chip[data-filter=online]::before {
  color: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.chip[data-filter=offline]::before {
  color: var(--danger);
}

.chip--icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
}
.chip--icon svg,
.chip--icon img {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  pointer-events: none;
}

.chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #f2f4f8;
  box-shadow: 0 0 0 1px rgba(59, 111, 212, 0.35);
}

.chip.is-on.is-ok {
  background: rgba(61, 206, 122, 0.18);
  border-color: var(--ok);
  color: var(--ok);
  box-shadow: 0 0 0 1px rgba(61, 206, 122, 0.35);
}

.chip.is-on.is-bad {
  background: rgba(224, 92, 108, 0.18);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 0 1px rgba(224, 92, 108, 0.35);
}

.search {
  width: min(16rem, 100%);
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--stage);
  color: var(--fg);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
}
.search:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.16);
}

.search--wide {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.42rem 0.7rem;
  color: var(--muted);
}
.search--wide svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search--wide input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
}
.search--wide input:focus {
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  border-radius: 0.65rem;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 0.28rem 0.58rem;
  font-size: 0.7rem;
  border-radius: 0.55rem;
}

.btn--danger {
  border-color: rgba(224, 92, 108, 0.42);
  background: transparent;
  color: var(--danger);
}

.btn--danger.btn--ghost {
  background: rgba(224, 92, 108, 0.1);
}

.card {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field);
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.card__sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.sdk-packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 0.2rem;
}

.sdk-pack {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--stage);
}

.sdk-pack__title {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.sdk-pack .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .sdk-packs {
    grid-template-columns: 1fr;
  }
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 9.6rem;
  padding: 0.95rem 1.05rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%), var(--field);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tile__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.tile__icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile__value,
.tile__sub {
  margin: 0;
  position: relative;
  z-index: 1;
}

.tile__value {
  margin-top: 0.5rem;
  font-size: 2.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.tile__sub {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.tile__bar {
  position: relative;
  z-index: 1;
  height: 3px;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.tile__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6d7382;
}

.tile--ok .tile__bar span {
  background: var(--ok);
}

.tile--ok .tile__icon {
  color: var(--ok);
  background: rgba(61, 206, 122, 0.12);
}

.tile--accent .tile__bar span {
  background: var(--accent);
}

.tile--accent .tile__icon {
  color: #9bb7ff;
  background: var(--accent-soft);
}

.tile__art {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-42%);
  pointer-events: none;
}

.tile__art--bars {
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 2.9rem;
}
.tile__art--bars i {
  width: 0.32rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.tile__art--bars i:nth-child(1) {
  height: 42%;
}
.tile__art--bars i:nth-child(2) {
  height: 68%;
}
.tile__art--bars i:nth-child(3) {
  height: 36%;
}
.tile__art--bars i:nth-child(4) {
  height: 88%;
}
.tile__art--bars i:nth-child(5) {
  height: 54%;
}
.tile__art--bars i:nth-child(6) {
  height: 72%;
}
.tile__art--bars i:nth-child(7) {
  height: 48%;
}
.tile__art--bars i:nth-child(8) {
  height: 62%;
}

.tile__art--glow {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(61, 206, 122, 0.55), transparent 42%), radial-gradient(circle at 70% 70%, rgba(61, 206, 122, 0.18), transparent 55%);
  filter: blur(1px);
}

.tile__art--cloud {
  width: 3.6rem;
  height: 2.4rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 1.2rem -0.7rem 0 -0.35rem rgba(255, 255, 255, 0.05);
}

.tile__art--moon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: rgba(74, 125, 255, 0.22);
  box-shadow: inset -0.9rem -0.35rem 0 0 rgba(18, 22, 34, 0.85);
}

.panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--stage);
}

.panel > [data-panel] {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

[hidden] {
  display: none !important;
}

.panel__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

[data-page=clients] .table-wrap {
  overflow: hidden;
}

.status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.status.is-on {
  color: var(--ok);
}
.status.is-off {
  color: var(--danger);
}

.table tr[data-client] {
  cursor: pointer;
}
.table tr[data-client] td {
  transition: background 160ms ease;
}
@media (hover: hover) {
  .table tr[data-client]:hover td {
    background: #161922;
  }
}

.table tr.is-selected td {
  background: var(--field);
}

.facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem;
}
.facts.is-in > div {
  animation: rise 220ms ease both;
}
.facts.is-in > div:nth-child(1) {
  animation-delay: 0ms;
}
.facts.is-in > div:nth-child(2) {
  animation-delay: 18ms;
}
.facts.is-in > div:nth-child(3) {
  animation-delay: 36ms;
}
.facts.is-in > div:nth-child(4) {
  animation-delay: 54ms;
}
.facts.is-in > div:nth-child(5) {
  animation-delay: 72ms;
}
.facts.is-in > div:nth-child(6) {
  animation-delay: 90ms;
}
.facts.is-in > div:nth-child(7) {
  animation-delay: 108ms;
}
.facts.is-in > div:nth-child(8) {
  animation-delay: 126ms;
}
.facts.is-in > div:nth-child(9) {
  animation-delay: 144ms;
}
.facts.is-in > div:nth-child(10) {
  animation-delay: 162ms;
}
.facts.is-in > div:nth-child(11) {
  animation-delay: 180ms;
}
.facts.is-in > div:nth-child(12) {
  animation-delay: 198ms;
}
.facts.is-in > div:nth-child(13) {
  animation-delay: 216ms;
}
.facts.is-in > div:nth-child(14) {
  animation-delay: 234ms;
}
.facts.is-in > div:nth-child(15) {
  animation-delay: 252ms;
}
.facts.is-in > div:nth-child(16) {
  animation-delay: 270ms;
}
.facts.is-in > div:nth-child(17) {
  animation-delay: 288ms;
}
.facts.is-in > div:nth-child(18) {
  animation-delay: 306ms;
}
.facts div {
  display: grid;
  gap: 0.1rem;
}
.facts dt {
  color: var(--muted);
  font-size: 0.75rem;
}
.facts dd {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.client-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.95rem;
  text-decoration: none;
}
.client-link.is-selected {
  background: var(--field);
}

.client-link__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}
.client-link__meta .card__sub {
  margin: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.table th {
  position: sticky;
  top: 0;
  padding: 0.55rem 0.75rem;
  background: var(--field);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}
.table td {
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--border);
  user-select: text;
}

[data-page=clients] .table th,
[data-page=clients] .table td {
  padding: 0.8rem 1rem;
}

.os {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.os svg,
.os img {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
}

.account {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.account__id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.account__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.avatar {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--field);
  cursor: pointer;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.avatar__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  opacity: 0;
}
.avatar__hint svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .avatar:hover .avatar__hint {
    opacity: 1;
  }
}

.avatar--static {
  cursor: default;
}

.avatar__reset {
  margin-top: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
@media (hover: hover) {
  .avatar__reset:hover {
    color: var(--fg);
  }
}

.account-signout {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.account__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.account details {
  margin-top: 0.65rem;
}

.account details summary {
  cursor: pointer;
  list-style: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
}

.modal__card {
  display: grid;
  gap: 0.75rem;
  width: min(24rem, 100% - 2rem);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.empty {
  display: grid;
  flex: 1;
  place-items: center;
  margin: 0;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.split {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 0.75rem;
  min-height: 0;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split--even > .card,
.board {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.split--logs {
  grid-template-columns: 16rem minmax(0, 1fr);
}

.side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.side [data-log-list] {
  overflow: auto;
}

.side__head {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
}

.side__actions {
  padding: 0 0.75rem 0.75rem;
}
.side__actions [aria-disabled=true] {
  opacity: 0.4;
  pointer-events: none;
}

.toggle {
  width: 2.1rem;
  height: 1.2rem;
  padding: 0.12rem;
  border: 0;
  border-radius: 99px;
  background: #2a2a2a;
  cursor: pointer;
}
.toggle span {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--graphite);
}

.toggle.is-on {
  background: var(--graphite);
}
.toggle.is-on span {
  margin-left: auto;
  background: var(--bg);
}

.flags {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.flag {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex: none;
}

.flag-name {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.45rem;
}

.mark {
  font-size: 0.95rem;
}

.chip .flag {
  margin-right: 0.3rem;
}

.shot {
  width: 4.5rem;
  height: 2.6rem;
  object-fit: cover;
  background: var(--bg);
  border-radius: 4px;
  cursor: pointer;
}

.shot-pop {
  position: fixed;
  z-index: 30;
  max-width: 480px;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: pop 160ms ease;
}
.shot-pop img {
  display: block;
  max-width: 480px;
  max-height: 360px;
  object-fit: contain;
}

.menu {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 15.5rem;
  padding: 0.4rem;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #161922;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 80ms ease;
  pointer-events: none;
}
.menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.58rem 0.75rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) {
  .menu button:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

.menu__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.menu__icon,
.menu__chevron {
  flex: none;
}

.menu__icon {
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
}

.menu__chevron {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: auto;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu__danger {
  color: var(--danger);
}

.menu__group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu > .menu__group,
.menu > button,
.menu__sub > button {
  box-shadow: 0 1px 0 var(--border);
}

.menu > button:last-child,
.menu__sub > button:last-child {
  box-shadow: none;
}

.menu__parent {
  justify-content: flex-start;
}

.menu__sub {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  top: 0;
  left: 100%;
  margin: 0;
  min-width: 13.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #161922;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 80ms ease, visibility 0s linear 280ms;
  margin-top: -0.4rem;
}
.menu__sub::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 10px;
}

.menu__group:hover .menu__sub,
.menu__group:focus-within .menu__sub,
.menu__group.is-open .menu__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu.is-left .menu__sub {
  left: auto;
  right: 100%;
}
.menu.is-left .menu__sub::before {
  left: auto;
  right: -8px;
}

.menu hr {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu__sub,
  .chip,
  .table tr[data-client] td,
  .facts.is-in > div,
  .shot-pop,
  .spin {
    animation: none;
    transition: none;
  }
  .menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 26rem;
}
.stack-cards--wide {
  max-width: 48rem;
}

.table .num {
  text-align: center;
}

.table .clip {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table .actions {
  text-align: right;
  white-space: nowrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.pager__count {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.note.is-ok {
  color: var(--ok);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  align-items: center;
}

.filters[data-filters] {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.filter-group {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.filter-label {
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.filter-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.filter-items > span {
  display: contents;
}
.filter-items .chip {
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--muted);
}
.filter-items .chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #f2f4f8;
  box-shadow: 0 0 0 1px rgba(59, 111, 212, 0.35);
}

.pick {
  position: relative;
  justify-self: start;
  max-width: 100%;
}

.pick__btn {
  display: block;
  max-width: min(18rem, 100%);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.pick__menu {
  position: absolute;
  z-index: 15;
  top: 0;
  left: 100%;
  margin-left: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(16rem, 70vw);
  max-height: 16rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #151822;
}
.pick__menu .search {
  width: 100%;
}

.pick__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: auto;
}

.pick__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.pick__item:last-child {
  border-bottom: 0;
}
.pick__item.is-on {
  background: var(--accent-soft);
  color: #f2f4f8;
}

.filters[hidden] {
  display: none;
}

.stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 16rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.stage__bar,
.stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.65rem;
  background: var(--field);
}

.stage__bar {
  border-bottom: 1px solid var(--border);
}

.stage__foot {
  border-top: 1px solid var(--border);
}

.stage__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.stage__view {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  white-space: pre-wrap;
}

.spin {
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid var(--border);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.term {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  color: var(--fg);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: pre-wrap;
  text-align: left;
}

.panel > [data-wait] {
  background: transparent;
}

.stage canvas,
.stage img[data-screen],
.stage img.stage__screen {
  flex: 1;
  width: 100%;
  min-height: 16rem;
  background: #000;
  object-fit: contain;
}

.stage__live {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 16rem;
  background: #000;
}

.stage__mods,
.stage__pad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--field);
}

.stage__pad {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.stage__mods .btn,
.stage__pad .btn {
  padding: 0.22rem 0.45rem;
  font-size: 0.72rem;
}

.stage__desk {
  flex: 1;
  min-height: 16rem;
  overflow: auto;
}

.stage__frame {
  position: relative;
  width: max-content;
}

.stage__frame .stage__screen {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
}

.stage__hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: crosshair;
}

.stage canvas {
  cursor: crosshair;
}
.stage canvas:focus {
  outline: none;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 7.5rem;
  padding: 0.4rem;
  border-right: 1px solid var(--border);
  background: var(--field);
}

.prompt {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
  min-width: 12rem;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}

.prompt input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
}
.prompt input:focus {
  outline: none;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
}

.stage--console {
  background: #0a0a0a;
}

.log {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
}
.log .empty {
  margin: auto;
}

.log__row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.18rem 0.75rem;
  color: var(--fg);
}
.log__row:nth-child(even) {
  background: #101010;
}

.log__time {
  flex: 0 0 17ch;
  color: var(--muted);
  white-space: nowrap;
}

.log__type {
  flex: 0 0 5.5rem;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  background: #1c1c1c;
  color: var(--graphite);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.log__type.is-ok {
  background: rgba(143, 191, 159, 0.14);
  color: var(--ok);
}
.log__type.is-bad {
  background: rgba(224, 108, 108, 0.14);
  color: var(--danger);
}
.log__type.is-warn {
  background: rgba(214, 176, 96, 0.14);
  color: #d6b060;
}

.log__plugin {
  flex: 0 0 12rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log__msg {
  flex: 1;
  min-width: 0;
  color: var(--graphite-hot);
  overflow-wrap: anywhere;
}

.log__get {
  flex: 0 0 auto;
  color: var(--ok);
}

@media (max-width: 52rem) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .side {
    min-height: 12rem;
  }
}
@media (max-width: 30rem) {
  .tiles {
    grid-template-columns: 1fr;
  }
}
.app {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.app__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0.7rem 0.7rem 0.7rem 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-app);
  background: var(--stage);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.settings[hidden] {
  display: none;
}

.settings__card {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  width: min(54rem, 100%);
  height: min(36rem, 100%);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.settings__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem;
  border-right: 1px solid var(--border);
  background: var(--stage);
}

.settings__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.settings__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.settings__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.settings__item.is-on {
  background: var(--accent-soft);
  color: var(--fg);
}
@media (hover: hover) {
  .settings__item:hover {
    color: var(--fg);
  }
}

.settings__body {
  min-width: 0;
  min-height: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
}

.nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.35rem 0.45rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav__brand {
  display: block;
  margin: 0.7rem 0.55rem 1.45rem;
  cursor: default;
}
.nav__brand img {
  display: block;
  width: 90%;
  max-width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  -webkit-user-drag: none;
  user-select: none;
}

.nav__scroll {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  overflow: auto;
}

.nav__thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2.9rem;
  border-radius: 0.75rem;
  background: #333;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), height 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.nav.is-thumbed .nav__thumb {
  opacity: 1;
}

.nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.nav__label {
  margin: 0 0.85rem 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.nav__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.nav__item svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, transform 160ms ease;
}
@media (hover: hover) {
  .nav__item:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
  }
  .nav__item:hover svg {
    transform: scale(1.08);
  }
}

.nav__item.is-current {
  color: #f2f2f2;
  background: #333;
}
.nav__item.is-current svg {
  color: var(--accent);
}
@media (hover: hover) {
  .nav__item.is-current:hover {
    background: #333;
  }
}

.nav__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 0.75rem;
  transition: background-color 160ms ease;
}
@media (hover: hover) {
  .nav__user:hover {
    background: #333;
  }
}

.nav__avatar {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--field);
  -webkit-user-drag: none;
  user-select: none;
}

.nav__who {
  min-width: 0;
  flex: 1;
}

.nav__user-name,
.nav__user-role {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__user-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.nav__user-role {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.nav__cog {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}
.nav__cog svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, transform 160ms ease;
}
@media (hover: hover) {
  .nav__cog:hover {
    background: var(--field);
    color: var(--fg);
  }
}

.tabs {
  display: flex;
  flex: none;
  align-items: stretch;
  height: 2.15rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.tabs[hidden] {
  display: none;
}

.tabs__tab {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.tabs__tab form {
  display: flex;
  align-self: stretch;
}
.tabs__tab.is-current {
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tabs__label,
.tabs__close {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.tabs__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.15rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.tabs__close {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 0.7rem 0 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
}

.view {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
}
.view[hidden], .view.is-hidden {
  display: none !important;
}

.app__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  min-height: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  overflow: auto;
}

.page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.page__head--tool {
  justify-content: flex-end;
}
.page__head--tool [data-status]:empty {
  display: none;
}
.page__head--tool [data-status]:not(:empty) {
  margin: 0 auto 0 0;
}
.page__head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}
.page__head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .nav__thumb,
  .nav__item,
  .nav__item svg,
  .nav__user,
  .nav__cog svg {
    transition: none;
  }
  .nav__item:hover {
    transform: none;
  }
}
@media (max-width: 52rem) {
  .app {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
  .app__body {
    margin: 0.45rem 0.45rem 0.45rem 0;
  }
  .settings__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .settings__nav {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 30rem) {
  .app {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
  .app__body {
    margin: 0.35rem 0.35rem 0.35rem 0;
  }
  .app__main {
    padding: 0.75rem;
  }
}
.auth {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(1.5rem + env(safe-area-inset-top)) calc(1.25rem + env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) calc(1.25rem + env(safe-area-inset-left));
}

.auth__panel {
  width: min(26rem, 100%);
  padding: 1.4rem 1.35rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 64px rgba(0, 0, 0, 0.35);
}

.auth__panel--setup {
  width: min(32rem, 100%);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth__row {
  display: grid;
  grid-template-columns: 1fr 6.5rem;
  gap: 0.75rem;
}

.auth__note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
}

.auth__secret {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.04em;
}

.auth__check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}
.auth__check input {
  margin-top: 0.2rem;
}

.auth__link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.auth__mark {
  display: block;
  width: 8.5rem;
  height: auto;
  margin: 0 0 1.35rem;
  mix-blend-mode: lighten;
  -webkit-user-drag: none;
  user-select: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.85rem;
  color: var(--muted);
}

textarea.field__input {
  min-height: 6.5rem;
  resize: vertical;
  font-size: 0.85rem;
}

.prefix-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.prefix-row .field__input {
  flex: 1;
  min-width: 0;
}

.field__input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
.field__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.16);
}

.auth__error {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.auth__submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  min-height: 2.75rem;
  cursor: pointer;
}
@media (hover: hover) {
  .auth__submit:hover {
    filter: brightness(1.08);
  }
}

@media (max-width: 30rem) {
  .auth {
    padding: calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
  }
}
@media (max-height: 32rem) {
  .auth__mark {
    width: 7rem;
    margin-bottom: 0.5rem;
  }
}
.auth__session {
  text-align: center;
}
.auth__session p {
  margin: 0;
  color: var(--muted);
}

.view[data-page=dashboard] {
  overflow: hidden;
}

.dash {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  overflow: hidden;
}

.dash .tiles {
  flex: none;
}

.dash .tile {
  min-height: 8.4rem;
}

.dash .tile__value {
  font-size: 2.5rem;
}

.dash__stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.dash__map {
  position: relative;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--field);
}

.world {
  display: block;
  width: 100%;
  height: 100%;
}

.world path {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 0.7;
}

.world path.is-on {
  fill: rgba(59, 111, 212, 0.28);
  stroke: rgba(59, 111, 212, 0.55);
  cursor: pointer;
}

.world path.is-on:hover {
  fill: rgba(59, 111, 212, 0.48);
}

.map__tip {
  position: absolute;
  z-index: 3;
  min-width: 12.5rem;
  max-width: 16rem;
  max-height: 14rem;
  padding: 0.55rem 0.65rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: #161922;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.map__tip-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
}

.map__tip-sub {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.map__tip-row {
  display: grid;
  gap: 0.05rem;
  padding: 0.35rem 0 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
}
.map__tip-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.map__tip-row .is-on {
  color: var(--ok);
}

.dash__mix {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  width: 16.5rem;
  min-width: 0;
  max-width: none;
  padding: 0.7rem 0.8rem;
}

.mix {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.55rem;
}

.mix__chart {
  position: relative;
  width: 5.2rem;
  height: 5.2rem;
  flex: none;
}

.mix__pie {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.mix__pie::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--field);
}

.mix__total {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  pointer-events: none;
}

.mix__legend {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.mix__row {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.mix__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.mix__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
}
.mix__label img {
  width: 0.85rem;
  height: 0.85rem;
}

.mix__n {
  color: var(--fg);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 52rem) {
  .dash .tile__value {
    font-size: 1.85rem;
  }
}
@media (max-width: 30rem) {
  .dash .tile__value {
    font-size: 1.45rem;
  }
  .dash__mix {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
  }
}
.view[data-page=clients] {
  position: relative;
  gap: 0.6rem;
  overflow: hidden;
}

.view[data-page=clients] .tiles {
  flex: none;
}

.client-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 2.05rem;
}

.client-bar .search--wide {
  flex: 1 1 16rem;
  width: auto;
  min-width: 12rem;
}

.client-bar__end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.view[data-page=clients] .chips--os {
  gap: 0.3rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--border);
}

.view[data-page=clients] .split {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
}

.view[data-page=clients] .split .sessions {
  flex: 1;
  min-height: 0;
}

.view[data-page=clients] .split .side {
  display: none;
}

.view[data-page=clients] .split.is-open .sessions {
  padding-right: 18rem;
}

.view[data-page=clients] .split.is-open .side {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 17.5rem;
  max-width: 42%;
}

.sessions {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.sessions__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.38rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.session {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: none;
  height: 3.55rem;
  min-height: 3.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--field);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
}
@media (hover: hover) {
  .session:hover {
    background: #1a1d27;
  }
}

.session.is-selected {
  background: #1c2029;
}

.session__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: #5b6270;
  box-shadow: 0 0 0 4px rgba(91, 98, 112, 0.12);
}

.session.is-on .session__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.session.is-off .session__dot {
  background: #6a7180;
}

.session__name {
  flex: 0 1 10.5rem;
  min-width: 6.5rem;
  overflow: hidden;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session__user {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 500;
}

.session__ip,
.session__geo,
.session__seen {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.session__ip {
  flex: 0 0 9.5rem;
}

.session__geo {
  flex: 0 0 9.5rem;
}

.session__seen {
  flex: 0 0 11rem;
}

.session__icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.session__os {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.session__os svg,
.session__os img {
  width: 0.95rem;
  height: 0.95rem;
}

.session__flags {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.session__shot {
  width: 2.2rem;
  height: 1.3rem;
  object-fit: cover;
  border-radius: 0.35rem;
  background: var(--stage);
}

.session__os,
.session__flags,
.session__shot {
  flex: none;
}

.view[data-page=clients] .side {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--field);
}

.view[data-page=clients] .side__head {
  border-bottom-color: var(--border);
}

.steal-peek {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
}
.steal-peek[hidden] {
  display: none !important;
}

.steal-peek__card {
  display: flex;
  flex-direction: column;
  width: min(64rem, 100%);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.steal-peek__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.steal-peek__head h2 {
  margin: 0;
  font-size: 1rem;
}

.steal-peek__head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.steal-peek__tabs,
.steal-peek__subs {
  display: flex;
  flex: none;
  gap: 0.15rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.steal-peek__tabs {
  padding: 0 0.65rem;
}

.steal-peek__subs {
  padding: 0.4rem 0.65rem 0;
  border-bottom: 0;
}

.steal-peek__tabs button,
.steal-peek__subs button {
  flex: none;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.steal-peek__tabs button.is-on,
.steal-peek__subs button.is-on {
  border-bottom-color: var(--accent, #6366f1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

.steal-peek__search {
  display: flex;
  flex: none;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0;
}
.steal-peek__search .search {
  flex: 1;
}

.steal-peek__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem;
}
.steal-peek__body .table-wrap {
  overflow: auto;
  width: 100%;
  max-width: 100%;
}
.steal-peek__body .table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.steal-peek__body th,
.steal-peek__body td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steal-peek__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.15rem 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.steal-peek__pager div {
  display: flex;
  gap: 0.35rem;
}

.steal-peek__pager button {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.steal-peek__pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.steal-peek__label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.steal-peek__body .table-wrap + .steal-peek__label,
.steal-peek__body .table-wrap + .table-wrap {
  margin-top: 0.85rem;
}

@media (max-width: 52rem) {
  .view[data-page=clients] .split {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .view[data-page=clients] .split .side,
  .view[data-page=clients] .split.is-open .side {
    min-height: 0;
  }
}
.view[data-page=campaigns] {
  overflow: hidden;
}

.view[data-page=campaigns] .tiles {
  flex: none;
}

.view[data-page=campaigns] .split {
  min-height: 0;
}

.view[data-page=campaigns] .toolbar {
  justify-content: stretch;
}

.view[data-page=campaigns] .toolbar .field__input {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.camp__open {
  flex: none;
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 0.2rem;
  overflow: auto;
  max-height: 42%;
}

.view[data-page=campaigns] tr.is-on {
  background: #1c2029;
}

.view[data-page=domains] {
  overflow: hidden;
}

.view[data-page=domains] .tiles {
  flex: none;
}

.view[data-page=domains] .client-bar {
  flex: none;
}

.view[data-page=domains] .board {
  flex: 1;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.view[data-page=stealer] {
  overflow: hidden;
}

.view[data-page=stealer] .split {
  min-height: 0;
}

.view[data-page=stealer] .panel {
  overflow: hidden;
}

.view[data-page=stealer] .panel > .toolbar {
  flex: none;
  gap: 0.45rem;
}

.view[data-page=stealer] .panel__head {
  flex: none;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  overflow: visible;
  background: var(--stage);
  z-index: 2;
}

.view[data-page=stealer] [data-search-results] {
  flex: none;
  max-height: 12rem;
  overflow: auto;
}

.view[data-page=stealer] [data-log-body] {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.view[data-page=stealer] [data-log-body] .table-wrap {
  flex: 1;
}

.view[data-page=stealer] .table th {
  z-index: 1;
  background: var(--stage);
}

.view--hvnc {
  gap: 0;
  overflow: hidden;
}

.hvnc__empty {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--muted);
}

.hvnc__bar,
.hvnc__type {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem;
  background: var(--field);
}

.hvnc__bar {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.hvnc__meta,
.hvnc__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hvnc__fps {
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(59, 111, 212, 0.3);
  border-radius: 0.35rem;
  background: rgba(59, 111, 212, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.hvnc__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--danger);
}
.hvnc__dot.is-on {
  background: #22c55e;
}

.hvnc__check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.hvnc__x {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.45rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.hvnc__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.hvnc__rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 3rem;
  padding: 0.45rem 0.3rem;
  overflow: auto;
  border-right: 1px solid var(--border);
  background: var(--field);
}
.hvnc__rail button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}
.hvnc__rail button img,
.hvnc__rail button svg {
  width: 1.1rem;
  height: 1.1rem;
}
.hvnc__rail button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hvnc__rail button.is-bad {
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--danger);
}

.hvnc__rule {
  width: 1.4rem;
  height: 1px;
  margin: 0.15rem 0;
  background: var(--border);
}

.hvnc__stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hvnc__screen {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  background: #000;
}
.hvnc__screen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: crosshair;
}

.hvnc__wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  text-align: center;
}
.hvnc__wait[hidden] {
  display: none;
}

.hvnc__type {
  border-top: 1px solid var(--border);
}
.hvnc__type input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--stage);
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
}

.view--files {
  gap: 0;
  overflow: hidden;
}

.files__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--field);
}

.files__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.files__brand h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.files__brand p {
  margin: 0.1rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files__mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--accent);
  border-radius: 0.55rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.files__mark svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  stroke: none;
}

.files__head-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.files__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--danger);
}
.files__dot.is-on {
  background: #22c55e;
}

.files__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.85rem 1rem 0.9rem;
}

.files__toolbar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.files__cluster {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.files__icon-btn {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--field);
  color: var(--muted);
  cursor: pointer;
}
.files__icon-btn svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.files__icon-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
@media (hover: hover) {
  .files__icon-btn:not([disabled]):hover {
    background: #1a1d27;
    color: var(--fg);
  }
}

.files__path {
  display: flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: 0.15rem;
  min-width: 8rem;
  overflow: auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--field);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  white-space: nowrap;
}
.files__path a {
  max-width: 14ch;
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  text-overflow: ellipsis;
}
@media (hover: hover) {
  .files__path a:hover {
    color: var(--accent);
  }
}

.files__root {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--muted) !important;
}
.files__root svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.files__chevron {
  width: 0.65rem;
  height: 0.65rem;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.files__pick {
  width: auto;
  max-width: 8.6rem;
  height: 1.85rem;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 0.72rem;
}

.files__act {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(59, 111, 212, 0.3);
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.files__act svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.files__act[disabled] {
  opacity: 0.4;
  cursor: default;
}
.files__act--bad {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.files__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--field);
}

.files__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.files__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.files__table th,
.files__table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
}
.files__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161922;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.files__table th:first-child,
.files__table td:first-child {
  width: 2.1rem;
  padding-right: 0.2rem;
}
.files__table th:nth-child(3),
.files__table td:nth-child(3),
.files__table th:nth-child(4),
.files__table td:nth-child(4) {
  width: 7.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.files__table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
@media (hover: hover) {
  .files__table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
  }
}
.files__table tbody tr.is-on td {
  background: rgba(59, 111, 212, 0.12);
}
.files__table td:nth-child(2) {
  font-weight: 600;
}

.files__glyph {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.files__glyph--dir {
  fill: rgba(251, 191, 36, 0.18);
}

.files__empty {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.files__empty--card {
  min-height: 12rem;
}

.files__fail {
  color: var(--danger);
  font-size: 1rem;
  font-weight: 700;
}

.files__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
}

.files__menu {
  min-width: 11rem;
  padding: 0.3rem;
}
.files__menu button {
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.75rem;
}
.files__menu svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.files__menu .is-bad {
  color: var(--danger);
}

.files__rule {
  display: block;
  height: 1px;
  margin: 0.25rem 0.4rem;
  background: var(--border);
}

.task-miss {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  font-size: 0.78rem;
}

.task-miss::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.task-dialog {
  display: flex;
  flex-direction: column;
  width: min(26rem, 100% - 2rem);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
}

.task-scopes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.task-scopes button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.task-scopes button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.task-scopes svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.task-cats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  overflow: auto;
}

.task-dialog .toolbar {
  flex: none;
  padding-top: 0.15rem;
}

.task-cat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.task-cat:hover {
  background: rgba(255, 255, 255, 0.07);
}

.task-cat input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent, #6366f1);
}

.task-cat strong {
  display: block;
  font-size: 0.8rem;
}

.task-cat small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.task-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.menu__break {
  height: 1px;
  margin: 0.25rem 0.45rem;
  background: var(--border);
}
