.chat-guide {
  background: linear-gradient(180deg, #f0f5ff, #fff 75%);
  color: #172b49;
}
.chat-guide [hidden] { display: none !important; }
.chat-header, .chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 16px;
}
.chat-header > a:last-child, .chat-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1048b2;
  font-weight: 700;
}
.chat-header .rw-word .b { color: #1459d9; }
.chat-main { display: grid; gap: 24px; }
.chat-guide .container { max-width: 1160px; }
.chat-hero, .chat-panel {
  border: 1px solid #ccd9ef;
  border-radius: 22px;
  box-shadow: 0 12px 40px -24px #183b78;
  padding: clamp(20px, 4vw, 40px);
}
.chat-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 28px;
  background: radial-gradient(ellipse at 90% 0%, #3268d2, transparent 58%),
    linear-gradient(135deg, #10264c, #1c4184);
  color: #fff;
}
.chat-hero h1, .chat-panel h2, .chat-examples h2 {
  color: inherit;
  line-height: 1.18;
  font-weight: 750;
}
.chat-hero h1 { font-size: clamp(34px, 5.4vw, 60px); max-width: 14ch; }
.chat-examples h2 { font-size: clamp(24px, 3vw, 33px); }
.chat-panel h2, .chat-tools h2 { font-size: clamp(22px, 2.5vw, 27px); }
.chat-hero p, .chat-panel p { margin-block: 12px; line-height: 1.6; }
.chat-hero .btn { margin-top: 8px; }
.chat-hero .btn { background: #fff; color: #164488; }
.chat-hero .btn:hover { background: #eaf2ff; color: #10264c; }
.chat-steps {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 4px 22px;
  border: 1px solid #7899d5;
  border-radius: 16px;
  background: #10264c;
}
.chat-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 14px; padding-block: 15px; }
.chat-steps li + li { border-top: 1px solid #486599; }
.chat-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #234984;
  color: #e5f0ff;
  font-weight: 750;
}
.chat-steps strong, .chat-steps small { display: block; line-height: 1.45; }
.chat-steps small { margin-top: 3px; color: #d2e3ff; font-size: 14px; }
.chat-panel { background: #fff; }
.chat-examples { scroll-margin-top: 16px; }
.chat-examples > h2 { margin: 5px 0 14px; }
.chat-layout { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.chat-layout:has(> .chat-tools[data-visible]) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.chat-layout > .chat-panel { min-width: 0; padding: clamp(17px, 3vw, 24px); }
.chat-measurement, .chat-tools, .chat-trial { background: #edf4ff; }
.chat-measurement[data-configured] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 18px;
}
.chat-measurement[data-configured] .chat-status { margin-block: 0; }
.chat-measurement[data-configured] .chat-measurement-details { flex-basis: 100%; }
.chat-example #industry-controls { max-width: 25rem; }
.chat-example p, .chat-measurement p { max-width: 70ch; }
.chat-example label, .chat-manual label { display: block; font-weight: 700; margin-bottom: 6px; }
.chat-example select, .chat-manual textarea {
  width: 100%;
  border: 1px solid #7896c5;
  border-radius: 10px;
  background: #fff;
  color: #172b49;
  font: inherit;
  padding: 9px 12px;
}
.chat-example select { min-height: 44px; margin-bottom: 10px; }
.chat-example .chat-sample {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  max-width: none;
  margin-block: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #edf4ff;
  color: #36537c;
  font-size: 14px;
}
.chat-sample small { flex-basis: 100%; font-size: 13px; }
.chat-topics details, .chat-tools details { border-top: 1px solid #d7e1f1; }
.chat-topics details > p { margin: 0 0 12px; }
.chat-tools { display: none; gap: 8px; }
.chat-tools[data-visible] { display: grid; }
.chat-measurement-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chat-actions { display: grid; gap: 9px; }
.chat-actions .chat-note, .chat-actions .chat-status { margin: 0; }
.chat-note { color: #36537c; font-size: 14px; }
.chat-basic { color: #1048b2; font-weight: 700; text-decoration: underline; padding-block: 10px; }
.chat-guide .btn { min-height: 48px; border-radius: 11px; text-align: center; }
.chat-guide .btn[data-variant="primary"] { background: #1459d9; color: #fff; }
.chat-guide .btn[data-variant="primary"]:hover { background: #1048b2; color: #fff; box-shadow: none; }
.chat-guide .btn[data-variant="secondary"] { background: #fff; border-color: #7896c5; color: #1048b2; }
.chat-guide :focus-visible { outline: 3px solid #2874ef; outline-offset: 3px; }
.chat-guide summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 700; color: #1048b2; }
.chat-status:empty { display: none; }
.chat-status { font-weight: 700; }
.chat-manual textarea { display: block; resize: vertical; }
.chat-trial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.chat-trial p { margin-bottom: 0; }
.chat-footer { justify-content: flex-start; }
@media (max-width: 720px) {
  .chat-hero, .chat-layout:has(> .chat-tools[data-visible]) { grid-template-columns: minmax(0, 1fr); }
  .chat-hero { gap: 16px; }
  .chat-trial .btn, .chat-actions .btn, .chat-measurement .btn { width: 100%; }
}
@media (max-width: 455px) {
  .chat-hero .btn { width: 100%; }
  .chat-steps { padding-inline: 12px; }
  .chat-steps li { padding-block: 9px; gap: 9px; }
}

.chat-examples-heading { margin-top: 6px; }
.chat-examples-heading h1 {
  max-width: 25ch;
  margin: 10px 0;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 750;
  line-height: 1.14;
}
.chat-examples-heading p { max-width: 58ch; line-height: 1.6; }
.chat-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1048b2;
  font-weight: 700;
}
.chat-overview-example { padding-top: 10px; border-top: 1px solid #d7e1f1; }
.chat-overview-example h3 { margin-block: 4px 0; font-size: 18px; color: inherit; }
.chat-overview-example p { margin-bottom: 0; }
