.dashboard-page {
  max-width: 1680px;
  padding: clamp(42px, 4vw, 68px) clamp(22px, 3vw, 48px) 96px;
}

.dashboard-page .section-intro {
  max-width: 1180px;
  margin: 0 0 clamp(24px, 2.4vw, 36px);
  padding: 0;
}

.dashboard-page .section-intro h1 {
  max-width: none;
  margin-top: 13px;
  line-height: 1.02;
}

.dashboard-page .section-intro p {
  max-width: 68ch;
  margin-bottom: 0;
  line-height: 1.6;
}

.dashboard-demo {
  width: 100%;
  grid-template-columns: clamp(220px, 17vw, 255px) minmax(0, 1fr);
  min-height: clamp(660px, calc(100svh - 220px), 820px);
  margin-inline: auto;
  border-color: rgba(231, 183, 104, 0.55);
  border-radius: 14px;
  background: #0c0c0d;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.44), 0 0 34px rgba(173, 116, 44, 0.09);
}

.dash-side {
  padding: 30px 18px;
  background: linear-gradient(180deg, #171512, #111113 72%);
}

.dash-side-title {
  margin: 4px 10px 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.dash-side-title small {
  display: block;
  margin: 5px 0 0;
  color: #a89b83;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.dash-tab {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  margin: 4px 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dash-tab svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.dash-tab:hover {
  transform: translateX(2px);
  border-color: rgba(219, 175, 96, 0.3);
}

.dash-body {
  min-width: 0;
  padding: clamp(30px, 3.4vw, 50px);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(173, 116, 44, 0.15), transparent 34%),
    linear-gradient(145deg, #141312, #0d0d0e 65%);
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.dash-breadcrumb,
.dash-section-kicker {
  color: #b69a68;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.dash-preview-pill {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(218, 172, 89, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(5, 5, 6, 0.48);
  color: #d9c7a3;
  font-size: 10px;
  line-height: 1.25;
}

.dash-preview-pill i,
.boundary-footnote i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dfa94d;
  box-shadow: 0 0 10px rgba(223, 169, 77, 0.56);
}

.dash-body h2 {
  margin: 0 0 9px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.dash-body > p {
  max-width: 66ch;
  margin: 0;
  color: #b9b2a7;
  font-size: 13px;
}

.dash-widgets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 30px 0 26px;
}

.dash-widget {
  min-width: 0;
  min-height: 112px;
  align-content: center;
  gap: 13px;
  border-color: rgba(194, 147, 74, 0.3);
  border-radius: 10px;
  padding: 19px 20px;
  background: linear-gradient(145deg, rgba(35, 30, 22, 0.92), rgba(18, 18, 19, 0.96));
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.dash-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 188, 111, 0.58);
}

.dash-widget b {
  color: #baa277;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.dash-widget span {
  color: #f0e8da;
  font-size: 14px;
  line-height: 1.4;
}

.dash-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.demo-console,
.execution-panel {
  min-width: 0;
  border: 1px solid rgba(194, 147, 74, 0.31);
  border-radius: 10px;
  padding: clamp(20px, 2.2vw, 30px);
  background: rgba(9, 9, 10, 0.58);
}

.demo-console-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-console-note,
.demo-field-help {
  color: #a99f8e;
  font-size: 10px;
}

.demo-console h3,
.execution-panel h3 {
  margin: 15px 0 6px;
  color: #f2e8d5;
  font: 22px/1.2 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

.demo-console > p,
.execution-panel > p {
  margin: 0 0 18px;
  color: #b1aa9d;
  font-size: 12px;
  line-height: 1.55;
}

#demo-chat label {
  display: block;
  margin-bottom: 7px;
  color: #e8d8ba;
  font-size: 11px;
  font-weight: 650;
}

#demo-prompt {
  display: block;
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #725832;
  border-radius: 6px;
  padding: 12px 13px;
  background: #111112;
  color: #f7f1e8;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#demo-prompt::placeholder {
  color: #9b9487;
  opacity: 1;
}

#demo-prompt:focus-visible {
  border-color: #e5ba6f;
  box-shadow: 0 0 0 3px rgba(229, 186, 111, 0.15);
}

#demo-prompt[aria-invalid='true'] {
  border-color: #dc8c78;
}

.demo-field-help {
  display: block;
  margin-top: 6px;
}

.demo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.demo-actions .btn {
  min-height: 46px;
  padding: 11px 17px;
  font-size: 11px;
}

.btn-quiet {
  border-color: rgba(213, 183, 129, 0.35);
  background: transparent;
  color: #d5c5a6;
}

.btn-quiet:hover {
  border-color: #b38b4d;
  background: rgba(218, 172, 89, 0.08);
}

.execution-panel {
  background: linear-gradient(155deg, rgba(27, 23, 18, 0.88), rgba(10, 10, 11, 0.72));
}

.execution-panel h3 {
  max-width: 16ch;
  margin-top: 14px;
}

.boundary-list {
  display: grid;
  gap: 0;
  margin: 15px 0 16px;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(218, 172, 89, 0.14);
  padding: 10px 0;
  color: #bcb4a7;
  font-size: 10px;
}

.boundary-list strong {
  color: #e2c58e;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.boundary-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b6a27c;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.simulation-result {
  margin-top: 15px;
  border: 1px solid rgba(220, 173, 91, 0.42);
  border-radius: 8px;
  padding: 15px;
  background: linear-gradient(140deg, rgba(55, 39, 17, 0.48), rgba(19, 18, 17, 0.85));
}

.simulation-result[hidden] {
  display: none;
}

.simulation-result[data-state='error'] {
  border-color: rgba(220, 140, 120, 0.62);
  color: #f0b5a6;
}

.simulation-result.is-entering {
  animation: simulation-arrive 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#dash-content.is-updating {
  animation: dashboard-refresh 240ms ease both;
}

.simulation-result h4 {
  margin: 0 0 6px;
  color: #f3d59c;
  font-size: 12px;
}

.simulation-result p {
  margin: 0;
  color: #c4bbad;
  font-size: 10px;
  line-height: 1.5;
}

.simulation-request {
  margin: 9px 0 !important;
  border-left: 1px solid #b88842;
  padding-left: 9px;
  color: #eee4d2 !important;
}

.simulation-steps {
  display: grid;
  gap: 0;
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
}

.simulation-steps li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-top: 1px solid rgba(218, 172, 89, 0.13);
  padding: 7px 0;
}

.simulation-steps li > span {
  color: #c7964a;
  font-size: 9px;
}

.simulation-steps strong {
  display: block;
  color: #e8dfd0;
  font-size: 10px;
  font-weight: 600;
}

.simulation-steps small {
  display: block;
  margin-top: 2px;
  color: #aaa295;
  font-size: 9px;
}

.simulation-steps em {
  color: #dcbd82;
  font-size: 9px;
  font-style: normal;
}

.v3-interior > .notice {
  margin-top: 24px;
}

@keyframes simulation-arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-refresh {
  from { opacity: 0.48; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .dashboard-page {
    padding-inline: 22px;
  }

  .dashboard-demo {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .dash-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 13px;
  }

  .dash-side-title {
    grid-column: 1 / -1;
    margin: 2px 5px 7px;
  }

  .dash-tab {
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 9px 7px;
  }

  .dash-lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  }
}

@media (max-width: 980px) {
  .dash-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 550px) {
  .dashboard-page {
    padding: 42px 18px 76px;
  }

  .dashboard-page .section-intro {
    margin-bottom: 24px;
  }

  .dashboard-page .section-intro h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .dash-body {
    padding: 20px 14px;
  }

  .dash-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
  }

  .dash-preview-pill {
    max-width: 100%;
    border-radius: 6px;
  }

  .dash-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
  }

  .dash-widget {
    min-height: 96px;
    padding: 13px 12px;
  }

  .dash-widget b {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .dash-widget span {
    font-size: 11px;
  }

  .dash-tab {
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }

  .dash-tab span {
    display: inline;
    font-size: 9px;
  }

  .dash-tab svg {
    width: 16px;
    height: 16px;
  }

  .dash-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-console,
  .execution-panel {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-tab,
  .dash-widget {
    transition: none !important;
  }

  .dash-tab:hover,
  .dash-widget:hover {
    transform: none;
  }

  .simulation-result.is-entering {
    animation: none;
  }

  #dash-content.is-updating {
    animation: none;
  }
}
