:root {
  --bg: #050914;
  --app-bg: #030712;
  --sidebar-bg: #050914;
  --panel: rgba(9, 22, 40, 0.86);
  --panel-2: rgba(12, 31, 58, 0.86);
  --line: rgba(96, 184, 255, 0.24);
  --line-hot: rgba(62, 210, 255, 0.72);
  --text: #f5f8ff;
  --muted: #98aac2;
  --cyan: #35d9ff;
  --blue: #3278ff;
  --green: #49e68c;
  --amber: #ffbd59;
  --red: #ff665c;
  --violet: #9a7cff;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(50, 120, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(53, 217, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #030712, #071326 54%, #030712);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(98, 174, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 174, 255, 0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--app-bg);
  transition: grid-template-columns 0.22s ease;
}

.app-shell.collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 2;
}

.sidebar .collapse-button {
  position: absolute;
  top: 58%;
  right: -21px;
  transform: translateY(-50%);
}

.brand-row,
.topbar,
.top-menu,
.panel-head,
.toolbar,
.row,
.footer {
  display: flex;
  align-items: center;
}

.brand-row {
  position: relative;
  justify-content: center;
  gap: 10px;
  padding: 2px 2px 8px;
}

.brand {
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.brand img {
  object-fit: contain;
}

.brand-full {
  width: 158px;
  height: 44px;
}

.brand-icon {
  display: none;
  width: 30px;
  height: 58px;
}

.brand strong,
.nav-item strong,
.nav-item small,
.profile-card strong,
.profile-card small {
  display: block;
}

.brand strong {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-align: center;
}

.nav-item small,
.profile-card small,
.muted {
  color: var(--muted);
}

.collapse-button {
  z-index: 5;
  width: 24px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 16, 32, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  display: grid;
  place-items: center;
  padding: 0;
}

.collapse-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.nav-list {
  display: grid;
  gap: 3px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-section {
  margin: 12px 10px 5px;
  color: rgba(152, 170, 194, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
}

.nav-item b {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: transparent;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.nav-item.chatgpt-primary {
  margin-bottom: 4px;
  border-color: rgba(96, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.profile-card {
  padding: 9px;
  border: 1px solid rgba(96, 184, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card em {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 189, 89, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 189, 89, 0.08);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.sidebar-status {
  margin-top: auto;
  padding: 9px;
  border: 1px solid rgba(96, 184, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 10px;
}

.sidebar-status header,
.sidebar-api-list,
.sidebar-api-list span {
  display: flex;
  align-items: center;
}

.sidebar-status header {
  justify-content: space-between;
  gap: 8px;
}

.sidebar-status strong {
  font-size: 11px;
}

.sidebar-api-list {
  flex-wrap: wrap;
  gap: 5px;
}

.sidebar-api-list span {
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(5, 20, 38, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-api-list i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.sidebar-api-list i.green {
  background: var(--green);
}

.sidebar-api-list i.amber {
  background: var(--amber);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 800;
  overflow: hidden;
}

.avatar img,
.top-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shell.collapsed .brand span,
.app-shell.collapsed .brand strong,
.app-shell.collapsed .nav-item span,
.app-shell.collapsed .nav-section,
.app-shell.collapsed .sidebar-status,
.app-shell.collapsed .profile-card span {
  display: none;
}

.app-shell.collapsed .brand img {
  width: 30px;
  height: 58px;
}

.app-shell.collapsed .brand-full {
  display: none;
}

.app-shell.collapsed .brand-icon {
  display: none;
}

.app-shell.collapsed .collapse-button svg {
  transform: rotate(180deg);
}

.app-shell.collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 44px;
  padding: 7px;
}

.workspace {
  min-width: 0;
  width: 100%;
  padding: 20px 22px;
  position: relative;
}

.top-menu {
  position: sticky;
  top: 0;
  z-index: 35;
  justify-content: space-between;
  gap: 18px;
  margin: -20px -22px 18px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(96, 184, 255, 0.18);
  background: rgba(3, 10, 22, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.top-title {
  min-width: 250px;
}

.top-title h1 {
  font-size: clamp(26px, 3vw, 40px);
}

.top-title .tagline {
  max-width: 560px;
  font-size: 13px;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.static-role-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(10, 30, 56, 0.85);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.static-role-select select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.action-button,
.ghost-button,
.primary-button,
.mini-button,
.tab-button,
.icon-tool-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(10, 30, 56, 0.85);
}

.icon-tool-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.layout-fit-button {
  position: relative;
  width: 46px;
}

.icon-tool-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tool-button:hover,
.icon-tool-button.active {
  border-color: var(--cyan);
  background: rgba(53, 217, 255, 0.14);
}

html[data-block-edit="on"] .layout-fit-button {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(73, 230, 140, 0.16), 0 0 18px rgba(73, 230, 140, 0.22);
}

.block-drag-handle,
.block-resize-handle,
.block-settings-handle {
  display: none;
}

.page-host.block-edit-on .module-block {
  outline: 1px dashed rgba(53, 217, 255, 0.72);
  outline-offset: -6px;
  border-color: var(--line);
  overflow: visible;
}

.page-host.block-edit-on .block-drag-handle {
  position: absolute;
  top: 8px;
  right: 44px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(96, 184, 255, 0.42);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(3, 14, 29, 0.9);
  cursor: grab;
  padding: 0;
}

.page-host.block-edit-on .block-settings-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(96, 184, 255, 0.42);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(3, 14, 29, 0.9);
  cursor: pointer;
  padding: 0;
}

.page-host.block-edit-on .block-settings-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-host.block-edit-on .block-drag-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-host.block-edit-on .block-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 12;
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  cursor: nwse-resize;
}

.is-hidden {
  display: none !important;
}

.block-settings-popover {
  position: fixed;
  z-index: 80;
  width: 300px;
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(3, 10, 22, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.block-settings-popover header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.block-settings-popover button,
.block-settings-popover input,
.block-settings-popover select {
  font: inherit;
}

.block-settings-popover header button {
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 23, 43, 0.8);
}

.block-settings-popover label {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.block-settings-popover input,
.block-settings-popover select {
  min-height: 34px;
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 23, 43, 0.8);
  padding: 6px 8px;
}

.block-settings-popover .block-reset-button {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  border: 1px solid rgba(255, 189, 89, 0.34);
  border-radius: 7px;
  color: var(--amber);
  background: rgba(255, 189, 89, 0.08);
}

.block-settings-popover .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-settings-popover .checkbox-row input {
  min-height: 0;
  accent-color: var(--cyan);
}

.top-profile {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(96, 184, 255, 0.3);
  border-radius: 50%;
  color: #071326;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
  overflow: hidden;
  padding: 0;
}

.top-profile span {
  display: grid;
  place-items: center;
}

.toast {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 60;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 184, 255, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(3, 10, 22, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ai-suggestion-stack {
  position: fixed;
  top: 78px;
  right: 22px;
  z-index: 55;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.ai-suggestion {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.26);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(3, 10, 22, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  text-align: left;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ai-suggestion.show {
  opacity: 1;
  transform: translateX(0);
}

.ai-suggestion.green {
  border-left-color: var(--green);
}

.ai-suggestion.amber {
  border-left-color: var(--amber);
}

.ai-suggestion.red {
  border-left-color: var(--red);
}

.ai-suggestion span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-suggestion strong,
.ai-suggestion small,
.ai-suggestion b {
  display: block;
}

.ai-suggestion small {
  color: var(--muted);
  line-height: 1.35;
}

.ai-suggestion b {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #071326;
  background: var(--cyan);
  font-size: 11px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(96, 184, 255, 0.28);
  border-radius: 7px;
  color: var(--text);
  background: rgba(3, 10, 22, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-status {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(96, 184, 255, 0.26);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(3, 14, 29, 0.66);
}

.icon-status svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-status.green-tone {
  color: var(--green);
  border-color: rgba(73, 230, 140, 0.42);
}

.icon-status.red-tone {
  color: var(--red);
  border-color: rgba(255, 102, 92, 0.42);
}

.compact-copy {
  display: none;
}

.action-button,
.primary-button {
  min-height: 46px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--blue), rgba(53, 217, 255, 0.72));
  border-color: rgba(136, 221, 255, 0.72);
  font-weight: 800;
}

.ghost-button,
.mini-button,
.tab-button {
  min-height: 36px;
  padding: 0 11px;
}

.tab-button.active {
  color: #071326;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 800;
}

.page-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
  animation: generateIn 0.42s ease both;
}

.page-host.block-edit-on {
  outline: 1px dashed rgba(53, 217, 255, 0.34);
  outline-offset: 8px;
  border-radius: var(--radius);
  background-image:
    linear-gradient(rgba(53, 217, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 217, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(6, 15, 29, 0.82));
  box-shadow: var(--shadow), inset 0 0 0 var(--block-border-size, 0) var(--block-border-color, transparent);
  overflow: visible;
}

.module-block.block-size-compact {
  min-height: 180px;
}

.module-block.block-size-wide {
  grid-column: span 2;
}

.module-block.block-size-tall {
  min-height: 520px;
}

.module-block.block-hide-header > .panel-head {
  display: none;
}

.module-block.block-hide-body > :not(.panel-head):not(.block-drag-handle):not(.block-settings-handle):not(.block-resize-handle) {
  display: none !important;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(53, 217, 255, 0.1) 45%, transparent 68%);
  transform: translateX(-120%);
}

.panel:hover::before {
  animation: scanPanel 1.4s ease;
}

.fit-pulse .panel.module-block {
  animation: fitPulse 0.42s ease;
}

@keyframes fitPulse {
  0% {
    outline: 1px solid rgba(53, 217, 255, 0);
    transform: scale(1);
  }
  45% {
    outline: 1px solid rgba(53, 217, 255, 0.75);
    transform: scale(0.995);
  }
  100% {
    outline: 1px solid rgba(53, 217, 255, 0);
    transform: scale(1);
  }
}

@keyframes generateIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes scanPanel {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes brainPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 42px rgba(53, 217, 255, 0.34), inset 0 0 48px rgba(154, 124, 255, 0.34);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 70px rgba(53, 217, 255, 0.62), inset 0 0 62px rgba(154, 124, 255, 0.46);
  }
}

@keyframes floatNode {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes liveBlink {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 8px;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-body {
  padding: 12px 16px 16px;
  min-width: 0;
  overflow: visible;
}

.toolbar {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.toolbar input,
.toolbar select,
textarea,
.field {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(3, 12, 25, 0.58);
  outline: 0;
  padding: 9px 11px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.latest-focus {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.8fr) minmax(220px, 0.9fr);
  gap: 12px;
}

.latest-hero,
.latest-signal,
.latest-tape article {
  position: relative;
  border: 1px solid rgba(96, 184, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(53, 217, 255, 0.16), rgba(73, 230, 140, 0.06)),
    rgba(5, 17, 32, 0.8);
}

.latest-hero,
.latest-signal {
  min-height: 130px;
  padding: 14px;
  overflow: hidden;
}

.latest-hero::after,
.latest-signal::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% 10%;
  height: 120px;
  background: radial-gradient(circle, rgba(53, 217, 255, 0.22), transparent 62%);
  pointer-events: none;
}

.latest-hero small,
.latest-signal small {
  color: var(--muted);
}

.latest-hero strong,
.latest-signal strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.latest-hero p,
.latest-signal p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.latest-tape {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.latest-tape article {
  min-height: 130px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.latest-tape strong,
.latest-tape small,
.latest-tape b,
.latest-tape em {
  display: block;
}

.latest-tape small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-tape b {
  font-size: 21px;
}

.latest-tape b.green {
  color: var(--green);
}

.latest-tape b.red {
  color: var(--red);
}

.latest-tape em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.metric {
  position: relative;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(96, 184, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(53, 217, 255, 0.14), rgba(50, 120, 255, 0.08)),
    rgba(5, 17, 32, 0.78);
}

.metric-live {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.metric-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: liveBlink 1.4s ease-in-out infinite;
}

.metric small,
.list small,
.card small,
.table small {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric em {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-style: normal;
  font-size: 13px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: liveBlink 1.4s ease-in-out infinite;
}

.brain-board {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.team-brain-board {
  min-height: 560px;
  align-items: center;
  justify-items: center;
  padding: 18px;
}

.brain-board::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 22px var(--cyan);
}

.brain-core {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(83, 220, 255, 0.65);
  background:
    radial-gradient(circle, rgba(53, 217, 255, 0.25), transparent 56%),
    repeating-conic-gradient(from 20deg, rgba(50, 120, 255, 0.9) 0 7deg, transparent 7deg 17deg);
  box-shadow: 0 0 46px rgba(53, 217, 255, 0.42), inset 0 0 48px rgba(154, 124, 255, 0.34);
  animation: brainPulse 3.6s ease-in-out infinite;
}

.team-brain-board .brain-core {
  position: absolute;
  width: 168px;
  height: 168px;
}

.team-brain-board .brain-core div {
  width: 100px;
  height: 100px;
}

.brain-team-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 510px;
}

.brain-team-card {
  position: absolute;
  width: min(330px, 42%);
  min-height: 188px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--agent-color, var(--cyan)) 50%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--agent-color, var(--cyan)) 16%, transparent), transparent 40%),
    rgba(5, 18, 35, 0.9);
  box-shadow: inset 3px 0 0 var(--agent-color, var(--cyan)), 0 0 22px color-mix(in srgb, var(--agent-color, var(--cyan)) 16%, transparent);
}

.brain-team-card:nth-child(1) { left: 2%; top: 2%; }
.brain-team-card:nth-child(2) { right: 2%; top: 2%; }
.brain-team-card:nth-child(3) { left: 2%; bottom: 2%; }
.brain-team-card:nth-child(4) { right: 2%; bottom: 2%; }

.brain-team-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.brain-team-card header strong,
.brain-team-card header small {
  display: block;
}

.brain-team-card header small {
  margin-top: 4px;
  color: var(--muted);
}

.brain-team-card header b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071326;
  background: var(--agent-color, var(--cyan));
}

.team-members {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.team-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.team-metrics span {
  padding: 7px 6px;
  border: 1px solid rgba(96, 184, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 14, 29, 0.48);
}

.team-metrics small,
.team-metrics b {
  display: block;
}

.team-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.team-metrics b {
  margin-top: 2px;
  font-size: 13px;
}

.brain-core div {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(212, 245, 255, 0.72);
  background: rgba(4, 13, 27, 0.8);
}

.agent-node {
  position: absolute;
  width: 190px;
  padding: 13px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  background: rgba(5, 18, 35, 0.88);
  animation: floatNode 4.8s ease-in-out infinite;
}

.node-b,
.node-d {
  animation-delay: 0.7s;
}

.node-c,
.node-e {
  animation-delay: 1.2s;
}

.agent-node strong,
.agent-node small {
  display: block;
}

.agent-node small {
  margin-top: 4px;
  color: var(--muted);
}

.node-a { left: 5%; top: 10%; }
.node-b { right: 6%; top: 10%; }
.node-c { left: 4%; bottom: 12%; }
.node-d { right: 5%; bottom: 12%; }
.node-e { left: calc(50% - 95px); bottom: 5%; }

.list {
  display: grid;
  gap: 9px;
}

.list article,
.card {
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.62);
}

.list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.list strong,
.list small {
  display: block;
}

.badge {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #091426;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.badge.green { background: var(--green); }
.badge.amber { background: var(--amber); }
.badge.red { background: var(--red); color: white; }
.badge.violet { background: var(--violet); color: white; }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(96, 184, 255, 0.15);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table tr {
  cursor: pointer;
}

.table tr:hover,
.table tr.selected {
  background: rgba(53, 217, 255, 0.08);
}

.profile-detail {
  display: grid;
  gap: 12px;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-hero h2 {
  margin: 0;
  font-size: 28px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.cross-sell-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cross-sell-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(96, 184, 255, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 23, 43, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.cross-sell-controls input {
  accent-color: var(--cyan);
}

.client-network-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 12px;
}

.client-network-map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 35% 42%, rgba(53, 217, 255, 0.12), transparent 34%),
    linear-gradient(rgba(96, 184, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 184, 255, 0.06) 1px, transparent 1px),
    rgba(3, 14, 29, 0.58);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.client-network-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-line {
  stroke: rgba(53, 217, 255, 0.72);
  filter: drop-shadow(0 0 4px rgba(53, 217, 255, 0.4));
}

.network-line.green { stroke: var(--green); }
.network-line.amber { stroke: var(--amber); }
.network-line.violet { stroke: var(--violet); }
.network-line.cyan { stroke: var(--cyan); }

.network-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(96, 184, 255, 0.36);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 18, 35, 0.92);
  box-shadow: 0 0 18px rgba(53, 217, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.client-node {
  width: 76px;
  height: 38px;
}

.product-node {
  min-width: 112px;
  min-height: 40px;
  padding: 0 12px;
}

.product-node.green { border-color: rgba(73, 230, 140, 0.54); color: var(--green); }
.product-node.amber { border-color: rgba(255, 189, 89, 0.54); color: var(--amber); }
.product-node.violet { border-color: rgba(154, 124, 255, 0.54); color: var(--violet); }
.product-node.cyan { border-color: rgba(53, 217, 255, 0.54); color: var(--cyan); }

.cross-sell-rank {
  display: grid;
  gap: 8px;
  align-content: start;
}

.cross-sell-rank article {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.52);
}

.cross-sell-rank strong,
.cross-sell-rank small {
  display: block;
}

.cross-sell-rank small {
  color: var(--muted);
}

.chat-window {
  min-height: 432px;
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.message {
  max-width: 78%;
  padding: 12px 13px;
  border-radius: var(--radius);
  background: rgba(15, 38, 70, 0.9);
  border: 1px solid rgba(96, 184, 255, 0.16);
}

.message.user {
  justify-self: end;
  background: rgba(50, 120, 255, 0.24);
}

.ai-answer {
  display: grid;
  gap: 12px;
  min-width: min(620px, 100%);
}

.ai-answer.compact {
  min-width: 0;
  gap: 8px;
}

.ai-answer header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-answer header span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071326;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 11px;
  font-weight: 900;
}

.ai-answer header em {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ai-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.qa-block {
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.46);
}

.qa-block small {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.ai-answer-grid,
.ai-answer-tasks {
  display: grid;
  gap: 8px;
}

.ai-answer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-answer-grid article,
.ai-answer-tasks article {
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.58);
}

.ai-answer-grid span,
.ai-answer-grid strong,
.ai-answer-grid small,
.ai-answer-tasks strong,
.ai-answer-tasks small {
  display: block;
}

.ai-answer-grid span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.ai-answer-grid small,
.ai-answer-tasks small {
  color: var(--muted);
}

.ai-answer-tasks article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ai-answer-tasks b {
  color: var(--green);
  font-size: 11px;
}

.ai-answer-tasks .running b {
  color: var(--cyan);
}

.ai-answer-tasks .review b {
  color: var(--amber);
}

.ai-answer-tasks .progress {
  grid-column: 1 / -1;
  height: 5px;
}

.ai-answer footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-answer footer b {
  padding: 5px 8px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 23, 43, 0.78);
  font-size: 11px;
}

.copilot-task-list {
  display: grid;
  gap: 8px;
}

.copilot-task-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.58);
}

.copilot-task-list strong,
.copilot-task-list small {
  display: block;
}

.copilot-task-list small {
  color: var(--muted);
}

.copilot-task-list b {
  color: var(--green);
  font-size: 11px;
}

.copilot-task-list .running b {
  color: var(--cyan);
}

.copilot-task-list .review b {
  color: var(--amber);
}

.copilot-task-list .progress {
  grid-column: 1 / -1;
  height: 5px;
}

.composer {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.composer input {
  flex: 1;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.agent-summary article {
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.62);
}

.agent-summary small,
.agent-summary strong {
  display: block;
}

.agent-summary strong {
  margin-top: 4px;
  font-size: 28px;
}

.agent-task-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.agent-task-stats article {
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.58);
}

.agent-task-stats small,
.agent-task-stats strong {
  display: block;
}

.agent-task-stats small {
  color: var(--muted);
}

.agent-task-stats strong {
  margin-top: 4px;
  font-size: 24px;
}

.agent-task-stats .wide {
  grid-column: 1 / -1;
}

.agent-task-stats .wide span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agent-task-stats b {
  color: var(--green);
}

.agent-activity-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.agent-activity-card {
  min-height: 148px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--agent-color, var(--cyan)) 56%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 18%, rgba(53, 217, 255, 0.16), transparent 34%),
    rgba(5, 17, 32, 0.72);
}

.agent-activity-card.agent-style-spectrum,
.agent-card.agent-style-spectrum,
.agent-editor-card.agent-style-spectrum {
  box-shadow: inset 3px 0 0 var(--agent-color, var(--cyan)), 0 0 18px color-mix(in srgb, var(--agent-color, var(--cyan)) 18%, transparent);
}

.agent-activity-card.agent-style-subtle,
.agent-card.agent-style-subtle,
.agent-editor-card.agent-style-subtle {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--agent-color, var(--cyan)) 55%, transparent);
}

.agent-activity-card.agent-style-mono,
.agent-card.agent-style-mono,
.agent-editor-card.agent-style-mono {
  --agent-color: var(--cyan) !important;
}

.agent-activity-card.running {
  border-color: rgba(255, 189, 89, 0.58);
}

.agent-activity-card.review {
  border-color: rgba(154, 124, 255, 0.58);
}

.agent-activity-card header,
.agent-activity-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agent-activity-card strong,
.agent-activity-card small {
  display: block;
}

.agent-activity-card strong {
  margin-top: 12px;
}

.agent-activity-card small {
  margin-top: 4px;
  color: var(--muted);
}

.agent-activity-card footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.agent-activity-card strong {
  font-size: 14px;
}

.agent-activity-card small {
  display: none;
}

.agent-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.agent-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--agent-color, rgba(96, 184, 255, 0.34));
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--agent-color, var(--cyan)) 18%, transparent), rgba(3, 14, 29, 0.78));
  box-shadow: 0 0 18px color-mix(in srgb, var(--agent-color, var(--cyan)) 32%, transparent);
  overflow: hidden;
}

.agent-avatar.large {
  width: 52px;
  height: 52px;
}

.agent-avatar img {
  width: 118%;
  height: 118%;
  object-fit: cover;
  object-position: center top;
}

.agent-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-editor-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 120px 74px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--agent-color, var(--cyan)) 38%, rgba(96, 184, 255, 0.18));
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.56);
}

.agent-editor-card label,
.agent-editor-card small {
  display: block;
}

.agent-editor-card input[type="color"] {
  min-width: 58px;
  padding: 4px;
}

.agent-editor-card small {
  margin-bottom: 5px;
  color: var(--muted);
}

.running .agent-pulse {
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber);
}

.review .agent-pulse {
  background: var(--violet);
  box-shadow: 0 0 16px var(--violet);
}

.agent-meter {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.agent-meter span {
  display: block;
  width: var(--value, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.45s ease;
}

.agent-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.agent-mini-stats span {
  padding: 7px 6px;
  border: 1px solid rgba(96, 184, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 14, 29, 0.46);
}

.agent-mini-stats small,
.agent-mini-stats b {
  display: block;
}

.agent-mini-stats small {
  color: var(--muted);
  font-size: 10px;
}

.agent-mini-stats b {
  margin-top: 2px;
  font-size: 13px;
}

.mini-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
}

.gen-strip {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.54);
}

.gen-track {
  display: flex;
  width: max-content;
  gap: 26px;
  padding: 12px 16px;
  color: var(--muted);
  animation: ticker 28s linear infinite;
}

.gen-track strong {
  color: var(--cyan);
}

.gen-track em {
  font-style: normal;
  font-weight: 800;
}

.gen-track em.green {
  color: var(--green);
}

.gen-track em.red {
  color: var(--red);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.watch-card {
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.56);
}

.watch-card header,
.watch-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.watch-card strong,
.watch-card small {
  display: block;
}

.watch-card small {
  color: var(--muted);
}

.watch-card footer small:first-child {
  display: none;
}

.watch-change {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.watch-change.green,
.watch-change-large.green {
  color: var(--green);
}

.watch-change.red,
.watch-change-large.red {
  color: var(--red);
}

.watch-change.green {
  background: rgba(73, 230, 140, 0.1);
  border: 1px solid rgba(73, 230, 140, 0.26);
}

.watch-change.red {
  background: rgba(255, 102, 92, 0.1);
  border: 1px solid rgba(255, 102, 92, 0.26);
}

.watch-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.watch-price {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.watch-price-row .watch-price {
  margin-top: 0;
}

.watch-change-large {
  font-size: 13px;
  white-space: nowrap;
}

.trend-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-label b {
  color: var(--text);
  font-size: 10px;
}

.sparkline {
  width: 100%;
  height: 32px;
  margin-top: 9px;
}

.sparkline.trend-24h {
  height: 46px;
  padding: 4px 0;
  border-top: 1px solid rgba(96, 184, 255, 0.12);
  border-bottom: 1px solid rgba(96, 184, 255, 0.08);
  background-image:
    linear-gradient(rgba(96, 184, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 184, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 50%, 25% 100%;
}

.sparkline polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.4;
}

.sparkline.green polyline {
  stroke: var(--green);
}

.sparkline.red polyline {
  stroke: var(--red);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.heat-cell {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(3, 14, 29, 0.58);
  text-align: left;
}

.heat-cell strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.heat-cell.green {
  background: linear-gradient(135deg, rgba(73, 230, 140, 0.24), rgba(3, 14, 29, 0.58));
}

.heat-cell.red {
  background: linear-gradient(135deg, rgba(255, 102, 92, 0.24), rgba(3, 14, 29, 0.58));
}

.factor-bars {
  display: grid;
  gap: 12px;
}

.factor-bars div {
  display: grid;
  grid-template-columns: 86px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.factor-bars span {
  color: var(--muted);
  font-size: 13px;
}

.factor-bars b {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.factor-bars i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.analysis-output p {
  color: var(--muted);
  line-height: 1.55;
}

.analysis-output .mini-grid span {
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(3, 14, 29, 0.54);
}

.analysis-output .mini-grid b {
  color: var(--text);
  font-size: 22px;
}

.api-grid {
  display: grid;
  gap: 10px;
}

.api-grid label {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.52);
}

.api-grid strong,
.api-grid small {
  display: block;
}

.api-grid small {
  color: var(--muted);
}

.api-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.api-status-card {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.52);
}

.api-status-card header,
.api-status-card footer,
.api-status-mini,
.api-status-mini span {
  display: flex;
  align-items: center;
}

.api-status-card header {
  justify-content: space-between;
  gap: 10px;
}

.api-status-card strong,
.api-status-card small {
  display: block;
}

.api-status-card small,
.api-status-card footer,
.api-status-mini {
  color: var(--muted);
}

.api-status-card footer {
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.api-status-card footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(96, 184, 255, 0.12);
}

.api-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.api-meter.green span,
.api-status-mini .green i {
  background: var(--green);
}

.api-meter.amber span,
.api-status-mini .amber i {
  background: var(--amber);
}

.api-status-mini {
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.api-status-mini span {
  gap: 5px;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 14, 29, 0.5);
  font-size: 11px;
}

.api-status-mini i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px currentColor;
}

.api-status-mini b {
  color: var(--text);
  font-weight: 800;
}

.agent-card {
  min-height: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--agent-color, var(--cyan)) 42%, rgba(96, 184, 255, 0.2));
  border-radius: var(--radius);
  background: rgba(5, 17, 32, 0.72);
}

.agent-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.agent-card h3 {
  margin: 0 0 6px;
}

.agent-card p {
  color: var(--muted);
}

.bars {
  min-height: 148px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
}

.bars span {
  min-height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.donut {
  --p: 68%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: conic-gradient(var(--cyan) var(--p), rgba(255, 255, 255, 0.08) 0);
}

.donut span {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #081326;
  font-size: 26px;
  font-weight: 800;
}

.switch-row {
  display: grid;
  gap: 10px;
}

.switch-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.56);
}

.switch-row input {
  width: 42px;
  height: 22px;
  accent-color: var(--cyan);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.journey {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.journey article {
  position: relative;
  padding: 12px 12px 12px 46px;
  border: 1px solid rgba(96, 184, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 14, 29, 0.56);
}

.journey article::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071326;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.checklist input {
  accent-color: var(--cyan);
}

.client-os-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}

.client-os-profile {
  padding: 16px;
  border: 1px solid rgba(96, 184, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 12%, rgba(53, 217, 255, 0.18), transparent 42%),
    rgba(3, 14, 29, 0.62);
}

.client-os-profile strong,
.client-os-profile small {
  display: block;
}

.client-os-profile strong {
  font-size: 22px;
}

.client-os-profile small {
  margin: 6px 0 14px;
  color: var(--muted);
}

.client-os-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-os-modules article {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(96, 184, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(53, 217, 255, 0.12), rgba(154, 124, 255, 0.08)),
    rgba(5, 17, 32, 0.72);
}

.client-os-modules b,
.client-os-modules strong,
.client-os-modules small {
  display: block;
}

.client-os-modules b {
  color: var(--cyan);
}

.client-os-modules strong {
  margin-top: 8px;
}

.client-os-modules small {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--muted);
}

.footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.ai-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  justify-items: end;
  gap: 8px;
}

.ai-dock-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(96, 184, 255, 0.42);
  border-radius: 50%;
  color: #071326;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 28px rgba(53, 217, 255, 0.34);
  font-weight: 900;
}

.ai-dock-body {
  width: 286px;
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 10, 22, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ai-dock.collapsed .ai-dock-body {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(8px);
}

.ai-dock-body header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(96, 184, 255, 0.16);
}

.ai-dock-body strong,
.ai-dock-body small {
  display: block;
}

.ai-dock-body small {
  color: var(--muted);
}

.ai-dock-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ai-dock-list button {
  min-height: 38px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(8, 23, 43, 0.8);
  text-align: left;
  padding: 0 10px;
}

.bottom-ai-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 50;
  width: min(520px, calc(100vw - 108px));
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 10, 22, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  align-items: center;
}

.bottom-ai-bar > button,
.bottom-ai-bar label {
  height: 42px;
  border: 1px solid rgba(96, 184, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 23, 43, 0.8);
}

.bottom-ai-bar > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bottom-ai-bar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
}

.bottom-ai-bar label {
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.bottom-ai-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.bottom-ai-bar label button {
  height: 34px;
  margin-right: 4px;
  border: 0;
  border-radius: 999px;
  color: #071326;
  background: var(--cyan);
  padding: 0 14px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .brand strong,
  .nav-section,
  .sidebar-status,
  .nav-item span,
  .profile-card span {
    display: none;
  }

  .brand img {
    width: 30px;
    height: 58px;
    object-fit: contain;
  }

  .brand-full {
    display: none;
  }

  .brand-icon {
    display: block;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 44px;
    padding: 7px;
  }

  .grid-2,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .latest-focus,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-tape {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-grid,
  .agent-editor-grid,
  .agent-activity-map,
  .agent-summary,
  .client-network-shell,
  .client-os-modules,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

}

@media (max-width: 900px) {
  .workspace {
    padding: 16px;
  }

  .top-menu {
    margin: -16px -16px 16px;
    padding: 10px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: stretch;
    width: 100%;
  }

  .action-button {
    width: 100%;
  }

  .brain-board {
    min-height: 470px;
  }

  .node-a { left: 4%; top: 7%; }
  .node-b { right: 4%; top: 7%; }
  .node-c { left: 4%; bottom: 9%; }
  .node-d { right: 4%; bottom: 9%; }
  .node-e { left: calc(50% - 95px); bottom: 3%; }
}

@media (max-width: 760px) {
  .app-shell,
  .app-shell.collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(286px, 86vw);
    height: 100dvh;
    padding: 12px 10px;
    gap: 12px;
    border-right: 1px solid rgba(96, 184, 255, 0.2);
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.48);
    transform: translateX(0);
    transition: transform 0.22s ease;
  }

  .app-shell.collapsed .sidebar {
    transform: translateX(calc(-100% + 18px));
  }

  .sidebar .collapse-button {
    top: 50%;
    right: -34px;
    display: grid;
    width: 36px;
    height: 48px;
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
  }

  .app-shell.collapsed .collapse-button svg {
    transform: rotate(180deg);
  }

  .brand-row {
    display: flex;
    padding-right: 12px;
  }

  .brand strong {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 4px;
    overflow-y: auto;
    padding: 0 2px 10px 0;
    scroll-snap-type: none;
  }

  .nav-item {
    min-width: 0;
    min-height: 44px;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: stretch;
    scroll-snap-align: none;
  }

  .nav-item span {
    display: block;
  }

  .app-shell.collapsed .nav-item span,
  .app-shell.collapsed .nav-section,
  .app-shell.collapsed .profile-card span {
    display: block;
  }

  .app-shell.collapsed .brand-full {
    display: block;
  }

  .app-shell.collapsed .brand-icon {
    display: none;
  }

  .profile-card,
  .sidebar-status {
    display: flex;
  }

  .sidebar-status {
    display: grid;
  }

  .nav-section {
    display: block;
  }

  .workspace {
    padding: 14px;
    padding-left: 28px;
  }

  .top-menu {
    margin: -14px -14px 14px -28px;
    padding-left: 36px;
  }

  .topbar,
  .toolbar,
  .profile-hero,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .top-actions .icon-tool-button,
  .top-actions .top-profile {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .metric-grid,
  .latest-focus,
  .grid-3,
  .grid-4,
  .agent-grid,
  .agent-editor-grid,
  .agent-activity-map,
  .agent-summary,
  .agent-task-stats,
  .ai-answer-grid,
  .watch-grid,
  .heatmap,
  .mini-grid,
  .client-network-shell,
  .client-os-shell,
  .client-os-modules {
    grid-template-columns: 1fr;
  }

  .latest-tape {
    grid-template-columns: 1fr;
  }

  .module-block.block-size-wide {
    grid-column: auto;
  }

  .api-grid label {
    grid-template-columns: 1fr;
  }

  .brain-board {
    min-height: auto;
    padding: 12px;
    display: grid;
    gap: 10px;
  }

  .brain-board::before {
    display: none;
  }

  .brain-core,
  .agent-node,
  .team-brain-board .brain-core,
  .brain-team-card {
    position: static;
    width: 100%;
    height: auto;
  }

  .team-brain-board {
    min-height: auto;
  }

  .brain-team-grid {
    min-height: auto;
    display: grid;
    gap: 10px;
  }


  h1 {
    font-size: 34px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .table {
    min-width: 0;
    table-layout: fixed;
  }

  .table th,
  .table td {
    overflow-wrap: anywhere;
    padding: 9px 7px;
  }

  .message {
    max-width: 100%;
  }

  .composer {
    flex-direction: column;
  }

  .ai-dock {
    right: 12px;
    bottom: 12px;
  }

  .ai-dock-body {
    width: min(320px, calc(100vw - 24px));
  }

  .bottom-ai-bar {
    left: 12px;
    right: 78px;
    width: auto;
    transform: none;
    grid-template-columns: minmax(130px, 1fr);
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .agent-editor-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 430px) {
  .workspace {
    padding: 12px;
  }

  .brand img {
    width: 190px;
    height: 60px;
    object-fit: contain;
  }

  .brand strong {
    font-size: 13px;
  }

  .nav-item {
    min-width: 62px;
    min-height: 52px;
    padding: 8px;
  }

  .nav-item b {
    width: 30px;
    height: 30px;
  }

  .metric strong {
    font-size: 24px;
  }

  .panel-body {
    padding: 10px;
  }

  .panel-head {
    padding: 12px 10px 6px;
  }
}


rd {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 430px) {
  .workspace {
    padding: 12px;
  }

  .brand img {
    width: 190px;
    height: 60px;
    object-fit: contain;
  }

  .brand strong {
    font-size: 13px;
  }

  .nav-item {
    min-width: 62px;
    min-height: 52px;
    padding: 8px;
  }

  .nav-item b {
    width: 30px;
    height: 30px;
  }

  .metric strong {
    font-size: 24px;
  }

  .panel-body {
    padding: 10px;
  }

  .panel-head {
    padding: 12px 10px 6px;
  }
}

/* Data Center workspaces */
.data-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.data-toolbar, .data-metrics, .data-table-block { grid-column: 1; }
.data-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.data-toolbar label { display: grid; gap: 5px; min-width: min(100%, 360px); color: var(--muted); font-size: 11px; font-weight: 800; }
.data-toolbar input, .data-filters input, .data-filters select, .data-side-panel input { min-height: 40px; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: rgba(3, 12, 25, 0.58); padding: 9px 11px; outline: none; }
.data-toolbar > div, .data-pagination > div { display: flex; gap: 8px; }
.data-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.data-metrics article { min-height: 110px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.data-metrics small, .data-metrics em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
.data-metrics strong { display: block; margin: 7px 0; color: var(--text); font-size: 25px; letter-spacing: 0; }
.data-metrics em { color: var(--green); font-weight: 800; }
.data-table-block { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.data-tabs { display: flex; min-width: 0; overflow-x: auto; gap: 4px; }
.data-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.data-tabs button.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.data-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(120px, .7fr)) auto; gap: 8px; padding: 0 16px 14px; }
.data-table-wrap { overflow: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 13px; color: var(--muted); background: rgba(20, 65, 112, 0.1); font-size: 10px; letter-spacing: 0; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 13px; border-top: 1px solid rgba(96, 184, 255, 0.13); color: var(--text); white-space: nowrap; }
.data-table tbody tr:hover { background: rgba(53, 217, 255, 0.07); }
.data-status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.data-status.success { color: var(--green); background: rgba(73, 230, 140, 0.13); }
.data-status.warning { color: var(--amber); background: rgba(255, 189, 89, 0.14); }
.data-status.danger { color: var(--red); background: rgba(255, 102, 92, 0.14); }
.row-menu { border: 0; color: var(--cyan); background: transparent; font-weight: 900; }
.data-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; color: var(--muted); font-size: 12px; }
.data-side-panel { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 22, 42, 0.88); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.data-side-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.data-side-panel header > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 9px; align-items: center; }
.data-side-panel strong { font-size: 14px; }
.data-side-panel small { color: var(--muted); font-size: 10px; }
.data-side-panel p { margin: 2px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.data-side-panel > button { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: rgba(16, 54, 94, 0.6); padding: 11px; text-align: left; font-size: 12px; font-weight: 800; }
.data-side-panel > button:hover { border-color: var(--line-hot); color: var(--cyan); }
.data-side-panel label { display: flex; margin-top: auto; gap: 7px; }
.data-side-panel label button { border: 0; border-radius: var(--radius); color: #03101e; background: var(--cyan); padding: 0 12px; font-weight: 900; }
.data-orb { width: 34px; height: 34px; border: 1px solid var(--cyan); border-radius: 50%; display: grid; place-items: center; grid-row: span 2; color: var(--cyan); background: rgba(53, 217, 255, 0.1); font-size: 11px; font-weight: 900; }
body[data-theme="light"] .data-toolbar input, body[data-theme="light"] .data-filters input, body[data-theme="light"] .data-filters select, body[data-theme="light"] .data-side-panel input { background: #fff; }
@media (max-width: 1180px) { .data-workspace { grid-template-columns: 1fr; } .data-side-panel { grid-column: 1; grid-row: auto; } }
@media (max-width: 760px) { .data-toolbar, .data-pagination { align-items: stretch; flex-direction: column; } .data-toolbar > div { justify-content: stretch; } .data-toolbar > div button { flex: 1; } .data-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .data-filters { grid-template-columns: 1fr 1fr; padding: 0 12px 12px; } .data-filters input { grid-column: 1 / -1; } }

