/* Shared questionnaire and DICE UI tour, in Chandler's existing visual language. */
.questionnaire-home {max-width:1200px;margin-inline:auto;}
.questionnaire-home>.headrow {align-items:center;gap:20px;margin-bottom:24px;}
.questionnaire-home .response-sections {margin-top:28px;}
.questionnaire-home .request {padding:24px;gap:24px;}
.questionnaire-home .next-section {background:#e9e1d3;border:1px solid #c9b89f;border-radius:12px;}
.questionnaire-home .request h2 {margin:0 0 8px;}
.questionnaire-home .request small {display:block;color:#685d4e;margin-top:8px;}
.collection-waiting {padding:24px 0;}
.collection-waiting h2 {margin:0 0 12px;}
.section-map {scroll-padding-inline:16px;}
.section-map li {flex-shrink:0;}
.section-map .map-future {display:flex;flex-direction:column;justify-content:center;max-width:200px;gap:4px;padding:12px 16px;}
.section-map .map-future small {font-size:12px;line-height:1.4;}
.section-map button:disabled {opacity:.6;}
.form-progress {margin:0 0 24px;}
.form-progress>div {display:flex;justify-content:space-between;gap:16px;font-size:14px;color:#685d4e;margin-bottom:10px;}
.form-progress progress {display:block;width:100%;height:5px;border:0;border-radius:8px;background:#d9d0c2;accent-color:#745937;}
.form-progress progress::-webkit-progress-bar {background:#d9d0c2;border-radius:8px;}
.form-progress progress::-webkit-progress-value {background:#745937;border-radius:8px;transition:width .18s;}
.form-progress progress::-moz-progress-bar {background:#745937;border-radius:8px;}
.preparation-note {padding:18px 20px;margin:20px 0 28px;background:#eae4d8;border-radius:10px;}
.preparation-note p {margin:0 0 8px;line-height:1.6;}
.capture .formfields>.field {margin-bottom:24px;}
.capture .form-footer {gap:20px;}
.inquiry-section {padding:24px 0;border-bottom:1px solid #d4cabb;}
.inquiry-section .headrow {margin-bottom:16px;}
.inquiry-section h2 {margin:0;}
.collection-control {display:flex;align-items:center;justify-content:space-between;gap:24px;background:#eae2d4;border:1px solid #cbbca4;padding:24px;border-radius:12px;margin-bottom:32px;}
.collection-control h2 {margin:0 0 10px;font-size:23px;}
.collection-control p {margin:0;max-width:60ch;line-height:1.6;}
.collection-control .actions {flex-shrink:0;flex-direction:column;align-items:stretch;}
.details-actions {display:flex;gap:16px;flex-wrap:wrap;margin:24px 0;}
.footer-tools {display:flex;gap:20px;align-items:center;}
.chandler-tour-backdrop {position:fixed;inset:0;background:rgba(30,26,20,.52);z-index:10010;}
.chandler-tour-ring {position:fixed;pointer-events:none;z-index:10011;border:2px solid #c3a77d;border-radius:10px;box-shadow:0 0 0 4px rgba(241,234,223,.22);}
.chandler-tour-card {position:fixed;z-index:10012;display:flex;flex-direction:column;gap:22px;box-sizing:border-box;width:min(410px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px;background:#f7f2e9;color:#302b25;border:1px solid #bfae93;border-radius:14px;box-shadow:0 14px 48px #18120c40;outline:none;font-family:inherit;}
.chandler-tour-card [data-slot="tour-header"] {position:relative;padding-right:30px;}
.chandler-tour-card [data-slot="tour-title"] {font:normal 26px/1.2 Georgia,serif;margin:0 0 12px;}
.chandler-tour-card [data-slot="tour-description"] {font-size:15px;line-height:1.6;margin:0;color:#5d5244;}
.tour-close {position:absolute;right:-10px;top:-10px;border:0;background:transparent;font-size:26px;min-width:44px;min-height:44px;padding:4px;}
.chandler-tour-footer {display:flex;flex-direction:column;gap:18px;}
.tour-position {display:flex;align-items:center;justify-content:space-between;gap:16px;color:#685d4e;font-size:13px;}
.chandler-tour-footer .actions {display:flex;justify-content:flex-end;gap:10px;}
.chandler-tour-card button {min-height:44px;}
body:not(.keyboard) .chandler-tour-card :focus {outline:none;box-shadow:none;}
body.keyboard .chandler-tour-card button:focus {outline:2px solid #745937;outline-offset:3px;}
@media(max-width:650px){
 .questionnaire-home .request {padding:20px;gap:18px;align-items:stretch;}
 .questionnaire-home>.headrow {align-items:flex-start;gap:12px;}
 .questionnaire-home>.headrow h1 {font-size:30px;}
 .questionnaire-home>.headrow .text-button {font-size:13px;white-space:nowrap;}
 .questionnaire-home .request .primary {width:100%;}
 .collection-control {padding:20px;flex-direction:column;align-items:stretch;margin-bottom:24px;}
 .form-progress {margin-bottom:22px;}
 .form-progress>div {font-size:12px;}
 .inquiry-review .form-footer {position:static;}
 .preparation-note {padding:16px;margin:16px 0 24px;}
 .footer-tools {gap:12px;flex-wrap:wrap;}
 .chandler-tour-card {padding:22px;gap:18px;}
}
@media(prefers-reduced-motion:reduce){.form-progress progress::-webkit-progress-value{transition:none;}}

.section-map {align-items:center;}
.section-map .map-future {min-width:150px;width:150px;max-width:none;padding:12px;line-height:1.4;}
.form-footer [data-tour="save"] button[data-flow="save-exit"] {white-space:nowrap;}
.choice-comparison {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin:24px 0;}
.choice-comparison figure {margin:0;}
.choice-comparison img {width:100%;height:150px;object-fit:cover;border-radius:8px;}
.choice-comparison figcaption {margin-top:10px;font-weight:600;}
.compare-trigger {margin-bottom:20px;}
@media(max-width:650px){.form-footer [data-tour="save"] {display:grid;grid-template-columns:1fr auto;gap:6px 16px;align-items:center;}.form-footer [data-tour="save"] br {display:none;}.form-footer [data-action="help"]{grid-column:1 / -1;text-align:left;padding:0;}}
.participant .capture .compare-trigger + form .formfields {margin-top:8px;}
@media(max-width:650px){
 .participant .brand:has(#staffProject) {flex-wrap:wrap;}
 .participant .brand .right:has(#staffProject) {display:grid;grid-template-columns:minmax(0,1fr) auto auto;flex-basis:100%;width:100%;margin:8px 0 0;gap:8px;}
 .participant #staffProject {min-width:0;max-width:none;width:100%;min-height:40px;font-size:13px;padding:8px;}
}

/* Persistent staff hierarchy, including review and shared questionnaire screens. */
.staff-shell main{max-width:none;margin:0;padding:32px clamp(24px,3vw,64px) 48px}
.staff-shell .staff-brand{padding-block:18px;background:#ece5d9}
.staff-shell .staff-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:clamp(28px,3vw,56px);align-items:start}
.staff-shell .staff-content{min-width:0}
.staff-navigation{position:sticky;top:24px;display:flex;flex-direction:column;min-height:calc(100dvh - 220px);padding:0 22px 0 0;border-right:1px solid var(--line)}
.staff-navigation .staff-nav-link{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;text-align:left;padding:12px 14px;margin:2px 0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font-size:14px;line-height:1.4;white-space:normal}
.staff-navigation .staff-nav-link:hover{background:#ebe3d6}
.staff-navigation .staff-nav-link.active{background:#e4dac9;border-color:#d1c2ac;font-weight:650;color:#493925}
.staff-navigation .staff-nav-root{font-size:16px;font-weight:600}
.staff-nav-job{margin-top:26px;min-width:0}
.staff-nav-job label,.staff-nav-job h2{display:block;font:500 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0 0 10px;padding:0 14px;color:var(--muted)}
.staff-shell .staff-navigation #staffProject{width:100%;max-width:none;min-width:0;min-height:48px;background:var(--surface);font-size:14px;padding:12px 8px;margin:0 0 14px}
.staff-nav-children{border-left:1px solid var(--line);margin:6px 0 8px 22px;padding-left:10px}
.staff-navigation .staff-nav-child{font-size:13px;padding:10px 12px;min-height:44px}
.staff-nav-help{margin-top:auto;padding-top:32px}
.staff-breadcrumbs{margin:0 0 28px}
.staff-breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;list-style:none;margin:0;padding:0}
.staff-breadcrumbs li{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;line-height:1.5;color:var(--muted)}
.staff-breadcrumbs li+li:before{content:'/';color:#a49783}
.staff-breadcrumbs button{border:0;background:transparent;padding:6px 0;min-height:32px;font-size:13px;color:var(--muted);text-align:left}
.staff-breadcrumbs button:hover{color:var(--text);text-decoration:underline}
.staff-breadcrumbs [aria-current=page]{color:var(--text)}
.staff-menu-toggle{display:none}
.staff-shell .staff-content>.history-back{display:none}
.staff-shell .capture,.staff-shell .customer-home,.staff-shell .project-map{max-width:none}
.staff-shell .capture{width:100%}
.staff-shell .capture .formfields{max-width:1100px}
.staff-shell .footer{margin-left:calc(250px + clamp(28px,3vw,56px))}
@media(max-width:1100px) and (min-width:900px){
 .staff-shell .staff-layout{grid-template-columns:200px minmax(0,1fr);gap:24px}
 .staff-shell .staff-navigation{padding-right:16px}
 .staff-shell .footer{margin-left:224px}
 .staff-shell .staff-job-row,.staff-shell .jobs-table-head{grid-template-columns:minmax(140px,1fr) minmax(100px,.7fr) minmax(160px,1fr);gap:16px}
}
@media(max-width:899px){
 .staff-shell main{padding:20px 16px 40px}
 .staff-shell .staff-layout{display:block}
 .staff-shell .staff-brand{display:flex;flex-wrap:nowrap;gap:10px}
 .staff-shell .staff-brand strong{font-size:23px}
 .staff-shell .staff-brand img{width:34px;height:34px}
 .staff-shell .staff-menu-toggle{display:block;margin-left:auto;min-height:44px;padding:10px;font-size:13px}
 .staff-shell .staff-navigation{display:none;position:static;min-height:0;margin-bottom:24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 .staff-shell .staff-navigation.is-open{display:flex}
 .staff-nav-job{margin-top:16px}
 .staff-nav-help{padding-top:16px}
 .staff-breadcrumbs{margin-bottom:24px}
 .staff-breadcrumbs button{min-height:44px}
 .staff-shell .footer{margin-left:0}
 .staff-shell .jobs-table-head{display:none}
 .staff-shell .staff-job-row{display:flex;flex-direction:column;align-items:stretch;padding:20px;gap:20px}
 .staff-shell .mobile-cell-label{display:block}
}
.staff-shell .staff-navigation #staffProject{appearance:none;-webkit-appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2370583a' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}
@media(min-width:900px){.staff-navigation{max-height:calc(100dvh - 48px);overflow-y:auto;scrollbar-width:thin}}

/* Shared tour invitation, with native dialog focus trapping and quiet pointer focus. */
.tour-invitation{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:32px;overflow:auto;border:1px solid #bfae93;border-radius:16px;background:#f7f2e9;color:#302b25;box-shadow:0 16px 64px #18120c40;font-family:inherit}
.tour-invitation::backdrop{background:rgba(30,26,20,.52)}
.tour-invitation h2{font:normal 32px/1.15 Georgia,serif;margin:0 0 20px}
.tour-invitation p{font-size:16px;line-height:1.6;margin:0 0 16px;color:#5d5244}
.tour-invitation .tour-defer-note{font-size:14px;margin-bottom:28px}
.tour-invitation-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tour-invitation-actions button{min-height:48px;padding:12px 16px;font-size:16px;white-space:normal}
body:not(.keyboard) .tour-invitation :focus,body:not(.keyboard) .tour-invitation:focus{outline:none;box-shadow:none}
body.keyboard .tour-invitation button:focus{outline:2px solid #745937;outline-offset:3px}
@media(max-width:599px){
 .tour-invitation{padding:24px;border-radius:14px;width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
 .chandler-tour-card{width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:20px;overflow:auto;overscroll-behavior:contain}
 .chandler-tour-footer .actions{display:grid;grid-template-columns:1fr 1fr}
 .chandler-tour-footer button{min-height:48px;font-size:16px}
 .chandler-tour-card [data-slot="tour-title"]{font-size:24px;overflow-wrap:anywhere}
}

.tour-invitation{inset:0}
/* Phone tour controls stay in a bounded bottom sheet, independent of target height. */
@media(max-width:599px){.chandler-tour-card{inset:auto 16px max(16px,env(safe-area-inset-bottom)) !important;transform:none !important;max-height:calc(100dvh - 32px);width:auto}}
