/* Show all unit numbers inside a compact, naturally wrapping floorplan header. */
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary{grid-template-columns:14px 50px 75px minmax(0,1fr) 28px!important;grid-template-rows:auto auto!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-unit-list{display:flex!important;grid-column:2/-1!important;grid-row:2!important;flex-wrap:wrap!important;overflow:visible!important;max-height:none!important;width:auto!important;height:auto!important;gap:4px!important;margin:0!important;min-width:0!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-unit-list .ct-unit-pill{display:inline-flex!important;flex:0 0 auto!important;min-height:20px!important;font-size:10px!important;line-height:1.2!important;padding:3px 6px!important;white-space:nowrap!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-chevron{grid-column:1!important;grid-row:1!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>strong{grid-column:2!important;grid-row:1!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-size{grid-column:3!important;grid-row:1!important}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-price-range{grid-column:4!important;grid-row:1!important;overflow-wrap:anywhere;white-space:normal!important;min-width:0}
body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary>.ct-plan-count{grid-column:5!important;grid-row:1!important}
/* Native Safari date fields have an intrinsic width unless every grid ancestor can shrink. */
body #mainContent #page-tour#page-tour .tour-core-preferences,body #mainContent #page-tour#page-tour .tour-core-preferences>label{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body #mainContent #page-tour#page-tour #tourTargetDate{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding:9px 10px!important;font-size:16px!important;line-height:1.25!important;min-height:44px!important;overflow:hidden!important;appearance:none;-webkit-appearance:none}
#tourTargetDate::-webkit-date-and-time-value{text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis}
#tourTargetDate::-webkit-datetime-edit{min-width:0;padding:0}
#showModeTop{display:inline-flex!important;flex:0 0 auto!important;align-items:center;justify-content:center;min-height:40px!important;font-size:12px!important;padding:8px 12px!important;border-color:#ddd5e8!important;color:#57466b!important;background:#f5f1f9!important}
body .header-actions:has(#showModeTop){min-width:0;flex-wrap:wrap}
.sm .sm-head-actions{flex-wrap:nowrap}.sm .sm-head #smMeasure[aria-pressed=true]{background:#eee6f7;border-color:#a392bc}
.sm-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);margin:0!important}
.sm-chooser{color:#302b3a;background:#fff;border:1px solid #e4dfea;border-radius:18px;padding:22px;width:min(540px,calc(100vw - 30px));max-height:85dvh;overflow:hidden;box-sizing:border-box;box-shadow:0 20px 80px #2b22382b}
.sm-chooser[open]{display:flex;flex-direction:column;gap:14px}.sm-chooser::backdrop{background:#28213166}.sm-chooser header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sm-chooser small{color:#857a91;font-size:11px}.sm-chooser h2{font-size:20px;margin:4px 0}.sm-chooser button{font:inherit;border:1px solid #e4dfea;background:#faf8fc;color:#4d405f;border-radius:10px;padding:12px;min-height:44px;cursor:pointer}.sm-choose-list{overflow-y:auto;min-height:0;display:grid;gap:8px}.sm-choose-list button{text-align:left;display:flex;flex-direction:column;gap:5px}.sm-choose-list button:focus-visible{outline:2px solid #8e74aa;outline-offset:2px}.tl-match-row{display:block;width:100%;text-align:left;padding:14px;margin:8px 0;min-height:48px}
@media(max-width:540px){body.ns-fit-active #mainContent #page-tour#page-tour .ct-floorplan>summary{grid-template-columns:12px 38px 60px minmax(0,1fr) 22px!important;gap:5px!important}.sm .sm-head{gap:4px}.sm .sm-head button{padding:7px;font-size:11px}.sm .sm-head-actions{gap:3px}.sm .sm-head #smFull{max-width:86px}#showModeTop{padding-inline:9px!important}}
/* One stable header row, with Show mode and More kept together. */
body #tlWorkspaceHeader{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto auto!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:60px!important;max-height:none!important}
body #tlWorkspaceHeader>.brand{grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:hidden;justify-self:start}
body #tlWorkspaceHeader>.team-profile{grid-column:3!important;grid-row:1!important;min-width:0!important;justify-self:end!important}
body #tlWorkspaceHeader>.tl-header-actions{display:flex!important;grid-column:4!important;grid-row:1!important;align-items:center;gap:4px;min-width:0}
body #tlWorkspaceHeader #showModeTop{display:inline-flex!important;min-height:40px!important;white-space:nowrap;margin:0!important}
body #tlWorkspaceHeader #compactHeaderToggle{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;margin:0!important;letter-spacing:1px;font-size:20px!important;background:transparent!important;border:1px solid transparent!important;border-radius:9px!important}
body #tlWorkspaceHeader #compactHeaderToggle[aria-expanded=true]{background:#eee9f4!important;border-color:#ded6e9!important}
/* Small version control has its own place, instead of covering the header. */
body .tl-version{font:500 8px/1.25 system-ui,sans-serif!important;padding:3px 4px!important;min-height:20px!important;height:20px!important;min-width:0!important;width:auto!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#837b8c!important;box-shadow:none!important;letter-spacing:0!important}
body>.tl-version{right:7px!important;top:5px!important}
body #tlWorkspaceHeader>.tl-version{display:inline-flex!important;position:static!important;grid-column:5!important;grid-row:1!important;align-items:center;justify-self:end!important;z-index:auto!important}
body.sm-open>.tl-version{display:none!important}
.sm .sm-head #smVersion{font-size:8px!important;min-height:20px!important;padding:2px 4px!important;min-width:0!important;background:transparent!important;border:0!important}
/* The utility popover is a consistent list; uncommon administration is folded. */
body.compact-experience #tlWorkspaceHeader #tourHeaderTools{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;width:300px!important;max-width:calc(100vw - 24px)!important;padding:12px!important;border:1px solid #e2dce9!important;border-radius:14px!important;background:#fff!important;box-shadow:0 14px 42px #3025381c!important;max-height:calc(100dvh - var(--preview-header-height,100px) - 16px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin}
body.compact-experience.compact-header-collapsed #tlWorkspaceHeader #tourHeaderTools{display:none!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools>*{flex:none!important;order:10!important;width:100%!important;min-width:0!important;margin:0!important;grid-area:auto!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .workspace-main-nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;order:0!important;gap:2px!important;padding:0 0 8px!important;border-bottom:1px solid #ede9f2!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .main-nav{display:none!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .simple-tour-heading-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;order:1!important;gap:2px!important;padding:0 0 8px!important;border-bottom:1px solid #ede9f2!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools :is(button,a,summary){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:40px!important;max-width:100%!important;width:100%!important;margin:0!important;padding:9px 11px!important;box-sizing:border-box!important;font:500 12px/1.4 system-ui,sans-serif!important;text-align:left!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere;border:0!important;border-radius:8px!important;background:transparent!important;color:#554b63!important;box-shadow:none!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools :is(button,a,summary):hover{background:#f5f2f9!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools :is(button,a,summary):focus-visible{outline:2px solid #8e78a9!important;outline-offset:-2px}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .workspace-main-nav>button.active{background:#eee8f5!important;color:#594373!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools svg{width:17px!important;height:17px!important;flex:0 0 17px}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .tl-menu-admin{order:20!important;border-top:1px solid #ede9f2;padding-top:6px}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .tl-menu-admin>summary::after,body.compact-experience #tlWorkspaceHeader #tourHeaderTools .print-units-menu>summary::after{content:'⌄';margin-left:auto}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools details[open]>summary::after{transform:rotate(180deg)}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .tl-menu-admin>div{padding-left:8px}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools #tourSyncStatus{order:30!important;border-top:1px solid #ede9f2!important;border-radius:0!important;font-size:10px!important;min-height:32px!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools #syncSummary{order:31!important;font-size:10px!important;min-height:32px!important;padding-top:5px!important;border:0!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools #quickRefreshBtn{order:12!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools #openIssueReportBtn{order:13!important}
body.compact-experience #tlWorkspaceHeader #tourHeaderTools .print-units-popover{position:static!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0 0 0 8px!important;box-shadow:none!important;border:0!important}
@media(max-width:600px){
 body #tlWorkspaceHeader{grid-template-columns:auto minmax(0,1fr) auto!important;gap:5px 8px!important;padding-block:6px!important}
 body #tlWorkspaceHeader>.brand{grid-column:2!important;grid-row:1!important}
 body #tlWorkspaceHeader>.team-profile{grid-column:1/3!important;grid-row:2!important;justify-self:start!important}
 body #tlWorkspaceHeader>.team-profile select{width:140px!important;max-width:100%!important;min-height:40px!important}
 body #tlWorkspaceHeader>.tl-header-actions{grid-column:3!important;grid-row:2!important}
 body #tlWorkspaceHeader>.tl-version{grid-column:3!important;grid-row:1!important}
 body #tlWorkspaceHeader #showModeTop{padding-inline:9px!important;font-size:11px!important}
 body.compact-experience #tlWorkspaceHeader #tourHeaderTools{right:12px!important}
}

body #tlWorkspaceHeader #compactHeaderToggle[hidden]{display:none!important}

@media(max-width:600px){body.workspace-on.ns-fit-active #mainContent #page-tour.compact-tour-mode .ct-step-toggle{top:var(--preview-header-height,100px)!important}}
