.ot-demo {
  --ot-demo-navy: var(--oa-navy, #0f1731);
  --ot-demo-text: #18223c;
  --ot-demo-muted: #49556d;
  --ot-demo-line: #dce2ec;
  margin-block: clamp(30px, 5vw, 64px);
  padding: clamp(14px, 3vw, 36px);
  color: var(--ot-demo-text);
  background: #f5f7fb;
  border: 1px solid var(--ot-demo-line);
  border-radius: 24px;
  text-align: start;
  scroll-margin-block-start: 128px;
}

.ot-demo *, .ot-demo *::before, .ot-demo *::after { box-sizing: border-box; }
.ot-demo [hidden] { display: none !important; }
.ot-demo .ot-demo__intro { max-inline-size: 67ch; margin-block-end: 20px; }
.ot-demo .ot-demo__label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border: 1px solid #d3dbea;
  border-radius: 30px;
  background: #e8edf7;
  color: #2b405f;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
}
.ot-demo .ot-demo__title { margin: 0 0 7px; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.42; }
.ot-demo .ot-demo__text, .ot-demo .ot-demo__hint, .ot-demo .ot-demo__status {
  color: var(--ot-demo-muted);
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
}
.ot-demo .ot-demo__hint { font-size: .83rem; }
.ot-demo .ot-demo__panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ot-demo .ot-demo__panel {
  min-inline-size: 0;
  padding: clamp(13px, 2vw, 22px);
  background: #fff;
  border: 1px solid var(--ot-demo-line);
  border-radius: 17px;
  overflow-wrap: anywhere;
}
.ot-demo .ot-demo__panel-title { margin: 0 0 13px; color: var(--ot-demo-navy); font-size: 1rem; font-weight: 750; line-height: 1.6; }
.ot-demo .ot-demo__preview {
  margin-block: 0 12px;
  padding: 10px 12px;
  color: var(--ot-demo-text);
  background: #f2f5fa;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.65;
}
.ot-demo .ot-demo__preview strong { display: block; }
.ot-demo .ot-demo__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 7px 12px;
  margin: 0 0 11px;
  font-size: .88rem;
  line-height: 1.5;
}
.ot-demo select {
  min-block-size: 44px;
  min-inline-size: 68px;
  padding: 6px 9px;
  border: 1px solid #aab5c9;
  border-radius: 9px;
  background: #fff;
  color: var(--ot-demo-text);
  font: inherit;
  font-size: 1rem;
}
.ot-demo .ot-demo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ot-demo-navy);
  border-radius: 10px;
  color: #fff;
  background: var(--ot-demo-navy);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.ot-demo .ot-demo__button--secondary {
  color: var(--ot-demo-navy);
  background: #fff;
  border-color: #aab5c9;
}
.ot-demo .ot-demo__button:disabled { opacity: .55; cursor: default; }
.ot-demo .ot-demo__button:focus-visible, .ot-demo select:focus-visible {
  outline: 2px solid #ad4100;
  outline-offset: 3px;
}
.ot-demo .ot-demo__button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ot-demo .ot-demo__footer {
  margin-block-start: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 13px;
}
.ot-demo .ot-demo__status { flex: 1 1 190px; }
.ot-demo .ot-demo__empty {
  padding: 10px 11px;
  border: 1px dashed #bac5d7;
  border-radius: 10px;
  color: var(--ot-demo-muted);
  font-size: .88rem;
  line-height: 1.65;
}
.ot-demo .ot-demo__order {
  padding: 11px;
  border: 1px solid #dce6de;
  border-radius: 11px;
  background: #f5faf6;
}
.ot-demo .ot-demo__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: #ddefe1;
  color: #20542c;
  font-weight: 700;
  font-size: .77rem;
  line-height: 1.6;
}
.ot-demo .ot-demo__order-detail { margin: 10px 0 0; padding: 0; }
.ot-demo .ot-demo__order-detail > div { margin-block-end: 5px; }
.ot-demo .ot-demo__order-detail dd { margin: 0; font-weight: 700; }
.ot-demo .ot-demo__transcript { display: grid; gap: 7px; margin: 9px 0 11px; padding: 0; list-style: none; }
.ot-demo .ot-demo__message {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ot-demo-text);
  background: #f2f5fa;
  font-size: .83rem;
  line-height: 1.65;
}
.ot-demo .ot-demo__message strong { display: block; color: #263e65; }
.ot-demo .ot-demo__message--staff { background: #eaf5ec; }
.ot-demo .ot-demo__thread-id { display: block; color: var(--ot-demo-muted); font-size: .78rem; line-height: 1.6; }

@media (max-width: 670px) {
  .ot-demo { border-radius: 18px; }
  .ot-demo .ot-demo__panels { grid-template-columns: minmax(0, 1fr); }
}
