.live-main { padding-bottom: clamp(1.6rem, 4vw, 3.1rem); }
.intro-copy { max-width: 45rem; }
.button-play:disabled { opacity: .68; cursor: default; box-shadow: none; }
.button-play:disabled:hover { background: var(--teal); }
.live-start-icon { border-color: currentColor; background: linear-gradient(currentColor, currentColor) top 3px center / 100% 1px no-repeat; flex: 0 0 auto; }
.live-status { min-height: 12rem; display: grid; justify-items: start; align-content: center; gap: .8rem; background: linear-gradient(126deg, #f8fcfd 15%, #ecf6f3); }
.live-chip { padding: .35rem .7rem; border-radius: 6px; background: #e1eee9; color: #195f4b; font-size: .9rem; font-weight: 700; }
.live-status[data-state="blocked"] .live-chip { background: #f9edda; color: #775321; }
.live-status[data-state="failed"] .live-chip { background: #f9e9e8; color: #893f3b; }
.live-message { max-width: 44rem; color: var(--ink); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.live-result { scroll-margin-top: 1rem; border-top: 1px solid var(--line); }
.live-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem 1.1rem; flex-wrap: wrap; }
.live-result-head > div { flex: 1 1 20rem; min-width: 0; }
.live-result-head h3 { margin-top: .25rem; }
.live-result-head a { margin-top: .1rem; }
.live-file { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; padding: .78rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: #f7fafb; }
.live-file .file-details { flex: 1 1 14rem; }
.live-file p { margin-top: .28rem; line-height: 1.5; overflow-wrap: anywhere; }
.live-file-type { width: auto; min-width: 38px; padding: .2rem .4rem; }
.live-result-grid { margin-bottom: 0; }
.live-body { font-size: .94rem; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-muted, .live-analysis-status { color: var(--muted); }
.live-analysis-status { margin: .68rem .75rem .25rem; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.live-requirements { max-height: 17.75rem; overflow: auto; }
.live-evidence { margin-top: .25rem; }
.live-evidence summary { color: var(--teal-dark); cursor: pointer; font-size: .83rem; }
.live-evidence blockquote { border-left: 2px solid var(--line); margin: .35rem 0 0; padding-left: .55rem; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 555px) {
  .live-status { min-height: 10rem; }
  .live-file { align-items: flex-start; }
}

.live-status:not([data-state="idle"]) { min-height: 0; padding-block: 1rem; gap: .5rem; }
.live-preview { margin: 0 clamp(.7rem, 2vw, 1.15rem) clamp(.85rem, 2vw, 1.2rem); overflow: hidden; border: 1px solid #c5d4dc; border-radius: 10px; background: #f5f8fa; }
.demo-grid[data-preview-active="true"] { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.demo-grid[data-preview-active="true"] .workflow { grid-row: 1; padding-block: .65rem; }
.demo-grid[data-preview-active="true"] .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; margin-top: .42rem; }
.demo-grid[data-preview-active="true"] .steps li { align-items: center; margin: 0; padding-block: .35rem; }
.demo-grid[data-preview-active="true"] .steps p { display: none; }
.live-main:has(.demo-grid[data-preview-active="true"]) .intro { padding-block: clamp(1.15rem, 3vw, 2rem); }
.live-preview-toolbar { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .45rem .75rem; padding: .55rem .75rem; border-bottom: 1px solid #cfdbe2; background: #e9eff3; }
.live-preview-toolbar h3 { display: flex; align-items: center; gap: .4rem; font-size: .88rem; white-space: nowrap; }
.live-preview-address { min-width: 0; padding: .28rem .55rem; overflow: hidden; border: 1px solid #d2dee5; border-radius: 6px; background: #f7fafb; color: #374f5d; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.live-preview-mode { color: #506671; font-size: .84rem; white-space: nowrap; }
.live-preview-expand { min-height: 32px; padding: .32rem .55rem; font-size: .84rem; }
.live-preview-surface { position: relative; background: #f7fafb; }
.live-preview-surface img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.live-preview-wait { min-height: clamp(10rem, 30vw, 22rem); display: grid; place-items: center; padding: .6rem; color: var(--muted); text-align: center; }
.live-preview-focus { position: absolute; z-index: 1; border: 2px solid #b57000; border-radius: 3px; background: #ffbd3824; box-shadow: 0 0 0 1px #fff4c1; pointer-events: none; }
.live-preview-focus[data-action="click"] { border-color: #995607; background: #ffd5733d; }
.live-preview-pointer { position: absolute; z-index: 2; width: 19px; height: 24px; pointer-events: none; }
.live-preview-pointer::before, .live-preview-pointer::after { content: ""; position: absolute; z-index: 1; clip-path: polygon(0 0, 99% 64%, 61% 69%, 76% 100%, 54% 100%, 39% 75%, 8% 90%); }
.live-preview-pointer::before { inset: 0; background: #fffdf5; }
.live-preview-pointer::after { inset: 2px 3px 3px 2px; background: #172d3a; }
.live-preview-click-pulse { position: absolute; top: 0; left: 0; width: 25px; height: 25px; visibility: hidden; border: 3px solid #a65c09; border-radius: 50%; background: #ffd77753; box-shadow: 0 0 0 1px #fff4c1; transform: translate(-50%, -50%); }
.live-preview-pointer[data-action="click"] .live-preview-click-pulse { visibility: visible; animation: live-preview-click .56s ease-out both; }
@keyframes live-preview-click {
  0% { transform: translate(-50%, -50%) scale(.64); opacity: 1; }
  45% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: .58; }
}
@media (prefers-reduced-motion: reduce) {
  .live-preview-pointer[data-action="click"] .live-preview-click-pulse { animation: none; }
}
body:has(.live-preview[data-expanded]) { overflow: hidden; }
.live-preview[data-expanded] { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; background: #132732; }
.live-preview[data-expanded] .live-preview-surface { width: min(100%, calc(var(--frame-ratio, 1.5) * (100dvh - 5rem))); margin: auto; }
@media (max-width: 555px) {
  .demo-grid[data-preview-active="true"] .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-preview-toolbar { grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem .48rem; padding-inline: .6rem; }
  .live-preview-address { grid-column: 1 / -1; grid-row: 2; }
}
