/* Product demo, second part: the left panel (chat, change log, catalogue), the approve sheet, the notices and the phone layout. */
.demo-side { padding: 16px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.demo-chatview { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 12px; }
.demo-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.demo-bubble { margin: 0; background: var(--surface-2); color: var(--ink); border-radius: 14px; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; transition: opacity .4s, transform .4s; }
.demo-bubble[data-on="false"], .demo-echo[data-on="false"] { opacity: 0; transform: translateY(8px); }
.demo-echo { margin: 0; background: var(--surface-2); border-radius: 12px; padding: 9px 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; transition: opacity .5s, transform .5s; }
.demo-echo strong { color: #464C5A; font-weight: 600; }
/* Speakers: the contractor's input right and navy-tinted, Briefbee's replies left on white with an orange edge. */
.demo-speaker { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; color: #5B6273; }
.demo-speaker svg { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.demo-bubble { align-self: flex-end; max-width: 94%; background: #E9ECF4; border-bottom-right-radius: 4px; }
.demo-bubble .demo-speaker { justify-content: flex-end; }
.demo-echo { align-self: flex-start; max-width: 94%; background: #fff; border: 1px solid #E2DFD9; border-left: 3px solid #FCA311; border-bottom-left-radius: 4px; color: #464C5A; }
.demo-speaker-bee { color: #14213D; }
.demo-log { display: grid; gap: 8px; }
.demo-log-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid #E2DFD9; background: var(--surface-2); font-size: 13px; line-height: 1.4; transition: opacity .4s, transform .4s; }
.demo-log-entry[data-on="false"] { opacity: 0; transform: translateY(8px); }
.demo-log-entry u { flex: none; color: var(--navy); font-weight: 600; }

.demo-input-wrap { display: grid; }
.demo-input { width: 100%; background: var(--surface); border: 1px solid #D6D3CA; border-radius: 14px; padding: 10px 10px 8px 14px; display: grid; gap: 4px; }
.demo-input p { margin: 0; color: #7E8699; font-size: 13.5px; line-height: 1.45; min-height: 3em; }
.demo-input-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.demo-mic { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); }
.demo-mic svg { width: 18px; height: 18px; }
.demo-send { width: 40px; height: 40px; border-radius: 50%; background: #8A93A8; color: #fff; display: grid; place-items: center; }
.demo-send svg { width: 18px; height: 18px; }

/* the catalogue takes the panel while a line is added; the quote waits, dimmed */
.demo-catalog { display: none; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow: hidden; }
.demo[data-view="catalog"] .demo-chatview { display: none; }
.demo[data-view="catalog"] .demo-catalog { display: flex; animation: demo-in .3s both; }
.demo[data-view="catalog"] :is(.demo-thead, .demo-rows, .demo-intro, .demo-sums, .demo-doc-title, .demo-doc-pills) { opacity: .4; }
.demo-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-cat-head b { display: block; font: 600 22px Outfit, sans-serif; color: var(--ink); line-height: 1.2; }
.demo-cat-head small { color: var(--muted); font-size: 13px; }
.demo-done { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--brand-navy); color: #fff; font-weight: 600; font-size: 14px; }
.demo-cat-search { display: none; }
.demo-cat-label { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.demo-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #E3E1DA; border-radius: 12px; background: var(--surface); min-width: 0; }
.demo-cat i, .demo-result i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--navy); }
.demo-cat i svg, .demo-result i svg { width: 17px; height: 17px; }
.demo-cat b { display: block; font-size: 13.5px; line-height: 1.25; color: var(--ink); }
.demo-cat small { color: var(--muted); font-size: 12px; }
.demo-cat-found[data-on="false"], .demo-cat-home[data-on="false"] { display: none; }
.demo-result { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, transform .15s; }
.demo-result + .demo-result { margin-top: 2px; }
.demo-result[data-pressed="true"] { background: var(--navy-soft); transform: scale(.98); }
.demo-result:first-of-type { background: var(--surface-2); }
.r-t { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.r-t b { font-size: 14px; line-height: 1.3; color: var(--ink); }
.r-p { flex: none; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-cat-own { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.demo-cat-own b { color: var(--navy); font-size: 14px; }

/* the "Voor je goedkeurt" sheet with the email preview: a dialog on a wide screen, a bottom sheet on a phone */
.demo-sheet { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 18px; background: rgba(15,23,18,.35); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.demo-sheet[data-open="true"] { opacity: 1; visibility: visible; }
.demo-sheet-card { width: 100%; max-width: 520px; background: var(--surface); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); display: flex; flex-direction: column; transform: translateY(10px); transition: transform .25s; }
.demo-sheet[data-open="true"] .demo-sheet-card { transform: none; }
.demo-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 600 17px Outfit, sans-serif; color: var(--ink); }
.demo-sheet-x { font-size: 22px; line-height: 1; color: var(--muted); }
.demo-sheet-body { padding: 14px 20px; display: grid; gap: 8px; }
.demo-sheet-title { margin: 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.demo-sheet-field { display: grid; gap: 3px; font-size: 13px; }
.demo-sheet-label { color: var(--muted); font-weight: 500; }
.demo-sheet-value { color: var(--ink); overflow-wrap: anywhere; }
.demo-sheet-value.box { border: 1px solid #D6D3CA; border-radius: 10px; padding: 8px 11px; font-size: 14px; line-height: 1.45; }
.demo-sheet-value.msg { white-space: pre-line; max-height: 8.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.demo-sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); }
.demo:not([data-live]) .demo-sheet { display: none; }

/* the app's corner notices */
/* bottom left, over the chat panel's empty space: the totals stay readable */
.demo-toast { position: absolute; left: 84px; bottom: 16px; z-index: 6; display: flex; align-items: flex-start; gap: 10px; max-width: min(300px, calc(100% - 32px)); padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--brand-navy); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 28px -8px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.demo-toast[data-kind="sent"], .demo-toast[data-kind="accepted"] { opacity: 1; transform: none; }
@media (max-width: 1099px) { .demo-toast { left: 16px; } }
.demo-toast-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: var(--brand-navy); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.demo-toast-text { flex: 1; min-width: 0; padding-top: 1px; }
.demo-toast-action { flex: none; color: var(--orange); font-weight: 600; text-decoration: underline; }
.demo-toast[data-kind="sent"] .demo-toast-action { display: none; }
.demo-undo-toast { display: none; }

/* phone: the header card, the quote and the bottom bar; the request, the quote and the catalogue take turns while it plays */
@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; row-gap: 10px; }
  .demo-controls { grid-column: 1; grid-row: 5; }
  .demo-seek { margin: -8px 0; }
  .demo-input-wrap { display: none; }
  .demo-app { border-radius: 16px; }
  .demo-main { padding: 10px; gap: 10px; }
  .demo-top { display: contents; }
  .demo-who { order: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
  .demo-stage { order: 1; grid-template-columns: 1fr; }
  .demo-dock { order: 2; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .demo .total > span { font-size: 24px; }
  .demo .total { text-align: left; }
  .demo-more { display: none; }
  .demo-actions { justify-content: stretch; }
  .demo-go { position: relative; flex: 1; min-height: 52px; padding: 0 20px 0 64px; font-size: 15px; }
  .demo-go::before { content: "→"; position: absolute; left: 5px; top: 5px; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-size: 18px; }
  .demo-save { min-height: 44px; }
  .demo:not([data-live]) .demo-steps { grid-template-columns: 1fr; }
  .demo:not([data-live]) .demo-side { margin-bottom: 0; }
  .demo[data-live] .demo-stage { height: 420px; }
  .demo[data-live][data-view="doc"] .demo-side, .demo[data-live][data-view="side"] .demo-doc, .demo[data-live][data-view="catalog"] .demo-doc { display: none; }
  .demo[data-live][data-view="catalog"] .demo-side, .demo[data-live][data-view="side"] .demo-side { flex: 1; }
  .demo[data-live] .demo-stage > * { animation: demo-in .4s both; }
  .demo[data-live] .demo-steps li:not([data-state="active"]) .lbl { display: none; }
  .demo[data-live] .demo-steps li:not([data-state="active"]) { padding-right: 8px; }
  .demo-input p { min-height: 2.9em; }
  .demo-cat-search { display: flex; }
  .demo-scroll { padding: 16px 14px 14px; }
  .demo-doc-pills { min-height: 0; margin-left: 0; }
  .demo[data-live] .demo-chk[data-state="none"] { display: none; }
  .demo-thead { display: none; }
  .demo-row { grid-template-columns: 26px 22px minmax(0, 1fr) auto; grid-template-areas: "mk nr ti tot" "mk . q q" "mk d d d" "mk ch ch ch"; column-gap: 8px; row-gap: 2px; padding: 10px 0; }
  .demo-row .nr { grid-area: nr; }
  .demo-row .q { text-align: left; grid-area: q; color: var(--muted); font-size: 13px; }
  .demo-row .a, .demo-row .v { display: none; }
  .demo-row .ch { text-align: left; margin-top: 4px; }
  .demo-row .ti { padding-right: 4px; }
  .demo-slot-cap span { display: none; }
  .demo-sums > div { grid-template-columns: 1fr auto; }
  .demo-sums { justify-content: stretch; }
  .demo-check-q { font-size: 17px; }
  .demo-opts { width: 100%; }
  .demo-opt { flex: 1; justify-content: center; }
  .demo-check-foot { display: none; }
  .demo-caption { grid-column: 1; min-height: 44px; grid-row: 4; }
  .demo-sheet { align-items: flex-end; padding: 0; }
  .demo-sheet-card { max-width: none; border-radius: 16px 16px 0 0; }
  .demo-sheet-foot { flex-direction: column-reverse; align-items: stretch; padding: 12px 16px; }
  .demo-sheet-foot > * { justify-content: center; min-height: 44px; }
  .demo-sheet-head, .demo-sheet-body { padding-inline: 16px; }
  .demo-toast { left: 12px; right: 12px; top: 12px; bottom: auto; max-width: none; }
  .demo-undo-toast { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 6; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-navy); color: #fff; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
  .demo-undo-toast[data-on="true"] { opacity: 1; transform: none; }
  .demo-undo-toast u { flex: none; color: var(--orange); font-weight: 600; }
  .demo-btn { min-height: 44px; }
}
.demo-chat:has([data-log][data-on="true"]) .demo-echo { display: none; }
