/* Public tour layout. Only the selected scenario body owns vertical scrolling. */
body { display: flex; flex-direction: column; }
body > .app-shell { flex: 1 1 0; height: auto; min-height: 0; padding: 18px clamp(16px, 3.2vw, 48px) 12px; max-width: 1440px; }
.public-demo-banner { flex: 0 0 auto; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px clamp(16px, 3.2vw, 48px); background: #f8fafc; border-bottom: 1px solid #dce2eb; color: #36465e; font-size: 11px; }
.public-demo-banner a { min-height: 28px; display: inline-flex; align-items: center; color: #315ea8; font-weight: 600; }
.public-demo-banner p { margin: 0; text-align: right; }
body.is-embedded > .public-demo-banner { display: none; }
.app-header .brand-mark { background: transparent; padding: 0; border-radius: 0; }
.app-header .brand-mark img { width: 36px; height: 36px; }
.tour-heading-meta { display: flex; gap: 14px; align-items: center; }
.tour-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #536152; }
.tour-mode { font-size: 11px; border-left: 1px solid var(--line); padding-left: 14px; color: var(--muted); }
.tour-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
#group-nav { display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#group-nav > a { gap: 8px; white-space: nowrap; min-height: 42px; padding: 10px 18px; }
#group-nav > a > span { font-size: 10px; opacity: .7; font-variant-numeric: tabular-nums; }
.tour-count { font-size: 10px; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.w-page-intro { margin-bottom: 0; }
.w-page-chrome { padding-bottom: 14px; }
.w-page-body { scrollbar-gutter: stable; }
.w-page-body .w-workspace { align-items: start; }
#tour-customer .w-notice { flex-wrap: wrap; }
#tour-customer .w-notice > div:not(.w-actions) { flex: 1 1 220px; }
#tour-customer .w-notice .w-actions { flex: 0 0 auto; }
#tour-quote .w-table { min-width: 0; }
#tour-quote .w-table th:first-child, #tour-quote .w-table td:first-child { width: 55%; white-space: normal; }
#tour-quote .w-table td { vertical-align: top; }
#tour-quote .sales-lifecycle { gap: 20px; }
#tour-quote .w-page-intro-summary { grid-template-columns: minmax(0, 1fr) auto; }
#tour-quote .w-page-summary { grid-column: 2; grid-row: 1; }
.tour-lines > summary, .tour-task-detail > summary { cursor: pointer; font-weight: 600; font-size: 13px; min-height: 44px; padding: 12px 0; }
.tour-lines .table-scroll { margin-top: 8px; }
.tour-lines > summary:hover, .tour-task-detail > summary:hover { color: #315ea8; }
.tour-task-counts { display: flex; gap: 28px; }
.tour-task-counts > div { display: flex; flex-direction: column; gap: 3px; min-width: 64px; }
.tour-task-counts span { font-size: 11px; color: var(--muted); }
.tour-task-counts strong { font-size: 24px; line-height: 1.2; font-family: var(--heading); font-weight: 600; }
.tour-task-toolbar { margin-top: 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.tour-task-toolbar p { font-size: 12px; color: var(--muted); }
.tour-task-toolbar p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tour-task-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; align-items: start; }
.tour-task { min-width: 0; }
.tour-task-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-height: 26px; margin-bottom: 16px; }
.tour-task h2 { font-size: 20px; line-height: 1.35; }
.tour-task-subtitle { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tour-task-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 0; margin: 16px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour-task-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.tour-task-facts dd { margin: 0; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.tour-task-detail p { font-size: 13px; line-height: 1.65; margin: 4px 0 8px; color: var(--muted); }
.tour-task-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.tour-task.is-complete { border-color: #97b39a; }
.tour-task.is-complete .tour-task-actions button { background: transparent; border-color: var(--line); color: var(--ink); }
.tour-task-note { grid-column: 1 / -1; margin: 0; padding: 0 2px 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tour-task-note span { display: block; }
.tour-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.tour-footer > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tour-footer strong { font-weight: 600; font-size: 13px; color: var(--ink); }
.tour-footer span { color: var(--muted); font-size: 11px; }
.tour-unavailable { display: grid; place-items: center; overflow-y: auto; padding: 24px; }
.tour-unavailable > div { max-width: 620px; }
.tour-unavailable h1 { margin: 16px 0; font-size: clamp(24px, 3vw, 36px); }
.tour-unavailable p { color: var(--muted); line-height: 1.8; }
.tour-unavailable .w-actions { margin-top: 22px; }
.tour-noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; font-size: 12px; background: #f8f8f0; color: var(--ink); border-top: 1px solid var(--line); z-index: 50; }
@media (max-width: 900px) {
 #tour-quote .w-page-intro-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
 #tour-quote .w-page-summary { grid-column: 1; grid-row: 2; }
 .tour-task-body { grid-template-columns: 1fr; }
 .tour-task-counts { gap: 16px; }
 .tour-task-counts strong { font-size: 22px; }
}
@media (max-width: 600px) {
 body > .app-shell { padding: 12px 14px 8px; }
 .app-header { margin-bottom: 10px; }
 .brand { font-size: 24px; }
 .tour-heading-meta { gap: 8px; }
 .tour-kicker { display: none; }
 .tour-mode { padding-left: 0; border-left: 0; font-size: 11px; }
 .tour-count { display: none; }
 .tour-navigation { margin-bottom: 12px; padding-bottom: 10px; }
 #group-nav { width: 100%; justify-content: space-between; gap: 0; }
 #group-nav > a { gap: 5px; padding: 10px 12px; font-size: 12px; min-height: 44px; }
 .w-page-intro h1 { font-size: 27px; }
 .w-page-chrome { padding-bottom: 12px; }
 .tour-footer { gap: 10px; padding-top: 10px; margin-top: 8px; }
 .tour-footer strong { font-size: 12px; }
 .tour-footer span { max-width: 190px; font-size: 10px; }
 .tour-footer .button { padding: 10px 12px; font-size: 11px; }
 .public-demo-banner { padding-inline: 16px; }
 .public-demo-banner p > span { display: none; }
 #tour-tasks .w-page-intro-summary { gap: 12px; }
 .tour-task-counts { gap: 20px; }
 .tour-task-counts > div { min-width: 0; }
 .tour-task-counts span { font-size: 10px; }
 .tour-task-counts strong { font-size: 20px; }
 .tour-task-toolbar { margin-top: 12px; }
 .tour-task-toolbar p { font-size: 11px; }
 .tour-task-toolbar .button { font-size: 11px; padding-inline: 12px; }
 .tour-task h2 { font-size: 18px; }
 .tour-task-facts { gap: 10px; grid-template-columns: 1fr 1.2fr; }
 .tour-task-facts > div:last-child { grid-column: 1 / -1; display: flex; gap: 12px; }
 #tour-quote .w-table th, #tour-quote .w-table td { padding: 10px 8px; font-size: 11px; }
 #tour-quote .w-table th:first-child { width: 45%; }
 .tour-unavailable { padding: 18px 6px; }
}
@media (max-height: 580px) {
 body > .app-shell { padding-block: 8px; }
 .app-header { margin-bottom: 8px; }
 .tour-navigation { margin-bottom: 8px; padding-bottom: 6px; }
 .w-page-chrome { padding-bottom: 8px; }
 .w-page-intro h1 { font-size: 24px; }
 .tour-footer { margin-top: 6px; padding-top: 6px; }
 .tour-footer span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* In a landscape-sized overlay, the parent already supplies the Tekil header. */
@media (max-height: 500px) {
 body.is-embedded .app-header { display: none; }
 body.is-embedded > .app-shell { grid-template-rows: auto minmax(0, 1fr) auto; }
 .tour-navigation { margin-bottom: 6px; padding-bottom: 4px; }
 .w-breadcrumb { margin-bottom: 4px; }
 .w-page-intro h1 { font-size: 22px; }
 .w-page-intro .w-meta { margin-top: 4px; font-size: 10px; }
 .w-page-chrome { padding-bottom: 6px; }
 #tour-quote .w-page-intro-summary, #tour-tasks .w-page-intro-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
 #tour-quote .w-page-summary, #tour-tasks .w-page-summary { grid-column: 2; grid-row: 1; }
 .w-page-summary .sales-lifecycle { padding: 6px 8px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .tour-task-counts { gap: 14px; }
 .tour-task-counts strong { font-size: 20px; }
 .tour-task-toolbar { margin-top: 5px; }
 .tour-footer { padding-top: 6px; margin-top: 6px; }
 .tour-footer span { display: none; }
}
@media (max-width: 600px) and (min-height: 501px) {
 .tour-footer span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
}
