:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-panel: #10151d;
  --bg-panel-2: #151b24;
  --bg-muted: #0d1117;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #edf2f8;
  --text-muted: #93a0b5;
  --accent: #ff6a1a;
  --accent-soft: rgba(255, 106, 26, 0.14);
  --success: #4dcf98;
  --warning: #ffb24c;
  --danger: #ff6767;
  --info: #7a94ff;
  --scrollbar-size: 4px;
  --scrollbar-track: rgba(255, 255, 255, 0.025);
  --scrollbar-thumb: rgba(255, 255, 255, 0.18);
  --scrollbar-thumb-hover: rgba(255, 106, 26, 0.46);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0e13 0%, #090c11 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
}

.auth-body::before {
  display: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 25, 34, 0.96), rgba(14, 18, 25, 0.96));
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-brand-mark,
.sidebar-icon,
.user-chip-avatar,
.icon-circle,
.metric-icon {
  display: grid;
  place-items: center;
}

.app-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 26, 0.24);
  background: var(--accent-soft);
}

.app-brand-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-group-label {
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #d8e0ec;
  transition: 150ms ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.is-active {
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.16), rgba(255, 106, 26, 0.08));
  border-color: rgba(255, 106, 26, 0.26);
}

.sidebar-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-label {
  font-size: 0.94rem;
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-meta-label,
.mini-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sidebar-meta-value,
.mini-value {
  font-size: 0.92rem;
  font-weight: 600;
}

.sidebar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  padding: 20px 28px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-breadcrumb {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.user-chip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid rgba(255, 106, 26, 0.24);
}

.topbar-user-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-user-text strong {
  font-size: 0.92rem;
}

.topbar-user-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-launcher {
  position: relative;
}

.admin-launcher-button {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 106, 26, 0.26);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 26, 0.24), transparent 72%),
    rgba(255, 106, 26, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  box-shadow: 0 18px 34px rgba(255, 106, 26, 0.10);
}

.admin-launcher-button:hover,
.admin-launcher.is-open .admin-launcher-button {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 26, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 26, 0.34), transparent 72%),
    rgba(255, 106, 26, 0.12);
}

.admin-launcher-button img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.admin-dock {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(17, 22, 30, 0.98), rgba(10, 13, 18, 0.98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.46);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.admin-launcher.is-open .admin-dock {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.admin-dock-head {
  padding: 2px 2px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-dock-head strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-dock-head small {
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-dock-nav {
  display: grid;
  gap: 8px;
}

.admin-dock-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #dfe6f2;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.admin-dock-link:hover,
.admin-dock-link.is-active {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 106, 26, 0.08);
  border-color: rgba(255, 106, 26, 0.18);
}

.admin-dock-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.app-content {
  padding: 12px 28px 28px;
  transition: opacity 120ms ease, filter 120ms ease;
}

.app-content.is-loading {
  opacity: 0.54;
  filter: blur(1px);
  pointer-events: none;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-subtitle,
.section-subtitle,
.card-subtitle,
.supporting-text,
.list-card-meta,
.cell-meta,
.metric-meta,
.footer-note,
.auth-copy,
.auth-form-subtitle {
  color: var(--text-muted);
}

.page-subtitle,
.section-subtitle,
.supporting-text,
.auth-copy,
.auth-form-subtitle {
  margin: 10px 0 0;
  line-height: 1.65;
}

.page-actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-panel,
.surface-card,
.card,
.table-shell,
.auth-panel,
.auth-card {
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.98), rgba(14, 18, 25, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel,
.surface-card,
.card,
.auth-panel,
.auth-card {
  padding: 22px;
}

.hero-grid,
.panel-grid,
.split-grid,
.metric-grid,
.card-grid,
.meta-grid {
  display: grid;
  gap: 16px;
}

.hero-grid,
.panel-grid.two-up,
.split-grid,
.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid.three-up,
.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.section-title,
.card-title,
.auth-form-title {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 152px;
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-label,
.meta-item-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.metric-value {
  margin-top: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 1.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-icon,
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.accent .metric-icon,
.btn-primary {
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.28), rgba(255, 106, 26, 0.16));
}

.list-card,
.meta-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.list-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.list-card-title,
.cell-title {
  font-weight: 600;
}

.cell-meta,
.list-card-meta {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.status-badge,
.protocol-pill,
.load-pill,
.muted-pill,
.accent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}

.accent-chip {
  color: #ffd7c0;
  background: rgba(255, 106, 26, 0.1);
  border-color: rgba(255, 106, 26, 0.22);
}

.status-online,
.status-active,
.status-ok,
.load-low {
  color: #c8f7e2;
  background: rgba(77, 207, 152, 0.1);
  border-color: rgba(77, 207, 152, 0.22);
}

.status-provisioning,
.status-pending-create,
.status-pending_create,
.status-maintenance,
.status-limited,
.status-expired,
.load-medium {
  color: #ffe2ba;
  background: rgba(255, 178, 76, 0.11);
  border-color: rgba(255, 178, 76, 0.22);
}

.status-blocked,
.status-offline,
.status-revoked,
.status-deleted,
.status-error,
.load-high {
  color: #ffd0d0;
  background: rgba(255, 103, 103, 0.11);
  border-color: rgba(255, 103, 103, 0.22);
}

.status-degraded,
.status-imported {
  color: #dbe0ff;
  background: rgba(122, 148, 255, 0.12);
  border-color: rgba(122, 148, 255, 0.22);
}

.table-shell {
  overflow: hidden;
}

.table-toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: rgba(255, 255, 255, 0.06);
  margin: 0;
}

.table thead th {
  padding: 14px 20px;
  border-bottom-width: 1px;
  color: #afbbcf;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.table tbody td {
  padding: 16px 20px;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.copy-block,
pre.copy-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #0b0f14;
  color: #d8e0ec;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn {
  --bs-btn-padding-y: 0.74rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 12px;
  --bs-btn-font-size: 0.92rem;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: rgba(255, 106, 26, 0.32);
  --bs-btn-hover-bg: #ff7a34;
  --bs-btn-hover-border-color: rgba(255, 106, 26, 0.42);
  --bs-btn-active-bg: #ff7a34;
  --bs-btn-active-border-color: rgba(255, 106, 26, 0.42);
  box-shadow: 0 10px 24px rgba(255, 106, 26, 0.14);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-light {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-color: var(--text);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline-danger {
  --bs-btn-border-color: rgba(255, 103, 103, 0.28);
  --bs-btn-hover-bg: rgba(255, 103, 103, 0.08);
}

.btn-outline-warning {
  --bs-btn-border-color: rgba(255, 178, 76, 0.28);
  --bs-btn-hover-bg: rgba(255, 178, 76, 0.08);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cfd8e6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-control,
.form-select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1117;
  color: var(--text);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  background: #0c1117;
  color: var(--text);
  border-color: rgba(255, 106, 26, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(255, 106, 26, 0.12);
}

.form-control::placeholder {
  color: #708097;
}

.form-check-input {
  background-color: #0c1117;
  border-color: rgba(255, 255, 255, 0.18);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: #d4deeb;
}

.alert {
  border-radius: 12px;
}

.alert-danger {
  color: #ffd0d0;
  background: rgba(255, 103, 103, 0.1);
  border-color: rgba(255, 103, 103, 0.2);
}

.alert-success {
  color: #d8ffeb;
  background: rgba(77, 207, 152, 0.1);
  border-color: rgba(77, 207, 152, 0.2);
}

.alert-info {
  color: #dae1ff;
  background: rgba(122, 148, 255, 0.1);
  border-color: rgba(122, 148, 255, 0.2);
}

.toast-layer {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2200;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  min-height: 62px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(12, 12, 14, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 105, 0, 0.12), transparent 36%);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-in 180ms ease-out both;
}

.app-toast.is-leaving {
  animation: toast-out 160ms ease-in both;
}

.app-toast__indicator {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
}

.app-toast__content {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-toast__content strong {
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.app-toast__content span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.app-toast__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1;
}

.app-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-toast--success .app-toast__indicator {
  background: #00bc7d;
  box-shadow: 0 0 18px rgba(0, 188, 125, 0.52);
}

.app-toast--danger .app-toast__indicator {
  background: #fb2c36;
  box-shadow: 0 0 18px rgba(251, 44, 54, 0.52);
}

.app-toast--warning .app-toast__indicator {
  background: #ff8904;
  box-shadow: 0 0 18px rgba(255, 137, 4, 0.52);
}

.app-toast--info .app-toast__indicator {
  background: #3b82f6;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.52);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(18px, -6px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(18px, -6px, 0) scale(0.98);
  }
}

.empty-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
}

.app-body--admin {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 106, 26, 0.10), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(122, 148, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #090c11 0%, #080a0e 100%);
}

.app-body--user {
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 106, 26, 0.08), transparent 24%),
    radial-gradient(circle at 80% 24%, rgba(77, 207, 152, 0.06), transparent 24%),
    linear-gradient(180deg, #0a0d12 0%, #080b10 100%);
}

.app-shell--user {
  grid-template-columns: 252px minmax(0, 1fr);
}

.app-shell--admin .app-sidebar {
  background:
    linear-gradient(180deg, rgba(12, 15, 21, 0.96), rgba(8, 11, 16, 0.96)),
    radial-gradient(circle at 10% 10%, rgba(255, 106, 26, 0.10), transparent 32%);
}

.app-shell--user .app-sidebar {
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.96), rgba(8, 11, 16, 0.96)),
    radial-gradient(circle at 10% 10%, rgba(77, 207, 152, 0.08), transparent 32%);
}

.sidebar-role-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(255, 106, 26, 0.12), transparent 44%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-role-panel strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.sidebar-role-panel span:last-child {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.role-kicker {
  width: fit-content;
  color: #ffc7a5;
  background: rgba(255, 106, 26, 0.10);
  border: 1px solid rgba(255, 106, 26, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-header--compact {
  padding: 8px 0 2px;
}

.metric-grid--user,
.metric-grid--admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-value--small {
  font-size: clamp(1.05rem, 1.2vw, 1.45rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.table-shell--flat,
.surface-card.dashboard-panel,
.surface-card.access-card,
.surface-card.node-select-card,
.surface-card.command-panel {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.table-toolbar--plain {
  padding: 0 0 16px;
  border-bottom: 0;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.dashboard-panel {
  min-height: 100%;
}

.dashboard-panel--wide {
  display: flex;
  flex-direction: column;
}

.protocol-meter-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.protocol-meter {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.protocol-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 106, 26, 0.24);
  background:
    radial-gradient(circle at top, rgba(255, 106, 26, 0.22), transparent 72%),
    rgba(255, 255, 255, 0.035);
  color: #ffd2b8;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.protocol-meter-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.protocol-meter-head,
.status-line,
.command-row,
.node-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.protocol-meter-head span,
.status-line span:first-child,
.signal-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.meter-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-track span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffb36c);
  box-shadow: 0 0 18px rgba(255, 106, 26, 0.28);
}

.status-stack {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.access-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.access-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.node-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.node-select-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.node-select-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.node-select-card.is-current::before {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.node-select-card.is-current {
  border-color: rgba(255, 106, 26, 0.26);
}

.node-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-command-grid,
.admin-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.command-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.command-panel--system {
  background:
    linear-gradient(180deg, rgba(18, 24, 33, 0.98), rgba(14, 18, 25, 0.98)),
    radial-gradient(circle at top right, rgba(122, 148, 255, 0.10), transparent 45%);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.command-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: 140ms ease;
}

.command-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 26, 0.20);
  background: rgba(255, 106, 26, 0.045);
}

.command-row > span:last-child {
  flex: 1;
  min-width: 0;
}

.command-row strong,
.command-row small {
  display: block;
}

.command-row small {
  margin-top: 4px;
  color: var(--text-muted);
  line-height: 1.45;
}

.command-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 106, 26, 0.18);
  background: rgba(255, 106, 26, 0.08);
}

.command-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.admin-form-panel,
.admin-table-panel {
  min-width: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.auth-viewport {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.auth-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 42px 40px 56px;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(33, 37, 45, 0.72) 0%, rgba(15, 18, 22, 0.92) 40%, #0f1216 100%);
  overflow: hidden;
  box-shadow: inset 0 2px 0 #e65d20;
}

.auth-stage-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: #535b6a;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 16px;
  text-transform: uppercase;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--fw-earth, url("/static/pic/earth-v1.webp")) center center / cover no-repeat;
  opacity: 0.30;
  filter: blur(5px);
  transform: scale(1.02);
  transform-origin: center;
  pointer-events: none;
}

.auth-stage-smoke {
  position: absolute;
  left: 50%;
  top: 178px;
  z-index: 1;
  width: 383px;
  height: 306px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 242, 248, 0.16) 0%, rgba(157, 167, 185, 0.08) 25%, rgba(15, 18, 22, 0) 68%);
  filter: blur(60px);
  opacity: 0.67;
  pointer-events: none;
}

.auth-stage-smoke::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -32px;
  width: 96px;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 93, 32, 0.54) 0%, rgba(230, 93, 32, 0) 72%);
  filter: blur(26px);
}

.auth-center-column {
  position: relative;
  z-index: 2;
  width: min(403px, 100%);
  margin: 95px auto 0;
}

.auth-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-brand-emblem {
  position: relative;
  width: 149px;
  height: 149px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.auth-brand-emblem::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 93, 32, 0.34) 0%, rgba(230, 93, 32, 0) 74%);
  filter: blur(18px);
}

.auth-brand-emblem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 27px;
  width: 79px;
  height: 65px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 93, 32, 0.42) 0%, rgba(230, 93, 32, 0) 70%);
  filter: blur(18px);
}

.auth-brand-emblem img {
  position: relative;
  z-index: 1;
  width: 149px;
  height: 149px;
}

.auth-brand-wordmark {
  margin: 0;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 48px;
  color: #f9fafc;
  text-shadow: 0 0 12px rgba(249, 250, 252, 0.05);
}

.auth-copy {
  width: min(370px, 100%);
  margin: 6px 0 0;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 15px;
  line-height: 24px;
  color: #9da7b9;
}

.auth-form {
  width: 100%;
  margin: 12px auto 0;
}

.auth-view-stack {
  width: 100%;
}

.auth-view[hidden] {
  display: none !important;
}

.auth-form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.auth-form .form-label {
  margin: 0;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #bac1d1;
}

.auth-kicker {
  color: #e65d20;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  margin-left: auto;
  text-align: right;
}

.auth-form .form-control {
  min-height: 50px;
  border-radius: 18px;
  padding: 12px 18px;
  background: #12151a;
  border-color: #2c323b;
  color: #f9fafc;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 15px;
  line-height: 22px;
}

.auth-form .form-control::placeholder {
  color: rgba(249, 250, 252, 0.96);
  opacity: 1;
}

.auth-form .form-control:focus {
  border-color: rgba(255, 106, 26, 0.45);
  box-shadow: 0 0 0 0.12rem rgba(255, 106, 26, 0.10);
}

.auth-field-group {
  margin-top: 10px;
}

.auth-screen-header {
  margin: 18px 0 0;
  text-align: center;
}

.auth-screen-title {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f9fafc;
}

.auth-screen-subtitle {
  max-width: 360px;
  margin: 10px auto 0;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 20px;
  color: #9da7b9;
  text-align: center;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .form-control {
  padding-right: 72px;
}

.auth-input-action {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da7b9;
  cursor: pointer;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 16px;
}

.auth-input-action:hover {
  color: #f9fafc;
}

.auth-utility-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 19px;
  cursor: pointer;
  max-width: 210px;
}

.auth-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-check-box {
  position: relative;
  width: 18px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid #3a4351;
  background: #12151a;
  flex: 0 0 auto;
}

.auth-check-box::before,
.auth-check-box::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.auth-check-box::before {
  left: 3px;
  top: 8px;
  width: 4px;
  height: 2px;
  transform: rotate(45deg);
}

.auth-check-box::after {
  left: 6px;
  top: 7px;
  width: 7px;
  height: 2px;
  transform: rotate(-45deg);
}

.auth-check input:checked + .auth-check-box {
  background: #e65d20;
  border-color: #e65d20;
}

.auth-check input:checked + .auth-check-box::before,
.auth-check input:checked + .auth-check-box::after {
  opacity: 1;
}

.auth-check-label,
.auth-link-hint {
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 18px;
}

.auth-check-label {
  color: #a1aabc;
}

.auth-link-hint {
  color: #e65d20;
  font-weight: 500;
  white-space: nowrap;
}

.auth-link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  min-height: 0;
  vertical-align: baseline;
  font: inherit;
  line-height: inherit;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
  min-height: 49px;
  border-radius: 18px;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 15px;
  line-height: 22px;
  justify-content: center;
  box-shadow: none;
}

.auth-password-meter {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-password-meter-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 auto;
}

.auth-password-meter-segment {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 120ms ease;
}

.auth-password-meter-segment.is-active {
  background: #e65d20;
}

.auth-password-meter-segment.is-strong {
  background: #4dcf98;
}

.auth-password-meter-label {
  min-width: 72px;
  text-align: right;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  color: #9da7b9;
}

.auth-password-meter-label.is-strong {
  color: #4dcf98;
}

.auth-requirements {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e889a;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 18px;
}

.auth-requirement::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #5a6472;
  background: transparent;
  flex: 0 0 auto;
}

.auth-requirement.is-met {
  color: #bcd6c7;
}

.auth-requirement.is-met::before {
  border-color: #4dcf98;
  background: #4dcf98;
}

.auth-note {
  max-width: 337px;
  margin: 10px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8891a3;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 18px;
}

.auth-link-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-secondary-link,
.auth-resend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e65d20;
  cursor: pointer;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 18px;
}

.auth-secondary-link:hover,
.auth-resend:hover:not(:disabled) {
  color: #ff8b52;
}

.auth-resend:disabled {
  color: #7e889a;
  cursor: default;
}

.auth-note-dot {
  width: 8px;
  height: 6px;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: #e65d20;
  flex: 0 0 auto;
}

.auth-alert {
  width: 100%;
  margin: 14px 0 0;
}

.auth-dev-reset {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 93, 32, 0.18);
  border-radius: 14px;
  background: rgba(230, 93, 32, 0.06);
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 18px;
}

.auth-dev-reset a {
  color: #ffb184;
  text-decoration: underline;
}

.auth-dev-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-form--secondary .auth-submit {
  margin-top: 20px;
}

.auth-code-form {
  margin-top: 16px;
}

.auth-otp-cluster {
  margin-top: 4px;
}

.auth-otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.auth-otp-slot {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid #2c323b;
  background: #12151a;
  color: #f9fafc;
  text-align: center;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 24px;
  line-height: 1;
  outline: none;
}

.auth-otp-slot:focus {
  border-color: rgba(255, 106, 26, 0.45);
  box-shadow: 0 0 0 0.12rem rgba(255, 106, 26, 0.10);
}

.auth-otp-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-support-copy {
  margin-top: 12px;
  font-family: "Bitcount Prop Single", "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 18px;
  color: #8891a3;
}

.auth-feature-list,
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.auth-feature strong {
  display: block;
}

.auth-feature span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  line-height: 1.55;
}

.inline-icon,
.app-brand-mark img,
.sidebar-icon img,
.user-chip-avatar img,
.metric-icon img,
.icon-circle img,
.icon-button img,
.auth-kicker img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.brand-logo {
  filter: none !important;
  object-fit: contain;
}

.brand-logo--sidebar {
  width: 28px !important;
  height: 28px !important;
}

.brand-logo--auth {
  width: 149px !important;
  height: 149px !important;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid--user,
  .metric-grid--admin,
  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid.three-up,
  .card-grid.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-grid,
  .admin-split,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid,
  .panel-grid.two-up,
  .panel-grid.three-up,
  .card-grid.two-up,
  .card-grid.three-up,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-stage {
    padding: 28px 24px 52px;
  }

  .auth-stage::before {
    background-position: 47% center;
  }

  .auth-stage-label {
    display: none;
  }

  .auth-stage-smoke {
    top: 178px;
    width: 383px;
    height: 306px;
  }

  .auth-center-column {
    width: min(350px, 100%);
    margin-top: 53px;
  }

  .auth-brand-emblem {
    width: 122px;
    height: 122px;
    margin-bottom: 2px;
  }

  .auth-brand-emblem::after {
    top: 20px;
    width: 69px;
    height: 69px;
  }

  .brand-logo--auth {
    width: 122px !important;
    height: 122px !important;
  }

  .auth-copy {
    width: min(322px, 100%);
  }

  .auth-screen-title {
    font-size: 30px;
    line-height: 34px;
  }

  .auth-form .form-control {
    min-height: 53px;
    padding: 14px 15px;
  }

  .auth-input-wrap .form-control {
    padding-right: 64px;
  }

  .auth-otp-row {
    gap: 8px;
  }

  .auth-otp-slot {
    min-height: 52px;
    border-radius: 16px;
    font-size: 22px;
  }

  .auth-field-group .form-control {
    min-height: 52px;
  }

  .auth-check-box {
    width: 15px;
    height: 15px;
  }

  .auth-check-box::before {
    left: 2px;
    top: 8px;
    width: 4px;
  }

  .auth-check-box::after {
    left: 5px;
    top: 7px;
    width: 7px;
  }

  .auth-submit {
    min-height: 52px;
  }

  .auth-note {
    max-width: 293px;
  }
}

@media (max-width: 720px) {
  .app-topbar,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-content,
  .app-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-topbar-actions,
  .topbar-user {
    width: 100%;
  }

  .app-topbar-actions {
    justify-content: space-between;
  }

  .admin-dock {
    left: 0;
    right: auto;
    transform-origin: top left;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid--user,
  .metric-grid--admin,
  .access-grid,
  .node-card-grid,
  .node-signal-grid {
    grid-template-columns: 1fr;
  }

  .protocol-meter,
  .access-card-head,
  .node-select-head,
  .command-row {
    align-items: flex-start;
  }

  .node-select-head,
  .command-row {
    flex-direction: column;
  }

  .table thead th,
  .table tbody td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-center-column,
  .auth-form,
  .auth-note,
  .auth-alert {
    width: 100%;
  }

  .auth-utility-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .auth-link-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .auth-link-hint {
    white-space: normal;
  }
}

/* Figma-derived application shell */
.fw-user-body,
.fw-admin-body {
  background: #050505;
  color: #f4f4f5;
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
}

.fw-user-body::before,
.fw-admin-body::before {
  display: none;
}

.fw-user-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 105, 0, 0.08), transparent 28%),
    radial-gradient(circle at 70% 50%, rgba(0, 188, 125, 0.05), transparent 25%),
    #050505;
}

.fw-user-shell::before {
  content: "";
  position: fixed;
  inset: -36px;
  z-index: 0;
  background: var(--fw-earth, url("/static/pic/earth-v1.webp")) center top / cover no-repeat;
  opacity: 0.16;
  filter: blur(3px);
  pointer-events: none;
}

.fw-user-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.58) 30%, rgba(5, 5, 5, 0.72) 76%, #050505 100%),
    radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, 0.72) 70%);
  pointer-events: none;
}

.fw-topbar {
  position: sticky;
  top: 12px;
  z-index: 120;
  width: min(1600px, calc(100vw - 48px));
  height: 72px;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.fw-user-body.is-topbar-floating .fw-topbar {
  border-color: rgba(255, 105, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.86), rgba(12, 12, 15, 0.74)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(22px) saturate(1.12);
}

.fw-user-main {
  position: relative;
  z-index: 1;
}

.fw-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 17px 7px 7px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

.fw-brand-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6900, #f54900);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.30);
}

.fw-brand-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.fw-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fw-brand-copy strong {
  color: #fafafa;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: -0.025em;
}

.fw-brand-copy small {
  color: #ff8904;
  font-size: 10px;
  line-height: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fw-top-tabs {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.20);
}

.fw-top-tab {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #9f9fa9;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.fw-top-tab.is-active,
.fw-top-tab:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.fw-top-tab img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.fw-top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fw-credit-button,
.fw-balance-pill,
.fw-user-pill,
.fw-icon-pill {
  min-height: 44px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.30);
  display: inline-flex;
  align-items: center;
}

.fw-credit-button {
  gap: 8px;
  padding: 0 16px;
  border-color: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #ff6900, #f54900);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.24);
}

.fw-credit-button img,
.fw-balance-pill img,
.fw-icon-pill img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.fw-balance-pill {
  gap: 8px;
  padding: 0 16px;
  color: #f4f4f5;
}

.fw-balance-pill strong {
  font-size: 13px;
  font-weight: 600;
}

.fw-user-pill {
  gap: 12px;
  padding: 7px 7px 7px 17px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.05);
}

.fw-user-pill span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fw-user-pill strong {
  color: #f4f4f5;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.025em;
}

.fw-user-pill small {
  color: #71717b;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fw-user-pill img {
  width: 36px;
  height: 36px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, rgba(63, 63, 71, 0.8), rgba(39, 39, 42, 0.8));
  filter: brightness(0) invert(1);
}

.fw-icon-pill {
  width: 44px;
  justify-content: center;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.fw-icon-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fw-user-main {
  width: min(1600px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 32px 72px;
}

.fw-page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fw-page-title {
  margin: 0;
  color: #f4f4f5;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.025em;
}

.fw-page-subtitle {
  margin: 0;
  color: #9f9fa9;
  font-size: 14px;
  line-height: 20px;
}

.fw-panel {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: #121215;
  box-shadow: none;
}

.fw-traffic-panel {
  min-height: 300px;
  padding: 21px;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 105, 0, 0.08), transparent 40%),
    #121215;
}

.fw-panel-title {
  margin: 0;
  color: #f4f4f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.fw-panel-title img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.fw-chart {
  width: 100%;
  height: 220px;
  margin-top: 22px;
  overflow: visible;
}

.fw-chart-grid {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}

.fw-chart-area {
  fill: url(#trafficArea);
}

.fw-chart-line {
  fill: none;
  stroke: #ff6900;
  stroke-width: 2.5;
}

.fw-chart-label {
  fill: #71717b;
  font-size: 11px;
  font-family: "Inter", sans-serif;
}

.fw-dashboard-grid {
  display: grid;
  grid-template-columns: 366px minmax(0, 1fr);
  gap: 24px;
}

.fw-quota-panel {
  min-height: 486px;
  padding: 25px;
}

.fw-quota-card {
  margin-top: 20px;
  padding: 21px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.fw-quota-card span {
  display: block;
  color: #71717b;
  font-size: 12px;
}

.fw-quota-card strong {
  display: block;
  margin-top: 6px;
  color: #f4f4f5;
  font-size: 28px;
  line-height: 36px;
}

.fw-allocation-summary {
  display: grid;
  gap: 8px;
  text-align: left;
}

.fw-allocation-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9ca3af;
}

.fw-allocation-summary strong {
  display: inline;
  margin: 0;
  color: #f4f4f5;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
}

.fw-protocol-bars {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: end;
}

.fw-protocol-bar {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
}

.fw-bar-track {
  position: relative;
  width: 24px;
  height: 192px;
  border-radius: 999px;
  background: #202026;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.fw-bar-fill,
.fw-bar-used {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 16px;
  border-radius: inherit;
}

.fw-bar-fill {
  background: linear-gradient(180deg, #ff8904, #2b7fff);
}

.fw-bar-used {
  z-index: 2;
  min-height: 0;
  background: linear-gradient(180deg, rgba(244, 244, 245, 0.88), rgba(244, 244, 245, 0.42));
  box-shadow: 0 0 0 1px rgba(244, 244, 245, 0.22) inset;
}

.fw-protocol-bar strong {
  color: #f4f4f5;
  font-size: 12px;
}

.fw-protocol-bar span {
  color: #71717b;
  font-size: 11px;
}

.fw-allocation-form {
  display: grid;
}

.fw-allocation-bars {
  align-items: start;
}

.fw-allocation-bar {
  user-select: none;
}

.fw-allocation-bar.is-disabled {
  opacity: 0.48;
}

.fw-allocation-slider {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 28px;
  height: 192px;
  margin: 0;
  opacity: 0;
  cursor: ns-resize;
  transform: translateX(-50%);
}

.fw-allocation-slider:disabled {
  cursor: not-allowed;
}

.fw-allocation-handle {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 30px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ff9500, #2b7fff);
  box-shadow: 0 0 18px rgba(255, 105, 0, 0.28);
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.fw-allocation-limit {
  min-height: 17px;
  color: #f4f4f5 !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px !important;
}

.fw-allocation-bar small,
.fw-allocation-bar em {
  color: #71717b;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.fw-allocation-bar em {
  color: #ff9500;
}

.fw-allocation-save {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff4d00, #d66a35);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 77, 0, 0.18);
}

.fw-allocation-save:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.fw-allocation-note {
  min-height: 34px;
  margin: 10px 0 0;
  color: #8f9bad;
  font-size: 11px;
  line-height: 1.4;
}

.fw-allocation-form.is-invalid .fw-allocation-note {
  color: #ff6467;
}

.fw-node-panel {
  min-height: 486px;
  padding: 25px;
  background:
    radial-gradient(circle at 76% 28%, rgba(0, 188, 125, 0.08), transparent 32%),
    #121215;
}

.fw-node-panel--empty {
  min-height: 220px;
  display: grid;
  align-items: center;
}

.fw-node-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.fw-node-head--compact {
  align-items: center;
}

.fw-node-actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fw-node-empty-compact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.fw-node-empty-compact h2 {
  margin: 6px 0 3px;
  color: #f4f4f5;
  font-size: 22px;
  line-height: 1.2;
}

.fw-node-empty-compact p {
  margin: 0;
  max-width: 460px;
  color: #8f9bad;
  font-size: 13px;
}

.fw-node-empty-action {
  min-width: 128px;
  justify-content: center;
}

.fw-node-title {
  display: flex;
  gap: 18px;
  align-items: center;
}

.fw-node-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(0, 188, 125, 0.2);
  background: rgba(0, 188, 125, 0.10);
}

.fw-node-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.fw-node-title h2 {
  margin: 0;
  color: #f4f4f5;
  font-size: 20px;
  line-height: 28px;
}

.fw-node-title p {
  margin: 2px 0 0;
  color: #71717b;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.fw-status-chip,
.fw-protocol-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 3px 8px;
  color: #00d492;
  background: rgba(0, 188, 125, 0.10);
  border: 1px solid rgba(0, 188, 125, 0.20);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.fw-status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.fw-status-chip.status-offline,
.fw-status-chip.status-blocked,
.fw-status-chip.status-deleted {
  color: #ff6467;
  background: rgba(251, 44, 54, 0.10);
  border-color: rgba(251, 44, 54, 0.20);
}

.fw-status-chip.status-maintenance,
.fw-status-chip.status-degraded,
.fw-status-chip.status-provisioning {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.10);
  border-color: rgba(255, 149, 0, 0.20);
}

.fw-node-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fw-node-metrics--compact {
  margin-top: 12px;
}

.fw-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #9f9fa9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.fw-node-body {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: 24px;
}

.fw-node-body--compact {
  margin-top: 16px;
  gap: 14px;
}

.fw-mini-chart,
.fw-history {
  min-height: 198px;
  padding: 21px;
  border-radius: 14px;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fw-node-body--compact .fw-mini-chart,
.fw-node-body--compact .fw-history {
  min-height: 178px;
  padding: 16px;
}

.fw-history--compact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.fw-history-list {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.fw-history-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}

.fw-history-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(43, 127, 255, 0.30);
  background: rgba(43, 127, 255, 0.20);
}

.fw-history-item strong {
  display: block;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 400;
}

.fw-history-item span {
  display: block;
  margin-top: 2px;
  color: #71717b;
  font-size: 12px;
}

.fw-node-live-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.fw-node-facts,
.fw-node-protocols,
.fw-node-key-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-node-facts span,
.fw-node-protocol-pill,
.fw-node-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #b7c8de;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.25;
}

.fw-node-facts strong,
.fw-node-key-pill strong {
  color: #f4f4f5;
}

.fw-node-protocol-pill {
  color: #00d492;
  background: rgba(0, 188, 125, 0.09);
  border-color: rgba(0, 188, 125, 0.18);
}

.fw-node-protocol-pill.is-disabled,
.fw-node-key-pill.is-muted {
  color: #8f9bad;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.05);
}

.fw-node-live-grid {
  display: grid;
  gap: 12px;
}

.fw-node-live-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px 12px;
  align-items: center;
}

.fw-node-live-item span {
  color: #8f9bad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-node-live-item strong {
  min-width: 0;
  color: #f4f4f5;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-node-live-item i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.fw-node-live-item b {
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b7fff, #ff6900);
}

.fw-history-list--real {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.fw-empty-state {
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 12px;
  color: #8f9bad;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.09);
}

.fw-empty-state strong {
  color: #f4f4f5;
}

.fw-access-list {
  display: grid;
  gap: 16px;
}

.fw-access-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 83px;
  padding: 17px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #121215;
}

.fw-access-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fw-access-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(43, 127, 255, 0.20);
  background: rgba(43, 127, 255, 0.10);
  color: #51a2ff;
  font-size: 12px;
  font-weight: 700;
}

.fw-access-icon img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.fw-access-main h2 {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #f4f4f5;
  font-size: 16px;
  line-height: 24px;
}

.fw-access-main p {
  margin: 2px 0 0;
  color: #71717b;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.fw-client-pill {
  padding: 9px 17px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #1a1a1f;
  color: #d4d4d8;
  font-size: 12px;
}

.fw-row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.fw-action-primary,
.fw-action-icon,
.fw-action-danger {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.fw-action-primary {
  min-width: 140px;
  padding: 0 16px;
  color: #18181b;
  background: #f4f4f5;
}

.fw-action-primary:disabled {
  color: #9f9fa9;
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.fw-action-icon,
.fw-action-danger {
  width: 40px;
  background: #1a1a1f;
  color: #d4d4d8;
}

.fw-action-danger {
  color: #ff6467;
  background: rgba(251, 44, 54, 0.10);
  border-color: rgba(251, 44, 54, 0.20);
}

.fw-action-primary img,
.fw-action-icon img,
.fw-action-danger img {
  width: 16px;
  height: 16px;
}

.fw-action-icon img,
.fw-action-danger img {
  filter: brightness(0) invert(1);
}

.fw-top-tab,
.fw-credit-button,
.fw-admin-link,
.fw-admin-button,
.fw-admin-button-primary,
.icon-button {
  white-space: nowrap;
}

.fw-admin-shell {
  min-height: 100vh;
  background: #050505;
}

.fw-admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 256px;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}

.fw-admin-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  color: #71717b;
  font-size: 14px;
}

.fw-admin-nav {
  margin-top: 16px;
  display: grid;
  gap: 4px;
}

.fw-admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #9f9fa9;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

.fw-admin-link.is-active,
.fw-admin-link:hover {
  color: #ff8904;
  background: rgba(255, 105, 0, 0.10);
  border-color: rgba(255, 105, 0, 0.20);
}

.fw-admin-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.fw-admin-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fw-admin-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3f3f47, #27272a);
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 700;
}

.fw-admin-account strong,
.fw-admin-account span {
  display: block;
}

.fw-admin-account strong {
  color: #e4e4e7;
  font-size: 13px;
}

.fw-admin-account span {
  color: #71717b;
  font-size: 12px;
}

.fw-admin-signout {
  margin-top: 12px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(251, 44, 54, 0.20);
  background: rgba(251, 44, 54, 0.10);
  color: #ff6467;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fw-admin-signout img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.fw-admin-main {
  min-width: 0;
  margin-left: 256px;
  padding: 32px;
}

.fw-admin-main .page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fw-admin-main .page-header,
.fw-admin-main .fw-admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

.fw-admin-main .page-title,
.fw-admin-main .fw-page-title {
  margin: 0;
  color: #f4f4f5;
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.025em;
}

.fw-admin-main .page-subtitle,
.fw-admin-main .section-subtitle,
.fw-admin-main .card-subtitle,
.fw-admin-main .cell-meta,
.fw-admin-main .metric-meta {
  color: #9f9fa9;
}

.fw-admin-main .page-subtitle {
  max-width: 760px;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
}

.fw-admin-main .section-title,
.fw-admin-main .card-title {
  color: #f4f4f5;
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.015em;
}

.fw-admin-main .surface-card,
.fw-admin-main .table-shell,
.fw-admin-main .fw-panel,
.fw-admin-main .card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: #121215;
  box-shadow: none;
}

.fw-admin-main .surface-card,
.fw-admin-main .card {
  padding: 21px;
}

.fw-admin-main .command-panel--system,
.fw-admin-main .metric-card.accent {
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.10), transparent 40%),
    #121215;
}

.fw-admin-main .metric-grid--admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fw-admin-main .metric-card {
  min-height: 148px;
}

.fw-admin-main .metric-label,
.fw-admin-main .meta-item-label {
  color: #71717b;
}

.fw-admin-main .metric-value {
  color: #f4f4f5;
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
}

.fw-admin-main .metric-icon,
.fw-admin-main .icon-circle,
.fw-admin-main .command-icon {
  border-color: rgba(255, 105, 0, 0.20);
  background: rgba(255, 105, 0, 0.10);
}

.fw-admin-main .admin-command-grid,
.fw-admin-main .admin-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  gap: 24px;
  align-items: start;
}

.fw-admin-main .admin-dashboard--overview {
  gap: 18px;
}

.fw-admin-main .admin-dashboard-head {
  align-items: center;
}

.fw-admin-main .admin-dashboard-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fw-admin-main .admin-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fw-admin-main .admin-kpi-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 18, 21, 0.98), rgba(16, 16, 20, 0.95)),
    radial-gradient(circle at 88% 18%, rgba(255, 105, 0, 0.08), transparent 34%);
}

.fw-admin-main .admin-kpi-icon,
.fw-admin-main .admin-feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 105, 0, 0.18);
  border-radius: 12px;
  background: rgba(255, 105, 0, 0.09);
}

.fw-admin-main .admin-kpi-icon img,
.fw-admin-main .admin-feed-icon img,
.fw-admin-main .admin-action-tile img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.fw-admin-main .admin-kpi-label {
  color: #8a8a95;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fw-admin-main .admin-kpi-value {
  margin-top: 2px;
  color: #f4f4f5;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.fw-admin-main .admin-kpi-meta {
  margin-top: 4px;
  color: #9f9fa9;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fw-admin-main .admin-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.fw-admin-main .admin-dashboard-health,
.fw-admin-main .admin-dashboard-feed {
  padding: 18px;
}

.fw-admin-main .dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fw-admin-main .admin-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fw-admin-main .admin-health-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.fw-admin-main .admin-health-item strong {
  display: block;
  color: #f4f4f5;
  font-size: 22px;
  line-height: 1;
}

.fw-admin-main .admin-health-item span {
  display: block;
  margin-top: 6px;
  color: #9f9fa9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fw-admin-main .admin-health-item--ok {
  border-color: rgba(5, 217, 155, 0.16);
  background: rgba(5, 217, 155, 0.055);
}

.fw-admin-main .admin-health-item--warn {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.06);
}

.fw-admin-main .admin-health-item--bad {
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.055);
}

.fw-admin-main .admin-dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fw-admin-main .admin-action-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  color: #f4f4f5;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.fw-admin-main .admin-action-tile:hover {
  border-color: rgba(255, 105, 0, 0.28);
  background: rgba(255, 105, 0, 0.065);
  transform: translateY(-1px);
}

.fw-admin-main .admin-action-tile img {
  width: 18px;
  height: 18px;
}

.fw-admin-main .admin-action-tile strong {
  display: block;
  font-size: 14px;
  line-height: 18px;
}

.fw-admin-main .admin-action-tile small {
  display: block;
  margin-top: 2px;
  color: #9f9fa9;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-admin-main .admin-feed-list {
  display: grid;
  gap: 8px;
}

.fw-admin-main .admin-feed-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.fw-admin-main .admin-feed-row--error,
.fw-admin-main .admin-feed-row--critical {
  border-color: rgba(251, 113, 133, 0.16);
  background: rgba(251, 113, 133, 0.05);
}

.fw-admin-main .admin-feed-row--warning {
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.052);
}

.fw-admin-main .admin-feed-row strong {
  display: block;
  color: #f4f4f5;
  font-size: 13px;
  line-height: 17px;
}

.fw-admin-main .admin-feed-row p,
.fw-admin-main .admin-feed-row small {
  display: block;
  margin: 1px 0 0;
  color: #9f9fa9;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-admin-main .admin-user-detail {
  gap: 14px;
}

.fw-admin-main .admin-user-detail .admin-user-hero {
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 105, 0, 0.07), transparent 30%),
    #101014;
}

.fw-admin-main .admin-user-detail .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
  align-items: center;
}

.fw-admin-main .admin-user-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fw-admin-main .admin-user-role {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-admin-main .admin-user-detail .page-title {
  max-width: 100%;
  margin-bottom: 4px;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.fw-admin-main .admin-user-detail .page-subtitle {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 16px;
  color: #9f9fa9;
}

.fw-admin-main .admin-user-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fw-admin-main .admin-user-detail .meta-item {
  min-width: 0;
  padding: 9px 11px;
}

.fw-admin-main .admin-user-detail .meta-item-value {
  font-size: 14px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-admin-main .admin-user-access-card {
  align-self: start;
  justify-content: space-between;
  gap: 10px;
  min-height: auto;
  height: auto;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(66, 153, 225, 0.08), transparent 42%),
    #121215;
}

.fw-admin-main .admin-user-access-card .section-title {
  font-size: 15px;
}

.fw-admin-main .admin-user-access-card .section-subtitle {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 16px;
}

.fw-admin-main .admin-user-detail .button-row {
  flex-wrap: wrap;
  gap: 8px;
}

.fw-admin-main .admin-user-access-card .btn {
  min-height: 40px;
  padding-inline: 10px;
  font-size: 12px;
}

.fw-admin-main .admin-user-access-card .icon-button {
  gap: 7px;
}

.fw-admin-main .admin-user-access-card .icon-button img {
  width: 15px;
  height: 15px;
}

.fw-admin-main .admin-user-detail .admin-command-grid {
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 14px;
  align-items: start;
}

.fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.fw-admin-main .admin-user-detail .surface-card,
.fw-admin-main .admin-user-detail .table-shell {
  border-radius: 16px;
}

.fw-admin-main .admin-user-detail .surface-card {
  padding: 14px 16px;
}

.fw-admin-main .admin-user-detail .command-panel {
  gap: 12px;
  min-height: 0;
}

.fw-admin-main .admin-user-detail .form-stack {
  gap: 10px;
}

.fw-admin-main .admin-user-detail .form-control,
.fw-admin-main .admin-user-detail .form-select {
  min-height: 42px;
}

.fw-admin-main .admin-user-detail .admin-key-primary-grid {
  grid-template-columns: minmax(110px, 0.7fr) minmax(170px, 1fr) minmax(160px, 1fr);
}

.fw-admin-main .admin-user-detail .btn {
  min-height: 42px;
}

.fw-admin-main .admin-user-detail .section-subtitle {
  font-size: 12px;
  line-height: 17px;
}

.fw-admin-main .admin-user-detail .command-panel--system {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
}

.fw-admin-main .admin-user-detail .create-key-action-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fw-admin-main .admin-user-detail .create-key-action-row .btn {
  width: 100%;
}

.fw-admin-main .command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fw-admin-main .command-row,
.fw-admin-main .list-card,
.fw-admin-main .meta-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: #1a1a1f;
}

.fw-admin-main .command-row {
  min-height: 58px;
  padding: 12px;
}

.fw-admin-main .admin-user-detail .command-row small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fw-admin-main .command-row:hover {
  border-color: rgba(255, 105, 0, 0.20);
  background: rgba(255, 105, 0, 0.08);
}

.fw-admin-main .table-toolbar {
  padding: 17px 20px;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.fw-admin-main .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e4e4e7;
  --bs-table-border-color: rgba(255, 255, 255, 0.05);
}

.fw-admin-main .table thead th {
  color: #9f9fa9;
  background: rgba(255, 255, 255, 0.02);
}

.fw-admin-main .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.fw-admin-main .cell-title {
  color: #f4f4f5;
}

.fw-admin-main .cell-meta,
.fw-admin-main td {
  overflow-wrap: anywhere;
}

.fw-admin-main .form-control,
.fw-admin-main .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #1a1a1f;
  color: #e4e4e7;
}

.fw-admin-main .form-control:focus,
.fw-admin-main .form-select:focus {
  border-color: rgba(255, 105, 0, 0.42);
  background: #1a1a1f;
  box-shadow: 0 0 0 0.16rem rgba(255, 105, 0, 0.12);
}

.fw-admin-main .form-text {
  color: #71717b;
}

.fw-admin-main .btn,
.fw-admin-main .fw-admin-button,
.fw-admin-main .fw-admin-button-primary {
  min-height: 42px;
  border-radius: 10px;
}

.fw-admin-main .btn-primary {
  --bs-btn-bg: #ff6900;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #f54900;
  --bs-btn-hover-border-color: transparent;
  background: linear-gradient(180deg, #ff6900, #f54900);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

.fw-admin-main .btn-outline-secondary,
.fw-admin-main .btn-outline-light,
.fw-admin-main .btn-outline-primary {
  --bs-btn-color: #e4e4e7;
  --bs-btn-border-color: rgba(255, 255, 255, 0.10);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.16);
  background: #1a1a1f;
}

.fw-admin-main .btn-outline-warning {
  --bs-btn-color: #ff9500;
  --bs-btn-border-color: rgba(255, 149, 0, 0.22);
  --bs-btn-hover-color: #ffb453;
  --bs-btn-hover-bg: rgba(255, 149, 0, 0.10);
  --bs-btn-hover-border-color: rgba(255, 149, 0, 0.28);
}

.fw-admin-main .btn-outline-danger {
  --bs-btn-color: #ff6467;
  --bs-btn-border-color: rgba(251, 44, 54, 0.22);
  --bs-btn-hover-color: #ff8588;
  --bs-btn-hover-bg: rgba(251, 44, 54, 0.10);
  --bs-btn-hover-border-color: rgba(251, 44, 54, 0.28);
}

.fw-admin-main .status-badge {
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.fw-admin-main .status-online,
.fw-admin-main .status-active,
.fw-admin-main .status-ok {
  color: #00d492;
  background: rgba(0, 188, 125, 0.10);
  border-color: rgba(0, 188, 125, 0.20);
}

.fw-admin-main .status-blocked,
.fw-admin-main .status-offline,
.fw-admin-main .status-revoked,
.fw-admin-main .status-deleted,
.fw-admin-main .status-error {
  color: #ff6467;
  background: rgba(251, 44, 54, 0.10);
  border-color: rgba(251, 44, 54, 0.20);
}

.fw-admin-main .status-provisioning,
.fw-admin-main .status-pending-create,
.fw-admin-main .status-pending_create,
.fw-admin-main .status-maintenance,
.fw-admin-main .status-limited,
.fw-admin-main .status-expired {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.10);
  border-color: rgba(255, 149, 0, 0.20);
}

.fw-admin-main .protocol-pill {
  color: #51a2ff;
  background: rgba(43, 127, 255, 0.10);
  border-color: rgba(43, 127, 255, 0.20);
  border-radius: 4px;
  font-size: 11px;
}

.fw-admin-main .nav-pills {
  gap: 8px;
  padding: 7px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.20);
  flex-wrap: nowrap;
}

.fw-admin-main .nav-pills .nav-link {
  min-height: 38px;
  border-radius: 14px;
  color: #9f9fa9;
  white-space: nowrap;
}

.fw-admin-main .nav-pills .nav-link.active {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.fw-break-anywhere,
.fw-admin-main .copy-block,
.fw-admin-main pre,
.fw-admin-main code {
  overflow-wrap: anywhere;
}

.fw-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-admin-main .admin-users {
  width: 100%;
}

.fw-admin-main .admin-users .page-header {
  flex-wrap: wrap;
}

.fw-admin-main .admin-users .page-actions {
  flex: 0 0 auto;
}

.fw-admin-main .admin-users .admin-table-panel {
  min-width: 0;
}

.fw-admin-main .admin-users .admin-table-panel {
  overflow: hidden;
}

.fw-admin-main .admin-users .table-responsive {
  width: 100%;
  overflow-x: auto;
}

.fw-admin-main .admin-users .app-table {
  min-width: 860px;
}

.fw-admin-main .admin-users .app-table th,
.fw-admin-main .admin-users .app-table td {
  vertical-align: middle;
}

.fw-admin-main .admin-users .app-table th:first-child,
.fw-admin-main .admin-users .app-table td:first-child {
  min-width: 220px;
}

.fw-admin-main .admin-users .app-table th:last-child,
.fw-admin-main .admin-users .app-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.fw-admin-main .protocol-enabled-note {
  display: block;
  margin-top: 4px;
  color: #9f9fa9;
  font-size: 12px;
  line-height: 16px;
}

.fw-admin-main .protocol-field {
  min-width: 0;
}

.fw-admin-main .protocol-field .form-control {
  margin-bottom: 6px;
}

.fw-admin-main .protocol-field-help {
  display: block;
  min-height: 32px;
  color: rgba(192, 205, 226, 0.66);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.01em;
}

.fw-admin-main .protocol-switch {
  align-content: start;
}

.fw-admin-main .protocol-switch .protocol-enabled-note {
  color: rgba(255, 183, 130, 0.72);
}

.fw-admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.fw-admin-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.fw-admin-button,
.fw-admin-button-primary {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #1a1a1f;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 500;
}

.fw-admin-button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #ff6900, #f54900);
}

.fw-admin-button img,
.fw-admin-button-primary img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.fw-admin-modal .modal-dialog {
  width: min(560px, calc(100vw - 32px));
}

.fw-admin-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.10), transparent 42%),
    #121215;
  color: #f4f4f5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.fw-admin-modal .modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: flex-start;
}

.fw-admin-modal .modal-title {
  margin: 0;
  color: #f4f4f5;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fw-admin-modal .modal-subtitle {
  margin: 5px 0 0;
  color: #9f9fa9;
  font-size: 13px;
  line-height: 19px;
}

.fw-admin-modal .modal-body {
  padding: 22px;
}

.fw-admin-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.fw-admin-modal .alert {
  margin: 0;
}

.modal-backdrop {
  --bs-backdrop-bg: #000;
  --bs-backdrop-opacity: 0.72;
}

.fw-admin-search {
  width: 100%;
  height: 76px;
  padding: 17px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #121215;
}

.fw-admin-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #1a1a1f;
  color: #e4e4e7;
  font-size: 14px;
}

.fw-admin-search input::placeholder {
  color: #71717b;
}

.fw-node-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 317px), 1fr));
  gap: 38px;
}

.fw-node-card-admin {
  min-height: 195px;
  padding: 16px 8px 0;
  position: relative;
}

.fw-node-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fw-node-card-top img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.fw-node-card-admin h2 {
  margin: 0;
  color: #f4f4f5;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.fw-node-card-admin .host {
  color: #71717b;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.fw-load-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fw-load-line strong {
  width: 40px;
  color: #e4e4e7;
  font-size: 14px;
  text-align: right;
}

.fw-load-line span {
  color: #71717b;
  font-size: 12px;
}

.fw-load-track {
  margin-top: 4px;
  width: 100%;
  max-width: 286px;
  height: 6px;
  border-radius: 999px;
  background: #0f0f12;
  overflow: hidden;
}

.fw-load-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00bc7d;
}

.fw-load-track.is-high i {
  background: #ff6467;
}

.fw-load-track.is-medium i {
  background: #ff9500;
}

.fw-node-card-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 14px;
  color: #71717b;
  font-size: 12px;
}

.fw-node-card-meta strong {
  color: #e4e4e7;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 400;
}

.fw-protocol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-protocol-chip {
  color: #51a2ff;
  background: rgba(43, 127, 255, 0.10);
  border-color: rgba(43, 127, 255, 0.20);
}

.fw-heartbeat {
  margin-top: 28px;
  color: #71717b;
  font-size: 12px;
}

.fw-admin-import-panel {
  max-width: 720px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #121215;
}

.fw-admin-main .admin-audit .table-toolbar {
  padding: 20px 22px 14px;
}

.fw-admin-main .admin-audit .audit-table {
  min-width: 900px;
  font-size: 13px;
}

.fw-admin-main .admin-audit .audit-table th {
  font-size: 11px;
  letter-spacing: 0.10em;
}

.fw-admin-main .admin-audit .audit-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: middle;
}

.audit-time-cell span,
.audit-code,
.audit-ip {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
}

.audit-time-cell span {
  display: inline-flex;
  min-width: 122px;
  color: #d4d4d8;
}

.audit-action {
  font-size: 13px;
  line-height: 18px;
}

.audit-agent {
  font-size: 11px;
  line-height: 15px;
}

.audit-target-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(43, 127, 255, 0.18);
  background: rgba(43, 127, 255, 0.09);
  color: #dbeafe;
}

.audit-target-chip img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.audit-target-chip span {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.audit-target-chip code,
.audit-code {
  color: #a7f3d0;
  background: transparent;
}

.audit-target--key {
  border-color: rgba(255, 137, 4, 0.24);
  background: rgba(255, 137, 4, 0.10);
}

.audit-target--user {
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.09);
}

.audit-target--node {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.09);
}

.audit-target-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.audit-target-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #9f9fa9;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
}

.fw-admin-main .admin-node-detail--compact {
  gap: 18px;
}

.node-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 127, 255, 0.10), transparent 36%),
    radial-gradient(circle at 94% 12%, rgba(255, 105, 0, 0.08), transparent 28%),
    #101014;
}

.node-detail-main,
.node-lifecycle-card,
.node-command-card,
.node-protocol-card,
.node-metrics-strip {
  min-width: 0;
}

.node-detail-title-row,
.node-card-head,
.node-protocol-title,
.node-metric-row,
.node-lifecycle-actions {
  display: flex;
  align-items: center;
}

.node-detail-title-row {
  gap: 14px;
}

.node-detail-icon,
.node-card-icon,
.node-protocol-title span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 105, 0, 0.20);
  background: rgba(255, 105, 0, 0.10);
}

.node-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.node-detail-icon img {
  width: 24px;
  height: 24px;
}

.node-detail-icon img,
.node-card-icon img,
.node-protocol-title img,
.node-signal-card img,
.node-metric-row img,
.node-detail-identity img {
  filter: brightness(0) invert(1);
}

.node-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.node-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-state-chip--warning {
  color: #ffb86a;
  border: 1px solid rgba(255, 137, 4, 0.25);
  background: rgba(255, 137, 4, 0.10);
}

.node-state-chip--muted {
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.node-detail-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.node-detail-identity span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-detail-identity img {
  width: 13px;
  height: 13px;
  opacity: 0.72;
}

.node-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.node-signal-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.node-signal-card span,
.node-metric-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #71717b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.node-signal-card img,
.node-metric-row img {
  width: 14px;
  height: 14px;
  opacity: 0.78;
}

.node-signal-card strong {
  display: block;
  margin-top: 8px;
  color: #f4f4f5;
  font-size: 15px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-signal-card small {
  display: block;
  margin-top: 2px;
  color: #9f9fa9;
  font-size: 11px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-lifecycle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 127, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.node-lifecycle-card--compact {
  gap: 12px;
  padding: 14px;
}

.node-lifecycle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.node-lifecycle-card--compact .section-subtitle {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 17px;
}

.node-bindings-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 14px;
}

.node-bindings-pill.is-clear {
  color: #a7f3d0;
  border: 1px solid rgba(0, 188, 125, 0.24);
  background: rgba(0, 188, 125, 0.10);
}

.node-bindings-pill.is-warning {
  color: #ffb86a;
  border: 1px solid rgba(255, 137, 4, 0.25);
  background: rgba(255, 137, 4, 0.10);
}

.node-lifecycle-actions {
  flex-wrap: wrap;
  gap: 9px;
}

.node-lifecycle-actions--compact {
  display: grid;
  grid-template-columns: 1fr;
}

.node-lifecycle-actions--compact .btn {
  justify-content: center;
  min-height: 38px;
}

.node-delete-safe-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 137, 4, 0.18);
  background: rgba(255, 137, 4, 0.08);
  color: #d4d4d8;
  font-size: 13px;
  line-height: 18px;
}

.node-delete-safe-note img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.node-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 14px;
}

.fw-admin-main .node-command-card,
.fw-admin-main .node-protocol-card,
.fw-admin-main .node-metrics-strip {
  padding: 18px;
  border-radius: 16px;
}

.node-command-card,
.node-protocol-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.node-card-head {
  gap: 11px;
}

.node-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.node-card-icon img {
  width: 18px;
  height: 18px;
}

.node-copy-block {
  min-height: 42px;
  max-height: 124px;
  overflow: auto;
  font-size: 11px;
}

.api-token-copy-box {
  cursor: pointer;
  user-select: all;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.api-token-copy-box:hover,
.api-token-copy-box:focus,
.api-token-copy-box.is-copy-ready {
  border-color: rgba(255, 95, 21, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 95, 21, 0.12), 0 18px 40px rgba(255, 95, 21, 0.08);
  color: #fff;
  outline: none;
}

.api-token-copy-hint {
  margin-top: 10px;
  font-size: 0.82rem;
}

.node-export-form {
  gap: 10px;
}

.node-protocol-list {
  display: grid;
  gap: 8px;
}

.node-protocol-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(220px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.node-protocol-status-stack {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.node-health-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.node-health-pill--ok {
  color: #05d99b;
  background: rgba(5, 217, 155, 0.1);
  border: 1px solid rgba(5, 217, 155, 0.25);
}

.node-health-pill--bad {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
}

.node-health-pill--unknown {
  color: #9f9fa9;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.node-protocol-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.node-protocol-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

@media (max-width: 1800px) and (min-width: 1201px) {
  .fw-admin-main .admin-node-detail .node-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-admin-main .admin-node-detail .node-protocol-card {
    grid-column: 1 / -1;
  }

  .fw-admin-main .admin-node-detail .node-protocol-row {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .fw-admin-main .admin-node-detail .node-protocol-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 1500px) and (min-width: 1201px) {
  .fw-admin-main .admin-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .fw-admin-main .admin-dashboard-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.node-protocol-report,
.node-protocol-error,
.node-protocol-manual {
  grid-column: 1 / -1;
}

.node-protocol-report {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #9f9fa9;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 15px;
}

.node-protocol-report span {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.045);
}

.node-protocol-error {
  color: #fecaca;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(127, 29, 29, 0.15);
  font-size: 12px;
  line-height: 17px;
  max-height: 90px;
  overflow: auto;
}

.node-protocol-manual {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 113, 24, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 91, 0, 0.09), rgba(255, 255, 255, 0.03));
}

.node-protocol-manual strong,
.node-protocol-manual small {
  display: block;
}

.node-protocol-manual small {
  margin-top: 2px;
  color: #a1a1aa;
  font-size: 11px;
}

.node-protocol-title {
  min-width: 0;
  gap: 10px;
}

.node-protocol-title span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.node-protocol-title img {
  width: 16px;
  height: 16px;
}

.node-protocol-title strong,
.node-protocol-title small {
  display: block;
}

.node-protocol-title strong {
  color: #f4f4f5;
  font-size: 14px;
  line-height: 18px;
}

.node-protocol-title small {
  margin-top: 2px;
  color: #9f9fa9;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 15px;
}

.node-empty-state {
  padding: 10px 0;
}

.admin-node-detail {
  padding-bottom: 62px;
}

.admin-node-detail .node-metrics-strip {
  position: fixed;
  right: 28px;
  bottom: 14px;
  left: 284px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(20, 20, 24, 0.94), rgba(12, 12, 14, 0.92)),
    radial-gradient(circle at 92% 18%, rgba(255, 105, 0, 0.12), transparent 34%);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
}

.admin-node-detail .node-metrics-strip .node-card-head {
  min-width: 0;
  gap: 7px;
}

.admin-node-detail .node-metrics-strip .node-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.admin-node-detail .node-metrics-strip .section-title {
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
}

.admin-node-detail .node-metrics-strip .section-subtitle {
  display: none;
}

.node-protocol-diagnostics {
  display: grid;
  gap: 14px;
}

.node-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.node-diagnostics-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.node-diagnostics-column h3 {
  margin: 0;
  color: #f4f4f5;
  font-size: 13px;
}

.node-diagnostics-scroll {
  display: grid;
  gap: 9px;
  max-height: 740px;
  min-height: 72px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.node-diagnostics-scroll::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

.node-diagnostics-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

.node-diagnostics-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scrollbar-thumb);
}

.node-diagnostics-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.node-job-queue {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 105, 0, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.node-job-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.node-job-queue-head h3 {
  margin: 0;
  color: #f4f4f5;
  font-size: 13px;
}

.node-job-list {
  display: grid;
  gap: 8px;
}

.node-job-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.node-job-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.node-job-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 105, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 105, 0, 0.09);
}

.node-job-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.node-job-main strong,
.node-job-main p,
.node-job-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-job-main strong {
  color: #f4f4f5;
  font-size: 12px;
  line-height: 16px;
}

.node-job-main p {
  margin: 2px 0 0;
  color: #a7adbb;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 15px;
}

.node-job-main small {
  margin-top: 2px;
  color: #777b87;
  font-size: 11px;
  line-height: 15px;
}

.node-job-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.node-job-schedule-input {
  width: 190px;
  min-height: 32px !important;
  padding: 5px 8px;
  font-size: 12px;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.diagnostic-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.diagnostic-row--error .diagnostic-dot,
.diagnostic-row--failed .diagnostic-dot {
  background: #fb7185;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.45);
}

.diagnostic-row strong {
  display: block;
  color: #f4f4f5;
  font-size: 12px;
}

.diagnostic-row p {
  margin: 3px 0;
  color: #a7adbb;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.diagnostic-row small,
.muted-note {
  color: #777b87;
  font-size: 11px;
}

.node-metric-row {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.node-metric-row span {
  min-height: 26px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.045);
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.node-metric-row strong {
  min-width: 0;
  color: #f4f4f5;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .fw-admin-main .admin-user-detail .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  }

  .fw-admin-main .admin-user-detail .admin-command-grid {
    grid-template-columns: minmax(260px, 0.68fr) minmax(380px, 1.32fr);
  }

  .fw-admin-main .admin-user-detail .surface-card {
    padding: 13px 14px;
  }

  .fw-admin-main .admin-user-detail .panel-grid.two-up {
    gap: 10px;
  }

  .fw-admin-main .admin-user-access-card .button-row {
    display: flex;
  }
}

@media (max-width: 1200px) {
  .fw-topbar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .fw-top-tabs,
  .fw-top-actions {
    justify-self: stretch;
  }

  .fw-top-tabs {
    justify-content: center;
  }

  .fw-top-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .fw-dashboard-grid,
  .fw-node-body {
    grid-template-columns: 1fr;
  }

  .fw-node-body {
    gap: 14px;
  }

  .fw-access-row {
    grid-template-columns: 1fr;
  }

  .fw-access-main,
  .fw-client-pill,
  .fw-row-actions {
    min-width: 0;
  }

  .fw-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .fw-admin-main .admin-user-detail .hero-grid,
  .fw-admin-main .admin-user-detail .admin-command-grid {
    grid-template-columns: 1fr;
  }

  .fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(2),
  .fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .fw-admin-main .admin-user-detail .admin-user-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .node-detail-hero,
  .node-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .node-metrics-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-node-detail .node-metrics-strip {
    left: 276px;
    right: 18px;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  }

  .node-metric-row {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .fw-admin-shell {
    grid-template-columns: 1fr;
  }

  .fw-admin-sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 30;
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
  }

  .fw-admin-sidebar-top {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .fw-admin-back {
    width: fit-content;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
  }

  .fw-admin-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    overflow-x: auto;
    padding: 0 max(12px, calc((100vw - 380px) / 2)) 4px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .fw-admin-link {
    width: 42px;
    min-width: 42px;
    min-height: 40px;
    justify-content: center;
    padding: 9px;
    scroll-snap-align: center;
  }

  .fw-admin-link span {
    display: none;
  }

  .fw-admin-link img {
    flex: 0 0 auto;
  }

  .fw-admin-account {
    display: none;
  }

  .fw-admin-signout {
    position: absolute;
    right: 12px;
    top: 12px;
    width: auto;
    margin: 0;
    padding: 0 12px;
  }

  .fw-admin-main,
  .fw-user-main {
    width: 100%;
    margin-left: 0;
    padding: 22px;
  }

  .fw-topbar {
    width: calc(100vw - 32px);
  }

  .fw-admin-main .metric-grid--admin,
  .fw-admin-main .admin-command-grid,
  .fw-admin-main .admin-split {
    grid-template-columns: 1fr;
  }

  .fw-admin-main .admin-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-admin-main .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .fw-admin-main .admin-dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(2),
  .fw-admin-main .admin-user-detail .admin-command-grid > article:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .fw-admin-main .admin-user-detail .command-panel--system,
  .fw-admin-main .admin-user-detail .create-key-action-row {
    grid-template-columns: 1fr;
  }

  .fw-admin-main .panel-grid.three-up,
  .fw-admin-main .panel-grid.two-up {
    grid-template-columns: 1fr;
  }

  .node-detail-hero {
    padding: 14px;
  }

  .node-detail-title-row {
    align-items: flex-start;
  }

  .node-signal-grid {
    grid-template-columns: 1fr;
  }

  .node-protocol-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .node-protocol-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .node-diagnostics-grid {
    grid-template-columns: 1fr;
  }

  .node-diagnostics-scroll {
    max-height: 560px;
  }

  .admin-node-detail {
    padding-bottom: 118px;
  }

  .admin-node-detail .node-metrics-strip {
    right: 12px;
    bottom: 10px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 9px;
    border-radius: 15px;
  }

  .admin-node-detail .node-metrics-strip .section-subtitle {
    display: none;
  }

  .node-job-queue-head,
  .node-job-row {
    grid-template-columns: 1fr;
  }

  .node-job-queue-head {
    display: grid;
  }

  .node-job-controls {
    justify-content: flex-start;
  }

  .node-lifecycle-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .toast-layer {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .app-toast {
    min-height: 56px;
    padding: 11px;
    border-radius: 14px;
  }

  .fw-topbar {
    top: 8px;
    width: calc(100vw - 24px);
    height: 64px;
    min-height: 64px;
    padding: 8px;
    border-radius: 22px;
    grid-template-columns: minmax(128px, 190px) auto auto;
    grid-template-areas: "brand tabs actions";
    gap: 8px;
    justify-content: space-between;
  }

  .fw-brand-pill {
    grid-area: brand;
    height: 46px;
    min-height: 46px;
    min-width: 0;
    width: 100%;
    max-width: 190px;
    padding: 6px 10px 6px 6px;
    border-radius: 16px;
    overflow: hidden;
  }

  .fw-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .fw-brand-logo img {
    width: 30px;
    height: 30px;
  }

  .fw-brand-copy {
    min-width: 0;
    overflow: hidden;
  }

  .fw-brand-copy strong {
    font-size: 14px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fw-brand-copy small {
    font-size: 9px;
    line-height: 10px;
    letter-spacing: 0.08em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fw-top-tabs {
    grid-area: tabs;
    width: auto;
    min-height: 44px;
    padding: 5px;
    justify-content: center;
    border-radius: 16px;
  }

  .fw-top-actions {
    grid-area: actions;
    justify-self: end;
    display: grid;
    grid-template-columns: 38px minmax(48px, auto) repeat(3, 38px);
    gap: 6px;
  }

  .fw-top-tab,
  .fw-credit-button,
  .fw-balance-pill,
  .fw-icon-pill {
    min-width: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 14px;
    justify-content: center;
  }

  .fw-user-pill {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 14px;
    justify-content: center;
  }

  .fw-user-pill img {
    width: 38px;
    height: 38px;
    padding: 10px;
    border-radius: 14px;
  }

  .fw-top-tab img,
  .fw-credit-button img,
  .fw-balance-pill img,
  .fw-icon-pill img {
    width: 16px;
    height: 16px;
  }

  .fw-balance-pill strong {
    font-size: 11px;
  }

  .fw-balance-pill {
    width: auto;
    padding: 0 8px;
  }

  .fw-admin-main {
    padding: 18px;
  }

  .fw-admin-main .admin-users .admin-form-panel {
    max-width: none;
  }

  .fw-admin-main .admin-users .admin-table-panel {
    overflow: visible;
  }

  .fw-admin-main .admin-users .app-table {
    min-width: 0;
  }

  .fw-admin-main .page-header,
  .fw-admin-main .fw-admin-page-head {
    display: grid;
    gap: 14px;
  }

  .fw-admin-main .admin-dashboard-kpis,
  .fw-admin-main .admin-health-grid,
  .fw-admin-main .admin-dashboard-actions-grid {
    grid-template-columns: 1fr;
  }

  .fw-admin-main .admin-dashboard-health,
  .fw-admin-main .admin-dashboard-feed {
    padding: 14px;
  }

  .fw-admin-main .dashboard-section-head {
    display: grid;
  }

  .fw-admin-actions,
  .fw-admin-main .page-actions,
  .fw-admin-main .button-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fw-admin-main .btn,
  .fw-admin-button,
  .fw-admin-button-primary {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .fw-admin-main .admin-user-detail {
    gap: 14px;
  }

  .fw-admin-main .admin-user-detail .admin-user-hero,
  .fw-admin-main .admin-user-detail .surface-card {
    padding: 14px;
    border-radius: 14px;
  }

  .fw-admin-main .admin-user-detail .admin-user-meta {
    grid-template-columns: 1fr;
  }

  .admin-node-detail .node-metrics-strip {
    padding: 9px;
  }

  .node-diagnostics-scroll {
    max-height: 420px;
  }

  .node-metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .node-metric-row span {
    justify-content: center;
    min-height: 28px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .fw-admin-main .admin-user-title-row {
    flex-wrap: wrap;
  }

  .fw-admin-modal .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fw-admin-main .table-responsive {
    overflow: visible;
  }

  .fw-admin-main .fw-card-table {
    display: block;
  }

  .fw-admin-main .admin-audit .audit-table {
    min-width: 0;
  }

  .fw-admin-main .fw-card-table thead {
    display: none;
  }

  .fw-admin-main .fw-card-table tbody {
    display: grid;
    gap: 10px;
  }

  .fw-admin-main .fw-card-table tr,
  .fw-admin-main .fw-card-table tbody,
  .fw-admin-main .fw-card-table td {
    width: 100%;
  }

  .fw-admin-main .fw-card-table tr {
    display: grid;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: #121215;
  }

  .fw-admin-main .fw-card-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .fw-admin-main .fw-card-table td:last-child {
    border-bottom: 0;
  }

  .fw-admin-main .fw-card-table td::before {
    content: attr(data-label);
    color: #71717b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fw-admin-main .fw-card-table td[colspan] {
    display: block;
  }

  .fw-admin-main .fw-card-table td[colspan]::before {
    display: none;
  }

  .fw-top-tab span,
  .fw-credit-button span,
  .fw-user-pill span {
    display: none;
  }

  .fw-top-tab {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .fw-credit-button,
  .fw-icon-pill {
    width: 44px;
    min-width: 44px;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .fw-balance-pill {
    min-width: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .fw-node-grid-admin {
    gap: 18px;
  }

  .fw-node-card-admin {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: #121215;
  }

  .fw-node-card-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fw-admin-import-panel {
    max-width: none;
  }

  .fw-admin-import-panel .row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fw-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .fw-node-panel,
  .fw-quota-panel,
  .fw-traffic-panel {
    padding: 18px;
  }

  .fw-node-head {
    flex-direction: column;
    align-items: stretch;
  }

  .fw-node-empty-compact {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .fw-node-empty-action {
    width: 100%;
  }

  .fw-node-title {
    align-items: flex-start;
  }

  .fw-node-metrics,
  .fw-node-facts,
  .fw-node-protocols,
  .fw-node-key-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fw-metric-chip,
  .fw-node-facts span,
  .fw-node-protocol-pill,
  .fw-node-key-pill {
    justify-content: flex-start;
    min-width: 0;
  }

  .fw-node-live-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .fw-access-row {
    gap: 12px;
    padding: 14px;
  }

  .fw-access-main {
    gap: 12px;
  }

  .fw-access-main h2 {
    flex-wrap: wrap;
    font-size: 15px;
  }

  .fw-client-pill {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .fw-topbar {
    width: calc(100vw - 20px);
    height: 52px;
    min-height: 52px;
    margin-top: 10px;
    padding: 6px;
    border-radius: 20px;
    grid-template-columns: minmax(116px, 142px) auto auto;
    grid-template-areas: "brand tabs actions";
    gap: 5px;
  }

  .fw-brand-pill {
    height: 38px;
    min-height: 38px;
    max-width: 142px;
    gap: 7px;
    padding: 4px 7px 4px 4px;
    border-radius: 14px;
  }

  .fw-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .fw-brand-logo img {
    width: 25px;
    height: 25px;
  }

  .fw-brand-copy strong {
    font-size: 12px;
    line-height: 14px;
  }

  .fw-brand-copy small {
    font-size: 7px;
    letter-spacing: 0.065em;
  }

  .fw-top-tabs {
    height: 34px;
    min-height: 34px;
    padding: 3px;
    border-radius: 13px;
  }

  .fw-top-actions {
    grid-template-columns: 32px minmax(42px, auto) repeat(3, 32px);
    gap: 4px;
  }

  .fw-top-tab,
  .fw-credit-button,
  .fw-user-pill,
  .fw-icon-pill {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 11px;
  }

  .fw-balance-pill {
    width: auto;
    min-width: 42px;
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 11px;
  }

  .fw-user-pill img {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 11px;
  }

  .fw-top-tab img,
  .fw-credit-button img,
  .fw-balance-pill img,
  .fw-icon-pill img {
    width: 14px;
    height: 14px;
  }

  .fw-user-main {
    padding: 18px 10px 60px;
  }
}

@media (max-width: 480px) {
  .fw-topbar {
    width: calc(100vw - 20px);
    height: 52px;
    min-height: 52px;
    margin-top: 10px;
    padding: 6px;
    border-radius: 20px;
    grid-template-columns: minmax(108px, 132px) auto auto;
    grid-template-areas: "brand tabs actions";
    gap: 5px;
  }

  .fw-brand-pill {
    height: 38px;
    min-height: 38px;
    max-width: 132px;
    gap: 7px;
    padding: 4px 7px 4px 4px;
    border-radius: 14px;
  }

  .fw-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .fw-brand-logo img {
    width: 25px;
    height: 25px;
  }

  .fw-brand-copy strong {
    font-size: 12px;
    line-height: 14px;
  }

  .fw-brand-copy small {
    font-size: 7px;
    letter-spacing: 0.055em;
  }

  .fw-top-tabs {
    height: 34px;
    min-height: 34px;
    padding: 3px;
    border-radius: 13px;
  }

  .fw-top-actions {
    grid-template-columns: 32px minmax(40px, auto) repeat(3, 32px);
    gap: 4px;
  }

  .fw-top-tab,
  .fw-credit-button,
  .fw-user-pill,
  .fw-icon-pill {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 11px;
  }

  .fw-balance-pill {
    width: auto;
    min-width: 40px;
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 11px;
  }

  .fw-user-pill img {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 11px;
  }

  .fw-top-tab img,
  .fw-credit-button img,
  .fw-balance-pill img,
  .fw-icon-pill img {
    width: 14px;
    height: 14px;
  }

  .fw-user-main {
    padding: 18px 10px 60px;
  }

  .fw-admin-sidebar {
    padding: 10px;
  }

  .fw-admin-back span:last-child,
  .fw-admin-signout span {
    display: none;
  }

  .fw-admin-link {
    min-height: 38px;
    font-size: 13px;
  }

  .fw-admin-nav {
    gap: 6px;
    justify-content: center;
    padding-inline: max(10px, calc((100vw - 330px) / 2));
  }

  .fw-action-primary {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .fw-action-primary span {
    display: none;
  }

  .fw-access-icon {
    width: 36px;
    height: 36px;
  }

  .fw-row-actions {
    grid-template-columns: repeat(4, 40px);
    justify-content: start;
  }

  .fw-admin-main {
    padding: 14px;
  }

  .fw-admin-main .page-title,
  .fw-admin-main .fw-page-title {
    font-size: 22px;
    line-height: 28px;
  }

  .fw-admin-main .page-subtitle {
    font-size: 13px;
  }

  .fw-admin-main .surface-card,
  .fw-admin-main .card {
    padding: 16px;
  }

  .fw-admin-main .fw-card-table td {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .fw-topbar {
    width: calc(100vw - 12px);
    height: 50px;
    min-height: 50px;
    padding: 5px;
    gap: 3px;
    grid-template-columns: minmax(78px, 94px) auto auto;
  }

  .fw-brand-pill {
    height: 36px;
    min-height: 36px;
    max-width: 94px;
    gap: 5px;
    padding: 4px 6px 4px 4px;
  }

  .fw-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .fw-brand-logo img {
    width: 23px;
    height: 23px;
  }

  .fw-brand-copy strong {
    font-size: 11px;
    line-height: 13px;
  }

  .fw-brand-copy small {
    display: none;
  }

  .fw-top-tabs {
    height: 32px;
    min-height: 32px;
    gap: 4px;
    padding: 2px;
  }

  .fw-top-actions {
    grid-template-columns: 30px minmax(36px, auto) repeat(3, 30px);
    gap: 3px;
  }

  .fw-top-tab,
  .fw-credit-button,
  .fw-user-pill,
  .fw-icon-pill {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 10px;
  }

  .fw-balance-pill {
    min-width: 36px;
    height: 30px;
    min-height: 30px;
    padding: 0 5px;
    border-radius: 10px;
  }

  .fw-balance-pill strong {
    font-size: 10px;
  }

  .fw-user-pill img {
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 10px;
  }

  .fw-top-tab img,
  .fw-credit-button img,
  .fw-balance-pill img,
  .fw-icon-pill img {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 360px) {
  .fw-topbar {
    width: calc(100vw - 8px);
    padding: 4px;
    gap: 2px;
    grid-template-columns: 32px auto auto;
  }

  .fw-brand-pill {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    padding: 2px;
    justify-content: center;
  }

  .fw-brand-copy {
    display: none;
  }
}
