:root {
  --ink: #17201d;
  --muted: #67716b;
  --paper: #f3f0e8;
  --panel: #fbfaf6;
  --line: #d8d5cb;
  --carbon: #101817;
  --carbon-2: #1d2926;
  --teal: #00a98f;
  --teal-dark: #007664;
  --coral: #df5b45;
  --amber: #e9ad31;
  --mint: #d8f3e8;
  --blue: #4e75d6;
  --violet: #8157ff;
  --cyan: #21c8ff;
  --shadow: 0 18px 46px rgba(23, 32, 29, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(33, 200, 255, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(129, 87, 255, 0.14), transparent 26%),
    radial-gradient(circle at 62% 98%, rgba(233, 173, 49, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 34px 34px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-size: 14px;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(240, 251, 247, 0.86)),
    rgba(251, 250, 246, 0.92);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
}

.brand-lockup,
.status-strip,
.row-heading,
.signal-copy {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 68% 24%, rgba(33, 200, 255, 0.75), transparent 16px),
    linear-gradient(145deg, #07110f, #182421);
  border: 2px solid var(--teal);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(0, 169, 143, 0.32);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.status-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill,
.preview-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-ready {
  color: var(--teal-dark);
  border-color: rgba(0, 169, 143, 0.35);
  background: var(--mint);
}

.status-pill.is-live {
  color: #7d4b02;
  border-color: rgba(233, 173, 49, 0.45);
  background: #fff2cc;
}

.showcase-link {
  color: #06110f;
  border-color: rgba(33, 200, 255, 0.48);
  background: linear-gradient(135deg, #bff8ee, #dff4ff);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(33, 200, 255, 0.14);
}

.showcase-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(390px, 1.42fr) minmax(340px, 1.15fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.95);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.panel-heading {
  padding: 18px 18px 0;
}

.row-heading {
  justify-content: space-between;
  gap: 14px;
}

.controls-panel,
.launch-panel,
.preview-panel {
  min-height: calc(100vh - 134px);
}

.device-visual {
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f3e8;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.device-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 18px;
}

.control-key {
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.control-key span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.control-key strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.control-key:hover,
.control-key.is-active {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: 0 8px 18px rgba(0, 169, 143, 0.12);
}

.recorder-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 18px 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--carbon);
  color: #fffaf0;
}

.recorder-panel .eyebrow {
  color: #78e4d0;
}

.feishu-live-panel {
  margin: 0 18px 14px;
  padding: 14px;
  border: 1px solid rgba(0, 169, 143, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, #f0fbf7, #ffffff);
}

.live-heading,
.live-actions,
.live-meta,
.structure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-heading h3 {
  font-size: 15px;
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(233, 173, 49, 0.15);
}

.live-dot.is-connected {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 169, 143, 0.14);
}

.live-dot.is-error {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(223, 91, 69, 0.14);
}

.live-actions {
  margin-top: 13px;
}

.live-refresh-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.live-refresh-button:hover {
  background: var(--mint);
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.switch-label input {
  accent-color: var(--teal);
}

.live-meta {
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.live-summary {
  max-height: 112px;
  margin-top: 11px;
  padding: 11px;
  overflow: auto;
  border: 1px solid rgba(0, 169, 143, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  white-space: pre-wrap;
}

.brain-panel {
  margin: 0 18px 14px;
  padding: 14px;
  border: 1px solid rgba(78, 117, 214, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, #f2f5ff, #ffffff);
}

.gateway-panel,
.trust-panel,
.device-safety-panel,
.board-link-panel,
.realtime-panel {
  margin: 0 18px 14px;
  padding: 13px;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 12px;
  background: #fff;
}

.board-link-panel {
  border-color: rgba(0, 169, 143, 0.25);
  background: linear-gradient(145deg, #ffffff, #effbf7);
}

.board-bridge-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.board-chip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  color: #fffaf0;
  background:
    linear-gradient(90deg, rgba(0, 169, 143, 0.18), transparent),
    var(--carbon);
}

.board-chip span,
.board-chip small {
  color: rgba(255, 250, 240, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.board-chip strong {
  font-size: 16px;
}

.board-actions {
  display: grid;
  gap: 8px;
  min-width: 128px;
}

.ghost-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ghost-action:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

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

.pin-strip span {
  padding: 7px 6px;
  border: 1px solid rgba(0, 169, 143, 0.18);
  border-radius: 7px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.board-event-log {
  min-height: 42px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.gateway-routes {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gateway-route {
  display: grid;
  grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1.7fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #ebe8de;
  border-radius: 9px;
  background: #fbfaf6;
}

.gateway-route.is-active {
  border-color: rgba(0, 169, 143, 0.45);
  background: linear-gradient(145deg, #eefbf7, #ffffff);
}

.route-device {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 8px;
  color: #fffaf0;
  background: var(--carbon-2);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.route-flow {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.route-flow span,
.route-flow strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.route-flow span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.brain-badge {
  padding: 5px 8px;
  border: 1px solid rgba(78, 117, 214, 0.25);
  border-radius: 999px;
  color: #3859a7;
  background: #eaf0ff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brain-question {
  width: 100%;
  min-height: 74px;
  margin-top: 12px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #d9e1fb;
  border-radius: 8px;
  color: var(--ink);
  outline: 0;
  background: #fff;
  line-height: 1.6;
}

.brain-question:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(78, 117, 214, 0.12);
}

.brain-ask-button {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.brain-ask-button:hover {
  filter: brightness(1.05);
}

.brain-ask-button:disabled,
.live-refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.brain-status {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.brain-answer {
  max-height: 128px;
  margin-top: 8px;
  padding: 10px;
  overflow: auto;
  border: 1px solid #e1e6f6;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  white-space: pre-wrap;
}

.file-drop {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.35);
  border-radius: 8px;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.file-drop input {
  display: none;
}

.transcript-box {
  width: calc(100% - 36px);
  min-height: 152px;
  margin: 0 18px 18px;
  padding: 14px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  line-height: 1.8;
}

.transcript-box:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 143, 0.12);
}

.primary-action,
.secondary-action {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #fffaf0;
  background: var(--coral);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(223, 91, 69, 0.2);
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.secondary-action {
  width: calc(100% - 36px);
  margin: 16px 18px 18px;
  background: var(--carbon);
  box-shadow: none;
}

.wave-panel {
  margin: 18px;
  border-radius: 12px;
  background: var(--carbon);
  color: #fffaf0;
  overflow: hidden;
}

.wave-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 144px;
  padding: 18px 18px 0;
}

.wave-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--amber), var(--teal));
  transform-origin: bottom;
  transition: height 260ms ease;
}

.signal-copy {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 17px;
  color: rgba(255, 250, 240, 0.78);
}

.signal-copy strong {
  color: #fffaf0;
  font-size: 22px;
}

.sync-theater {
  position: relative;
  margin: 0 18px 18px;
  padding: 16px;
  border-radius: 12px;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(0, 169, 143, 0.22), transparent 32%),
    linear-gradient(90deg, #0d1715, #182421 52%, #101817);
  box-shadow: 0 18px 36px rgba(16, 24, 23, 0.2);
  overflow: hidden;
}

.sync-theater::before,
.impact-wall::before,
.product-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
}

.sync-theater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sync-theater h3 {
  font-size: 20px;
}

.sync-theater .eyebrow {
  color: #78e4d0;
}

.sync-theater-head span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sync-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sync-node {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.08);
}

.sync-node span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.sync-node strong {
  display: block;
  margin-top: 9px;
  color: #fffaf0;
  font-size: 18px;
}

.sync-node p {
  margin: 8px 0 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.sync-beam {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.16);
}

.sync-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--amber), var(--teal));
  animation: syncTravel 1.5s linear infinite;
}

.sync-console {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(120, 228, 208, 0.22);
  border-radius: 8px;
  color: #dffbf5;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.6;
}

.sync-theater.is-pulsing .sync-node,
.sync-theater.is-pulsing .sync-console {
  border-color: rgba(233, 173, 49, 0.62);
  box-shadow: 0 0 0 3px rgba(233, 173, 49, 0.12);
}

@keyframes syncTravel {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(230%);
  }
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  padding: 0 18px 18px;
}

.impact-wall {
  position: relative;
  margin: 0 18px 18px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(33, 200, 255, 0.2);
  border-radius: 12px;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(129, 87, 255, 0.24), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(33, 200, 255, 0.28), transparent 32%),
    linear-gradient(115deg, #081210, #14201f 48%, #10151e);
  box-shadow: 0 22px 46px rgba(16, 24, 23, 0.26);
}

.impact-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.impact-heading,
.impact-grid,
.link-map,
.radar-stage,
.demo-dashboard {
  position: relative;
  z-index: 1;
}

.impact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.impact-heading .eyebrow {
  color: #78e4d0;
}

.impact-heading h3 {
  font-size: 20px;
}

.impact-heading > span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.link-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  min-height: 136px;
}

.link-node {
  position: relative;
  min-height: 112px;
  padding: 11px;
  align-self: center;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.link-node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(33, 200, 255, 0.34), rgba(233, 173, 49, 0.24));
  filter: blur(18px);
  z-index: -1;
  transition: opacity 220ms ease;
}

.link-node span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.link-node strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.25;
  word-break: keep-all;
}

.link-node p {
  margin: 7px 0 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

.link-node.is-active {
  transform: translateY(-4px);
  border-color: rgba(33, 200, 255, 0.68);
  background: linear-gradient(145deg, rgba(33, 200, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 0 3px rgba(33, 200, 255, 0.08), 0 18px 30px rgba(0, 0, 0, 0.18);
}

.link-node.is-active::after {
  opacity: 1;
}

.link-beam {
  display: none;
}

.link-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.14);
}

.link-map::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  width: var(--link-progress, 0%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
  box-shadow: 0 0 20px rgba(33, 200, 255, 0.45);
  transition: width 360ms ease;
}

.radar-stage {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 188px;
  padding: 13px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.radar-copy {
  display: grid;
  gap: 8px;
  align-content: center;
}

.radar-copy span {
  color: #78e4d0;
  font-size: 12px;
  font-weight: 900;
}

.radar-copy strong {
  color: #fffaf0;
  font-size: 28px;
}

.radar-copy p {
  margin: 0;
  color: rgba(255, 250, 240, 0.6);
  font-size: 11px;
}

#riskRadar {
  width: 100%;
  height: 168px;
}

.trust-panel {
  background: linear-gradient(145deg, #fff, #f7fbff);
}

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

.trust-card {
  min-height: 116px;
  padding: 11px;
  border: 1px solid #e1e6f6;
  border-radius: 9px;
  background: #fff;
}

.trust-card.is-active {
  border-color: rgba(78, 117, 214, 0.38);
  background: #eef3ff;
}

.trust-card span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #3859a7;
  background: #e2e9ff;
  font-size: 11px;
  font-weight: 900;
}

.trust-card strong {
  display: block;
  margin-top: 9px;
  font-size: 14px;
}

.trust-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.stage-dot {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.stage-dot span {
  display: block;
  width: 19px;
  height: 19px;
  margin-bottom: 8px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.stage-dot.is-done span,
.stage-dot.is-active span {
  border-color: var(--teal);
  background: var(--teal);
}

.stage-dot strong {
  display: block;
  font-size: 12px;
}

.stage-dot small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.stage-dot.is-active {
  border-color: var(--teal);
  background: var(--mint);
}

.launch-feed {
  display: grid;
  gap: 8px;
  min-height: 212px;
  max-height: 260px;
  overflow: auto;
  margin: 0 18px 18px;
}

.feed-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  line-height: 1.6;
}

.feed-line time {
  color: var(--teal-dark);
  font-weight: 900;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 18px;
}

.metric-block {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.metric-block span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metric-block strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.preview-browser {
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 32, 29, 0.1);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  gap: 7px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #eeeae1;
}

.browser-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.browser-chrome span:nth-child(2) {
  background: var(--amber);
}

.browser-chrome span:nth-child(3) {
  background: var(--teal);
}

.product-preview {
  min-height: 520px;
  padding: 16px;
  background:
    radial-gradient(circle at 78% 10%, rgba(33, 200, 255, 0.16), transparent 26%),
    linear-gradient(120deg, rgba(0, 169, 143, 0.1), transparent 42%),
    #fbfaf6;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 10px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 84% 18%, rgba(33, 200, 255, 0.3), transparent 22%),
    linear-gradient(135deg, #07110f, #172421);
  box-shadow: 0 18px 32px rgba(16, 24, 23, 0.2);
}

.product-hero .eyebrow {
  color: #78e4d0;
}

.product-hero h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.product-hero p:last-child {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.78);
  line-height: 1.7;
}

.demo-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid rgba(0, 169, 143, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 247, 0.82));
}

.demo-command span,
.demo-kanban span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.demo-command strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.35;
}

.demo-command p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 12px;
  background: var(--carbon);
  overflow: hidden;
}

.demo-orbit::before,
.demo-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(33, 200, 255, 0.3);
  border-radius: 50%;
}

.demo-orbit::before {
  width: 86px;
  height: 86px;
  animation: orbitSpin 7s linear infinite;
}

.demo-orbit::after {
  width: 54px;
  height: 54px;
  border-color: rgba(233, 173, 49, 0.42);
  animation: orbitSpin 4s linear reverse infinite;
}

.demo-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(33, 200, 255, 0.82);
}

.demo-orbit span:nth-child(1) {
  transform: translate(33px, -22px);
}

.demo-orbit span:nth-child(2) {
  background: var(--amber);
  transform: translate(-24px, 28px);
}

.demo-orbit span:nth-child(3) {
  background: var(--teal);
  transform: translate(6px, 42px);
}

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

.demo-kanban {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo-kanban article {
  min-height: 82px;
  padding: 11px;
  border: 1px solid #dceee9;
  border-radius: 10px;
  background: #fff;
}

.demo-kanban strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
}

.demo-dashboard.is-complete {
  border-color: rgba(233, 173, 49, 0.55);
  box-shadow: 0 0 0 3px rgba(233, 173, 49, 0.12);
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.mini-card {
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
}

.mini-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feishu-panel {
  margin: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.feishu-structure {
  margin: 14px 18px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.structure-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid #ebe8de;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.structure-heading small {
  color: var(--muted);
  font-weight: 700;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.structure-card {
  min-height: 112px;
  padding: 10px;
  border: 1px solid #ebe8de;
  border-radius: 9px;
  background: #fbfaf6;
}

.structure-card > span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.structure-card strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.structure-card p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.source-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.device-safety-panel {
  margin-top: 14px;
}

.realtime-panel {
  margin-top: 14px;
  border-color: rgba(78, 117, 214, 0.22);
  background: linear-gradient(145deg, #ffffff, #f2f5ff);
}

.realtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.realtime-grid article {
  min-height: 112px;
  padding: 11px;
  border: 1px solid #e1e6f6;
  border-radius: 9px;
  background: #fff;
}

.realtime-grid span {
  color: #3859a7;
  font-size: 11px;
  font-weight: 900;
}

.realtime-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.realtime-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.safety-grid article {
  min-height: 126px;
  padding: 11px;
  border: 1px solid #ebe8de;
  border-radius: 9px;
  background: #fbfaf6;
}

.safety-grid span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
}

.safety-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.safety-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.feishu-list {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.feishu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ebe8de;
}

.feishu-item:last-child {
  border-bottom: 0;
}

.feishu-item span {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .controls-panel,
  .launch-panel,
  .preview-panel {
    min-height: auto;
  }

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

  .sync-flow {
    grid-template-columns: 1fr;
  }

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

  .link-map {
    grid-template-columns: 1fr;
  }

  .link-map::before,
  .link-map::after {
    display: none;
  }

  .sync-beam {
    width: 4px;
    height: 30px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 12px;
  }

  .topbar,
  .row-heading,
  .recorder-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .control-grid,
  .mini-board,
  .demo-dashboard,
  .demo-kanban,
  .metrics-grid,
  .stage-rail,
  .structure-grid,
  .trust-grid,
  .safety-grid,
  .realtime-grid,
  .pin-strip,
  .board-bridge-body {
    grid-template-columns: 1fr;
  }

  .feed-line {
    grid-template-columns: 1fr;
  }

  .gateway-route {
    grid-template-columns: 1fr;
  }

  .sync-theater-head {
    align-items: stretch;
    flex-direction: column;
  }
}
