:root {
  --bg: #eef2f7;
  --ink: #151b26;
  --muted: #6d7787;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #dfe5ee;
  --blue: #2463eb;
  --blue-soft: #e8f0ff;
  --green: #0f9f6e;
  --orange: #d97706;
  --red: #c83c3c;
  --phone: #101623;
  --shadow: 0 20px 54px rgba(27, 39, 63, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: clamp(430px, 29vw, 540px) minmax(0, 1fr);
}

.customer-stage {
  min-height: 100vh;
  padding: 14px 14px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(28, 39, 61, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.34), transparent 34%);
  color: #eef4ff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}

.stage-copy {
  display: grid;
  gap: 12px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.brand-line h1 {
  margin: 0;
  font-size: 18px;
}

.brand-line p,
.eyebrow {
  margin: 4px 0 0;
  color: #9aa8bd;
  font-size: 12px;
}






.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scenario-button {
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  text-align: left;
  position: relative;
}

.scenario-button strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.scenario-button span {
  display: block;
  margin-top: 5px;
  color: #b9c4d6;
  font-size: 11px;
  line-height: 1.25;
}

.scenario-button.active {
  border-color: #83adff;
  background: rgba(37, 99, 235, 0.32);
}

.phone-frame {
  align-self: start;
  justify-self: center;
  width: min(310px, 100%);
  height: min(520px, calc(100vh - 172px));
  min-height: 430px;
  padding: 12px;
  border-radius: 28px;
  background: var(--phone);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  position: relative;
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 5px;
  border-radius: 999px;
  background: #263044;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 21px;
  overflow: hidden;
  background: #f2f5f9;
  color: var(--ink);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.phone-header {
  padding: 20px 14px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-header strong {
  display: block;
  font-size: 16px;
}

.phone-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7f1;
  color: var(--green) !important;
  font-weight: 700;
}

.message-list {
  overflow: auto;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  margin: auto;
  max-width: 260px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  font-size: 12px;
}

.message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 14px;
  word-break: break-word;
}

.message.customer {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.agent {
  align-self: flex-start;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.message.system {
  align-self: center;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8eef7;
  color: #607086;
  font-size: 12px;
}

.message.typing {
  align-self: flex-start;
  background: #fff;
  color: #667085;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  font-size: 13px;
  position: relative;
}

.message.typing::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #94a3b8 0 25%, transparent 25% 37%, #94a3b8 37% 62%, transparent 62% 74%, #94a3b8 74% 100%);
  animation: typingPulse 1.1s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes typingPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
  padding: 8px 10px 0;
}

.quick-actions button {
  min-height: 36px;
  border: 1px solid #cdd7e5;
  border-radius: 999px;
  background: #fff;
  color: #2f5eb8;
  font-size: 12px;
  font-weight: 700;
}

.composer {
  padding: 8px 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
}

.composer input {
  min-width: 0;
  border: 1px solid #cdd7e5;
  border-radius: 999px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

.composer input:focus {
  border-color: var(--blue);
}

.composer button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.operator-workbench {
  min-width: 0;
  min-height: 100vh;
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto minmax(520px, 1fr) 132px;
  gap: 10px;
  overflow: visible;
}

.topbar,
.case-panel,
.ai-panel,
.business-panel,
.activity-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topbar {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar h2 {
  margin: 0;
  font-size: 19px;
}

.connection-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.channel {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.dot.muted {
  background: #9aa4b2;
}


.case-panel {
  padding: 8px;
  display: grid;
  grid-template-columns: 104px 96px minmax(160px, 1.4fr) minmax(110px, 0.9fr) minmax(110px, 0.9fr) minmax(104px, 0.8fr) minmax(104px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}

.case-identity,
.case-item,
.case-status {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-identity {
  background: #111827;
  color: #fff;
}

.case-identity span,
.case-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.case-identity span {
  color: #9aa8bd;
}

.case-identity strong,
.case-item strong {
  min-width: 0;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.case-item.wide {
  min-width: 0;
}

.case-status {
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.case-status.ok {
  color: var(--green);
  background: #e7f7f1;
}

.case-status.warn {
  color: var(--orange);
  background: #fff2df;
}

.decision-grid {
  margin: 0 10px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.structured-card {
  min-height: 126px;
  padding: 12px;
  overflow: auto;
}

.chip-row,
.check-row,
.gap-row {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.35;
}

.check-row::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e7f7f1;
  color: var(--green);
  font-weight: 800;
}

.gap-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  background: #fffbeb;
}

.gap-row span {
  color: var(--muted);
}

.gap-row strong {
  font-weight: 800;
}

.policy-card,
.workflow-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.policy-card p {
  margin: 0 0 10px;
  color: #344054;
  line-height: 1.55;
  font-size: 12px;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-metrics span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.workflow-steps {
  display: grid;
  gap: 8px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.workflow-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.workflow-step.done span {
  background: #e7f7f1;
  color: var(--green);
}

.workflow-step strong {
  font-size: 12px;
}

.workflow-step em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.ai-panel,
.business-panel,
.activity-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.business-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.section-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-head.compact {
  padding: 12px 16px;
}

.section-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.section-head strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.status-pill,
.risk {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.status-pill {
  color: var(--blue);
  background: var(--blue-soft);
}

.risk {
  color: var(--green);
  background: #e7f7f1;
}

.risk.medium {
  color: var(--orange);
  background: #fff2df;
}

.risk.muted {
  color: #667085;
  background: #eef2f7;
}

.workbench-empty {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workbench-empty.tall {
  min-height: 180px;
}

.empty-mini {
  margin-top: 8px;
  padding: 14px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.insight-grid {
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric,
.reason-card,
.processing-card,
.structured-card,
.tool-calls {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  padding: 12px;
}

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

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reason-card,
.processing-card,
.tool-calls {
  margin: 0 10px 10px;
  padding: 10px;
}

.reason-card p {
  margin: 8px 0 0;
  color: #344054;
  line-height: 1.6;
  font-size: 14px;
}

#liveProcessing {
  margin-top: 8px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}

.tool-calls {
  overflow: auto;
}

.tool-call {
  margin-top: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.tool-call strong {
  display: block;
  margin-bottom: 4px;
}

#businessView {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  overflow-wrap: anywhere;
}

.product-card,
.order-card,
.ticket-card,
.third-party-card,
.collab-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.thumb-ac {
  background: linear-gradient(135deg, #3563d8, #6ec6d9);
}

.thumb-fashion {
  background: linear-gradient(135deg, #20242f, #b56c45);
}

.card-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #edf0f4;
  font-size: 12px;
  align-items: start;
}

.data-row:first-child {
  border-top: 0;
}

.data-row span:first-child {
  color: var(--muted);
}

.data-row span:last-child {
  min-width: 0;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}


.collab-card {
  border-left: 4px solid #22c55e;
}

.wecom-preview {
  border: 1px solid var(--line);
  background: #f3f7fb;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.wecom-title {
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wecom-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wecom-title strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.wecom-title em {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.wecom-preview.pushed .wecom-title em {
  background: #e7f7f1;
  color: var(--green);
}

.wecom-chat {
  padding: 12px;
  min-height: 270px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.4)),
    #edf3f9;
}

.wecom-time {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.12);
  color: #667085;
  font-size: 11px;
}

.wecom-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.wecom-bubble {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.wecom-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.wecom-bubble-head strong {
  font-size: 15px;
}

.wecom-bubble-head span {
  flex: none;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.wecom-bubble p {
  margin: 0 0 10px;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.wecom-field {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #edf0f4;
  font-size: 12px;
}

.wecom-field span {
  color: var(--muted);
}

.wecom-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wecom-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wecom-actions button {
  border: 1px solid #b7d7c3;
  background: #f0fbf4;
  color: #15803d;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.collab-card .card-title::before {
  content: "企微";
  display: inline-block;
  margin-right: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #e7f7f1;
  color: var(--green);
  font-size: 11px;
  vertical-align: 1px;
}

.timeline {
  margin-top: 10px;
  border-left: 2px solid #dbe7ff;
  padding-left: 12px;
}

.timeline-item {
  position: relative;
  padding: 0 0 12px;
  font-size: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.timeline-item span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.activity-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.activity-list {
  overflow: auto;
  padding: 8px 12px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.activity-item time {
  color: var(--muted);
}

.activity-item strong {
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 980px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .customer-stage {
    min-height: auto;
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 390px);
    grid-template-rows: auto;
    align-items: center;
  }

  




.scenario-list {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    height: min(620px, calc(100vh - 170px));
  }

  .operator-workbench {
    min-height: auto;
  }

  .case-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-item.wide {
    min-width: 0;
  }
}

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

@media (max-width: 1280px) {
  .demo-shell {
    grid-template-columns: minmax(400px, 31vw) minmax(0, 1fr);
  }

  




.scenario-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .customer-stage,
  .activity-list {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    height: min(600px, calc(100vh - 170px));
    min-height: 460px;
  }

  .operator-workbench {
    grid-template-rows: auto auto auto auto;
  }

  .case-panel,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


.topbar > div:first-child,
.connection-panel,
.case-panel,
.main-grid,
.ai-panel,
.business-panel,
.activity-panel {
  min-width: 0;
}


@media (max-width: 1280px) {
  .demo-shell {
    grid-template-columns: minmax(400px, 31vw) minmax(0, 1fr);
  }

  




.scenario-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .customer-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .scenario-list,
  .main-grid,
  .activity-list,
  .case-panel,
  .decision-grid {
    grid-template-columns: 1fr;
  }
}


.scenario-click-hint {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(147, 197, 253, 0.24);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.scenario-button.active .scenario-click-hint {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.scenario-button.active .scenario-click-hint::before {
  content: "当前 · ";
}

.quick-actions button:first-child {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quick-actions button:first-child::after {
  content: " ← 点这里开始";
  color: #1d4ed8;
}

/* Area labels for customer side and agent workbench */
.area-label {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.area-label span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.area-label strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

.customer-label {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.22);
  color: #dbeafe;
}

.customer-label span {
  background: #dbeafe;
  color: #1e3a8a;
}

.workbench-label {
  background: #111827;
  border: 1px solid #1f2937;
  color: #dbeafe;
  box-shadow: var(--shadow);
}

.workbench-label span {
  background: #2563eb;
  color: #fff;
}

.operator-workbench {
  grid-template-rows: auto auto auto minmax(500px, 1fr) 124px;
}

.phone-frame {
  height: min(500px, calc(100vh - 218px));
  min-height: 410px;
}

@media (max-width: 1080px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .customer-stage,
  .operator-workbench {
    min-height: auto;
  }

  .phone-frame {
    height: 520px;
  }
}

@media (max-width: 720px) {
  .area-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
