:root {
  color-scheme: dark;
  font-family:
    Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --yellow: #ffe600;
  --yellow-soft: #fff47a;
  --cyan: #18e4df;
  --green: #49d46b;
  --bg: #0c0d0f;
  --panel: #17191c;
  --panel-2: #1e2024;
  --panel-3: #26292e;
  --line: #34373d;
  --muted: #888d96;
  --text: #f4f5f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 230, 0, 0.07), transparent 34%),
    #08090b;
}

body {
  min-height: 100vh;
  overflow: auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.stage-wrap {
  position: relative;
  width: 1000px;
  height: 600px;
}

.demo-stage {
  width: 1000px;
  height: 600px;
  display: grid;
  grid-template-columns: 286px 228px 486px;
  overflow: hidden;
  border: 1px solid #303238;
  border-radius: 14px;
  background: var(--bg);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transform-origin: top left;
}

.chat-panel,
.atlas-panel,
.workspace-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
}

.chat-panel,
.atlas-panel {
  border-right: 1px solid #32343a;
}

.chat-panel {
  display: grid;
  grid-template-rows: 44px 48px 1fr 82px;
  background: #17191b;
}

.atlas-panel {
  display: grid;
  grid-template-rows: 44px 60px 48px 1fr;
  background: #1b1d20;
}

.workspace-panel {
  display: grid;
  grid-template-rows: 44px 1fr;
  background: #202226;
}

.panel-header,
.instrument-header {
  border-bottom: 1px solid var(--line);
}

.panel-header {
  padding: 7px 14px;
}

.atlas-header,
.instrument-header {
  background: #17191c;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--yellow);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.title-row,
.instrument-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2 {
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.chat-header,
.atlas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .eyebrow,
.atlas-header .eyebrow,
.atlas-mark {
  display: none;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(73, 212, 107, 0.7);
}

.icon-button,
.replay-label {
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #24262a;
  color: #c9cbd0;
  font-size: 18px;
}

.icon-button:hover,
.replay-label:hover {
  color: var(--yellow);
}

.conversation-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  background: #1e2023;
  border-bottom: 1px solid var(--line);
}

.conversation-title span {
  font-size: 12px;
  font-weight: 650;
}

.conversation-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.chat-stream {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: #41444a transparent;
}

.chat-message {
  margin-bottom: 13px;
  animation: message-in 320ms ease both;
}

.chat-message.user {
  padding-left: 34px;
  text-align: right;
}

.chat-message.user p {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #3b3e43;
  border-radius: 10px 10px 3px 10px;
  background: #292b2f;
  color: #f1f2f4;
  font-size: 9px;
  line-height: 1.5;
  text-align: left;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #aeb1b8;
  font-size: 8px;
}

.chat-message.user .chat-meta {
  justify-content: flex-end;
}

.avatar {
  display: grid;
  width: 17px;
  height: 17px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #555960;
  border-radius: 50%;
  background: #303339;
  color: var(--yellow);
  font-size: 8px;
  font-weight: 800;
}

.tron-avatar {
  border-color: rgba(255, 230, 0, 0.58);
  background: #08090a;
}

.tron-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.chat-message.assistant p {
  padding-left: 23px;
  color: #e3e5e8;
  font-size: 9px;
  line-height: 1.55;
}

.tool-card {
  margin: 7px 0 13px 23px;
  overflow: hidden;
  border: 1px solid #35383d;
  border-radius: 6px;
  background: #24262a;
  animation: message-in 280ms ease both;
}

.tool-card-head {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  font-size: 8px;
}

.tool-card-head b {
  overflow: hidden;
  color: #d9dbe0;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-icon {
  color: #9fa3aa;
}

.tool-state {
  color: var(--yellow);
  font-size: 7px;
}

.tool-card.complete .tool-state {
  color: var(--green);
}

.tool-card.complete .tool-icon {
  color: var(--green);
}

.assistant-result {
  margin: 7px 0 13px 23px;
  padding: 9px 10px;
  border-left: 2px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 230, 0, 0.06);
  color: #e7e8eb;
  font-size: 8px;
  line-height: 1.55;
  animation: message-in 280ms ease both;
}

.chat-actions {
  display: flex;
  gap: 7px;
  margin: 8px 0 0 23px;
}

.chat-actions button {
  padding: 7px 13px;
  border: 1px solid #494c52;
  border-radius: 6px;
  background: #282b2f;
  color: #e4e5e8;
  cursor: pointer;
  font-size: 8px;
  font-weight: 650;
}

.chat-actions button.primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #151515;
}

.chat-actions button:hover {
  border-color: var(--yellow);
}

.trial-apply-actions button:disabled {
  border-color: #555960;
  background: #35383d;
  color: #aeb1b8;
  cursor: default;
}

.composer {
  margin: 0 10px 10px;
  padding: 9px 9px 7px;
  border: 1px solid #3a3d42;
  border-radius: 10px;
  background: #222428;
}

.composer-field {
  width: 100%;
  height: 30px;
  padding: 0;
  overflow: hidden;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #b9bdc4;
  font-size: 9px;
  font-family: inherit;
  line-height: 1.35;
}

.composer-field::placeholder {
  color: #666b73;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #767b83;
  font-size: 7px;
}

.send-button {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: #3b3e43;
  color: #8e9299;
  cursor: pointer;
  font-size: 0;
}

.send-button::before {
  content: "➤";
  display: block;
  font-size: 15px;
  line-height: 1;
  transform: translateX(1px);
}

.composer.is-ready .send-button:not(:disabled) {
  background: var(--yellow);
  color: #161616;
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.atlas-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 230, 0, 0.55);
  border-radius: 8px;
  color: var(--yellow);
  font-weight: 800;
}

.atlas-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}

.atlas-actions div,
.atlas-action {
  display: grid;
  grid-template-rows: 22px 12px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da1a8;
  cursor: pointer;
  font-size: 8px;
  transition: color 160ms ease;
}

.atlas-actions div > span,
.atlas-action > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #555a62;
  border-radius: 6px;
  background: #292c31;
  color: #e4e6e9;
  font-size: 14px;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.atlas-actions div:hover,
.atlas-action:hover,
.atlas-action.is-active {
  color: #f2f3f5;
}

.atlas-actions div:hover > span,
.atlas-action:hover > span,
.atlas-action.is-active > span {
  border-color: rgba(255, 230, 0, 0.78);
  background: rgba(255, 230, 0, 0.1);
  color: var(--yellow);
  transform: translateY(-1px);
}

.atlas-actions div:hover .scan-action-icon::before {
  border-color: var(--yellow);
  border-right-color: #6b6f75;
}

.atlas-action.is-active > span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #151515;
  transform: none;
}

#scanAction.is-scanning {
  color: var(--yellow);
}

.scan-action-icon {
  position: relative;
}

.scan-action-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #d7dade;
  border-right-color: #666b72;
  border-radius: 50%;
  transform-origin: center;
}

#scanAction.is-scanning .scan-action-icon {
  border-color: #555a62;
  background: #292c31;
  animation: none;
}

#scanAction.is-scanning .scan-action-icon::before {
  border-color: #5b6067;
  border-top-color: var(--yellow);
  animation: spin 900ms linear infinite;
}

.atlas-actions div:nth-child(3) > span {
  font-size: 0;
}

.atlas-actions div:nth-child(3) > span::before {
  content: "≡";
  font-size: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin: 9px 10px;
  padding: 0 9px;
  border: 1px solid #4a4d53;
  border-radius: 5px;
  background: #202226;
  color: #7f848c;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d9dbe0;
  font-size: 8px;
}

.resource-tree {
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px 80px;
}

.resource-group {
  margin-bottom: 7px;
}

.resource-group-title {
  width: 100%;
  display: flex;
  height: 33px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: #36393e;
  color: #e3e5e8;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
}

.resource-group-title.muted {
  background: #303338;
  color: #b7bbc1;
}

.resource-group-title > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.resource-group-title b {
  width: 14px;
  height: 14px;
  position: relative;
  display: block;
  flex: 0 0 14px;
  color: #b2b6bd;
  font-size: 0;
}

.resource-group-title b::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 3px;
  left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.resource-group.collapsed .resource-group-title b::before {
  top: 4px;
  left: 3px;
  transform: rotate(-45deg);
}

.resource-group.collapsed .resource-group-body {
  display: none;
}

.group-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 5px;
  background: #5a5f67;
  color: white;
  font-size: 8px;
}

.device-card {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  opacity: 0;
  text-align: left;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.device-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.device-card.is-selected {
  border-color: var(--yellow);
  background: #26282c;
  box-shadow: 0 0 0 1px rgba(255, 230, 0, 0.15) inset;
}

.device-card img {
  width: 31px;
  height: 23px;
  border-radius: 3px;
  object-fit: contain;
}

.device-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.device-copy strong,
.device-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-copy strong {
  color: #f0f1f3;
  font-size: 8px;
}

.device-copy small {
  color: #858a92;
  font-size: 6px;
}

.status-pill {
  display: inline-grid;
  min-width: 34px;
  height: 16px;
  place-items: center;
  border-radius: 99px;
  background: rgba(73, 212, 107, 0.15);
  color: var(--green);
  font-size: 7px;
  font-weight: 700;
}

.scan-status {
  position: absolute;
  right: 10px;
  bottom: 12px;
  left: 10px;
  display: none;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #3b3e43;
  border-radius: 8px;
  background: rgba(37, 39, 43, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.scan-status.is-visible {
  display: grid;
}

.scan-status strong,
.scan-status small {
  display: block;
}

.scan-status strong {
  color: #e5e6e9;
  font-size: 8px;
}

.scan-status small {
  margin-top: 2px;
  color: #858a92;
  font-size: 7px;
}

.scan-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #4a4d52;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.instrument-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
}

.instrument-identity {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
}

.instrument-thumb {
  width: 30px;
  height: 30px;
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.instrument-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instrument-name-row strong {
  max-width: 205px;
  overflow: hidden;
  color: #f2f3f5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instrument-identity small {
  display: block;
  max-width: 290px;
  margin-top: 3px;
  overflow: hidden;
  color: #858a93;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-status {
  min-width: 32px;
}

.workspace-status.is-idle {
  background: #303339;
  color: #9da1a8;
}

.workspace-tabs {
  height: 100%;
  display: flex;
  flex: none;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}

.workspace-tabs button {
  position: relative;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #aaadb3;
  cursor: pointer;
  font-size: 8px;
}

.workspace-panel.is-empty .instrument-identity,
.workspace-panel.is-empty .workspace-tabs {
  visibility: hidden;
  pointer-events: none;
}

.workspace-tabs button:hover {
  color: #f0f1f3;
}

.workspace-tabs button.is-active {
  color: var(--yellow);
  font-weight: 700;
}

.workspace-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--yellow);
}

.workspace-body {
  min-height: 0;
  position: relative;
}

.workspace-view {
  position: absolute;
  inset: 0;
  display: none;
  min-width: 0;
  min-height: 0;
  animation: view-in 240ms ease both;
}

.workspace-view.is-visible {
  display: block;
}

.empty-view {
  overflow: hidden;
  padding: 18px;
}

.empty-visual {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #8b9098;
  text-align: center;
}

.empty-visual h3 {
  margin-top: 13px;
  color: #d9dbe0;
  font-size: 13px;
}

.empty-visual p {
  margin-top: 5px;
  font-size: 8px;
}

.radar {
  width: 78px;
  height: 78px;
  position: relative;
  border: 1px solid #40434a;
  border-radius: 50%;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  border: 1px solid #35383e;
  border-radius: 50%;
}

.radar::before {
  inset: 16px;
}

.radar::after {
  inset: 32px;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.5);
}

.radar span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #646970;
}

.radar span:nth-child(1) {
  top: 18px;
  right: 12px;
}

.radar span:nth-child(2) {
  right: 17px;
  bottom: 15px;
}

.radar span:nth-child(3) {
  top: 34px;
  left: 9px;
}

.instrument-details {
  display: none;
  padding: 16px 18px;
}

.instrument-details.is-visible {
  display: block;
}

.empty-view:has(.instrument-details.is-visible) .empty-visual {
  display: none;
}

.instrument-details div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #303339;
  font-size: 9px;
}

.instrument-details span {
  color: #858a92;
}

.instrument-details strong {
  min-width: 0;
  overflow: hidden;
  color: #e6e7ea;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-text {
  color: var(--green) !important;
}

.scpi-view {
  padding: 13px;
}

.scpi-toolbar {
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scpi-toolbar strong {
  display: block;
  color: #e7e8eb;
  font-size: 11px;
}

.live-chip {
  color: #8e939a;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.live-chip i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(73, 212, 107, 0.8);
}

.scpi-input {
  height: 35px;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 7px;
  margin-bottom: 10px;
}

.scpi-input input {
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid #35383d;
  outline: 0;
  border-radius: 5px;
  background: #101113;
  color: #ebedf0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scpi-input input:focus {
  border-color: #666b72;
}

.scpi-input button {
  border: 0;
  border-radius: 5px;
  background: var(--yellow);
  color: #171717;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.scpi-table {
  overflow: hidden;
  border: 1px solid #35383e;
  border-radius: 7px;
}

.scpi-table-head,
.scpi-row {
  display: grid;
  grid-template-columns: 34px 1.55fr 58px 1fr;
  align-items: center;
  gap: 7px;
}

.scpi-table-head {
  height: 31px;
  padding: 0 9px;
  background: #282b2f;
  color: #858991;
  font-size: 7px;
}

.scpi-log {
  height: 425px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #555a62 #222428;
  scrollbar-width: thin;
}

.scpi-log::-webkit-scrollbar {
  width: 7px;
}

.scpi-log::-webkit-scrollbar-track {
  background: #222428;
}

.scpi-log::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #555a62;
}

.scpi-row {
  min-height: 46px;
  padding: 7px 9px;
  border-top: 1px solid #383b40;
  background: #24262a;
}

.scpi-row:nth-child(even) {
  background: #2b2d31;
}

.scpi-row span,
.scpi-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scpi-row span:first-child {
  color: #8d929a;
  font-size: 8px;
}

.scpi-row code {
  color: #f0f1f3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
}

.scpi-state {
  color: var(--green);
  font-size: 7px;
  font-weight: 700;
}

.scpi-response {
  color: #cfd2d7;
  font-size: 7px;
}

.webcontrol-view {
  padding: 8px;
  background: #111214;
}

.split-control-pane {
  display: contents;
}

.split-control-title {
  display: none;
}

.scope-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #3b4148;
  border-radius: 5px 5px 0 0;
  background: #08090a;
  color: #d7d9dd;
  font-size: 7px;
}

.webcontrol-brand {
  width: 42px;
  height: 15px;
  display: block;
  flex: none;
  object-fit: contain;
}

.scope-toolbar > span {
  padding: 6px 7px;
  border: 1px solid #3f454d;
  border-radius: 4px;
  background: #2a3036;
}

.scope-toolbar i {
  font-style: normal;
}

.scope-toolbar span b {
  margin-right: 3px;
  color: #ff9d24;
}

.scope-toolbar .scope-mode {
  color: #38e4a3;
}

.scope-toolbar .run-stop {
  color: #42f33f;
}

.scope-main {
  height: 446px;
  display: grid;
  grid-template-columns: 1fr 108px;
  border-right: 1px solid #3b4148;
  border-left: 1px solid #3b4148;
}

.scope-display {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(143, 147, 153, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 147, 153, 0.16) 1px, transparent 1px),
    #08090a;
  background-size: 10% 12.5%;
}

#scopeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.trigger-marker {
  position: absolute;
  top: 5px;
  left: calc(50% - 8px);
  display: grid;
  width: 16px;
  height: 15px;
  place-items: center;
  border-radius: 2px;
  background: #ff8f12;
  color: #141414;
  font-size: 8px;
  font-weight: 800;
}

.scope-results {
  border-left: 1px solid #3b4148;
  background: #293139;
}

.scope-results h4 {
  padding: 10px 8px;
  border-bottom: 1px solid #111417;
  color: #e6e8ea;
  font-size: 10px;
  text-align: center;
}

.scope-result {
  margin: 9px 7px;
  padding: 7px;
  border: 1px solid #58616a;
  border-radius: 5px;
  background: #343d45;
}

.scope-result span,
.scope-result strong {
  display: block;
}

.scope-result span {
  color: #ced1d5;
  font-size: 7px;
}

.scope-result strong {
  margin-top: 4px;
  font-size: 10px;
}

.scope-result.ch1 {
  border-color: var(--yellow);
}

.scope-result.ch1 strong {
  color: var(--yellow);
}

.scope-result.ch2 {
  border-color: var(--cyan);
}

.scope-result.ch2 strong {
  color: var(--cyan);
}

.scope-result.phase strong {
  color: #f0f1f3;
}

.scope-footer {
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid #3b4148;
  border-radius: 0 0 5px 5px;
  background: #090a0b;
}

.channel-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #424850;
  border-radius: 4px;
  background: #293038;
  color: #bec2c7;
  font-size: 7px;
}

.channel-chip b {
  padding: 3px 4px;
  border-radius: 3px;
  color: #111;
}

.channel-chip.ch1 b {
  background: var(--yellow);
}

.channel-chip.ch2 b {
  background: var(--cyan);
}

.instrument-webcontrol {
  display: none;
}

.instrument-webcontrol.is-visible {
  display: block;
}

.workspace-panel.is-split {
  grid-template-rows: 1fr;
}

.workspace-panel.is-split .instrument-header {
  display: none;
}

.workspace-panel.is-split .workspace-body {
  grid-row: 1;
}

.workspace-panel.is-split .webcontrol-view.is-visible {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

.workspace-panel.is-split .split-control-pane {
  min-height: 0;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #3b4148;
  border-radius: 5px;
  background: #111214;
}

.workspace-panel.is-split .split-control-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: 1px solid #3b4148;
  background: #1b1d20;
}

.workspace-panel.is-split .split-control-title strong {
  color: #f0f1f3;
  font-size: 9px;
  font-weight: 650;
}

.workspace-panel.is-split .split-control-title .status-pill {
  min-width: 32px;
}

.workspace-panel.is-split .instrument-webcontrol.is-visible {
  min-height: 0;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr) 32px;
}

.workspace-panel.is-split .dg-webcontrol.is-visible {
  grid-template-rows: minmax(0, 1fr) 32px;
}

.workspace-panel.is-split .scope-toolbar,
.workspace-panel.is-split .scope-main,
.workspace-panel.is-split .scope-footer,
.workspace-panel.is-split .generator-channels,
.workspace-panel.is-split .generator-footer {
  height: auto;
}

.workspace-panel.is-split .scope-toolbar {
  overflow: hidden;
  border-width: 0 0 1px;
  border-radius: 0;
}

.workspace-panel.is-split .scope-toolbar > span {
  padding: 4px 5px;
  white-space: nowrap;
}

.workspace-panel.is-split .webcontrol-brand {
  width: 36px;
  height: 13px;
}

.workspace-panel.is-split .scope-main {
  grid-template-columns: 1fr 96px;
  min-height: 0;
  border: 0;
}

.workspace-panel.is-split .scope-results h4 {
  padding: 4px;
  font-size: 8px;
}

.workspace-panel.is-split .scope-result {
  margin: 4px;
  padding: 4px;
}

.workspace-panel.is-split .scope-result strong {
  margin-top: 2px;
  font-size: 8px;
}

.workspace-panel.is-split .scope-footer,
.workspace-panel.is-split .generator-footer {
  border-width: 1px 0 0;
  border-radius: 0;
}

.workspace-panel.is-split .scope-footer {
  padding: 3px;
}

.workspace-panel.is-split .channel-chip {
  padding: 3px 5px;
}

.workspace-panel.is-split .generator-channels {
  min-height: 0;
  padding: 4px;
  border: 0;
}

.workspace-panel.is-split .generator-channel {
  min-width: 0;
  overflow: hidden;
  padding: 4px;
}

.workspace-panel.is-split .generator-channel-head {
  gap: 3px;
}

.workspace-panel.is-split .generator-channel-head span {
  width: 22px;
  height: 18px;
  font-size: 7px;
}

.workspace-panel.is-split .generator-channel-head b,
.workspace-panel.is-split .generator-channel-head i {
  padding: 4px;
  font-size: 7px;
}

.workspace-panel.is-split .generator-frequency {
  margin-top: 4px;
  padding: 4px 6px;
}

.workspace-panel.is-split .generator-frequency strong {
  margin-top: 2px;
  font-size: 11px;
}

.workspace-panel.is-split .generator-params {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 4px;
}

.workspace-panel.is-split .generator-params div {
  padding: 6px 4px;
}

.workspace-panel.is-split .generator-params strong {
  margin-top: 2px;
  font-size: 7px;
}

.workspace-panel.is-split .generator-sine-preview {
  right: 5px;
  bottom: 5px;
  width: 104px;
  height: 48px;
  padding: 4px 6px;
}

.workspace-panel.is-split .generator-footer {
  gap: 4px;
  padding: 3px;
}

.workspace-panel.is-split .generator-footer span {
  overflow: hidden;
  padding: 5px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generator-channels {
  height: 486px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px;
  border-right: 1px solid #3b4148;
  border-left: 1px solid #3b4148;
  background: #0d0f11;
}

.generator-channel {
  position: relative;
  padding: 8px;
  border: 1px solid #464b52;
  background: #1a1d21;
}

.generator-channel.active {
  border-color: var(--yellow);
}

.generator-channel.idle {
  opacity: 0.74;
}

.generator-channel-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 5px;
}

.generator-channel-head span {
  display: grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border-radius: 3px;
  background: var(--yellow);
  color: #111;
  font-size: 8px;
  font-weight: 800;
}

.generator-channel-head b,
.generator-channel-head i {
  padding: 6px 7px;
  border: 1px solid #454b52;
  border-radius: 4px;
  background: #272c32;
  color: #e4e6e9;
  font-size: 8px;
  font-style: normal;
  font-weight: 550;
}

.generator-channel-head.cyan span {
  background: var(--cyan);
}

.generator-frequency {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #4a4f56;
  border-radius: 4px;
  background: #08090a;
}

.generator-channel.active .generator-frequency {
  border-color: var(--yellow);
}

.generator-frequency small,
.generator-frequency strong {
  display: block;
}

.generator-frequency small {
  color: var(--yellow);
  font-size: 7px;
}

.generator-frequency strong {
  margin-top: 7px;
  overflow: hidden;
  color: #f4f5f6;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generator-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 7px;
}

.generator-params div {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #3d4249;
  border-radius: 4px;
  background: #24282d;
}

.generator-params span,
.generator-params strong {
  display: block;
}

.generator-params span {
  color: #8d929a;
  font-size: 7px;
}

.generator-params strong {
  margin-top: 6px;
  color: #e5e7ea;
  font-size: 10px;
}

.generator-sine-preview {
  width: 158px;
  height: 82px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid #3a3f45;
  border-radius: 4px;
  background:
    linear-gradient(rgba(143, 147, 153, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 147, 153, 0.12) 1px, transparent 1px),
    #111316;
  background-size: 25% 33.333%;
}

.generator-sine-preview svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.generator-sine-preview line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.generator-sine-preview path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  filter: drop-shadow(0 0 3px rgba(255, 230, 0, 0.65));
}

.generator-sine-preview.cyan path {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 3px rgba(24, 228, 223, 0.65));
}

.generator-footer {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid #3b4148;
  border-radius: 0 0 5px 5px;
  background: #090a0b;
}

.generator-footer span {
  padding: 8px 9px;
  border: 1px solid #3d4249;
  border-radius: 4px;
  background: #272b30;
  color: #9ea3aa;
  font-size: 7px;
}

.generator-footer span.active {
  border-color: rgba(255, 230, 0, 0.55);
  color: var(--yellow);
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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