/* A calm workspace centered on the business and its next task. */
.workspace-brand{min-width:0;max-width:480px;letter-spacing:0;font-size:15px;line-height:1.4;gap:12px!important}
.workspace-brand>img{width:48px;height:48px;object-fit:contain;flex-shrink:0;border-radius:8px}
.workspace-brand>span:last-child{min-width:0}.workspace-brand strong{display:block;overflow-wrap:anywhere;font-size:17px;font-weight:650;letter-spacing:-.3px}.workspace-brand small{display:block;font-size:12px;letter-spacing:0;color:#596b71}
.business-initials{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:var(--green);color:var(--button-text);font-size:18px;font-weight:600;letter-spacing:0}
.top-actions{gap:10px}#owner-access{display:none!important}#save-state{max-width:200px;font-size:12px}.mode{line-height:1.5}.mode:has([data-action=exit-practice]){background:#fff5df}
.home-section{margin:28px 0}.home-section>.row{margin-bottom:14px}.home-section>.row h2{margin:0;color:var(--page-text,var(--ink))}.home-section>.row .text-button{color:var(--page-text,var(--ink))}.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-stat{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;text-align:left;display:grid;gap:10px;min-width:0}.home-stat span{font-size:14px;font-weight:500;color:#596b71}.home-stat b{font-size:32px;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-stat small{font-size:12px;font-weight:400}.home-stat:hover{background:#f0f5f2}.home-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.home-columns h2{margin-bottom:12px}.home-task{border:0;border-top:1px solid var(--line);border-radius:0;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;width:100%;padding:18px 0;background:transparent}.home-task span:first-child{min-width:0}.home-task b{display:block;font-size:15px;overflow-wrap:anywhere}.home-task small{display:block;font-weight:400;margin-top:5px;line-height:1.5}.home-footer{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.setup-card{display:flex;justify-content:space-between;align-items:center;gap:24px}.setup-card h2{margin-bottom:8px}.setup-card p{margin-bottom:0;max-width:620px}.setup-card .actions{flex-shrink:0}.goal-line{background:white;padding:18px 22px;border:1px solid var(--line);border-radius:10px;margin-top:20px}.goal-line progress{margin:12px 0 0;height:10px}.goal-line .text-button{min-height:40px;font-size:13px}
.estimate-flow{max-width:900px;margin:0 auto}.editor-view-controls{margin-bottom:22px}.view-switch{display:flex;gap:10px}.view-switch button{min-width:150px}.view-switch [aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--button-text)}.estimate-navigation,.business-navigation{max-width:500px;margin:0 0 24px}.estimate-navigation .hint{margin-top:10px}.estimate-stage{display:grid;gap:20px}.estimate-stage .card,.work-panel .card{margin:0}.estimate-stage[hidden],.work-panel[hidden],.business-panel[hidden]{display:none!important}.estimate-stage .fields{grid-template-columns:1fr;gap:24px}.estimate-stage .fields .wide{grid-column:auto}.estimate-stage h2{margin-bottom:22px}.estimate-stage .step-controls{display:flex;gap:14px;margin:4px 0 0;padding-top:18px;border-top:1px solid var(--line)}.estimate-stage .step-controls button{min-width:140px;min-height:50px}.estimate-flow .sticky-actions{position:static;margin-top:24px;box-shadow:none;align-items:center}.estimate-flow .sticky-actions .hint{margin:0}.work-panel{display:grid;gap:20px}.work-overview h2{margin:16px 0 8px}.work-overview>p{margin-bottom:16px}.review-card{overflow:hidden}.review-card .quote-sheet{padding:20px 0;border-top:4px solid var(--green);margin-bottom:24px}.review-card>.primary{min-height:50px}.business-panel{display:grid;gap:20px}.business-panel>.grid{grid-template-columns:1fr}.business-panel .fields{grid-template-columns:1fr;gap:22px}.business-panel>.card>label{margin-bottom:20px}#business-form{max-width:900px;margin:0 auto}#business-form>.sticky-actions{position:static;box-shadow:none}#business-form>.sticky-actions .file-button{align-content:center}#business-form details.card{padding-top:16px}#business-preview{background:#fff}.sidebar nav button[aria-current=page]{color:var(--ink);background:#eef4f1}.sidebar-bottom button[data-tab=business]{font-size:13px;text-align:left}.estimate-stage input,.estimate-stage textarea,.estimate-stage select{font-size:16px}
@media(max-width:1000px){.setup-card{display:block}.setup-card .actions{margin-top:18px}.home-columns{grid-template-columns:1fr}.home-stat{padding:20px}.home-stat b{font-size:28px}}
@media(max-width:680px){
.topbar{display:flex;flex-wrap:wrap;padding:16px 18px;gap:16px}.topbar .workspace-brand{max-width:100%;width:100%}.topbar .workspace-brand img{width:44px;height:44px}.workspace-brand strong{font-size:17px}.top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;width:100%;gap:8px}.top-actions button{min-height:46px;padding:8px;font-size:13px;justify-content:center}#save-state{order:2;grid-column:1/-1;max-width:none;width:100%;text-align:left;font-size:12px}#account{justify-content:center}.mode{padding:10px 18px}.mode button{min-height:44px}.home-stats{grid-template-columns:1fr;gap:0;background:white;border:1px solid var(--line);border-radius:12px;padding:0 18px}.home-stat{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0}.home-stat:last-child{border-bottom:0}.home-stat span{font-size:14px}.home-stat b{font-size:26px}.home-stat small{display:none}.home-section{margin:24px 0}.home-section>.row{flex-wrap:nowrap;gap:12px}.home-section h2{font-size:18px}.home-section>.row button{font-size:12px;white-space:nowrap}.setup-card .actions{display:grid;grid-template-columns:1fr}.setup-card .actions button{width:100%}.home-columns{gap:18px}.home-task{padding:18px 0}.home-footer{display:grid;grid-template-columns:1fr}.home-footer button{min-height:50px}.goal-line{padding:18px}.view-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}.view-switch button{min-width:0;min-height:50px;font-size:14px}.editor-view-controls{margin-bottom:22px}.estimate-stage{gap:18px}.estimate-stage .fields{gap:26px}.estimate-stage .step-controls{gap:12px;margin-top:8px;padding-top:22px}.estimate-stage .step-controls button{flex:1;min-width:0;min-height:52px}.estimate-navigation select,.business-navigation select{font-size:16px}.estimate-flow .sticky-actions{display:block;padding:18px}.estimate-flow .sticky-actions>.hint{display:block;margin-bottom:14px}.estimate-flow .sticky-actions .actions{display:grid;grid-template-columns:1fr;gap:12px}.estimate-flow .sticky-actions button{min-height:52px;font-size:15px}.review-card .quote-sheet{padding:16px 0}.review-card .primary{width:100%;min-height:52px}.business-panel{gap:18px}.business-panel .fields{gap:26px}.business-navigation{margin-bottom:4px}.business-panel>.card>label{margin-bottom:26px}.phone-typing .topbar{padding-bottom:10px}.phone-typing #save-state{display:none}.phone-typing .mode:not(:has([data-action=exit-practice])){display:none}:root[data-spacing=standard] .estimate-stage .fields,:root[data-spacing=standard] .business-panel .fields{gap:18px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Notifications and payment history share the same simple phone layout. */
.activity-panel{min-width:0}.activity-panel h2{padding-right:26px}.activity-panel h3{font-size:1rem;margin:6px 0}.activity-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:20px 0}.activity-controls label{flex:1;min-width:140px}.notice-item{display:flex;justify-content:space-between;align-items:start;gap:14px;padding:18px 0;border-bottom:1px solid var(--line,#dce4e2);overflow-wrap:anywhere}.notice-item>div:first-child{min-width:0}.notice-item .actions{flex-shrink:0}.notice-item p{margin:6px 0}.notice-item.unread{border-left:4px solid var(--accent,#23675b);padding-left:12px}.pending-approvals{padding:16px;background:#f2f7f5;border-radius:12px;margin-bottom:20px;color:#1d3036}.payment-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.payment-totals>div{padding:14px;background:#f2f7f5;border-radius:10px;color:#1d3036}.payment-totals small,.payment-totals b{display:block}.payment-totals b{font-size:1.3rem;margin-top:7px;overflow-wrap:anywhere}.method-totals{display:flex;flex-wrap:wrap;gap:10px}.method-totals>span{padding:10px;border:1px solid var(--line,#dce4e2);border-radius:8px}.collections{margin:20px 0}.notification-choice{display:flex;align-items:center;gap:12px;margin:18px 0}.notification-choice input{width:22px;height:22px}.activity-panel button{min-height:44px}dialog:has(.activity-panel){width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
@media(max-width:600px){dialog:has(.activity-panel){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:22px 18px calc(24px + env(safe-area-inset-bottom));box-sizing:border-box}.notice-item{display:block}.notice-item .actions{margin-top:14px}.activity-controls{display:grid;grid-template-columns:1fr}.payment-totals{grid-template-columns:1fr;gap:8px}.payment-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px}.payment-totals b{margin:0;font-size:1.15rem}.activity-panel .dialog-actions{position:static;display:flex;flex-wrap:wrap}.activity-panel .dialog-actions button{flex:1 1 140px}.activity-panel .fields{grid-template-columns:1fr}}

.activity-closebar{position:sticky;top:0;z-index:3;display:flex;justify-content:flex-end;background:#fff;padding:6px 0;margin-top:-6px}.activity-closebar button{background:#fff}.activity-panel h2{padding-right:0}dialog:has(.activity-panel)>.dialog-close{display:none}
/* Keep every dialog usable with a tablet keyboard or a short landscape viewport. */
.phone-typing dialog[open]{position:fixed;height:auto;max-height:calc(var(--visible-height,100dvh) - 16px);top:calc(var(--visible-top,0px) + 8px);bottom:auto;margin-top:0;margin-bottom:0;overflow-y:auto;overscroll-behavior:contain}
@media(pointer:coarse){button,.button,select{min-height:44px}input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}dialog .fields{grid-template-columns:1fr;gap:22px}}
@media(min-width:681px) and (max-width:1100px){.topbar{flex-wrap:wrap;gap:16px}.top-actions{flex-wrap:wrap}.workspace-brand{max-width:100%}.activity-panel .fields{grid-template-columns:1fr}.notice-item .actions{flex-shrink:1;flex-wrap:wrap}}
.alert-channel{border-top:1px solid var(--line);padding:20px 0}.alert-channel h3{font-size:1.1rem}.alert-channel p{overflow-wrap:anywhere}.alert-channel .actions{flex-wrap:wrap}.alert-channel .notification-choice{align-items:flex-start}.alert-channel [role=status]{min-height:24px}

@media(min-width:681px) and (max-width:1000px){.shell{display:block}.sidebar{padding:12px 20px;border-right:0;border-bottom:1px solid var(--line);gap:0}.sidebar .eyebrow,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:10px}.sidebar nav button{text-align:center;min-height:48px}main{padding:28px 24px 44px}}
@media(pointer:coarse){.usage-line button,.addon-line button,.mode button{min-height:44px}}

/* Keep native file selection available to keyboards and assistive technology. */
.file-button{position:relative}.file-button input{display:block;position:absolute;width:1px;height:1px;min-height:1px;min-width:1px;padding:0;margin:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.file-button:focus-within{outline:3px solid #6caa98;outline-offset:3px}
@media(forced-colors:active){button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.file-button:focus-within{outline:3px solid Highlight}.sidebar nav button[aria-current=page],.view-switch [aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}

/* Owner previews stay visibly separate from the live workspace. */
.preview-choices{display:grid;gap:12px;margin:20px 0}.preview-choices button{text-align:left;white-space:normal;padding:16px}.preview-choices b,.preview-choices span{display:block}.preview-choices span{font-weight:400;margin-top:5px;font-size:.9rem}
.customer-preview .sidebar,.customer-preview #workspace-help{display:none}.customer-preview .shell{display:block;max-width:900px;margin:auto}.customer-preview #main{max-width:850px;margin:auto;width:100%}.customer-preview .mode{border-bottom:2px solid #23675b}.customer-preview #customer-preview-content{margin-bottom:24px}
@media(max-width:680px){#mode .actions{width:100%;display:flex;flex-wrap:wrap}#mode .actions button{flex:1;min-width:130px}.customer-preview #main{padding:16px}.customer-preview .quote-sheet{padding:18px}.customer-preview .estimate-top{flex-wrap:wrap;gap:16px}.customer-preview .brand-details{overflow-wrap:anywhere}}

.trial-help-list{padding-left:24px;margin:20px 0 24px;line-height:1.65}.trial-help-list li{padding-left:4px;margin:12px 0}

.inspection-fields {border-top:1px solid #dbe3e3;margin-top:24px;padding-top:20px;}
.inspection-fields h3 {margin:0 0 8px;}
.inspection-fields label small {display:block;font-weight:400;margin:6px 0;}
#reuse-list {margin-top:16px;} #reuse-list button {text-align:left;padding:16px;}

.estimate-stage > .card > .inspection-fields {border-top:0;margin-top:0;padding-top:0;}

.vehicle-details > .fields {margin-top:16px;}
#saved-vehicle-list {margin-top:16px;}
#saved-vehicle-list button {padding:16px;text-align:left;}

/* Customers: one readable record on every screen size. */
.customer-sections{display:grid;gap:20px;max-width:960px}.customer-sections .card{margin:0}.customer-contact p{margin:12px 0;overflow-wrap:anywhere}.customer-list-item{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;gap:18px;padding:20px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink)}.customer-list-item span:first-child{min-width:0}.customer-list-item small,.past-choice small{display:block;margin-top:8px;overflow-wrap:anywhere;font-weight:400}.customer-list-item b{font-size:17px;overflow-wrap:anywhere}.customer-archive{display:flex;align-items:center;gap:10px;margin:20px 0}.customer-archive input,.past-choice input{width:22px;height:22px;flex:none}.customer-row{display:flex;align-items:start;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.customer-row>div{min-width:0}.customer-row p{margin:8px 0}.customer-row .actions{flex-wrap:wrap}.customer-note{white-space:pre-wrap;overflow-wrap:anywhere}.customer-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0 24px}.customer-money>div{padding:0 14px 0 0;border-right:1px solid var(--line)}.customer-money>div:last-child{border:0}.customer-money dt{font-size:14px;color:var(--muted);line-height:1.5}.customer-money dd{font-size:25px;font-weight:700;margin:10px 0 0;overflow-wrap:anywhere}.past-choice{display:flex;align-items:start;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}#customer-form .fields{grid-template-columns:1fr;gap:22px}#customer-form .wide{grid-column:auto}#past-list{max-height:50dvh;overflow:auto;margin:18px 0}#pick-customers{margin-top:20px}
@media(max-width:680px){.customer-money{grid-template-columns:1fr;gap:0;margin:6px 0 20px}.customer-money>div{display:flex;align-items:center;justify-content:space-between;gap:20px;border:0;border-bottom:1px solid var(--line);padding:18px 0}.customer-money dd{margin:0;font-size:22px;text-align:right}.customer-row{display:block}.customer-row .actions,.customer-row>button{margin-top:16px}.customer-row .actions{display:flex}.customer-row .actions button{flex:1;min-height:48px}.customer-sections{gap:18px}.customer-list-item{padding:22px 0}.sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr))}.sidebar nav button{font-size:12px;padding:12px 4px;min-width:0}}

/* Payment records: labels and amounts remain distinct at every screen width. */
.payment-entry{padding:22px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.payment-entry-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px}.payment-entry-heading h3{font-size:18px;margin:0}.payment-entry-heading>div{text-align:right;flex:none}.payment-entry-heading small{display:block;color:var(--muted);font-size:12px}.payment-entry-heading strong{display:block;font-size:24px;line-height:1.3;margin-top:6px}.payment-entry-meta,.payment-entry-breakdown{margin:0 0 18px}.payment-entry-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px}.payment-entry-meta dt{color:var(--muted);font-size:13px;margin-bottom:6px}.payment-entry-meta dd{margin:0;font-weight:600}.payment-entry-breakdown{border-top:1px solid var(--line);padding-top:12px}.payment-entry-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:22px;padding:9px 0}.payment-entry-breakdown dt{font-size:14px}.payment-entry-breakdown dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}.payment-entry-actions{margin-top:18px}.payment-entry-note{font-size:14px;white-space:pre-wrap}.payment-entry-context{margin:0 0 18px;color:var(--muted)}
@media(max-width:600px){.payment-entry-heading{gap:14px}.payment-entry-heading h3{font-size:17px}.payment-entry-heading strong{font-size:22px}.payment-entry-meta{gap:16px}.payment-entry-breakdown dt{max-width:65%}.payment-entry-actions button{width:100%;min-height:48px}}

.marketing-report{margin-top:24px}.marketing-group{max-width:360px;margin:20px 0}.marketing-source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.marketing-source{border:1px solid var(--line);border-radius:10px;padding:20px;min-width:0}.marketing-source h3{margin:0 0 16px;overflow-wrap:anywhere}.marketing-source dl{margin:0}.marketing-source dl>div{display:flex;justify-content:space-between;gap:18px;margin:14px 0}.marketing-source dt{font-size:13px;color:var(--muted)}.marketing-source dd{margin:0;font-weight:650;white-space:nowrap}.marketing-report>details{margin-top:24px}.payment-provider-setup{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.payment-provider-setup>p{line-height:1.6;margin:18px 0}.payment-setup-steps{padding-left:22px;margin:22px 0}.payment-setup-steps li{margin:14px 0;line-height:1.6}.addon-line .actions{gap:8px}.addon-line{flex-wrap:wrap}.addon-line>div:not(.actions){min-width:100px;flex:1}.addon-line>input{flex:none}
@media(max-width:680px){.marketing-source-list{grid-template-columns:1fr;gap:16px}.marketing-source{padding:18px}.marketing-source dl>div{gap:14px}.marketing-report>.row{display:block}.marketing-report>.row button{margin-top:16px;width:100%}.addon-line .actions{width:100%;margin-top:12px;display:grid;grid-template-columns:1fr 1fr}.payment-provider-setup summary{line-height:1.5}.payment-provider-setup>button{width:100%}}
.marketing-report>.row{margin-bottom:18px}.marketing-source dt{font-size:14px}
.mode-copy{display:flex;flex-direction:column;gap:6px;line-height:1.5}.mode-copy b{font-size:16px}.mode-copy span{font-size:14px}
#workspace-trip .trip-layout{grid-template-columns:1fr}#workspace-trip .trip-total{font-size:46px}
.business-pulse{margin:24px 0}.business-pulse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.business-pulse-grid>button{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:12px;padding:20px;background:var(--bg,#f5f7f7);color:var(--page-text,#1d3036);border:1px solid #dce5df;border-radius:10px;min-height:150px}.business-pulse-grid span{font-size:14px;font-weight:650}.business-pulse-grid b{font-size:27px;line-height:1.2;overflow-wrap:anywhere}.business-pulse-grid small{font-size:12px;line-height:1.5;font-weight:400}.monthly-results>summary{font-size:18px;font-weight:650;cursor:pointer;min-height:44px}.monthly-results .home-stats{margin-top:20px}.customer-payment-options details{margin:20px 0}.customer-payment-options summary{min-height:44px;cursor:pointer;font-weight:650}.customer-payment-options .actions{margin-top:20px}
@media(max-width:900px){.business-pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.business-pulse-grid{gap:12px}.business-pulse-grid>button{padding:16px 12px;min-height:160px}.business-pulse-grid b{font-size:24px}.business-pulse{padding:20px 16px}}
