/* Veikor tech-console visuals (light theme) */

.tech-hero-viz {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--border-strong, rgba(23, 93, 150, 0.26));
  border-radius: var(--radius-lg, 30px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.92));
  box-shadow: var(--shadow, 0 24px 70px rgba(31, 83, 126, 0.14));
  overflow: hidden;
}

.tech-hero-viz::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(22, 119, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 119, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 20%, transparent 72%);
}

.tech-hero-viz__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tech-hero-viz__hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-hud-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 119, 255, 0.22);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft, #23445f);
  box-shadow: 0 8px 24px rgba(31, 83, 126, 0.08);
}

.tech-hud-chip strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--heading, #06172a);
  font-variant-numeric: tabular-nums;
}

.tech-hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* Vertical rhythm inside product tech showcase (matches --page-stack sitewide) */
.page-content > .tech-console + .tech-console,
.page-content > .tech-console + .vk-scenarios {
  margin-top: var(--page-stack, 40px);
}

.tech-console__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--block-head-gap);
}

.tech-console__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 0, 0.35);
  background: rgba(255, 138, 0, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #b45309;
}

.tech-console__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: tech-live-pulse 1.4s ease-in-out infinite;
}

.tech-console__grid {
  display: grid;
  gap: 16px;
}

.tech-console__grid--2 {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.tech-panel--log {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tech-panel--log .sol-log-panel__label {
  flex-shrink: 0;
}

.tech-panel--log .tech-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: none;
  min-height: 280px;
  padding-bottom: 8px;
}

@media (max-width: 960px) {
  .tech-console__grid--2 {
    grid-template-columns: 1fr;
  }
  .tech-hero-viz {
    min-height: 280px;
  }
}

.tech-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tech-panel__title {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tech-panel__body {
  position: relative;
  min-height: 260px;
}

.tech-panel__body--tall {
  min-height: 320px;
}

.tech-panel canvas.tech-panel-canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.tech-log {
  margin: 0;
  padding: 12px 14px;
  max-height: 320px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: var(--soft);
}

.tech-log li {
  list-style: none;
  display: grid;
  grid-template-columns: 74px 92px minmax(0, 1fr) minmax(72px, auto);
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(39, 113, 166, 0.12);
  animation: none;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.tech-log .log-ts {
  color: var(--muted);
  white-space: nowrap;
}

.tech-log .log-type {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-log .log-route {
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-log .log-act {
  text-align: right;
  white-space: nowrap;
}

.tech-log .sev-critical { color: #dc2626; font-weight: 700; }
.tech-log .sev-high { color: #ea580c; font-weight: 700; }
.tech-log .sev-medium { color: #ca8a04; }
.tech-log .sev-low { color: var(--accent-2); }
.tech-log .act { color: var(--accent); font-weight: 700; }

.tech-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 800px) {
  .tech-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-metric {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
}

.tech-metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.tech-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tech-metric .live-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.tech-sdk {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

@media (max-width: 960px) {
  .tech-sdk {
    grid-template-columns: 1fr;
  }
}

.tech-code {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 23, 42, 0.12);
  background: #0b1524;
  color: #dbeafe;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.tech-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
}

.tech-code__live {
  color: #34d399;
  font-weight: 700;
}

.tech-code pre {
  margin: 0;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  flex: 1 1 auto;
}

.tech-code .kw { color: #7dd3fc; }
.tech-code .fn { color: #a5b4fc; }
.tech-code .str { color: #86efac; }
.tech-code .cm { color: #e2e8f0; }

.tech-deploy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 8, 18, 0.55);
}

.tech-code .tech-deploy-steps span {
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.82);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.tech-code .tech-deploy-steps span.is-on {
  border-color: #6ee7b7;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 183, 0.45),
    0 0 0 1px rgba(52, 211, 153, 0.35);
  text-shadow: none;
}

.tech-onboard-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tech-onboard-lead {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.tech-onboard-steps {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  padding-left: 14px;
  display: grid;
  gap: 8px;
  flex: 1;
}

ol.tech-onboard-steps {
  list-style-type: none;
  counter-reset: none;
}

.tech-onboard-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 255, 0.9));
}

.tech-onboard-steps li.is-done {
  border-color: rgba(0, 184, 148, 0.28);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.88));
}

.tech-onboard-steps__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 11px;
  color: #0f766e;
  background: rgba(0, 184, 148, 0.12);
  font-variant-numeric: tabular-nums;
  align-self: start;
}

.tech-onboard-steps__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.tech-onboard-steps strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--heading);
  margin: 0;
}

.tech-onboard-steps p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.tech-onboard-tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(0, 184, 148, 0.14);
  white-space: nowrap;
}

.tech-onboard-notes {
  margin: 0;
  padding: 8px 14px 12px;
  list-style: none;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.tech-onboard-notes li::before {
  content: "✓ ";
  color: #00b894;
  font-weight: 800;
}

.tech-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .tech-scenarios {
    grid-template-columns: 1fr;
  }
}

.tech-scenario-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.tech-scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tech-scenario-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.tech-scenario-viz {
  margin-top: auto;
  flex: 1 1 auto;
  min-height: 176px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #07111c;
  color: #e2e8f0;
  overflow: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tech-scenario-viz__stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex: 1;
}

.scene-live__count {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.scene-live__tag {
  color: #f87171;
  font-size: 12px;
  font-weight: 800;
}

.scene-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.scene-row b { color: #f8fafc; }

.scene-marquee {
  margin-top: auto;
  padding-top: 8px;
  max-height: 72px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.55;
  color: #86efac;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mix-row, .layer-row {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 12px;
}

.mix-bar, .layer-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.12);
  overflow: hidden;
}

.mix-bar span, .layer-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1677ff, #00b894);
}

.intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.intel-table th, .intel-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.sev {
  font-weight: 800;
  font-size: 11px;
}

.sev-critical { color: #dc2626; }
.sev-high { color: #ea580c; }
.sev-medium { color: #ca8a04; }

.posture-grid, .sdk-platforms {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .posture-grid, .sdk-platforms { grid-template-columns: 1fr; }
}

.sdk-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.sdk-tabs button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sdk-tabs button.is-on {
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  border-color: transparent;
}

.phone-status {
  border-radius: 18px;
  background: #07111c;
  color: #e2e8f0;
  padding: 16px;
  min-height: 220px;
}

.phone-status strong { display: block; font-size: 22px; color: #fff; }

.visual-stage canvas.tech-hero-viz__canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 44px);
}

.visual-stage__readout {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #06172a;
  pointer-events: none;
}

.intel-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

.intel-layout--bottom {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 960px) {
  .intel-layout, .intel-layout--bottom { grid-template-columns: 1fr; }
}

.intel-ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(39, 113, 166, 0.16);
  font-size: 13px;
}

.rank-list em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.intel-legend {
  display: flex;
  gap: 12px;
  padding: 8px 14px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.scrub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scrub-grid b {
  display: block;
  font-size: 22px;
  color: var(--heading);
}

.scrub-grid span {
  font-size: 12px;
  color: var(--muted);
}

.tech-scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}

.tech-scenario-meta b {
  color: var(--heading);
}

.tech-funnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
}

.tech-funnel-legend span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tech-compliance-note {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.tech-panel__body--compact {
  min-height: auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.tech-credential-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.tech-credential-entity {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.tech-credential-entity strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--heading);
}

.tech-credential-link {
  font-size: 13px;
}

.tech-demo-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.06);
  font-size: 13px;
  color: var(--soft);
}

body[data-page="product"] .tech-panel__body,
body[data-solution] .tech-panel__body {
  min-height: 300px;
}

body[data-page="product"] .tech-panel__body--tall,
body[data-solution] .tech-panel__body--tall {
  min-height: 400px;
}

body[data-page="product"] .tech-scenario-viz,
body[data-solution] .tech-scenario-viz {
  min-height: 176px;
}

body[data-page="product"] .visual-stage,
body[data-solution] .visual-stage {
  position: relative;
  min-height: 260px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.14);
  background: linear-gradient(165deg, rgba(22, 119, 255, 0.06), rgba(0, 184, 148, 0.05));
}

body[data-solution] .page-visual-card {
  grid-template-rows: auto minmax(268px, 1fr) auto;
  align-content: stretch;
}

body[data-page="product"] .page-visual-card .visual-stage + .visual-chip-row,
body[data-solution] .page-visual-card .visual-stage + .visual-chip-row {
  margin-top: 12px;
}

body[data-solution] .solution-steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

body[data-solution] .solution-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

body[data-solution] .solution-steps__idx {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

body[data-solution] .solution-block {
  margin-bottom: var(--page-stack, 40px);
}

body[data-page="product"] .tech-onboard-notes,
body[data-solution] .tech-onboard-notes {
  margin: 0;
}

body[data-page="product"] .tech-scenario-card,
body[data-solution] .tech-scenario-card {
  min-height: 300px;
}

@keyframes tech-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes tech-log-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-console__status-dot,
  .tech-log li {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .tech-console__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-console__status {
    align-self: flex-start;
  }

  .tech-deploy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vk-scenarios__stage {
    padding: 24px 14px 32px;
  }

  .vk-scenarios__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -4px;
    padding-bottom: 12px;
  }

  .vk-scenarios__tabs::-webkit-scrollbar {
    display: none;
  }

  .vk-scenarios__tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 12px;
  }

  .vk-scenarios__viz-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vk-scenarios__badges {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .tech-metrics {
    grid-template-columns: 1fr;
  }

  .vk-scenarios__nodes {
    grid-template-columns: 1fr;
  }

  .tech-code pre {
    font-size: 11px;
  }
}

/* Veikor 应用场景 tabs (demo product) */
.vk-scenarios {
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.vk-scenarios__stage {
  margin-top: 0;
  padding: 32px 20px 48px;
  border-radius: var(--radius-md);
  background: #050507;
  color: #e4e4e7;
  box-shadow: var(--shadow-soft);
}

.vk-scenarios__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vk-scenarios__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vk-scenarios__tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.vk-scenarios__tab.is-on {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 18px -4px rgba(59, 130, 246, 0.55);
}

.vk-scenarios__active {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.15);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.vk-scenarios__panel {
  margin-top: var(--block-head-gap, 24px);
}

.vk-scenarios__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 960px) {
  .vk-scenarios__grid {
    grid-template-columns: 1fr 1.45fr;
  }
}

.vk-scenarios__arch {
  margin: 0 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
}

.vk-scenarios__copy h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: #fff;
}

.vk-scenarios__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: #a1a1aa;
}

.vk-scenarios__metrics {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.vk-scenarios__metric {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.vk-scenarios__metric span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
  flex: 1 1 8rem;
  min-width: 0;
  line-height: 1.45;
  white-space: normal;
}

.vk-scenarios__metric strong {
  font-family: ui-monospace, monospace;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.vk-scenarios__metric--blue strong { color: #93c5fd; }
.vk-scenarios__metric--rose strong { color: #fda4af; }
.vk-scenarios__metric--green strong { color: #6ee7b7; }

.vk-scenarios__viz {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.vk-scenarios__viz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.vk-scenarios__pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.vk-scenarios__pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6);
  animation: vk-scenarios-ping 1.8s ease-out infinite;
}

.vk-scenarios__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vk-scenarios__badge {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.vk-scenarios__nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  align-content: center;
}

.vk-scenarios__node {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
}

.vk-scenarios__node strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #f4f4f5;
  overflow-wrap: anywhere;
}

.vk-scenarios__node span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: #71717a;
  overflow-wrap: anywhere;
}

.vk-scenarios__flow {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #a1a1aa;
  text-align: center;
  overflow-wrap: anywhere;
}

.vk-scenarios__footer-metrics {
  display: none;
}

@media (min-width: 720px) {
  .vk-scenarios__footer-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .vk-scenarios__footer-metrics .vk-scenarios__metric {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .vk-scenarios__footer-metrics .vk-scenarios__metric strong {
    font-size: 14px;
  }
}

@keyframes vk-scenarios-ping {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .vk-scenarios__pulse::before {
    animation: none;
  }
}
