/* v3.3.91: restrained surfaces, readable forms and touch-first compact workspace. */
:root { --ui-focus:#376b92; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:rgba(55,107,146,.15); }
:where(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--ui-focus)!important; outline-offset:2px!important; }
.topbar-inner { column-gap:16px!important; }
.panel { border-color:#dfe5e9; box-shadow:0 1px 3px #26384908; }
.page-heading h1 { letter-spacing:-.035em; }
body.ns-fit-active #page-tour .tour-setup-section-title small { color:#596e7e!important; }
body.ns-fit-active #page-tour #tour-details { overflow-y:auto!important; overscroll-behavior:contain; scroll-padding-block:16px; }
body.ns-fit-active #page-tour .tour-setup-panel>.tour-secondary-preferences:has(details[open]) { overflow-y:auto!important; overscroll-behavior:contain; }
body.ns-fit-active #page-tour .ct-plan-list { overflow-y:auto!important; overscroll-behavior:contain; }
/* Keep native disclosure content reachable; do not force closed details open. */
@media (pointer:coarse), (max-width:1180px) {
 body input:not([type=checkbox]):not([type=radio]),body select,body textarea { font-size:16px!important; }
 body.ns-fit-active #page-tour .ct-accordion-stage>.ct-step-toggle,
 body.ns-fit-active #page-tour #ctIntakeStage.ct-current>.ct-step-toggle { height:44px!important;min-height:44px!important;max-height:none!important;flex:0 0 44px!important; }
 body.ns-fit-active #page-tour #previewTourTabs button,
 body.ns-fit-active #page-tour .ns-group-tabs>.ns-group-btn,
 body.ns-fit-active #page-tour .ct-type-picker button,
 body.ns-fit-active #page-tour .chip-select button,
 body.ns-fit-active #page-tour .ct-intake-options button,
 body.ns-fit-active #page-tour .scheduled-tour-panel>summary,
 body.ns-fit-active #page-tour .ns-followup-shortcut,
 body.ns-fit-active #compactTourBar .ct-bar-expand { min-height:44px!important;height:auto!important; }
 body.ns-fit-active #page-tour .tour-setup-section input:not([type=checkbox]),
 body.ns-fit-active #page-tour .tour-setup-section select { height:44px!important;min-height:44px!important; }
 body.ns-fit-active #page-tour .ct-plan-list:has(>.ct-floorplan[open])>.ct-floorplan:not([open]):not([data-compact-hidden]) { flex:0 0 auto!important;min-height:48px!important;max-height:none!important; }
 body.ns-fit-active #page-tour .ct-plan-list>.ct-floorplan>summary { min-height:46px!important;height:auto!important;max-height:none!important; }
 body.ns-fit-active #page-tour .ct-plan-list:has(>.ct-floorplan[open])>.ct-floorplan[open]>summary { flex:0 0 auto!important;min-height:46px!important;max-height:none!important; }
 body.ns-fit-active #page-tour .ct-unit-btn { min-height:44px!important;min-width:44px!important; }
 body.ns-fit-active #page-tour .ct-type-picker { flex-shrink:0!important; }
 body.ns-fit-active #page-tour .ns-group-tabs { flex-shrink:0!important; }
}
/* Landscape / keyboard: scroll the active pane instead of clipping its form. */
@media (max-height:700px) {
 body.ns-fit-active #page-tour .tour-setup-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 body.ns-fit-active #page-tour .tour-setup-section { min-width:0!important; }
 body.ns-fit-active #page-tour .ct-step-toggle .ct-step-copy>small { display:none!important; }
}
@media (max-width:600px) {
 body.ns-fit-active #page-tour .tour-setup-grid { grid-template-columns:minmax(0,1fr)!important; }
 body.ns-fit-active .topbar-inner { max-height:none!important; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto!important; }
}

body.ns-fit-active #page-tour .ct-type-picker { display:flex!important;flex-wrap:wrap!important;gap:6px!important; }
body.ns-fit-active #page-tour .ct-type-picker button { display:flex!important;align-items:center;justify-content:center;gap:6px!important;max-height:none!important;line-height:1.3!important; }
.ct-bedroom-count { display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;border-radius:5px;background:#e6edf2;color:#304c60;font-size:12px;font-variant-numeric:tabular-nums;font-weight:750; }
button[aria-pressed=true] .ct-bedroom-count { background:#2c465b;color:#fff; }

/* ID-scoped reset defeats old crop and invert rules in every layout mode. */
#tourLabBrand { flex-shrink:0!important;min-height:44px!important;background:#fff!important; }
#tourLabBrand .leaselabs-logo-frame { display:flex!important;align-items:center!important;position:static!important;flex:0 0 auto!important;width:clamp(185px,30vw,260px)!important;height:40px!important;overflow:visible!important;background:#fff!important; }
#tourLabBrand img.leaselabs-logo { position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;filter:none!important;mix-blend-mode:normal!important;transform:none!important; }
@media(max-width:600px){#tourLabBrand .leaselabs-logo-frame{width:165px!important;height:36px!important}}
@media(max-width:350px){#tourLabBrand .leaselabs-logo-frame{width:140px!important}}
