/* Shared frame for the two live tools; other demos retain their own layouts. */
html {
  scrollbar-gutter: stable;
}
.ai-demo-page {
  background: #fafaf5;
}
.ai-demo-page .wrap {
  width: 100%;
  max-width: 1240px;
  padding-left: 48px;
  padding-right: 48px;
}
.ai-demo-page .demo-header {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: 150px;
  padding-top: 14px;
  padding-bottom: 14px;
  border: 0;
  gap: 30px;
}
.ai-demo-page .demo-header .lab-brand {
  width: 230px;
}
.ai-demo-page .demo-header .hbts-logo {
  width: 230px;
}
.ai-demo-page .demo-header .back {
  justify-self: end;
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ai-opening {
  background: linear-gradient(110deg, #fafaf5, #f1f5e9 70%, #eaf0e0);
  border-bottom: 1px solid #d9e3d2;
}
.ai-demo-page .intro {
  padding-top: 30px;
  padding-bottom: 28px;
}
.ai-demo-page h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -1.3px;
  line-height: 1.17;
  max-width: 900px;
  margin-bottom: 17px;
}
.ai-demo-page .intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 17px;
}
.ai-demo-page .eyebrow {
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}
.ai-demo-page .demo-notice {
  display: block;
  max-width: 860px;
  background: transparent;
  border: 0;
  border-left: 2px solid #91ad7c;
  border-radius: 0;
  padding: 2px 0 2px 13px;
  font-size: 12px;
  line-height: 1.7;
}
.ai-demo-page .demo-notice strong {
  margin-right: 8px;
  white-space: normal;
}
.ai-tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  padding-top: 10px;
  padding-bottom: 22px;
}
.ai-tools-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.ai-tools-nav a[aria-current="page"] {
  font-weight: 700;
  color: #245c41;
  border-color: #4d7d4b;
}
.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5c6c62;
}
.connection-state:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b9e97;
}
.connection-state[data-state="ready"]:before {
  background: #3a8155;
}
.connection-state[data-state="offline"]:before {
  background: #a86627;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.connection-row .link-button {
  font-size: 12px;
}
.link-button {
  padding: 4px 0;
  min-height: 35px;
  border: 0;
  border-bottom: 1px solid #98b18c;
  background: transparent;
  color: #245c41;
  font:
    600 13px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.link-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.ai-demo-page .button {
  min-height: 44px;
  font-size: 14px;
  border-radius: 7px;
}
.ai-demo-page .button.secondary {
  background: #fff;
}
.ai-demo-page textarea {
  font:
    16px/1.7 "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
}
.ai-demo-page textarea:focus-visible {
  outline: 3px solid #b28422;
  outline-offset: 3px;
}
.ai-demo-page .status:empty {
  display: none;
}
.ai-demo-page .status {
  font-size: 13px;
  line-height: 1.7;
}
.ai-demo-page .status[data-kind="error"] {
  color: #8b3f2c;
}
.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.field-meta span:last-child {
  white-space: nowrap;
}
.ai-demo-page .next-step {
  margin-top: 8px;
  margin-bottom: 36px;
  background: #edf3e6;
  border: 1px solid #d8e3ce;
  border-radius: 9px;
}
.ai-demo-page .next-step p {
  font-size: 14px;
  line-height: 1.75;
}
.ai-demo-page footer {
  background: #fafaf5;
}
.ai-demo-page [hidden] {
  display: none !important;
}
/* Inquiry workspace: keep the source and its reviewed result side by side. */
.ai-inquiry-page .lab-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: 24px;
  padding-top: 0;
  padding-bottom: 40px;
}
.ai-inquiry-page .panel {
  min-width: 0;
  padding: 25px;
  border-radius: 10px;
  box-shadow: none;
}
.ai-inquiry-page .panel h2 {
  font-size: 22px;
}
.ai-inquiry-page .panel > p {
  font-size: 14px;
  line-height: 1.7;
}
.ai-inquiry-page .example-buttons {
  margin: 17px 0;
  gap: 8px;
}
.ai-inquiry-page .example-buttons button {
  font-size: 13px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 6px;
}
.ai-inquiry-page .example-buttons button[aria-pressed="true"] {
  background: #245c41;
  border-color: #245c41;
}
.ai-inquiry-page .source-message {
  background: transparent;
  padding: 0;
  border: 0;
  margin-bottom: 19px;
}
.ai-inquiry-page .source-message label {
  margin-bottom: 9px;
  font-size: 14px;
}
.ai-inquiry-page .source-message textarea {
  display: block;
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #bfcdb9;
  border-radius: 6px;
  background: #fcfcf8;
}
.ai-inquiry-page .source-message > small {
  font-size: 12px;
  font-weight: 400;
  margin: 9px 0 0;
}
.inquiry-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 9px;
}
.inquiry-input-actions .link-button {
  font-size: 12px;
}
.ai-inquiry-page label {
  font-size: 14px;
}
.ai-inquiry-page select {
  font-size: 16px;
  min-height: 48px;
}
.ai-inquiry-page #preview {
  width: 100%;
}
.ai-inquiry-page .fine {
  font-size: 12px !important;
  line-height: 1.75;
}
.result-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.result-panel-head h2 {
  margin-bottom: 8px;
}
.result-panel-head .result-state {
  white-space: nowrap;
  font-size: 11px;
  color: #52664c;
  background: #edf3e6;
  border-radius: 4px;
  padding: 4px 8px;
}
.ai-inquiry-page .empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f9f2;
  border: 1px dashed #c4d1bc;
  padding: 30px 22px;
  margin-top: 18px;
}
.empty-symbol {
  width: 44px;
  height: 44px;
  color: #719060;
  margin-bottom: 17px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-inquiry-page .empty strong {
  font-size: 17px;
}
.ai-inquiry-page .empty p {
  font-size: 14px;
  line-height: 1.75;
  max-width: 320px;
}
.ai-inquiry-page .detail-list {
  font-size: 14px;
  grid-template-columns: 83px minmax(0, 1fr);
  gap: 11px 15px;
}
.ai-inquiry-page .detail-list dd {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.ai-inquiry-page .result-tags {
  margin-bottom: 20px;
}
.ai-inquiry-page .tag {
  font-size: 11px;
  text-transform: none;
}
.ai-inquiry-page .result-section h3 {
  font-size: 16px;
}
.ai-inquiry-page .questions {
  font-size: 14px;
  line-height: 1.75;
  padding-left: 20px;
}
.ai-inquiry-page .questions li {
  margin-bottom: 10px;
}
.ai-inquiry-page .draft {
  font-size: 15px;
  line-height: 1.8;
  background: #f5f7f0;
  padding: 18px;
  border: 1px solid #e0e6d9;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.ai-inquiry-page .review-note {
  font-size: 12px;
  line-height: 1.75;
}
.ai-inquiry-page .result-section details {
  border: 0;
}
.ai-inquiry-page .result-section summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  display: list-item;
  padding-top: 8px;
}
.ai-inquiry-page .button-row {
  align-items: center;
}
.ai-inquiry-page .copy-feedback {
  font-size: 12px;
  color: #2b6944;
}
.ai-inquiry-page #stale-note {
  padding: 12px 14px;
  background: #fff8e7;
  border-left: 3px solid #cba85e;
  border-radius: 3px;
  color: #775723;
  margin-top: 19px;
}
.ai-inquiry-page #output-panel[aria-busy="true"] #result {
  opacity: 0.55;
}
.ai-inquiry-page #output-panel:focus-visible {
  outline: 3px solid #7b995c;
  outline-offset: 4px;
}
.ai-demo-page .how-it-works {
  padding-top: 30px;
  padding-bottom: 32px;
}
.ai-demo-page .how-it-works h2 {
  font-size: 26px;
}
.ai-demo-page .explain-grid h3 {
  font-size: 16px;
}
.ai-demo-page .explain-grid p {
  font-size: 14px;
  line-height: 1.75;
}
@media (max-width: 850px) {
  .ai-inquiry-page .lab-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ai-inquiry-page .empty {
    min-height: 200px;
  }
  .ai-demo-page .ai-tools-nav {
    gap: 22px;
  }
}
@media (max-width: 760px) {
  .ai-demo-page .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }
  .ai-demo-page .demo-header {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 16px;
    gap: 10px;
  }
  .ai-demo-page .demo-header .lab-brand,
  .ai-demo-page .demo-header .hbts-logo {
    width: 210px;
  }
  .ai-demo-page .demo-header .back {
    justify-self: start;
    font-size: 13px;
  }
  .ai-demo-page .intro {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .ai-demo-page .intro h1 {
    font-size: clamp(29px, 7.8vw, 38px);
    letter-spacing: -0.9px;
  }
  .ai-demo-page .intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .ai-demo-page .demo-notice {
    font-size: 13px;
    line-height: 1.75;
  }
  .ai-demo-page .ai-tools-nav {
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 19px;
  }
  .ai-tools-nav a {
    font-size: 14px;
  }
  .ai-inquiry-page .panel {
    padding: 22px 18px;
  }
  .ai-inquiry-page .panel > p {
    font-size: 16px;
  }
  .ai-inquiry-page .detail-list,
  .ai-inquiry-page .questions {
    font-size: 16px;
  }
  .ai-inquiry-page .draft {
    font-size: 16px;
  }
  .ai-inquiry-page .field-meta {
    font-size: 12px;
  }
  .ai-inquiry-page .inquiry-input-actions {
    align-items: start;
  }
  .ai-demo-page .next-step {
    padding: 23px 20px;
  }
  .ai-demo-page .next-step p {
    font-size: 16px;
  }
  .ai-demo-page footer .wrap {
    font-size: 12px;
  }
  .ai-demo-page .explain-grid p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-demo-page * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) {
  .ai-demo-page .link-button,
  .ai-chat-page .shop-details summary {
    min-height: 44px;
  }
}
