/* The nine agent demos on What we do (scripts/demos/integrate.mjs). Built from scripts/demos/. */

/* ---- Paper Chaser ---- */
/* ---- Paper Chaser demo (scripts/demos/paper-chaser.html) ---- */
#ld-paper-chaser .lo-crm-head { gap: 12px 16px; flex-wrap: wrap; }
#ld-paper-chaser .ld-paper-chaser-count { margin-left: auto; padding: 4px 12px; border-radius: 999px; border: 1px solid #E4E9F5; background: #fff; font-size: 12px; font-weight: 600; color: #6B7280; white-space: nowrap; }
#ld-paper-chaser .lo-crm-colhead > div:first-child { color: #9CA3AF; }
#ld-paper-chaser .lo-crm-row { align-items: center; }
#ld-paper-chaser .lo-crm-label { padding-top: 0; color: #374151; }

#ld-paper-chaser .ld-paper-chaser-pill { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
#ld-paper-chaser .ld-paper-chaser-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#ld-paper-chaser .ld-paper-chaser-in { background: #E8F6EE; color: #15803D; }
#ld-paper-chaser .ld-paper-chaser-out { background: #FDF0E7; color: #C2410C; }
#ld-paper-chaser .ld-paper-chaser-when { font-size: 13px; }
#ld-paper-chaser .lo-crm-before-val .ld-paper-chaser-when { color: #C2410C; }
#ld-paper-chaser .lo-crm-after-val .ld-paper-chaser-when { color: #4B5563; }
#ld-paper-chaser .ld-paper-chaser-note { display: block; margin-top: 2px; font-size: 13px; color: #536ee5; font-weight: 600; }

/* the reminder itself, drawn as a plain email */
#ld-paper-chaser .ld-paper-chaser-br { display: none; }
#ld-paper-chaser .ld-paper-chaser-mailsec { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 22px 24px 24px; background: #F7F8FC; border-bottom: 1px solid #EEF1F7; }
#ld-paper-chaser .ld-paper-chaser-mailcap { margin: 0; font-size: 13px; line-height: 1.55; color: #6B7280; }
#ld-paper-chaser .ld-paper-chaser-mailhead { margin: 0 0 6px; line-height: 1.5; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #536ee5; }
html.nn-js #ld-paper-chaser .ld-paper-chaser-mailwrap.lo-fill { margin: 0; padding: 0; border-radius: 14px; }
#ld-paper-chaser .ld-paper-chaser-mail { border: 1px solid #E4E9F5; border-radius: 14px; background: #fff; overflow: hidden; }
#ld-paper-chaser .ld-paper-chaser-meta { padding: 12px 18px; border-bottom: 1px solid #F1F3F8; font-size: 13px; line-height: 1.7; color: #232323; }
#ld-paper-chaser .ld-paper-chaser-meta span { display: inline-block; width: 62px; color: #9CA3AF; }
#ld-paper-chaser .ld-paper-chaser-meta > div:last-child { font-weight: 600; }
#ld-paper-chaser .ld-paper-chaser-meta > div:last-child span { font-weight: 400; }
#ld-paper-chaser .ld-paper-chaser-body { padding: 14px 18px 18px; font-size: 14px; line-height: 1.6; color: #374151; }
#ld-paper-chaser .ld-paper-chaser-body p { margin: 0 0 10px; }
#ld-paper-chaser .ld-paper-chaser-body ul { margin: 0 0 10px; padding-left: 20px; }
#ld-paper-chaser .ld-paper-chaser-btn { display: inline-block; margin-top: 4px; padding: 7px 14px; border-radius: 8px; background: #536ee5; color: #fff; font-size: 13px; font-weight: 600; }

@media (max-width: 767px) {
  #ld-paper-chaser .lo-crm-after-val::before { content: "With Paper Chaser: "; }
  #ld-paper-chaser .lo-crm-row { align-items: start; }
  #ld-paper-chaser .lo-crm-label { font-size: 14px; }
  #ld-paper-chaser .lo-crm-head { padding: 16px 18px; }
  #ld-paper-chaser .ld-paper-chaser-count { display: none; }
  #ld-paper-chaser .ld-paper-chaser-br { display: inline; }
  #ld-paper-chaser .lo-crm-name, #ld-paper-chaser .lo-crm-sub { white-space: normal; }
  #ld-paper-chaser .ld-paper-chaser-mailsec { grid-template-columns: 1fr; gap: 12px; padding: 18px 14px 18px; }
  #ld-paper-chaser .ld-paper-chaser-meta, #ld-paper-chaser .ld-paper-chaser-body { padding-left: 14px; padding-right: 14px; }
  #ld-paper-chaser .ld-paper-chaser-meta > div { display: flex; }
  #ld-paper-chaser .ld-paper-chaser-meta span { flex: none; width: 58px; }
}

/* ---- Report Writer ---- */
/* Report Writer demo: a wall of exports next to the plain-language report it becomes */
#ld-report-writer .ld-report-writer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-bottom: 1px solid #F1F3F8; }
#ld-report-writer .ld-report-writer-raw { padding: 18px 24px 22px; background: #FAFBFE; border-right: 1px solid #EEF1F7; min-width: 0; }
#ld-report-writer .ld-report-writer-doc { display: flex; flex-direction: column; padding: 18px 28px 22px; min-width: 0; }
#ld-report-writer .ld-report-writer-colhead { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-report-writer .ld-report-writer-colhead-on { color: #536ee5; }

/* source colors, shared by the export files and the chips that point back to them */
#ld-report-writer .ld-report-writer-s1 { --src: #536ee5; --src-bg: #EEF1FD; }
#ld-report-writer .ld-report-writer-s2 { --src: #047857; --src-bg: #E6F5EE; }
#ld-report-writer .ld-report-writer-s3 { --src: #B45309; --src-bg: #FCF1E2; }

/* the raw exports */
#ld-report-writer .ld-report-writer-file { border: 1px solid #E4E9F5; border-radius: 12px; background: #fff; padding: 10px 12px 4px; }
#ld-report-writer .ld-report-writer-file + .ld-report-writer-file { margin-top: 10px; }
#ld-report-writer .ld-report-writer-fname { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #4B5563; margin-bottom: 6px; }
#ld-report-writer .ld-report-writer-fname svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--src); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ld-report-writer .ld-report-writer-fname span { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; font-size: 11.5px; }
#ld-report-writer .ld-report-writer-fname em { font-style: normal; font-weight: 500; font-size: 11px; color: #9CA3AF; }
#ld-report-writer .ld-report-writer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.75; color: #9CA3AF; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
#ld-report-writer .ld-report-writer-grid-3 { grid-template-columns: 38px 34px minmax(0, 1fr); }
#ld-report-writer .ld-report-writer-grid > span { white-space: nowrap; }
#ld-report-writer .ld-report-writer-grid > span:nth-child(-n+5) { color: #6B7280; font-weight: 600; border-bottom: 1px solid #F1F3F8; }
#ld-report-writer .ld-report-writer-grid-3 > span:nth-child(-n+5) { color: #9CA3AF; font-weight: 400; border-bottom: 0; }
#ld-report-writer .ld-report-writer-grid-3 > span:nth-child(-n+3) { color: #6B7280; font-weight: 600; border-bottom: 1px solid #F1F3F8; }
#ld-report-writer .ld-report-writer-rawnote { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #C2410C; }

/* the report */
#ld-report-writer .ld-report-writer-memo { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #F1F3F8; }
#ld-report-writer .ld-report-writer-memo b { font-size: 17px; font-weight: 600; color: #232323; }
#ld-report-writer .ld-report-writer-memo span { font-size: 13px; color: #6B7280; }
#ld-report-writer .ld-report-writer-line { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #232323; }
#ld-report-writer .ld-report-writer-line b { font-weight: 600; }
#ld-report-writer .ld-report-writer-src { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; margin-left: 2px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--src-bg); color: var(--src); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
#ld-report-writer .ld-report-writer-src svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#ld-report-writer .ld-report-writer-ok { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed #E4E9F5; font-size: 13px; color: #4B5563; }
html.nn-js #ld-report-writer .ld-report-writer-line.lo-fill { margin: -4px -8px 12px; }
html.nn-js #ld-report-writer .ld-report-writer-ok.lo-fill { margin: auto -8px -4px; }
#ld-report-writer .ld-report-writer-ok svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: #047857; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
  #ld-report-writer .ld-report-writer-body { grid-template-columns: 1fr; }
  #ld-report-writer .ld-report-writer-raw { padding: 16px 18px 18px; border-right: 0; border-bottom: 1px solid #EEF1F7; }
  #ld-report-writer .ld-report-writer-doc { padding: 16px 18px 20px; }
  #ld-report-writer .ld-report-writer-line { font-size: 14.5px; }
  #ld-report-writer .ld-report-writer-ok { margin-top: 6px; }
  html.nn-js #ld-report-writer .ld-report-writer-ok.lo-fill { margin: 6px -8px -4px; }
}

/* ---- Meeting Prep ---- */
/* Meeting Prep demo: a one-page meeting brief next to the two-minute inbox scramble */
#ld-meeting-prep .lo-crm-head { gap: 16px; flex-wrap: wrap; }
#ld-meeting-prep .lo-crm-sub { white-space: normal; }
#ld-meeting-prep .ld-meeting-prep-when { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 13px; font-weight: 600; white-space: nowrap; }
#ld-meeting-prep .ld-meeting-prep-when svg,
#ld-meeting-prep .ld-meeting-prep-search svg,
#ld-meeting-prep .ld-meeting-prep-late svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#ld-meeting-prep .ld-meeting-prep-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid #F1F3F8; }
#ld-meeting-prep .ld-meeting-prep-before { padding: 18px 24px 22px; background: #FBFBFD; border-right: 1px solid #EEF1F7; display: flex; flex-direction: column; gap: 12px; }
#ld-meeting-prep .ld-meeting-prep-after { padding: 18px 28px 22px; display: flex; flex-direction: column; gap: 14px; }
#ld-meeting-prep .ld-meeting-prep-colhead { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-meeting-prep .ld-meeting-prep-colhead-on { color: #536ee5; }

/* by hand: an inbox search, a stale notes file, and the clock */
#ld-meeting-prep .ld-meeting-prep-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #E4E9F5; border-radius: 10px; background: #fff; font-size: 13px; color: #232323; }
#ld-meeting-prep .ld-meeting-prep-search svg { color: #9CA3AF; }
#ld-meeting-prep .ld-meeting-prep-search em { margin-left: auto; font-style: normal; font-size: 12px; color: #9CA3AF; }
#ld-meeting-prep .ld-meeting-prep-mails { list-style: none; margin: 0; padding: 0; border: 1px solid #EEF1F7; border-radius: 10px; background: #fff; overflow: hidden; }
#ld-meeting-prep .ld-meeting-prep-mails li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.4; color: #6B7280; border-top: 1px solid #F1F3F8; }
#ld-meeting-prep .ld-meeting-prep-mails li:first-child { border-top: 0; }
#ld-meeting-prep .ld-meeting-prep-mails li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ld-meeting-prep .ld-meeting-prep-mails li em { flex: none; font-style: normal; font-size: 12px; color: #B0B6C3; }
#ld-meeting-prep .ld-meeting-prep-unread span { color: #232323; font-weight: 600; }
#ld-meeting-prep .ld-meeting-prep-oldnote { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed #D5DBEA; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #6B7280; }
#ld-meeting-prep .ld-meeting-prep-oldnote b { font-weight: 600; color: #4B5563; }
#ld-meeting-prep .ld-meeting-prep-oldnote span { font-style: italic; }
#ld-meeting-prep .ld-meeting-prep-oldnote em { font-style: normal; font-size: 12px; color: #C2410C; }
#ld-meeting-prep .ld-meeting-prep-late { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: #FFF1E8; color: #C2410C; font-size: 13px; font-weight: 600; }

/* with Meeting Prep: the brief, every line tagged with its source */
#ld-meeting-prep .ld-meeting-prep-sect { display: flex; flex-direction: column; gap: 4px; }
#ld-meeting-prep .ld-meeting-prep-label { font-size: 13px; font-weight: 600; color: #6B7280; }
#ld-meeting-prep .ld-meeting-prep-line { display: flex; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.55; color: #232323; }
#ld-meeting-prep .ld-meeting-prep-line > span { flex: 1; min-width: 0; }
#ld-meeting-prep .ld-meeting-prep-src { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; border: 1px solid #E4E9F5; background: #fff; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #4B5563; line-height: 1.6; }
#ld-meeting-prep .ld-meeting-prep-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#ld-meeting-prep .ld-meeting-prep-cal::before { background: #16A34A; }
#ld-meeting-prep .ld-meeting-prep-mail::before { background: #D97706; }
#ld-meeting-prep .ld-meeting-prep-crm::before { background: #536ee5; }
#ld-meeting-prep .ld-meeting-prep-raise { padding-top: 14px; border-top: 1px solid #F1F3F8; }
#ld-meeting-prep .ld-meeting-prep-raise ol { list-style: none; margin: 2px 0 0; padding: 0; counter-reset: ldmp; display: flex; flex-direction: column; gap: 6px; }
#ld-meeting-prep .ld-meeting-prep-raise li { counter-increment: ldmp; display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.55; color: #232323; }
#ld-meeting-prep .ld-meeting-prep-raise li::before { content: counter(ldmp); flex: none; width: 20px; height: 20px; border-radius: 50%; background: #EEF1FD; color: #536ee5; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: relative; top: -1px; }

@media (max-width: 767px) {
  #ld-meeting-prep .lo-crm-head { padding: 16px 18px; }
  #ld-meeting-prep .ld-meeting-prep-when { margin-left: 52px; }
  #ld-meeting-prep .ld-meeting-prep-cols { grid-template-columns: 1fr; }
  #ld-meeting-prep .ld-meeting-prep-before { padding: 16px 18px 18px; border-right: 0; border-bottom: 1px solid #EEF1F7; }
  #ld-meeting-prep .ld-meeting-prep-after { padding: 16px 18px 20px; }
  #ld-meeting-prep .ld-meeting-prep-line { gap: 10px; }
}
#ld-meeting-prep .ld-meeting-prep-invite { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 3px solid #C7D0F3; border-radius: 4px 10px 10px 4px; background: #F1F4FD; font-size: 13px; line-height: 1.45; }
#ld-meeting-prep .ld-meeting-prep-invite b { font-weight: 600; color: #4B5563; }
#ld-meeting-prep .ld-meeting-prep-invite span { color: #B0B6C3; font-style: italic; }

/* ---- Ad Watcher ---- */
/* ---- Ad Watcher demo (scripts/demos/ad-watcher.html) ---- */
#ld-ad-watcher .ld-ad-watcher-head { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#ld-ad-watcher .ld-ad-watcher-ro { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 12px; font-weight: 600; white-space: nowrap; }
#ld-ad-watcher svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ld-ad-watcher .ld-ad-watcher-ro svg { width: 13px; height: 13px; stroke-width: 2; }

#ld-ad-watcher .ld-ad-watcher-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid #F1F3F8; }
#ld-ad-watcher .ld-ad-watcher-col { padding: 18px 24px 24px; min-width: 0; }
#ld-ad-watcher .ld-ad-watcher-before { border-right: 1px solid #F1F3F8; }
#ld-ad-watcher .ld-ad-watcher-colhead { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-ad-watcher .ld-ad-watcher-colhead-after { color: #536ee5; }

/* "by hand": the dashboard nobody opens */
#ld-ad-watcher .ld-ad-watcher-dash { border: 1px solid #EEF1F7; border-radius: 14px; background: #FAFBFE; padding: 12px; color: #6B7280; }
#ld-ad-watcher .ld-ad-watcher-dash-bar { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #9CA3AF; margin-bottom: 10px; }
#ld-ad-watcher .ld-ad-watcher-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#ld-ad-watcher .ld-ad-watcher-kpis > div { background: #fff; border: 1px solid #EEF1F7; border-radius: 8px; padding: 6px 8px; min-width: 0; }
#ld-ad-watcher .ld-ad-watcher-kpis small { display: block; font-size: 10px; color: #9CA3AF; line-height: 1.3; }
#ld-ad-watcher .ld-ad-watcher-kpis b { display: block; font-size: 13px; font-weight: 600; color: #4B5563; line-height: 1.35; }
#ld-ad-watcher .ld-ad-watcher-chart { display: block; width: 100%; height: 72px; margin: 10px 0 8px; background: #fff; border: 1px solid #EEF1F7; border-radius: 8px; }
#ld-ad-watcher .ld-ad-watcher-chart path, #ld-ad-watcher .ld-ad-watcher-chart polyline { vector-effect: non-scaling-stroke; }
#ld-ad-watcher .ld-ad-watcher-grid { stroke: #EEF1F7; stroke-width: 1; }
#ld-ad-watcher .ld-ad-watcher-l1 { stroke: #A9B6EE; stroke-width: 1.6; }
#ld-ad-watcher .ld-ad-watcher-l2 { stroke: #F1C27D; stroke-width: 1.6; }
#ld-ad-watcher .ld-ad-watcher-terms { color: #6B7280; background: #fff; border: 1px solid #EEF1F7; border-radius: 8px; font-size: 11px; }
#ld-ad-watcher .ld-ad-watcher-trow { display: grid; grid-template-columns: minmax(0, 1fr) 42px 52px 36px; gap: 6px; padding: 5px 8px; border-bottom: 1px solid #F4F6FA; line-height: 1.35; }
#ld-ad-watcher .ld-ad-watcher-trow > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
#ld-ad-watcher .ld-ad-watcher-trow > span { color: #6B7280; }
#ld-ad-watcher .ld-ad-watcher-thead > span { font-weight: 600; color: #9CA3AF; }
#ld-ad-watcher .ld-ad-watcher-more { padding: 5px 8px; color: #9CA3AF; }
#ld-ad-watcher .ld-ad-watcher-stale { margin: 12px 0 0; font-size: 13px; color: #6B7280; }

/* "with Ad Watcher": the note and the proposal */
#ld-ad-watcher .ld-ad-watcher-note-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid #F1F3F8; }
#ld-ad-watcher .ld-ad-watcher-note-top b { font-size: 15px; font-weight: 600; color: #232323; }
#ld-ad-watcher .ld-ad-watcher-note-top span { font-size: 12px; color: #9CA3AF; }
#ld-ad-watcher .ld-ad-watcher-lines { list-style: none; margin: 0; padding: 0; }
#ld-ad-watcher .ld-ad-watcher-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: #232323; }
#ld-ad-watcher .ld-ad-watcher-lines li { margin-top: 6px; }
#ld-ad-watcher .ld-ad-watcher-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
#ld-ad-watcher .ld-ad-watcher-ic svg { width: 13px; height: 13px; stroke-width: 2.2; }
#ld-ad-watcher .ld-ad-watcher-ic-ok { background: #E7F6EC; color: #15803D; }
#ld-ad-watcher .ld-ad-watcher-ic-down { background: #FEF3E2; color: #B45309; }
#ld-ad-watcher .ld-ad-watcher-ic-warn { background: #FDECEC; color: #C2410C; }

#ld-ad-watcher .ld-ad-watcher-propwrap { margin-top: 16px; }
html.nn-js #ld-ad-watcher .ld-ad-watcher-propwrap { margin-top: 12px; }
#ld-ad-watcher .ld-ad-watcher-prop { border: 1px solid #DCE2F4; border-radius: 14px; padding: 14px 16px; background: #fff; box-shadow: 0 10px 24px -20px rgba(35, 42, 80, .5); }
#ld-ad-watcher .ld-ad-watcher-prop-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
#ld-ad-watcher .ld-ad-watcher-prop-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-ad-watcher .ld-ad-watcher-status { display: inline-grid; justify-items: end; }
#ld-ad-watcher .ld-ad-watcher-st { grid-area: 1 / 1; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
#ld-ad-watcher .ld-ad-watcher-st-pending { background: #FEF3E2; color: #B45309; }
#ld-ad-watcher .ld-ad-watcher-st-ok { background: #E7F6EC; color: #15803D; }
#ld-ad-watcher .ld-ad-watcher-prop-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: #232323; }
#ld-ad-watcher .ld-ad-watcher-prop-sub { margin-top: 2px; font-size: 13px; line-height: 1.5; color: #6B7280; }
#ld-ad-watcher .ld-ad-watcher-prop-actions { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 12px; }
#ld-ad-watcher .ld-ad-watcher-btns { display: inline-flex; gap: 8px; }
#ld-ad-watcher .ld-ad-watcher-btn { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #D5DBEA; background: #fff; color: #232323; font-size: 13px; font-weight: 600; line-height: 1.3; }
#ld-ad-watcher .ld-ad-watcher-btn-go { background: #536ee5; border-color: #536ee5; color: #fff; }
#ld-ad-watcher .ld-ad-watcher-guard { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #4B5563; }
#ld-ad-watcher .ld-ad-watcher-guard svg { width: 13px; height: 13px; flex: none; stroke-width: 2; }
#ld-ad-watcher .ld-ad-watcher-done { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; line-height: 1.55; color: #232323; }
html.nn-js #ld-ad-watcher .ld-ad-watcher-done { margin-top: 10px; }

/* finished state (no JS, reduced motion, nn-all-in): approved */
#ld-ad-watcher .ld-ad-watcher-st-pending { opacity: 0; }
#ld-ad-watcher .ld-ad-watcher-btns { opacity: .45; }
/* before the story plays: still waiting */
html.nn-js #ld-ad-watcher .ld-ad-watcher-st-pending { opacity: 1; }
html.nn-js #ld-ad-watcher .ld-ad-watcher-st-ok { opacity: 0; }
html.nn-js #ld-ad-watcher .ld-ad-watcher-btns { opacity: 1; }
/* the approval lands with the last timeline step */
@keyframes ldAwOut { to { opacity: 0; } }
@keyframes ldAwIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ldAwDim { to { opacity: .45; } }
html.nn-js #ld-ad-watcher.nn-in .ld-ad-watcher-st-pending, html.nn-js #ld-ad-watcher.lo-play .ld-ad-watcher-st-pending { animation: ldAwOut .3s ease 3.75s both; }
html.nn-js #ld-ad-watcher.nn-in .ld-ad-watcher-st-ok, html.nn-js #ld-ad-watcher.lo-play .ld-ad-watcher-st-ok { animation: ldAwIn .3s ease 3.75s both; }
html.nn-js #ld-ad-watcher.nn-in .ld-ad-watcher-btns, html.nn-js #ld-ad-watcher.lo-play .ld-ad-watcher-btns { animation: ldAwDim .3s ease 3.75s both; }
html.nn-all-in #ld-ad-watcher .ld-ad-watcher-st-pending { opacity: 0; }
html.nn-all-in #ld-ad-watcher .ld-ad-watcher-st-ok { opacity: 1; }
html.nn-all-in #ld-ad-watcher .ld-ad-watcher-btns { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  html.nn-js #ld-ad-watcher .ld-ad-watcher-st-pending { opacity: 0; animation: none !important; }
  html.nn-js #ld-ad-watcher .ld-ad-watcher-st-ok { opacity: 1; animation: none !important; }
  html.nn-js #ld-ad-watcher .ld-ad-watcher-btns { opacity: .45; animation: none !important; }
}

@media (max-width: 767px) {
  #ld-ad-watcher .ld-ad-watcher-cols { grid-template-columns: minmax(0, 1fr); }
  #ld-ad-watcher .ld-ad-watcher-col { padding: 16px 18px 20px; }
  #ld-ad-watcher .ld-ad-watcher-before { border-right: 0; border-bottom: 1px solid #F1F3F8; }
  #ld-ad-watcher .ld-ad-watcher-trow { grid-template-columns: minmax(0, 1fr) 38px 50px 34px; }
}

/* ---- Inbox Triage ---- */
/* Inbox Triage demo: a shared inbox before and after sorting, plus the drafted reply */
#ld-inbox-triage .lo-crm-head { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#ld-inbox-triage .lo-crm-avatar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ld-inbox-triage-when { font-size: 13px; color: #6B7280; white-space: nowrap; }

.ld-inbox-triage-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid #F1F3F8; }
.ld-inbox-triage-col { padding: 16px 24px 20px; min-width: 0; }
.ld-inbox-triage-before { border-right: 1px solid #F1F3F8; }
.ld-inbox-triage-colhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #536ee5; }
.ld-inbox-triage-before .ld-inbox-triage-colhead { color: #9CA3AF; }
.ld-inbox-triage-count { padding: 2px 9px; border-radius: 999px; background: #FDF0E8; color: #C2410C; font-size: 12px; letter-spacing: 0; text-transform: none; }

/* the untouched inbox: every email looks the same */
.ld-inbox-triage-list { list-style: none; margin: 0; padding: 0; }
.ld-inbox-triage-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F1F3F8; }
.ld-inbox-triage-list li > i { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #536ee5; opacity: .55; }
.ld-inbox-triage-list li > div { flex: 1; min-width: 0; }
.ld-inbox-triage-from { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.4; color: #232323; }
.ld-inbox-triage-from b { font-weight: 600; min-width: 0; }
.ld-inbox-triage-from > span { flex: none; font-size: 12px; color: #9CA3AF; }
.ld-inbox-triage-subj { font-size: 13px; line-height: 1.45; color: #6B7280; }
.ld-inbox-triage-more { padding-top: 12px; font-size: 13px; color: #9CA3AF; font-style: italic; }

/* the sorted inbox */
.ld-inbox-triage-group { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; font-weight: 600; color: #232323; }
.ld-inbox-triage-group-filed { margin-top: 20px; }
.ld-inbox-triage-n { padding: 1px 8px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 12px; }
.ld-inbox-triage-after .lo-fill + .lo-fill { margin-top: 4px !important; }
.ld-inbox-triage-need { padding: 10px 12px; border: 1px solid #E4E9F5; border-radius: 12px; background: #fff; }
.ld-inbox-triage-urgent { border-color: #F4C7AE; background: #FFF8F3; box-shadow: inset 3px 0 0 #E4632C; }
.ld-inbox-triage-need .ld-inbox-triage-subj { color: #232323; }
.ld-inbox-triage-why { margin-top: 3px; font-size: 12px; line-height: 1.45; color: #6B7280; }
.ld-inbox-triage-tag { flex: none; padding: 1px 8px; border-radius: 999px; background: #EEF1FD; color: #536ee5 !important; font-size: 11px !important; font-weight: 600; letter-spacing: .02em; }
.ld-inbox-triage-tag-hot { background: #FDE6DA; color: #C2410C !important; }
.ld-inbox-triage-filed { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: #F7F8FC; font-size: 13px; color: #4B5563; }
.ld-inbox-triage-filed b { font-size: 13px; color: #232323; }

/* the drafted reply, held for a person */
.ld-inbox-triage-draftwrap { padding: 20px 24px; background: #FAFBFE; border-bottom: 1px solid #F1F3F8; }
.ld-inbox-triage-draft { border: 1px solid #E4E9F5; border-radius: 14px; background: #fff; overflow: hidden; }
.ld-inbox-triage-draft-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid #F1F3F8; }
.ld-inbox-triage-draft-title { font-size: 14px; font-weight: 600; color: #232323; }
.ld-inbox-triage-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ld-inbox-triage-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-inbox-triage-field { display: flex; gap: 10px; padding: 8px 16px; border-bottom: 1px solid #F1F3F8; font-size: 13px; color: #232323; }
.ld-inbox-triage-field > span { flex: none; width: 56px; color: #9CA3AF; }
.ld-inbox-triage-body { padding: 12px 16px 4px; font-size: 14px; line-height: 1.6; color: #232323; }
.ld-inbox-triage-body p { margin: 0 0 10px; }
.ld-inbox-triage-wait { padding: 10px 16px; border-top: 1px dashed #E4E9F5; font-size: 12px; font-weight: 600; color: #92400E; background: #FFFBEB; }

@media (max-width: 767px) {
  .ld-inbox-triage-cols { grid-template-columns: 1fr; }
  .ld-inbox-triage-col { padding: 14px 18px 18px; }
  .ld-inbox-triage-before { border-right: 0; border-bottom: 1px solid #F1F3F8; }
  .ld-inbox-triage-draftwrap { padding: 16px 18px; }
  .ld-inbox-triage-when { display: none; }
}

/* column heads line up, and the phone shows a shorter slice of the untouched inbox */
.ld-inbox-triage-colhead { min-height: 24px; }
.ld-inbox-triage-more-m { display: none; }
@media (max-width: 767px) {
  .ld-inbox-triage-list li:nth-child(4), .ld-inbox-triage-list li:nth-child(6), .ld-inbox-triage-list li:nth-child(8) { display: none; }
  .ld-inbox-triage-more-d { display: none; }
  .ld-inbox-triage-more-m { display: inline; }
}

/* ---- Site Keeper ---- */
/* Site Keeper demo: a morning check report for a restaurant site, next to how the problem was found by hand */
#ld-site-keeper .ld-site-keeper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid #EEF1F7; background: #FAFBFE; }
#ld-site-keeper .ld-site-keeper-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
#ld-site-keeper .ld-site-keeper-favicon { width: 40px; height: 40px; border-radius: 10px; background: #E6EAFB; color: #536ee5; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#ld-site-keeper .ld-site-keeper-name { font-weight: 600; color: #232323; }
#ld-site-keeper .ld-site-keeper-url { font-size: 13px; color: #6B7280; }
#ld-site-keeper .ld-site-keeper-sum { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #E4E9F5; font-size: 13px; font-weight: 600; color: #4B5563; white-space: nowrap; }

#ld-site-keeper .ld-site-keeper-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
#ld-site-keeper .ld-site-keeper-colhead { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; margin: 0 0 14px; }
#ld-site-keeper .ld-site-keeper-colhead.is-after { color: #536ee5; margin-left: 12px; }

#ld-site-keeper .ld-site-keeper-before { padding: 18px 24px 22px; border-right: 1px solid #F1F3F8; background: #FCFCFE; }
#ld-site-keeper .ld-site-keeper-call { display: flex; gap: 12px; padding: 14px; border: 1px solid #F3E3D6; border-radius: 14px; background: #FFFAF5; }
#ld-site-keeper .ld-site-keeper-call-ic { width: 32px; height: 32px; border-radius: 50%; background: #FDEBDD; color: #C2410C; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#ld-site-keeper .ld-site-keeper-call-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ld-site-keeper .ld-site-keeper-call-t { font-size: 13px; font-weight: 600; line-height: 1.4; color: #232323; padding-top: 6px; }
#ld-site-keeper .ld-site-keeper-call p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #4B5563; font-style: italic; }
#ld-site-keeper .ld-site-keeper-found { margin: 16px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.55; color: #6B7280; }
#ld-site-keeper .ld-site-keeper-found li + li { margin-top: 8px; }

#ld-site-keeper .ld-site-keeper-after { padding: 18px 12px 12px; min-width: 0; }
#ld-site-keeper .ld-site-keeper-rows { display: flex; flex-direction: column; }
#ld-site-keeper .ld-site-keeper-row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; margin: 0; padding: 12px; border-radius: 12px; }
#ld-site-keeper .ld-site-keeper-row + .ld-site-keeper-row::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: #F1F3F8; }
#ld-site-keeper .ld-site-keeper-ic { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
#ld-site-keeper .ld-site-keeper-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ld-site-keeper .ld-site-keeper-ic.is-ok { background: #E8F6EE; color: #15803D; }
#ld-site-keeper .ld-site-keeper-ic.is-warn { background: #FEF1E4; color: #C2410C; }
#ld-site-keeper .ld-site-keeper-main { min-width: 0; }
#ld-site-keeper .ld-site-keeper-t { font-size: 14px; font-weight: 600; color: #232323; line-height: 1.4; padding-top: 3px; }
#ld-site-keeper .ld-site-keeper-d { margin-top: 2px; font-size: 14px; line-height: 1.55; color: #4B5563; }
#ld-site-keeper .ld-site-keeper-file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: #F3F4F8; color: #232323; white-space: nowrap; }
#ld-site-keeper .ld-site-keeper-pill { margin-top: 3px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
#ld-site-keeper .ld-site-keeper-pill.is-ok { background: #E8F6EE; color: #15803D; }
#ld-site-keeper .ld-site-keeper-pill.is-warn { background: #FEF1E4; color: #C2410C; }
#ld-site-keeper .ld-site-keeper-fix { margin-top: 10px; padding: 10px 12px; border: 1px dashed #D5DBEA; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #232323; background: #FAFBFE; }
#ld-site-keeper .ld-site-keeper-fix-l { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #536ee5; }
#ld-site-keeper .ld-site-keeper-ok { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 3px 10px 3px 8px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 13px; font-weight: 600; }
#ld-site-keeper .ld-site-keeper-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* the chip keeps its own tint once the fill highlight fades */
html.nn-js #ld-site-keeper.nn-in .ld-site-keeper-ok, html.nn-js #ld-site-keeper.lo-play .ld-site-keeper-ok { animation-name: ldSiteKeeperChip; }
@keyframes ldSiteKeeperChip { 0% { opacity: 0; transform: translateY(6px); background: #EEF1FD; box-shadow: 0 0 0 0 rgba(83, 110, 229, 0); } 45% { opacity: 1; transform: none; box-shadow: 0 0 0 4px rgba(83, 110, 229, .18); } 100% { opacity: 1; transform: none; background: #EEF1FD; box-shadow: 0 0 0 0 rgba(83, 110, 229, 0); } }
@media (prefers-reduced-motion: reduce) { html.nn-js #ld-site-keeper .ld-site-keeper-ok { animation: none !important; opacity: 1; } }

@media (max-width: 767px) {
  #ld-site-keeper .ld-site-keeper-head { padding: 16px 18px; }
  #ld-site-keeper .ld-site-keeper-body { grid-template-columns: 1fr; }
  #ld-site-keeper .ld-site-keeper-before { padding: 16px 18px 18px; border-right: 0; border-bottom: 1px solid #F1F3F8; }
  #ld-site-keeper .ld-site-keeper-after { padding: 16px 6px 8px; }
  #ld-site-keeper .ld-site-keeper-row { grid-template-columns: 28px minmax(0, 1fr); }
  #ld-site-keeper .ld-site-keeper-pill { position: absolute; top: 12px; right: 12px; }
  #ld-site-keeper .ld-site-keeper-t { padding-right: 84px; }
}

/* ---- Tool Builder ---- */
/* Tool Builder demo: a messy order spreadsheet next to the order screen built to replace it,
   then the handover checklist that fills in as the last timeline step lights up */
#ld-tool-builder .ld-tool-builder-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 24px 24px; border-bottom: 1px solid #F1F3F8; }
#ld-tool-builder .ld-tool-builder-pane { min-width: 0; display: flex; flex-direction: column; }
#ld-tool-builder .ld-tool-builder-tag { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-tool-builder .ld-tool-builder-tag-after { color: #536ee5; }

/* the spreadsheet */
#ld-tool-builder .ld-tool-builder-sheet { flex: 1; display: flex; flex-direction: column; border: 1px solid #DDE2EC; border-radius: 10px; background: #fff; overflow: hidden; font-size: 12.5px; color: #374151; }
#ld-tool-builder .ld-tool-builder-fx { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #E5E8EF; background: #FAFBFC; }
#ld-tool-builder .ld-tool-builder-fx span { font-style: italic; font-weight: 600; color: #9CA3AF; }
#ld-tool-builder .ld-tool-builder-fx code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #4B5563; background: none; padding: 0; }
#ld-tool-builder .ld-tool-builder-grid { flex: 1; align-content: stretch; display: grid; grid-template-rows: 26px; grid-auto-rows: minmax(31px, auto); grid-template-columns: 26px minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1.3fr); }
#ld-tool-builder .ld-tool-builder-grid > div { padding: 7px 8px; border-right: 1px solid #EEF0F4; border-bottom: 1px solid #EEF0F4; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
#ld-tool-builder .ld-tool-builder-grid > div:nth-child(5n) { border-right: 0; }
#ld-tool-builder .ld-tool-builder-ch, #ld-tool-builder .ld-tool-builder-rh { background: #F5F6F9; color: #9CA3AF; font-size: 11px; text-align: center; }
#ld-tool-builder .ld-tool-builder-ch { padding-top: 4px !important; padding-bottom: 4px !important; }
#ld-tool-builder .ld-tool-builder-rh { padding-left: 0 !important; padding-right: 0 !important; }
#ld-tool-builder .ld-tool-builder-th { font-weight: 600; color: #232323; }
#ld-tool-builder .ld-tool-builder-muted { color: #9CA3AF; font-style: italic; }
#ld-tool-builder .ld-tool-builder-warn { background: #FFF4E5; color: #C2410C; font-weight: 600; }
#ld-tool-builder .ld-tool-builder-err { background: #FDECEC; color: #D14343; font-weight: 600; }
#ld-tool-builder .ld-tool-builder-tabs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 6px 0; background: #F5F6F9; font-size: 11.5px; color: #6B7280; }
#ld-tool-builder .ld-tool-builder-tabs span { padding: 5px 9px 6px; border-radius: 6px 6px 0 0; }
#ld-tool-builder .ld-tool-builder-tabs .ld-tool-builder-on { background: #fff; color: #232323; font-weight: 600; box-shadow: inset 0 2px 0 #1E8E3E; }
#ld-tool-builder .ld-tool-builder-cap { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #C2410C; }

/* the order screen */
#ld-tool-builder .ld-tool-builder-app { flex: 1; border: 1px solid #DCE2F4; border-radius: 12px; background: #F7F8FC; overflow: hidden; }
#ld-tool-builder .ld-tool-builder-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border-bottom: 1px solid #E4E9F5; font-size: 13px; color: #232323; }
#ld-tool-builder .ld-tool-builder-logo { width: 26px; height: 26px; border-radius: 7px; background: #536ee5; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#ld-tool-builder .ld-tool-builder-nav { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 12px; font-weight: 600; }
#ld-tool-builder .ld-tool-builder-event { margin: 12px; padding: 14px 16px 16px; border: 1px solid #E4E9F5; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px -16px rgba(35, 42, 80, .45); }
#ld-tool-builder .ld-tool-builder-ev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #F1F3F8; }
#ld-tool-builder .ld-tool-builder-ev-name { font-weight: 600; font-size: 15px; color: #232323; }
#ld-tool-builder .ld-tool-builder-ev-sub { font-size: 12.5px; line-height: 1.45; color: #6B7280; margin-top: 2px; }
#ld-tool-builder .ld-tool-builder-ok { flex: none; padding: 2px 9px; border-radius: 999px; background: #E7F6EC; color: #1E7B3C; font-size: 12px; font-weight: 600; }
#ld-tool-builder .ld-tool-builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
#ld-tool-builder .ld-tool-builder-field { font-size: 13.5px; line-height: 1.45; color: #232323; min-width: 0; }
#ld-tool-builder .ld-tool-builder-field span { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9CA3AF; }
#ld-tool-builder .ld-tool-builder-next { margin: 0 12px 12px; display: grid; gap: 6px; }
#ld-tool-builder .ld-tool-builder-next > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #EEF1F7; font-size: 12.5px; color: #6B7280; }
#ld-tool-builder .ld-tool-builder-next b { font-weight: 600; color: #232323; }

/* the handover checklist */
#ld-tool-builder .ld-tool-builder-keys { padding: 18px 24px 20px; border-bottom: 1px solid #F1F3F8; }
#ld-tool-builder .ld-tool-builder-keys-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #536ee5; }
#ld-tool-builder .ld-tool-builder-keys-head svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ld-tool-builder .ld-tool-builder-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
#ld-tool-builder .ld-tool-builder-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
#ld-tool-builder .ld-tool-builder-list b { display: block; font-size: 13.5px; font-weight: 600; color: #232323; line-height: 1.35; }
#ld-tool-builder .ld-tool-builder-list div span { display: block; font-size: 12.5px; color: #6B7280; line-height: 1.4; margin-top: 2px; }
#ld-tool-builder .ld-tool-builder-tick { width: 22px; height: 22px; border-radius: 50%; background: #E7F6EC; color: #1E7B3C; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#ld-tool-builder .ld-tool-builder-tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* the checklist lands with the handover step (the fourth node lights at 3.6s), not straight after the screen */
html.nn-js #ld-tool-builder.nn-in .ld-tool-builder-list .lo-fill, html.nn-js #ld-tool-builder.lo-play .ld-tool-builder-list .lo-fill { animation-delay: calc((var(--i) - 4) * .3s + 3.4s); }

@media (max-width: 991px) {
  #ld-tool-builder .ld-tool-builder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  #ld-tool-builder .ld-tool-builder-panes { grid-template-columns: 1fr; gap: 26px; padding: 16px 18px 20px; }
  #ld-tool-builder .ld-tool-builder-keys { padding: 16px 18px 18px; }
  #ld-tool-builder .ld-tool-builder-grid { grid-template-columns: 22px minmax(0, 1.55fr) minmax(0, .8fr) minmax(0, .75fr) minmax(0, 1.2fr); }
  #ld-tool-builder .ld-tool-builder-grid > div { padding: 6px 6px; }
  #ld-tool-builder .ld-tool-builder-sheet { flex: 1; display: flex; flex-direction: column; font-size: 12px; }
}
@media (max-width: 479px) {
  #ld-tool-builder .ld-tool-builder-fields { grid-template-columns: 1fr; gap: 10px; }
  #ld-tool-builder .ld-tool-builder-list { grid-template-columns: 1fr; gap: 12px; }
}

/* ---- Client Updater ---- */
/* Client Updater demo: the unanswered client email by hand, next to the drafted Monday update */
#ld-client-updater .ld-client-updater-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border-bottom: 1px solid #F1F3F8; }
#ld-client-updater .ld-client-updater-before { padding: 20px 24px 24px; border-right: 1px solid #F1F3F8; background: #FCFCFE; display: flex; flex-direction: column; gap: 14px; }
#ld-client-updater .ld-client-updater-after { padding: 20px 24px 24px; min-width: 0; }
#ld-client-updater .ld-client-updater-colhead { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
#ld-client-updater .ld-client-updater-after .ld-client-updater-colhead { margin-bottom: 14px; }
#ld-client-updater .ld-client-updater-colhead-on { color: #536ee5; }

/* by hand: the homeowner's email sitting in the inbox */
#ld-client-updater .ld-client-updater-mail { border: 1px solid #E4E9F5; border-left: 3px solid #EA9A5B; border-radius: 12px; background: #fff; padding: 14px 16px; }
#ld-client-updater .ld-client-updater-mail-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#ld-client-updater .ld-client-updater-from { font-size: 14px; font-weight: 600; color: #232323; }
#ld-client-updater .ld-client-updater-time { font-size: 12px; color: #9CA3AF; white-space: nowrap; }
#ld-client-updater .ld-client-updater-subj { margin-top: 2px; font-size: 13px; font-weight: 600; color: #4B5563; }
#ld-client-updater .ld-client-updater-snip { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; color: #6B7280; }
#ld-client-updater .ld-client-updater-flag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #FFF4EC; color: #C2410C; font-size: 12px; font-weight: 600; }
#ld-client-updater .ld-client-updater-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#ld-client-updater .ld-client-updater-facts { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
#ld-client-updater .ld-client-updater-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #EEF1F7; }
#ld-client-updater .ld-client-updater-facts span { color: #6B7280; }
#ld-client-updater .ld-client-updater-facts b { font-weight: 600; color: #4B5563; text-align: right; }
#ld-client-updater .ld-client-updater-facts b.lo-crm-stale { color: #C2410C; }

/* by hand: the raw job notes that never became an update */
#ld-client-updater .ld-client-updater-notes { border: 1px dashed #D5DBEA; border-radius: 12px; padding: 12px 16px; background: #fff; font-size: 13px; color: #4B5563; }
#ld-client-updater .ld-client-updater-notes-head { font-size: 12px; font-weight: 600; color: #9CA3AF; margin-bottom: 6px; }
#ld-client-updater .ld-client-updater-notes ul { margin: 0; padding-left: 16px; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
#ld-client-updater .ld-client-updater-notes-foot { margin-top: 8px; font-size: 12px; font-style: italic; color: #B0B6C3; }

/* with Client Updater: the draft, in a compose window */
#ld-client-updater .ld-client-updater-draft { border: 1px solid #E4E9F5; border-radius: 14px; background: #fff; overflow: hidden; }
#ld-client-updater .ld-client-updater-draft-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 10px 16px; background: #FAFBFE; border-bottom: 1px solid #EEF1F7; }
#ld-client-updater .ld-client-updater-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #EEF1FD; color: #536ee5; font-size: 12px; font-weight: 600; }
#ld-client-updater .ld-client-updater-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#ld-client-updater .ld-client-updater-src { font-size: 12px; color: #9CA3AF; }
#ld-client-updater .ld-client-updater-src em { font-style: normal; display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: #F3F5FA; color: #4B5563; font-weight: 600; }
#ld-client-updater .ld-client-updater-field { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #F1F3F8; font-size: 14px; color: #232323; }
#ld-client-updater .ld-client-updater-field span { width: 56px; flex: none; color: #9CA3AF; font-size: 13px; }
#ld-client-updater .ld-client-updater-body { padding: 14px 16px 16px; font-size: 14px; line-height: 1.55; color: #232323; display: flex; flex-direction: column; gap: 12px; }
#ld-client-updater .ld-client-updater-hi { margin: 0; }
#ld-client-updater .ld-client-updater-sign { margin-top: 0; margin-bottom: 0; }
#ld-client-updater .ld-client-updater-part h4 { margin: 0 0 2px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: #232323; }
#ld-client-updater .ld-client-updater-part ul { margin: 0; padding-left: 18px; }
#ld-client-updater .ld-client-updater-ask { padding: 10px 12px; border-radius: 10px; background: #F4F6FE; box-shadow: inset 3px 0 0 #536ee5; }
#ld-client-updater .ld-client-updater-ask b { font-weight: 700; color: #536ee5; }
#ld-client-updater .ld-client-updater-sign { color: #4B5563; }

@media (max-width: 767px) {
  #ld-client-updater .ld-client-updater-grid { grid-template-columns: 1fr; }
  #ld-client-updater .ld-client-updater-before { border-right: 0; border-bottom: 1px solid #F1F3F8; padding: 18px; }
  #ld-client-updater .ld-client-updater-after { padding: 18px; }
  #ld-client-updater .ld-client-updater-draft-bar { padding: 10px 12px; }
  #ld-client-updater .ld-client-updater-field { padding: 9px 12px; }
  #ld-client-updater .ld-client-updater-field span { width: 52px; }
  #ld-client-updater .ld-client-updater-body { padding: 12px 12px 14px; }
}

/* ---- tabs and pager ---- */
.ld-tabs-wrap { position: relative; max-width: 940px; margin: 32px auto 0; }
.ld-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-tab { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid #E4E9F5; border-radius: 999px; background: #fff; color: #232323; font: 600 14px/1.2 var(--brand-font-body); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.ld-tab:hover { border-color: #536ee5; color: #536ee5; }
.ld-tab.is-active { background: #232323; border-color: #232323; color: #fff; box-shadow: 0 10px 24px -16px rgba(35, 35, 35, .7); }
.ld-tab:focus-visible, .ld-pager-btn:focus-visible { outline: 2px solid #536ee5; outline-offset: 2px; }
.ld-jump-face { width: 32px; height: 32px; flex: none; display: inline-flex; }
.ld-jump-face img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ld-swipe { display: none; }
.ld-panel[hidden] { display: none !important; }
.ld-meet { margin: 14px 0 0; text-align: center; }
.ld-meet a { font-weight: 600; font-size: 15px; color: #536ee5; text-decoration: none; border-bottom: 1px solid rgba(83, 110, 229, .35); transition: border-color .2s ease, color .2s ease; }
.ld-meet a:hover { color: #1B44C8; border-bottom-color: #1B44C8; }
.ld-panel, .ld-pager-sec { overflow-anchor: none; }
.ld-intro > .container { padding-bottom: 0 !important; }
.ld-intro + .ld-panel { padding-top: 0 !important; }
.ld-intro + .ld-panel > .container { padding-top: 32px !important; }
.lo-crm-sec[id^="demo-"] { scroll-margin-top: 24px; }
.ld-pager-sec { padding-top: 0 !important; }
.ld-pager { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 980px; margin: 0 auto; }
.ld-pager-count { font-size: 14px; color: #6B7280; min-width: 64px; text-align: center; }
.ld-pager-count b { color: #232323; }
.ld-pager-btn { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid #D5DBEA; background: #fff; color: #232323; font: 600 15px/1 var(--brand-font-body); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.ld-pager-btn:hover:not([disabled]) { border-color: #536ee5; color: #536ee5; }
.ld-pager-btn.is-next { background: #232323; border-color: #232323; color: #fff; }
.ld-pager-btn.is-next:hover:not([disabled]) { background: #536ee5; border-color: #536ee5; color: #fff; }
.ld-pager-btn[disabled] { opacity: .4; cursor: default; }
@media (max-width: 767px) {
  /* one swipeable row of tabs, fading at the edge so it reads as "there is more" */
  .ld-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ld-tabs::-webkit-scrollbar { display: none; }
  .ld-tab { scroll-snap-align: start; }
  .ld-swipe { display: block; margin: 8px 0 0; text-align: center; font-size: 13px; color: #9CA3AF; }
  .ld-pager { gap: 10px; }
  .ld-pager-btn { padding: 0 14px; font-size: 14px; }
  .ld-pager-btn.is-prev { flex: none; }
}
