/* PSG v19 — modern floating security command interface. */
.app {
  --v19-bg: #eef1f3;
  --v19-surface: rgba(255, 255, 255, 0.92);
  --v19-surface-solid: #ffffff;
  --v19-surface-soft: #f5f7f8;
  --v19-line: rgba(21, 39, 50, 0.1);
  --v19-line-strong: rgba(21, 39, 50, 0.18);
  --v19-text: #10202b;
  --v19-muted: #73828b;
  --v19-gold: #d4a83e;
  --v19-gold-bright: #f1c766;
  --v19-green: #43c892;
  --v19-blue: #65aeea;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 14px;
  min-height: 100vh;
  padding: 14px;
  color: var(--v19-text);
  background:
    radial-gradient(circle at 88% 6%, rgba(212, 168, 62, 0.12), transparent 25%),
    radial-gradient(circle at 40% 100%, rgba(79, 150, 199, 0.09), transparent 28%),
    var(--v19-bg);
}

html[data-theme="dark"] .app {
  --v19-bg: #070b0f;
  --v19-surface: rgba(16, 23, 29, 0.9);
  --v19-surface-solid: #10171d;
  --v19-surface-soft: #151e25;
  --v19-line: rgba(190, 207, 217, 0.1);
  --v19-line-strong: rgba(190, 207, 217, 0.18);
  --v19-text: #f0f4f5;
  --v19-muted: #84939d;
  --v19-gold: #d8ad4c;
  --v19-gold-bright: #f2cf78;
  --v19-green: #50d7a0;
  --v19-blue: #70b8ef;
  background:
    radial-gradient(circle at 85% 4%, rgba(216, 173, 76, 0.1), transparent 25%),
    radial-gradient(circle at 38% 100%, rgba(50, 112, 151, 0.11), transparent 30%),
    #070b0f;
}

.app .sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  padding: 17px 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 26px;
  color: #edf2f4;
  background:
    radial-gradient(circle at 50% -4%, rgba(222, 181, 81, 0.17), transparent 24%),
    linear-gradient(160deg, #121b22 0%, #091016 58%, #090d11 100%);
  box-shadow: 0 24px 70px rgba(4, 9, 13, 0.25);
}

.app .sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.012) 40px);
  content: "";
}

.app .brand {
  position: relative;
  z-index: 1;
  gap: 13px;
  min-height: 76px;
  margin: 0 3px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.app .brand::after {
  display: none;
}

.app .brand-logo.logo-mark {
  width: 58px;
  height: 58px;
  padding: 2px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.app .brand-text strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.app .brand-text span {
  max-width: 144px;
  margin-top: 5px;
  color: #71828d;
  font-size: 7px;
  line-height: 1.45;
  letter-spacing: 0.14em;
}

.app .nav {
  position: relative;
  z-index: 1;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0 2px 14px;
  scrollbar-width: none;
}

.app .nav::-webkit-scrollbar {
  display: none;
}

.app .nav-section {
  margin: 18px 11px 7px;
  color: #55646e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.app .nav-item {
  position: relative;
  gap: 11px;
  min-height: 43px;
  padding: 7px 11px;
  border: 0;
  border-radius: 13px;
  color: #8999a3;
  background: transparent;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.01em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.app .nav-item:hover {
  border: 0;
  color: #f3f6f7;
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.app .nav-item.active {
  border: 0;
  color: #101318;
  background: linear-gradient(135deg, #f0cf7b, #c99b35);
  box-shadow: 0 10px 24px rgba(195, 145, 41, 0.2);
}

.app .nav-item.active::after {
  right: 13px;
  width: 6px;
  height: 6px;
  background: #152019;
  box-shadow: none;
}

.app .nav-icon,
.app .nav-item > .nav-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border: 0;
  border-radius: 9px;
  color: #c8a95f;
  background: rgba(212, 168, 62, 0.1);
  font-size: 12px;
}

.app .nav-item.active .nav-icon {
  color: #f2d98f;
  background: rgba(13, 17, 20, 0.84);
}

.app .sidebar-network-status {
  position: relative;
  z-index: 1;
  margin: 8px 3px 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.028);
}

.app .network-status-heading span {
  background: var(--v19-green);
  box-shadow: 0 0 14px rgba(80, 215, 160, 0.75);
}

.app .sidebar-network-status strong {
  color: #dfe8eb;
}

.app .sidebar-footer {
  position: relative;
  z-index: 1;
  margin: 0 3px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.app .sidebar-footer .avatar {
  border-color: rgba(240, 207, 123, 0.25);
}

.app .main {
  min-width: 0;
  background: transparent;
}

.app .topbar {
  position: sticky;
  z-index: 35;
  top: 14px;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  min-height: 76px;
  margin: 0;
  padding: 10px 15px 10px 18px;
  border: 1px solid var(--v19-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--v19-surface-solid) 84%, transparent);
  box-shadow: 0 16px 48px rgba(7, 15, 20, 0.09);
  backdrop-filter: blur(22px);
}

.app .topbar::before {
  display: none;
}

.app .topbar-logo.logo-mark {
  width: 39px;
  height: 39px;
  padding: 2px;
  border: 0;
  border-radius: 12px;
  background: var(--v19-surface-soft);
}

.app .topbar-brand {
  gap: 10px;
}

.app .topbar-brand strong {
  color: var(--v19-text);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.app .topbar-brand span {
  margin-top: 4px;
  color: var(--v19-muted);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.app .topbar-network-status {
  min-width: 190px;
  padding: 9px 15px;
  border: 1px solid var(--v19-line);
  border-radius: 14px;
  background: var(--v19-surface-soft);
}

.app .topbar-network-status i {
  background: var(--v19-green);
}

.app .topbar-network-status strong {
  color: var(--v19-green);
}

.app .topbar-actions {
  gap: 7px;
}

.app .icon-btn,
.app .profile-button,
.app .logout-btn {
  min-height: 40px;
  border: 1px solid var(--v19-line);
  border-radius: 12px;
  color: var(--v19-text);
  background: var(--v19-surface-soft);
  box-shadow: none;
}

.app .icon-btn:hover,
.app .profile-button:hover,
.app .logout-btn:hover {
  border-color: color-mix(in srgb, var(--v19-gold) 55%, var(--v19-line));
  color: var(--v19-text);
  background: color-mix(in srgb, var(--v19-gold) 10%, var(--v19-surface-soft));
  transform: translateY(-1px);
}

.app .profile-button {
  order: 5;
  padding: 3px;
  border-radius: 50%;
}

.app .profile-button .avatar {
  width: 34px;
  height: 34px;
  border: 0;
}

.app .theme-menu {
  top: calc(100% + 12px);
  border: 1px solid var(--v19-line-strong);
  border-radius: 18px;
  color: var(--v19-text);
  background: var(--v19-surface-solid);
  box-shadow: 0 24px 70px rgba(4, 10, 14, 0.24);
}

.app .content {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 30px 18px 56px;
}

.app .page.active {
  animation: v19PageIn 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes v19PageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.app .page-heading {
  position: relative;
  min-height: 148px;
  margin-bottom: 18px;
  padding: 30px 34px;
  overflow: hidden;
  align-items: flex-end;
  border: 1px solid var(--v19-line);
  border-radius: 24px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--v19-surface-solid) 96%, transparent) 0 55%, transparent 80%),
    radial-gradient(circle at 84% 25%, rgba(212, 168, 62, 0.22), transparent 25%),
    var(--v19-surface);
  box-shadow: 0 18px 50px rgba(6, 15, 20, 0.07);
}

.app .page-heading::before {
  position: absolute;
  right: 5%;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--v19-gold) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 35px color-mix(in srgb, var(--v19-gold) 4%, transparent), 0 0 0 70px color-mix(in srgb, var(--v19-gold) 3%, transparent);
  content: "";
}

.app .page-heading > * {
  position: relative;
  z-index: 1;
}

.app .eyebrow {
  margin-bottom: 8px;
  color: var(--v19-gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.app h1 {
  color: var(--v19-text);
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 820;
  letter-spacing: -0.045em;
}

.app .status-pill {
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--v19-green) 28%, var(--v19-line));
  border-radius: 999px;
  color: var(--v19-green);
  background: color-mix(in srgb, var(--v19-green) 8%, var(--v19-surface-solid));
  font-size: 8px;
  letter-spacing: 0.1em;
}

.app .ops-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.app .metric,
html[data-theme="dark"] .app .metric {
  position: relative;
  min-height: 112px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--v19-line);
  border-radius: 20px;
  background: var(--v19-surface);
  box-shadow: 0 12px 35px rgba(5, 14, 19, 0.06);
}

.app .metric::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--v19-gold));
  content: "";
}

.app .metric span {
  color: var(--v19-muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.app .metric strong {
  margin-top: 10px;
  color: var(--v19-text);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.035em;
}

.app .dashboard,
.app .work-grid,
.app .customer-grid,
.app .ops-grid {
  gap: 14px;
}

.app .panel,
html[data-theme="dark"] .app .panel,
.app .customer-portal-preview {
  overflow: hidden;
  border: 1px solid var(--v19-line);
  border-radius: 22px;
  color: var(--v19-text);
  background: var(--v19-surface);
  box-shadow: 0 16px 42px rgba(5, 14, 19, 0.065);
}

.app .panel::before,
.app .panel::after,
.app .dashboard > .panel:first-child::after,
.app .work-grid > .panel:first-child::after {
  display: none;
}

.app .panel-header,
html[data-theme="dark"] .app .panel-header {
  min-height: 67px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--v19-line);
  color: var(--v19-text);
  background: transparent;
  font-size: 12px;
}

.app .panel-header small {
  color: var(--v19-muted);
  font-size: 8px;
}

.app .panel-body {
  padding: 21px;
}

.app .field {
  gap: 8px;
}

.app .field > span,
.app label > span {
  color: var(--v19-muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.03em;
}

.app input,
.app select,
.app textarea,
html[data-theme="dark"] .app input,
html[data-theme="dark"] .app select,
html[data-theme="dark"] .app textarea {
  min-height: 48px;
  border: 1px solid var(--v19-line-strong);
  border-radius: 13px;
  color: var(--v19-text);
  background: var(--v19-surface-soft);
  box-shadow: none;
}

.app input:focus,
.app select:focus,
.app textarea:focus {
  border-color: color-mix(in srgb, var(--v19-gold) 70%, var(--v19-line));
  outline: 3px solid color-mix(in srgb, var(--v19-gold) 12%, transparent);
  box-shadow: none;
}

.app textarea {
  min-height: 118px;
}

.app .btn,
.app button.btn {
  min-height: 45px;
  border-radius: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.app .btn-primary,
.app .btn-success {
  border-color: transparent;
  color: #12171a;
  background: linear-gradient(135deg, var(--v19-gold-bright), var(--v19-gold));
}

.app .btn-primary:hover,
.app .btn-success:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.app .btn-danger {
  border-color: color-mix(in srgb, #dd6565 30%, var(--v19-line));
  color: #df7272;
  background: color-mix(in srgb, #dd6565 8%, var(--v19-surface-soft));
}

.app .summary-row,
.app .kv,
.app .list-item,
html[data-theme="dark"] .app .list-item {
  border-color: var(--v19-line);
}

.app .summary-row {
  min-height: 52px;
  padding: 9px 0;
}

.app .callout,
html[data-theme="dark"] .app .callout {
  border: 1px solid color-mix(in srgb, var(--v19-gold) 20%, var(--v19-line));
  border-radius: 14px;
  color: var(--v19-muted);
  background: color-mix(in srgb, var(--v19-gold) 7%, var(--v19-surface-soft));
}

.app .table-wrap {
  border: 1px solid var(--v19-line);
  border-radius: 18px;
  background: var(--v19-surface);
}

.app th,
html[data-theme="dark"] .app th {
  padding: 15px 17px;
  border-color: var(--v19-line);
  color: var(--v19-muted);
  background: var(--v19-surface-soft);
}

.app td,
html[data-theme="dark"] .app td {
  padding: 16px 17px;
  border-color: var(--v19-line);
  color: var(--v19-text);
}

/* Unique command overview */
.app .command-hero-v19 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  min-height: 390px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  color: #f6f7f8;
  background:
    radial-gradient(circle at 76% 42%, rgba(213, 170, 69, 0.18), transparent 25%),
    linear-gradient(125deg, #151f27 0%, #0a1117 55%, #080c10 100%);
  box-shadow: 0 30px 75px rgba(4, 9, 13, 0.22);
}

.app .command-hero-v19::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, transparent, #000);
  content: "";
}

.app .command-hero-v19::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--v19-gold-bright), transparent 75%);
  content: "";
}

.app .command-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 48px clamp(34px, 5vw, 72px);
}

.app .live-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 31px;
  padding: 8px 11px;
  border: 1px solid rgba(80, 215, 160, 0.18);
  border-radius: 999px;
  color: #77d7af;
  background: rgba(80, 215, 160, 0.055);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.app .live-caption i,
.app .pulse-dot,
.app .pulse-footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v19-green);
  box-shadow: 0 0 14px rgba(80, 215, 160, 0.75);
}

.app .command-hero-copy .eyebrow {
  margin: 0 0 9px;
  color: #b79750;
}

.app .command-hero-copy h1 {
  margin: 0;
  color: #f6f7f8;
  font-size: clamp(47px, 5.2vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.app .command-hero-copy h1 span {
  color: #d8ae4e;
}

.app .command-hero-description {
  max-width: 610px;
  margin: 24px 0 0;
  color: #8fa0aa;
  font-size: 12px;
  line-height: 1.75;
}

.app .command-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.app .command-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 196px;
  padding: 0 17px;
  border-radius: 13px;
}

.app .command-primary {
  border: 0;
  color: #13171a;
  background: linear-gradient(135deg, #f1d27f, #c99b36);
}

.app .command-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce4e8;
  background: rgba(255, 255, 255, 0.045);
}

.app .command-radar {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(31vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 174, 78, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 174, 78, 0.075), rgba(216, 174, 78, 0.015) 55%, transparent 56%);
  box-shadow: 0 0 70px rgba(211, 163, 54, 0.07);
}

.app .command-radar::before,
.app .command-radar::after {
  position: absolute;
  background: rgba(216, 174, 78, 0.12);
  content: "";
}

.app .command-radar::before { top: 50%; left: 3%; width: 94%; height: 1px; }
.app .command-radar::after { top: 3%; left: 50%; width: 1px; height: 94%; }

.app .radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(216, 174, 78, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.app .ring-one { width: 74%; height: 74%; }
.app .ring-two { width: 48%; height: 48%; }
.app .ring-three { width: 22%; height: 22%; }

.app .radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(222, 181, 81, 0.22) 350deg, rgba(244, 209, 119, 0.45) 359deg, transparent 360deg);
  animation: v19Radar 7s linear infinite;
}

@keyframes v19Radar { to { transform: rotate(360deg); } }

.app .radar-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(216, 174, 78, 0.25);
  border-radius: 50%;
  background: rgba(8, 13, 17, 0.88);
  box-shadow: 0 0 34px rgba(216, 174, 78, 0.12);
}

.app .radar-core img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.app .radar-node {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 2px solid #0c1217;
  border-radius: 50%;
  background: var(--v19-gold-bright);
  box-shadow: 0 0 12px rgba(242, 207, 120, 0.75);
}

.app .node-one { top: 22%; left: 34%; }
.app .node-two { right: 19%; bottom: 34%; }
.app .node-three { bottom: 18%; left: 27%; }

.app .command-radar > small {
  position: absolute;
  right: 5%;
  bottom: 2%;
  color: #7d8b93;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.app .command-kpis-v19 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.app .command-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  padding: 19px 21px;
  border: 1px solid var(--v19-line);
  border-radius: 20px;
  background: var(--v19-surface);
  box-shadow: 0 13px 38px rgba(5, 14, 19, 0.055);
}

.app .kpi-index {
  color: color-mix(in srgb, var(--v19-muted) 42%, transparent);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.app .command-kpi small {
  display: block;
  margin-bottom: 7px;
  color: var(--v19-muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app .command-kpi strong {
  display: block;
  overflow: hidden;
  color: var(--v19-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .kpi-state {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.app .kpi-state.is-green { background: var(--v19-green); box-shadow: 0 0 14px color-mix(in srgb, var(--v19-green) 65%, transparent); }
.app .kpi-state.is-gold { background: var(--v19-gold); box-shadow: 0 0 14px color-mix(in srgb, var(--v19-gold) 65%, transparent); }
.app .kpi-state.is-blue { background: var(--v19-blue); box-shadow: 0 0 14px color-mix(in srgb, var(--v19-blue) 65%, transparent); }

.app .command-layout-v19 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.app .command-card {
  border: 1px solid var(--v19-line);
  border-radius: 23px;
  background: var(--v19-surface);
  box-shadow: 0 16px 44px rgba(5, 14, 19, 0.06);
}

.app .command-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 23px 17px;
}

.app .command-card-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--v19-gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.app .command-card-heading h2 {
  margin: 0;
  color: var(--v19-text);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.app .command-card-heading > small {
  color: var(--v19-muted);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.app .quick-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 14px 14px;
}

.app .quick-command-grid button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--v19-line);
  border-radius: 16px;
  color: var(--v19-text);
  text-align: left;
  background: var(--v19-surface-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app .quick-command-grid button:hover {
  border-color: color-mix(in srgb, var(--v19-gold) 42%, var(--v19-line));
  background: color-mix(in srgb, var(--v19-gold) 7%, var(--v19-surface-soft));
  transform: translateY(-2px);
}

.app .quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--v19-gold);
  background: color-mix(in srgb, var(--v19-gold) 11%, var(--v19-surface-solid));
  font-weight: 850;
}

.app .quick-command-grid strong,
.app .quick-command-grid small {
  display: block;
}

.app .quick-command-grid strong {
  margin-bottom: 5px;
  font-size: 11px;
}

.app .quick-command-grid small {
  overflow: hidden;
  color: var(--v19-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .quick-command-grid b {
  color: var(--v19-muted);
  font-size: 13px;
}

.app .command-pulse-card {
  padding-bottom: 12px;
}

.app .pulse-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  margin: 0 20px;
  border-top: 1px solid var(--v19-line);
}

.app .pulse-stat span {
  color: var(--v19-muted);
  font-size: 9px;
}

.app .pulse-stat strong {
  color: var(--v19-text);
  font-size: 18px;
}

.app .pulse-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 14px 0;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--v19-green);
  background: color-mix(in srgb, var(--v19-green) 7%, var(--v19-surface-soft));
  font-size: 8px;
}

.app .command-activity-card {
  overflow: hidden;
}

.app .command-activity-card .command-card-heading {
  border-bottom: 1px solid var(--v19-line);
}

.app .command-card-heading > button {
  padding: 8px 11px;
  border: 1px solid var(--v19-line);
  border-radius: 10px;
  color: var(--v19-muted);
  background: var(--v19-surface-soft);
  font-size: 8px;
  cursor: pointer;
}

.app .command-activity-card .panel-body {
  padding: 8px 22px 16px;
}

.app .toast {
  border: 1px solid color-mix(in srgb, var(--v19-green) 30%, var(--v19-line));
  border-radius: 15px;
  color: var(--v19-text);
  background: var(--v19-surface-solid);
  box-shadow: 0 20px 55px rgba(4, 10, 14, 0.2);
}

@media (max-width: 1200px) {
  .app {
    grid-template-columns: 242px minmax(0, 1fr);
  }

  .app .command-hero-copy {
    padding-inline: 40px;
  }

  .app .command-radar {
    width: min(30vw, 300px);
  }
}

@media (max-width: 1000px) {
  .app {
    display: block;
    padding: 10px;
  }

  .app .sidebar {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: min(86vw, 290px);
    height: calc(100svh - 20px);
    border-radius: 24px;
    transform: translateX(calc(-100% - 22px));
  }

  .app.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .app .mobile-nav-backdrop {
    z-index: 70;
    border-radius: 0;
  }

  .app .topbar {
    top: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 68px;
    border-radius: 19px;
  }

  .app .mobile-nav-toggle {
    display: grid;
    border-radius: 12px;
  }

  .app .topbar-network-status {
    display: none;
  }

  .app .content {
    padding: 24px 4px 44px;
  }

  .app .command-hero-v19 {
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  }

  .app .command-radar {
    width: 240px;
  }

  .app .command-layout-v19 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app .command-hero-v19 {
    display: block;
    min-height: 0;
  }

  .app .command-hero-copy {
    padding: 39px 26px 42px;
  }

  .app .command-hero-copy h1 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .app .command-radar {
    position: absolute;
    top: 4%;
    right: -120px;
    width: 300px;
    opacity: 0.32;
  }

  .app .command-hero-description {
    max-width: 90%;
  }

  .app .command-kpis-v19 {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .app .command-kpi {
    min-height: 84px;
  }

  .app .quick-command-grid {
    grid-template-columns: 1fr;
  }

  .app .page-heading {
    min-height: 126px;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .app {
    padding: 7px;
  }

  .app .topbar {
    top: 7px;
    padding-inline: 10px;
  }

  .app .topbar-brand strong {
    max-width: 120px;
  }

  .app .command-hero-copy {
    padding-inline: 22px;
  }

  .app .command-hero-actions {
    flex-direction: column;
  }

  .app .command-hero-actions .btn {
    width: 100%;
  }

  .app .command-card-heading {
    padding-inline: 18px;
  }

  .app .panel-header,
  .app .panel-body {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app .radar-sweep,
  .app .page.active {
    animation: none;
  }
}
