/* Demo answers (/demo): saved answers shown read-only through the normal thread. */
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 9px max(24px, calc((100% - 1040px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface-muted, #f6f8f9); color: var(--ink); font-size: 13px; line-height: 1.45; }
.demo-banner[hidden] { display: none; }
.demo-banner strong { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 3px; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.demo-banner a { flex: none; color: var(--green); font-weight: 600; }

.demo-notice { display: none; }
/* 19 Nov: no banner; the demo uses the normal shell, minus the composer. */
.demo-mode .demo-banner { display: none !important; }
.demo-mode .chat-main { grid-template-rows: minmax(0, 1fr) auto; }
.demo-mode .home-chat-thread { grid-row: 1; padding-bottom: 32px; }
.demo-mode .demo-notice { display: block; grid-row: 2; margin: 0; padding: 8px max(24px, calc((100% - 1040px) / 2)); border-top: 1px solid var(--line); background: var(--canvas, #fff); color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.demo-notice a { color: inherit; }

.demo-mode #chatComposer,
.demo-mode #mobileNewChatButton,
.demo-mode .sidebar-section-add,
.demo-mode #monitoringSeeMore,
.demo-mode #monitoringSeeAll,
.demo-mode .monitoring-topic-more,
.demo-mode .tester-access { display: none !important; }

.demo-landing { max-width: 820px; padding-top: 28px; }
.demo-card-list { display: grid; gap: 10px; }
.demo-card { display: grid; gap: 6px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.demo-card:hover, .demo-card:focus-visible { border-color: var(--green); background: var(--accent-tint, #eff6fc); }
.demo-card strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; font-size: 16px; font-weight: 600; line-height: 1.4; }
.demo-card-caption { color: var(--ink); font-size: 14px; line-height: 1.5; }
.demo-card small { color: var(--muted); font-size: 12px; }
.demo-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); line-height: 1.55; }
.demo-empty strong { color: var(--ink); }
.demo-empty p { margin: 6px 0 0; }

.demo-export-dialog { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface, #fff); }
.demo-export-dialog::backdrop { background: rgb(15 33 28 / 25%); }
.demo-export-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-export-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; }
.demo-export-dialog header button { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.demo-export-dialog p { color: var(--muted); line-height: 1.5; }
.demo-export-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-export-formats button { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; text-align: left; cursor: pointer; }
.demo-export-formats button:hover { border-color: var(--green); }
.demo-export-formats strong { color: var(--ink); font-weight: 600; }
.demo-export-formats small { color: var(--muted); }

@media (max-width: 768px) {
  .demo-mode .chat-main { grid-template-rows: auto minmax(0, 1fr) auto; }
  .demo-mode .mobile-chat-topbar { grid-row: 1; }
  .demo-mode .home-chat-thread { grid-row: 2; }
  .demo-mode .demo-notice { grid-row: 3; padding: 6px 12px; font-size: 11px; }
  .demo-landing { padding-top: 12px; }
}
.demo-hidden-artifacts { margin: 4px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface-muted, #f6f8f9); color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Sign-in screen entry point and the demo home's two sections. */
.auth-demo-link { display: block; margin: 14px 0 4px; padding: 11px 14px; border: 1px solid var(--green); border-radius: 6px; color: var(--green); font-weight: 600; text-align: center; text-decoration: none; }
.auth-demo-link:hover, .auth-demo-link:focus-visible { background: var(--accent-tint, #eff6fc); }
.demo-section { margin-top: 26px; }
.demo-section h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
a.demo-card { text-decoration: none; }
.demo-history-label { margin: 14px 0 4px 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.demo-mode .monitoring-view { grid-row: 1; }
@media (max-width: 768px) { .demo-mode .monitoring-view { grid-row: 2; } }

/* Demo answers show charts and tables read-only: no saved views, renditions or AI filter. */
.demo-mode [data-use-artifact-view],
.demo-mode [data-rendition-artifact],
.demo-mode .artifact-workbench-actions a.secondary-action,
.demo-mode [data-artifact-natural-form],
.demo-mode .artifact-export-guidance { display: none !important; }
.demo-card .demo-card-caption { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
