/* live agent demos: shared by index.html and demo.html */
.demo.live { padding: 0; display: flex; flex-direction: column; min-height: 0; }
.dm-top {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.dm-orb {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9fff0 0, var(--mint) 40%, var(--teal-700) 100%);
  box-shadow: 0 0 0 5px rgba(63,216,182,.18);
}
.dm-top.busy .dm-orb { animation: dmPulse 1s ease-in-out infinite; }
@keyframes dmPulse { 50% { box-shadow: 0 0 0 9px rgba(63,216,182,.05), 0 0 22px rgba(63,216,182,.7); } }
.dm-status { flex: 1; font-size: 14.5px; color: #d5ece7; min-height: 1.5em; }
.dm-btn {
  flex: none; background: rgba(255,255,255,.1); color: #eaf6f3; border: 0; border-radius: 999px; min-height: 34px;
  padding: 0 12px; font: 500 13px var(--font-body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.dm-btn:hover { background: rgba(255,255,255,.2); }
.dm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 16px 18px; flex: 1; }
.dm-col { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.dm-label { font-size: 12.5px; color: #9cc7bf; }
.dm-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.dm-card.dim { opacity: .55; }
.dm-card .meta { color: var(--slate); font-size: 12.5px; }
.dm-foot { font-size: 12.5px; color: #9cc7bf; padding: 0 18px 14px; }
.dm-in { animation: dmIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes dmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dm-flash { animation: dmFlash 1.2s ease both; }
@keyframes dmFlash { 0% { background: #c9f5ea; } 100% { background: transparent; } }

/* docs */
.dm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dm-chip { font-size: 12.5px; border-radius: 999px; padding: 3px 10px; background: #eef3f2; color: var(--ink); transition: background .3s, color .3s; }
.dm-chip.tag { background: var(--teal-700); color: #fff; }
.dm-chip.warn { background: #fff1b8; color: #5c4b0c; }
.dm-tree { font-size: 13.5px; line-height: 1.5; }
.dm-tree .row { padding: 3px 6px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.dm-tree .ico { width: 14px; height: 11px; border-radius: 2px 2px 3px 3px; background: #f2c200; flex: none; position: relative; top: 1px; }
.dm-tree .file .ico { background: #cfe3df; height: 13px; width: 11px; border-radius: 2px; }
.dm-log { display: grid; gap: 6px; }
.dm-log div { font-size: 13px; background: rgba(255,255,255,.08); color: #eaf6f3; border-radius: 10px; padding: 7px 10px; }
.dm-log .ok::before { content: "✓ "; color: var(--mint); font-weight: 700; }
.dm-log .warn::before { content: "! "; color: var(--lemon); font-weight: 700; }

/* social */
.dm-chat { background: #ece5dd; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dm-msg { max-width: 88%; border-radius: 12px; padding: 8px 10px; font-size: 13.5px; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.dm-msg.me { background: #d9fdd3; align-self: flex-start; border-start-start-radius: 4px; }
.dm-msg.bot { background: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.dm-msg .who { font-size: 11.5px; color: var(--teal-700); font-weight: 600; }
.dm-msg time { display: block; font-size: 10.5px; color: #667; text-align: end; }
.dm-photo { height: 84px; border-radius: 8px; margin-bottom: 6px; background:
  radial-gradient(circle at 70% 35%, #ffe9a8 0 16%, transparent 17%),
  radial-gradient(ellipse at 45% 80%, #7a3e2b 0 30%, transparent 31%),
  linear-gradient(160deg, #f8d7c4, #e9a98c 60%, #c9765a); }
.dm-dots { display: inline-flex; gap: 4px; }
.dm-dots i { width: 6px; height: 6px; border-radius: 50%; background: #889; animation: dmDot 1s infinite; }
.dm-dots i:nth-child(2) { animation-delay: .15s; } .dm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dmDot { 50% { opacity: .2; transform: translateY(-2px); } }
.dm-acts { display: flex; gap: 6px; margin-top: 6px; }
.dm-acts span { font-size: 12.5px; border: 1px solid #b8c7c4; border-radius: 999px; padding: 3px 10px; color: var(--teal-900); transition: background .2s; }
.dm-acts span.press { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.dm-post { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; }
.dm-thumb { width: 46px; height: 46px; border-radius: 8px; background:
  radial-gradient(ellipse at 45% 80%, #7a3e2b 0 30%, transparent 31%), linear-gradient(160deg, #f8d7c4, #c9765a); }
.dm-thumb.tall { height: 64px; }
.dm-post b { font-size: 13.5px; }
.dm-post p { margin: 2px 0 0; font-size: 13px; min-height: 2.6em; color: var(--ink); }
.dm-pill { display: inline-block; font-size: 11.5px; border-radius: 999px; padding: 1px 9px; background: #eef3f2; color: var(--slate); margin-top: 4px; }
.dm-pill.live { background: var(--teal-700); color: #fff; }

/* seo */
.dm-kw { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; font-size: 13px; align-items: center; }
.dm-kw .h { font-size: 11.5px; color: var(--slate); }
.dm-kw .r { display: contents; }
.dm-kw .r > * { padding: 4px 0; transition: color .3s; }
.dm-kw .r.pick > * { color: var(--teal-700); font-weight: 600; }
.dm-bar { width: 54px; height: 6px; border-radius: 9px; background: #e5ecea; overflow: hidden; }
.dm-bar i { display: block; height: 100%; background: #f2a541; }
.dm-art h4 { font: 600 15.5px/1.35 var(--font-head); margin: 0 0 8px; min-height: 2.7em; }
.dm-art ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; min-height: 104px; }
.dm-art li { font-size: 13px; padding-inline-start: 14px; position: relative; }
.dm-art li::before { content: "H2"; position: absolute; inset-inline-start: -8px; font-size: 9px; color: var(--teal-700); font-weight: 700; top: 3px; }
.dm-score { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.dm-score .track { flex: 1; height: 9px; border-radius: 9px; background: #e5ecea; overflow: hidden; }
.dm-score .fill { display: block; height: 100%; width: 0; border-radius: 9px; background: #e0607e; transition: width .25s linear, background .4s; }
.dm-score b { font: 600 20px var(--font-head); min-width: 2ch; text-align: center; }
.dm-rank { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.dm-rank b { font: 600 26px var(--font-head); color: var(--teal-700); }

@media (max-width: 600px) {
  .dm-body { grid-template-columns: minmax(0, 1fr); }
  .dm-col { min-height: 0; }
  .dm-col.tall { min-height: 250px; }
  .dm-btn.fs { display: none; }
}

/* presentation page */
.present { min-height: 100vh; background: var(--teal-950); color: #eaf6f3; display: flex; flex-direction: column; }
.present header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4vw; flex-wrap: wrap; }
.present .logo { color: #fff; }
.present .logo-by { color: #a9cfc8; }
.present nav { display: flex; gap: 8px; flex-wrap: wrap; }
.present nav button {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #4f8a82; background: transparent; color: #eaf6f3;
  font: 500 16px var(--font-body); cursor: pointer;
}
.present nav button[aria-selected=true] { background: var(--mint); border-color: var(--mint); color: var(--teal-950); }
.present main { flex: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 4vw; align-items: center; padding: 2vw 4vw 4vw; }
.present h1 { font-size: clamp(34px, 3.6vw, 60px); }
.present .lede { color: #b9dcd5; font-size: clamp(18px, 1.4vw, 24px); }
.present .stage .demo { font-size: 1.15em; }
.present .stage .dm-card, .present .stage .dm-msg, .present .stage .dm-kw, .present .stage .dm-tree { font-size: 16px; }
.present .stage .dm-col { min-height: 380px; }
.present .keys { font-size: 13px; color: #8fb9b1; }
@media (max-width: 900px) { .present main { grid-template-columns: minmax(0, 1fr); } }
