/* CreateUI spacing, controls and motion adapted to the vanilla Fieldwork app. */
:root{--canvas:#f8fafc;--surface:#fff;--ink:#181d27;--muted:#657080;--line:#e8ecf1;--soft:#f0f3f7;--blue:#335cff;--blue-soft:#eef2ff;--green:#18794e;--green-soft:#eaf7ef;--amber:#a15c07;--amber-soft:#fff6e5;--sidebar:224px;--ease:cubic-bezier(.22,1,.36,1)}
body{font-size:14px;line-height:1.45}h1{font-size:28px;letter-spacing:-.8px;font-weight:620}h2{font-size:17px;font-weight:600}h3{font-size:14px;font-weight:600}.quiet,small{font-size:12px;line-height:1.5;color:var(--muted)}.metric-value,.crm-money-grid strong,.next-payment strong,.invoice-amount{font-family:Geist,Arial,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.metric-value{font-size:30px;font-weight:600}.metric-note{font-size:11px}.panel{border-radius:20px;border:1px solid var(--line);box-shadow:none}.main{padding:28px;max-width:1600px}.page-stack{gap:20px}.day-header{padding:0;border:0;background:transparent;box-shadow:none;min-height:76px}.day-header h1{margin-top:6px}.day-header p:empty,.page-heading p:empty{display:none}.page-heading{min-height:60px}.panel-heading h2{font-size:15px}.brand-mark{background:var(--blue);border-radius:9px;width:30px;height:30px;grid-template-columns:6px 6px;gap:3px}.brand-mark i{width:6px;height:6px;background:#fff;border-radius:1px}.sidebar{padding:24px 16px;border-right:1px solid var(--line)}.brand{font-size:20px;letter-spacing:-.5px}.nav-group{margin-top:32px;gap:5px}.nav-link{min-height:44px;border-radius:16px;padding:10px 12px;font-size:14px;font-weight:450}.nav-link.active{background:var(--soft);color:var(--ink);font-weight:560}.nav-link:hover{background:var(--canvas)}.nav-link .icon{width:20px;height:20px;color:var(--muted)}.sidebar-bottom{display:flex;flex-direction:column;gap:16px}.account-button{border:0;background:transparent;display:flex;align-items:center;text-align:left;gap:12px;padding:8px;min-height:56px;width:100%;border-radius:14px}.account-button:hover{background:var(--canvas)}.account-button strong{display:block;font-size:13px;font-weight:550}.account-button small{display:block;font-size:11px;margin-top:2px}.avatar{width:36px;height:36px;background:var(--blue-soft);color:var(--blue);font-size:13px}.topbar{height:72px;border:0;background:var(--canvas);backdrop-filter:none;padding:14px 28px;gap:16px}.global-search{background:#fff;border:1px solid var(--line);width:360px;height:44px;border-radius:16px;padding:0 14px;font-size:13px;display:flex;text-align:left;color:var(--muted)}.global-search span{flex:1}.global-search kbd{border:0;background:var(--soft);border-radius:6px;display:grid;place-items:center;min-width:24px;height:24px;color:var(--muted);font:12px Geist}.topbar-actions{margin-left:auto;gap:12px}.topbar .icon-only{width:44px;height:44px;min-width:44px;min-height:44px;background:white;border:1px solid var(--line);border-radius:16px}.tablet-account{display:none}.button{border-radius:12px;border-color:var(--line);font-weight:500;transition:background 150ms ease-out,border-color 150ms ease-out,transform 150ms ease-out,box-shadow 150ms ease-out}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#2549e6;border-color:#2549e6}.button:active{transform:scale(.97)}.button.small{border-radius:10px}.badge{border-radius:6px;font-size:11px;padding:5px 8px;font-weight:500}.badge.blue{color:var(--blue);background:var(--blue-soft)}.badge.green{color:var(--green);background:var(--green-soft)}.badge.amber{color:var(--amber);background:var(--amber-soft)}.badge.neutral{color:var(--muted);background:var(--soft)}.metric-strip{border-radius:20px}.metric+.metric{border-color:var(--line)}.metric-label{font-size:12px;color:var(--muted)}.build-icon,.business-avatar{border-radius:12px;background:var(--soft);color:var(--muted)}.stop-number.current{background:var(--blue);color:#fff}.segmented{background:var(--soft);padding:4px;border-radius:12px}.segmented button{border-radius:9px;min-height:36px;color:var(--muted);transition:color 150ms,background 150ms,box-shadow 150ms}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #18243b12}.field input,.field select,.field textarea,.search-field,.filter-fields select{border:1px solid #dce3ed;border-radius:12px;min-height:46px;background:white;transition:border-color 150ms ease-out,box-shadow 150ms ease-out}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #335cff14;outline:none}.field>span{font-size:13px;color:var(--ink);font-weight:500}.form-grid{gap:18px 20px}input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:17px;height:17px;flex-shrink:0}.field textarea{padding:12px;resize:vertical}.modal{border:1px solid var(--line);border-radius:24px;max-height:90dvh;padding:24px;box-shadow:0 24px 80px #16213c24}.modal::backdrop,dialog::backdrop{background:#111b3040;backdrop-filter:blur(3px)}.modal[open]{animation:modal-in 200ms var(--ease)}.modal-heading{gap:16px}.modal-heading h2{font-size:20px;letter-spacing:-.4px}.modal-copy{font-size:13px;margin-bottom:18px;color:var(--muted)}.form-actions{margin-top:24px}.check-field{gap:10px}.form-actions .button{min-width:100px}.toast{border-radius:14px;background:var(--ink);box-shadow:0 8px 24px #16213c24;transition:opacity 150ms,transform 200ms var(--ease)}.view-enter{animation:page-in 220ms var(--ease)}.intro .intro-region{animation:intro-in 350ms var(--ease) both}.intro .intro-region:nth-child(2){animation-delay:55ms}.intro .intro-region:nth-child(3){animation-delay:110ms}
.prospect-workbench{display:block}.prospect-results{display:grid;grid-template-columns:1fr}.prospect-item{border-radius:0;min-height:86px;padding:16px 20px;border-bottom:1px solid var(--line);background:white;text-align:left;transition:background 150ms}.prospect-item:hover,.prospect-item.selected{background:var(--canvas)}.prospect-item .grow small:last-child{font-size:11px}.prospect-item strong{font-weight:550}.prospect-item .badge{margin-left:8px}.prospect-workspace{padding:0;overflow:hidden}.prospect-workspace .toolbar,.prospect-workspace .list-caption,.prospect-workspace .pagination{padding:16px 20px}.prospect-workspace .toolbar{margin:0}.filter-fields select{font-size:12px;min-height:42px}.list-caption{border-bottom:1px solid var(--line);font-size:12px}.text-button{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;color:var(--muted);min-height:36px;font-size:12px}.text-button:hover{color:var(--blue)}
.search-dialog{padding:0;border:1px solid var(--line);border-radius:24px;width:min(680px,calc(100vw - 32px));max-height:min(720px,85dvh);margin:12vh auto auto;box-shadow:0 24px 80px #16213c24;overflow:auto;color:var(--ink)}.search-dialog[open]{animation:modal-in 200ms var(--ease)}.search-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:14px;padding:14px 16px 14px 24px;background:white;border-bottom:1px solid var(--line)}.search-dialog-head>input{flex:1;min-width:0;border:0;outline:none;font-size:16px;background:transparent;min-height:44px}.search-dialog-head>.icon{color:var(--muted)}.search-section-label{padding:16px 24px 8px;color:var(--muted);font-size:11px;font-weight:500}.quick-result{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:white;padding:12px 24px;min-height:80px;width:100%}.quick-result strong,.quick-result small{display:block}.quick-result strong{font-weight:550}.quick-result small{margin-top:4px}.quick-result.highlight,.quick-result:hover{background:var(--canvas)}.quick-result .badge{max-width:120px;white-space:normal}.search-empty{padding:28px 24px;font-size:13px;color:var(--muted)}.search-keyhint{padding:12px 24px;border-top:1px solid var(--line);display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);background:#fff}.search-keyhint span{margin-left:auto}.business-drawer{inset:12px 12px 12px auto;margin:0;padding:20px 24px;width:min(440px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 80px #16213c24;color:var(--ink);overflow:auto}.business-drawer[open]{animation:drawer-in 240ms var(--ease)}.business-drawer.closing{animation:drawer-out 160ms ease-in both}.search-dialog.closing{animation:modal-out 160ms ease-in both}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.drawer-head .icon-only{border:0;background:var(--canvas)}#drawer-title{font-size:23px;letter-spacing:-.5px;margin-top:16px;margin-bottom:6px}.drawer-status{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drawer-section{border-top:1px solid var(--line);padding:20px 0;display:flex;flex-direction:column;gap:10px}.drawer-section:first-of-type{margin-top:20px}.drawer-section p{font-size:13px;overflow-wrap:anywhere}.drawer-section h3{font-size:13px}.contact-lines{margin:20px 0}.contact-lines p{gap:10px}.contact-lines .inline-link{color:var(--ink);font-size:14px}
.settings-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);overflow:auto;margin-bottom:4px}.settings-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 16px;border:0;background:transparent;color:var(--muted);font-size:14px;border-bottom:2px solid transparent;transition:color 150ms,border-color 200ms;white-space:nowrap}.settings-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}.profile-panel{max-width:850px;padding:28px}.profile-heading{display:flex;align-items:center;gap:16px;padding-bottom:24px;border-bottom:1px solid var(--line)}.profile-avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-size:22px}.profile-heading h2{font-size:19px}.profile-fields{padding-top:24px}.profile-fields h3{margin-bottom:20px}.dirty-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:24px;animation:page-in 160ms ease-out}.dirty-actions[hidden],.handoff-fields[hidden]{display:none!important}.settings-row{padding:20px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-row:last-child{border:0;padding-bottom:0}.settings-row strong{font-size:14px;font-weight:550}.settings-row .quiet{margin-top:4px}.settings-row .icon{color:var(--muted)}
.readiness-checks{padding:18px;background:var(--canvas);border-radius:16px}.readiness-checks h3{margin-bottom:12px}.readiness-checks .check-field{min-height:40px}.review-summary{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--muted);font-size:12px;padding:0;min-height:44px;text-align:left}.demo-layout.field-layout{grid-template-columns:minmax(0,1fr) 306px;align-items:start}.field-layout .demo-browser{border-radius:20px;border:1px solid var(--line);overflow:hidden;background:white}.browser-chrome{background:white;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);height:40px;padding:0 14px}.browser-footer{background:white;gap:12px;border-top:1px solid var(--line);padding:8px 14px}.demo-primary-actions{margin-top:14px;display:flex}.demo-primary-actions>.button{flex:1}.field-layout iframe{height:460px;display:block;max-width:100%;transition:max-width 240ms var(--ease);background:var(--canvas);margin:auto}.field-actions .panel{padding:20px}.contact-address{margin-top:14px;margin-bottom:4px;line-height:1.6;font-size:14px}.field-contact-actions{gap:8px;margin-top:12px}.field-contact-actions .button{flex:1;padding:0 12px}.next-step{display:flex;flex-direction:column;gap:14px}.next-step>p{font-size:13px}.next-step .row .small{border:0;padding:0 8px}.next-step>details{padding-top:14px;border-top:1px solid var(--line)}summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;list-style:none}summary::-webkit-details-marker{display:none}summary:before{content:'›';color:var(--muted);font-size:20px;transform:rotate(90deg);transition:transform 200ms var(--ease)}details[open]>summary:before{transform:rotate(-90deg)}.next-step details p{font-size:13px;color:var(--muted);padding:10px 0;overflow-wrap:anywhere}.research-panel{display:flex;align-items:center;justify-content:space-between;gap:8px}.research-panel .inline-link{font-size:11px}.last-visit{max-width:850px;display:flex;flex-direction:column;gap:8px}
.outcome-options{padding:0;margin:0 0 22px;border:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.outcome-options legend{font-size:13px;font-weight:550;margin-bottom:12px}.outcome-options label{position:relative;display:flex}.outcome-options input{position:absolute;opacity:0;width:1px;height:1px}.outcome-options span{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;min-height:48px;padding:10px 14px;font-size:13px;width:100%;transition:background 150ms,border-color 150ms}.outcome-options input:checked+span{background:var(--blue-soft);border-color:var(--blue);color:var(--blue)}.outcome-options input:focus-visible+span{outline:2px solid var(--blue);outline-offset:3px}.visit-more{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}.visit-more .form-grid{margin-top:10px}.visit-handoff-toggle{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.handoff-fields{padding:16px;background:var(--canvas);border-radius:16px;margin-top:12px}.handoff-row{display:flex;align-items:center;width:100%;gap:12px;border:0;background:white;text-align:left;padding:16px 0;border-top:1px solid var(--line)}.handoff-row:hover{background:var(--canvas)}.handoff-row strong,.handoff-row small,.handoff-request{display:block}.handoff-row strong{font-size:13px;font-weight:550}.handoff-request{font-size:12px;margin:5px 0;max-width:100%;overflow-wrap:anywhere;color:var(--muted)}.handoff-row small{font-size:11px}.handoff-queue .panel-heading{margin-bottom:4px;flex-wrap:wrap}.handoff-queue .panel-heading h2{margin-right:auto}.compact-empty{display:flex;align-items:center;gap:12px;padding:20px 0 8px;color:var(--muted);font-size:13px}.handoff-queue .badge{flex-shrink:0}
.route-layout{grid-template-columns:380px minmax(0,1fr);align-items:start}.planner-estimates{padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.planner-estimates .form-grid{margin-top:16px}.route-budget-heading strong{font-size:26px;letter-spacing:-.65px}.route-intro{font-size:13px}.plan-preview-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.plan-preview-row strong,.plan-preview-row small{display:block}.plan-preview-row strong{font-size:13px;font-weight:550}.plan-preview-row small{margin-top:4px;font-size:11px}.plan-preview-row .button{min-width:44px;padding:0}.plan-exclusions{border-top:1px solid var(--line);margin-top:14px;padding-top:8px}#plan-exclusions p{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:8px 0}.route-warning{font-size:12px;color:var(--amber);margin:8px 0}.stop-controls{display:flex;gap:8px;align-items:center}.stop-controls>.button{min-width:44px;width:44px;padding:0}.stop-controls>.button span:empty{display:none}.stop-menu{position:relative}.stop-menu summary{width:44px;height:44px;justify-content:center;border:1px solid var(--line);border-radius:12px}.stop-menu summary:before{display:none}.stop-menu>div{position:absolute;right:0;top:50px;z-index:3;min-width:190px;padding:6px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 24px #16213c18}.stop-menu .button{width:100%;border:0;justify-content:flex-start}.route-stop{overflow:visible}.day-picker{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:7px}.day-picker legend{font-size:13px;margin-bottom:12px}.day-picker label{position:relative}.day-picker input{position:absolute;opacity:0;width:1px;height:1px}.day-picker span{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;font-size:12px}.day-picker input:checked+span{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}.day-picker input:focus-visible+span{outline:2px solid var(--blue);outline-offset:3px}
@keyframes page-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes modal-out{to{opacity:0;transform:translateY(6px) scale(.985)}}@keyframes drawer-in{from{opacity:0;transform:translateX(32px)}to{opacity:1;transform:none}}@keyframes drawer-out{to{opacity:0;transform:translateX(24px)}}
@media(max-width:1279px){.sidebar{display:none}.workspace{margin-left:0;width:100%}.topbar{padding:14px 24px}.tablet-brand{display:flex}.topbar>.global-search{margin-left:auto;width:44px;min-width:44px;padding:0;justify-content:center}.topbar>.global-search span,.topbar>.global-search kbd{display:none}.topbar-actions{margin-left:0}.tablet-account{display:inline-flex}.topbar-actions [data-action=activity]{display:none}.main{padding:24px 24px 112px;min-height:calc(100dvh - 72px)}.tablet-nav{display:flex;position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(790px,calc(100% - 40px));height:66px;background:#ffffffed;border:1px solid var(--line);border-radius:18px;padding:6px;gap:4px;box-shadow:0 3px 12px #16213c06;backdrop-filter:blur(12px);z-index:5}.tablet-nav a{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-size:12px;color:var(--muted)}.tablet-nav a.active{background:var(--soft);color:var(--ink)}.button.small,.inline-link,.text-button{min-height:44px}.prospect-workspace .toolbar{padding:16px}.filter-fields{display:flex;gap:8px;flex-wrap:wrap}.filter-fields select{min-height:44px}.prospect-item{padding:16px}.field-layout iframe{height:360px}.field-layout .demo-browser{background:white}.research-panel{flex-wrap:wrap}.route-layout{grid-template-columns:340px minmax(0,1fr)}.modal{max-width:calc(100vw - 40px)}.settings-tabs button{min-height:48px}.handoff-row{min-height:80px}}
@media(max-width:1000px){.overview-main{grid-template-columns:1fr}.studio-rail{display:grid;grid-template-columns:1fr 1fr}.studio-rail .handoff-queue{grid-column:1/-1}.demo-layout.field-layout{grid-template-columns:minmax(0,1fr) 280px}.route-layout{grid-template-columns:1fr}.planner-settings .form-grid{grid-template-columns:1fr 1fr}.field-layout iframe{height:330px}.profile-panel{max-width:850px}.route-overview-content{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.topbar{padding:12px 16px;height:68px;gap:10px}.brand{font-size:18px}.topbar-actions{gap:8px}.topbar-actions>.badge{display:none}.main{padding:20px 16px 110px}.page-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}h1{font-size:25px}.day-header{min-height:70px;flex-wrap:wrap}.day-controls{margin-left:auto}.metric-value{font-size:25px}.metric-note{display:none}.metric-strip{grid-template-columns:repeat(2,1fr)}.metric{padding:16px}.metric:nth-child(3){border-left:0}.metric:nth-child(n+3){border-top:1px solid var(--line)}.studio-rail{grid-template-columns:1fr}.route-overview-content{grid-template-columns:1fr}.route-overview-content>.map-wrap{display:none}.panel{padding:18px;border-radius:18px}.demo-layout.field-layout{grid-template-columns:1fr}.field-layout iframe{height:380px}.field-actions{display:grid;grid-template-columns:1fr}.field-actions .next-step{order:-1}.demo-primary-actions{margin-bottom:6px}.field-actions .research-panel{padding:12px 18px}.field-layout .browser-footer{flex-wrap:wrap}.settings-tabs{gap:0}.settings-tabs button{font-size:12px;padding:10px 12px}.settings-tabs .icon{width:16px;height:16px}.profile-panel{padding:20px}.profile-fields .form-grid{grid-template-columns:1fr}.settings-row{flex-wrap:wrap;gap:12px}.settings-row .row.wrap{width:100%}.settings-row .row.wrap .button{flex:1}.prospect-item .badge{font-size:10px;max-width:92px;white-space:normal}.prospect-item .business-avatar{display:none}.prospect-item{gap:10px;min-height:90px}.prospect-item .grow strong{font-size:13px}.prospect-item .grow small{font-size:11px}.prospect-item .icon{width:16px}.filter-fields select{flex:1;max-width:none;min-width:100px}.list-caption{gap:12px;align-items:center}.prospect-workspace .list-caption{padding:10px 16px}.list-caption span:last-child{max-width:none}.toolbar .search-field{min-width:0;width:100%}.text-button{font-size:11px}.tablet-nav{width:calc(100% - 24px);height:68px;bottom:max(12px,env(safe-area-inset-bottom));padding:5px;gap:2px}.tablet-nav a{flex-direction:column;gap:4px;font-size:10px}.tablet-nav a .icon{width:20px;height:20px}.search-dialog{margin:10px auto;max-height:calc(100dvh - 20px);width:calc(100vw - 20px);border-radius:20px}.search-dialog-head{padding:10px 12px;gap:10px}.search-dialog-head input{font-size:14px}.quick-result{padding:12px 16px;gap:10px}.quick-result .badge{font-size:10px;max-width:88px}.quick-result .business-avatar{width:32px;height:32px}.quick-result strong{font-size:13px}.quick-result small{font-size:11px}.search-keyhint{display:none}.business-drawer{padding:16px 20px}.drawer-head{margin-bottom:12px}.modal{padding:20px;max-width:calc(100vw - 24px);width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.modal .form-grid{grid-template-columns:1fr 1fr}.modal .outcome-options{gap:8px}.outcome-options span{font-size:12px;padding:10px}.outcome-options .icon{width:16px}.modal .field.wide{grid-column:1/-1}.modal .field>span{font-size:12px}.form-actions .button{flex:1}.route-budget-heading strong{font-size:23px}.route-stop{gap:10px;align-items:flex-start;flex-wrap:wrap}.route-stop>.grow{flex-basis:calc(100% - 48px)}.route-stop>.stop-controls{margin-left:42px}.active-stop-actions{display:flex;flex-wrap:wrap;gap:10px}.active-stop-actions .button{flex:1}.plan-preview-row strong{font-size:12px}.handoff-row{flex-wrap:wrap}.handoff-row>.grow{flex-basis:calc(100% - 48px)}.handoff-row>.badge{margin-left:44px}.handoff-queue .panel-heading>.button{width:100%;margin-top:8px}.browser-footer .segmented{margin-left:auto}.demos-grid{grid-template-columns:1fr}.demos-grid .demo-card{padding:14px}.page-stack>.toolbar .segmented{max-width:100%;overflow:auto}.page-stack>.toolbar .segmented button{white-space:nowrap;font-size:12px}}
.settings-tabs{position:relative}.settings-tabs button.active{border-bottom-color:transparent}.tab-indicator{position:absolute;bottom:0;left:0;height:2px;background:var(--blue);border-radius:2px;pointer-events:none}
.overview-demos .empty-state{min-height:0;padding:24px}.overview-demos .empty-state>p:empty{display:none}.overview-demos .empty-state>p{font-size:12px}.overview-demos .concept-grid:has(.empty-state){display:block}
.modal{transition:opacity 150ms ease-out,transform 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete}.modal:not([open]){opacity:0;transform:translateY(6px) scale(.985)}.modal[open]{opacity:1;transform:none}
@media(max-width:1279px){.segmented button{min-height:44px}.route-tabs button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.intro .intro-region,.view-enter{opacity:1;transform:none}}

.intro .intro-region{animation-delay:0ms}.intro .intro-region:nth-child(2){animation-delay:50ms}.intro .intro-region:nth-child(3){animation-delay:100ms}.intro .intro-region:nth-child(4){animation-delay:150ms}.budget-bar .waiting,.budget-legend .waiting{background:#91a4e8}.budget-legend{flex-wrap:wrap}
.sync-status{display:flex;align-items:center;gap:7px;border:0;background:#edf4ed;border-radius:20px;padding:8px 11px;color:#4d7254;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}.sync-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.sync-status[data-state=syncing] i{animation:sync-pulse 1s ease-in-out infinite}.sync-status[data-state=offline],.sync-status[data-state=conflict],.sync-status[data-state=error]{background:#fff0dd;color:#8c631f}.account-actions{padding-top:24px}.workspace-members .settings-row{gap:13px}.workspace-members .grow{min-width:0}.workspace-members strong,.workspace-members p,.account-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.account-button .grow{min-width:0}.profile-heading>div{min-width:0}.profile-heading h2,.profile-heading p{overflow-wrap:anywhere}.field input[readonly]{background:#f5f7f3;color:#7b8378}.auth-card h1,.auth-art p{font-weight:550;letter-spacing:-.035em}@keyframes sync-pulse{50%{opacity:.3}}@media(max-width:560px){.sync-status{padding:8px}.sync-status span{display:none}.sync-status i{width:8px;height:8px}}@media(prefers-reduced-motion:reduce){.sync-status i{animation:none}}
.sync-status{min-width:44px;min-height:44px}.segmented button{min-width:44px}
/* Shared detail and settings controls, kept within existing screens. */
.business-drawer{width:min(480px,calc(100vw - 24px));border-radius:18px}
.business-drawer .detail-identity{display:flex;align-items:center;gap:12px}
.business-drawer #drawer-title{font-size:20px;line-height:1.2;margin:0 0 4px}
.business-drawer .detail-identity p{font-size:12px}
.business-drawer .drawer-status{margin:16px 0}
.business-drawer .contact-lines{margin:15px 0 18px}
.business-drawer .drawer-section{padding:16px 0}
.business-drawer .detail-links{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}
.business-drawer .detail-links .button{font-size:12px}
.business-drawer .drawer-actions .button{white-space:normal;text-align:center}
.settings-tabs{width:max-content;max-width:100%;gap:2px;margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px;overflow:auto}
.settings-tabs button{min-height:44px;border:0;border-radius:8px;padding:0 14px;font-size:12px;font-weight:550}
.settings-tabs button.active{color:var(--blue);background:var(--blue-soft)}
.settings-tabs .tab-indicator{display:none}
.profile-panel{max-width:780px;padding:24px}
.profile-heading{gap:14px;padding-bottom:20px}
.profile-heading h2{font-size:17px}
.profile-heading .quiet{font-size:12px}
.profile-fields{padding-top:20px}
.profile-fields h3,.profile-panel>h2{font-size:13px;font-weight:650;margin-bottom:14px}
.profile-panel .form-grid{gap:14px}
.profile-panel .field input{min-height:44px;border-radius:10px}
.profile-panel .field input[readonly]{background:var(--canvas);border-color:var(--line);color:var(--muted)}
.profile-panel .account-actions{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.profile-panel .dirty-actions{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}
.workspace-members{border-top:1px solid var(--line);margin-top:10px}
.workspace-members .settings-row{padding:12px 0}
.workspace-members .avatar{width:38px;height:38px;background:var(--blue-soft);color:var(--blue);font-weight:600}
.workspace-members .quiet{font-size:11px}
.settings-row{padding:15px 0}
.page-stack>.toolbar .segmented{border:1px solid var(--line);background:var(--canvas)}
.page-stack>.toolbar .segmented button.active{color:var(--blue)}
.demos-grid .demo-card,.handoff-queue,.field-layout .panel{border-radius:14px}
.demos-grid .demo-card-meta{gap:10px}
.demos-grid .demo-card-meta .button{min-height:44px}
.field-layout .field-actions .button{min-height:44px}
@media(max-width:1279px){.business-drawer{width:min(540px,calc(100vw - 24px))}.settings-tabs button{min-height:48px}.profile-panel{max-width:100%}}
@media(max-width:700px){.settings-tabs{display:flex;width:100%;margin-bottom:12px}.settings-tabs button{min-width:44px;padding:0 9px;flex:1;font-size:11px;gap:5px}.profile-panel{padding:18px}.profile-heading{padding-bottom:16px}.profile-fields{padding-top:16px}.business-drawer{inset:8px 8px 8px auto;width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:16px;border-radius:18px}.business-drawer .drawer-actions{grid-template-columns:1fr 1fr}}
/* The experience sheet loads after styles.css, so keep the prospect layout here. */
@media(min-width:1280px){.prospect-workbench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)}.prospect-list{border-right:1px solid var(--line)}.prospect-results{max-height:min(65vh,720px);overflow:auto}}
.prospect-workspace .toolbar{padding:0}
.prospect-workspace .list-caption{padding:9px 20px}
.prospect-workspace .pagination{padding:12px 20px}
.prospect-item{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(130px,.65fr) 18px;gap:12px;min-height:70px;padding:10px 18px;border-left:3px solid transparent}
.prospect-item.selected{border-left-color:var(--blue);background:#f4f7fc}
.prospect-item .badge{margin-left:0}
@media(max-width:700px){.prospect-item{grid-template-columns:minmax(0,1fr) minmax(100px,.65fr) 16px;gap:8px;min-height:76px;padding:12px 14px}.prospect-item .business-avatar{display:none}.prospect-item .icon{display:block}.prospect-workspace .list-caption{padding:8px 16px}}
@media(max-width:1279px){.main input:not([type=checkbox]):not([type=radio]),.main select,.main textarea,.modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea,.search-dialog input{font-size:16px!important}}

/* Wide desktop workspaces stay anchored to the navigation gutter. */
@media(min-width:1280px){
  .main{max-width:none;margin:0;padding:28px 40px}
  .main>.page-stack{width:100%;max-width:2040px}
  .topbar{padding-inline:40px}
  .overview-route.is-empty{min-height:0;align-self:start}
  .prospect-workbench{grid-template-columns:minmax(0,1fr) clamp(420px,30%,560px)}
  .prospect-detail .business-detail-content{max-width:680px}
}
@media(min-width:1280px) and (max-width:1439px){
  .prospect-column-labels{grid-template-columns:minmax(0,1fr) minmax(190px,.75fr)}
  .prospect-item{grid-template-columns:36px minmax(0,1fr) minmax(190px,.75fr) 18px}
}
@media(min-width:1600px){
  .prospect-identity strong{font-size:14px}
  .prospect-identity small,.prospect-progress small{font-size:12px}
  .prospect-item{min-height:76px}
}
.prospect-phone,.prospect-phone-label{display:none}
@media(min-width:1800px){
  .prospect-column-labels{grid-template-columns:minmax(0,1fr) minmax(145px,.5fr) minmax(170px,.65fr);gap:12px;padding-left:69px;padding-right:48px}
  .prospect-item{grid-template-columns:36px minmax(0,1fr) minmax(145px,.5fr) minmax(170px,.65fr) 18px}
  .prospect-phone{display:flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
  .prospect-phone-label{display:block}
}
