/* Cashmatic Partner: visual system. Corporate blue from the original logo. */
:root{--blue:#3c57a1;--navy:#152b50;--bg:#f4f6fa;--text:#243650;--muted:#62718a;--line:#e1e7f0;--shadow:0 8px 32px #142c4f06;--space:clamp(1rem,3vw,3rem)}
body{font-family:Figtree,'DM Sans',system-ui,sans-serif;font-weight:400;letter-spacing:-.015em;background:var(--bg)}
h1,h2,h3{font-family:Figtree,'DM Sans',sans-serif;letter-spacing:-.045em}
h1{line-height:1.15}h2{line-height:1.25}p{line-height:1.65}
.eyebrow,.nav-caption{font-size:.65rem;font-weight:750;letter-spacing:.16em}
.shell>main{max-width:1600px;margin-inline:auto;padding-bottom:3rem}
.sidebar{background:#fff}.brand{padding-top:.6rem;padding-bottom:2rem;gap:16px}.brand img{width:176px}.brand span{font-size:.57rem;letter-spacing:.32em;color:#536584}
nav{gap:5px}nav a{border-radius:10px;font-size:.84rem;min-height:46px;color:#5c6b80;padding:.8rem .9rem;transition:background .18s,color .18s}nav a.active{background:var(--blue);color:white;box-shadow:0 5px 12px #3c57a125}nav a.active:hover{background:#304b91}nav a.active .count{color:var(--blue)}nav a:not(.active):hover{background:#f0f3f9;color:var(--blue)}nav a svg{width:18px;height:18px;flex-shrink:0}.nav-caption{font-size:.59rem;color:#8491a4}.sidebar-bottom{padding-bottom:1rem;border-top:1px solid var(--line);margin-top:auto}.sidebar-bottom p{font-size:.74rem;line-height:1.6}.sidebar-bottom small{font-size:.57rem}.live-dot{box-shadow:0 0 0 4px #87bb3814}
header{background:#ffffffed;backdrop-filter:blur(16px);border-color:#e1e7f099;min-height:78px}.breadcrumb{font-size:.75rem}.breadcrumb b{color:var(--navy);font-weight:600}.demo-tag{font-size:.56rem;letter-spacing:.16em;border:0;background:none;color:#8190a6}.profile{gap:.75rem}.avatar{border:1px solid #dce4f1;background:#edf1fa;color:var(--blue);font-weight:700;border-radius:50%}.profile #profileLabel{font-size:.78rem}.profile small{font-size:.67rem}
.page-head{align-items:center;margin-bottom:2rem;padding-block:.5rem}.page-head h1{font-weight:750;font-size:clamp(1.75rem,2.8vw,2.65rem);margin:.5rem 0 .8rem;max-width:24ch}.page-head p{font-size:.9rem;max-width:65ch}.page-head .eyebrow{color:var(--blue)}
.btn{min-height:46px;border-radius:3px;font-size:.82rem;font-weight:650;letter-spacing:0;background:var(--blue);padding:.85rem 1.25rem;box-shadow:0 4px 10px #3c57a113;transition:background .18s,box-shadow .18s,transform .18s}.btn:hover{background:#304a90;box-shadow:0 7px 18px #3c57a126}.btn.secondary{background:white;border:1px solid #d9e1ef;color:var(--navy);box-shadow:none}.btn.secondary:hover{background:#edf1fa;border-color:#acbbd9}.btn.light{background:white;color:var(--navy)}.btn.light:hover{background:#edf2ff}.btn:active{transform:translateY(1px)}.btn.danger{background:#a93240;color:white}.btn:disabled{box-shadow:none;transform:none}.link-btn{font-size:.8rem;font-weight:650}.tabs{border-radius:10px;padding:5px;background:#e9eef6}.tabs button{border-radius:7px;font-size:.84rem}.tabs button.active{background:white;color:var(--blue);box-shadow:0 2px 8px #152b5010}
.card,.stat,.dashboard-metric,.tool,.dealer-shortcut{border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);background:white}.card-head{padding:1.5rem;border-color:#edf0f6}.card-head h2{font-size:1.05rem;letter-spacing:-.025em}.card-head p{font-size:.78rem;color:var(--muted)}.card.pad{padding:clamp(1.25rem,2.5vw,2rem)}.section-label{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;margin-block:2rem 1.1rem;color:var(--blue)}.stat{padding:1.4rem;position:relative}.stat-top{font-size:.75rem;color:var(--muted);font-weight:600}.stat-top svg{color:var(--blue);width:18px}.stat-value{font-size:clamp(2rem,4vw,3rem);font-weight:700;letter-spacing:-.065em;line-height:1.25;margin-block:.8rem}.stat small{font-size:.72rem}.tool{padding:1.3rem;transition:border-color .2s,transform .2s}.tool b{font-size:.9rem}.tool small{font-size:.75rem}.tool-icon{background:#eef2fa;color:var(--blue);border-radius:10px}.tool:hover{border-color:#a5b5d8;transform:translateY(-2px)}
.field label{font-size:.78rem;font-weight:600;color:var(--navy);margin-bottom:.5rem}.field input,.field textarea,.field select,.toolbar select,.search,.dashboard-toolbar select,.resource-search-controls input,.resource-search-controls select{border:1px solid #dbe3ef;border-radius:8px;background:#fcfdff;color:var(--navy);box-shadow:inset 0 1px 2px #152b5003;min-height:46px}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue);background:white}.field small{font-size:.73rem;line-height:1.55}.toolbar{gap:.8rem}.chip{border-radius:6px;font-size:.68rem;letter-spacing:0;font-weight:650;padding:.4rem .6rem}.table-wrap table{font-size:.82rem}th{font-size:.63rem;letter-spacing:.1em;text-transform:uppercase;color:#75839a;background:#f9fafd}td{padding-block:1.1rem}.lead-title{font-size:.87rem}.reminder-label{font-size:.7rem}.lead-origin{font-size:.62rem}.activity-dot{box-shadow:0 0 0 3px #ffffffb0}.reminder-item,.dealer-contact,.dashboard-contact{transition:filter .15s}.reminder-item:hover,.dealer-contact:hover,.dashboard-contact:hover{filter:brightness(.98)}
/* Official range photograph, already held in the product assets. */
.dealer-welcome{margin-bottom:1.5rem;gap:1.5rem;align-items:center}.dealer-welcome h1{font-size:clamp(1.4rem,2.3vw,2rem);margin:.35rem 0 .4rem;max-width:36ch}.dealer-welcome p{font-size:.85rem;margin:0}.dealer-welcome .actions{flex-shrink:0}.dealer-welcome .eyebrow{font-size:.58rem}
.partner-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);background:#172f59;color:white;border-radius:18px;overflow:hidden;margin-bottom:1.25rem;min-height:370px}.partner-hero-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.partner-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#172741ed 0%,#172741bc 34%,#17274120 65%,transparent 100%);z-index:-1;pointer-events:none}.partner-hero-copy{position:relative;z-index:2;padding:clamp(1.5rem,3.5vw,3.25rem);display:flex;flex-direction:column;align-items:flex-start}.partner-kicker{font-size:.6rem;font-weight:650;letter-spacing:.2em;color:#c6d4f0;display:flex;gap:.65rem;align-items:center}.partner-kicker>span{width:6px;height:6px;background:#a6cde6;border-radius:50%}.partner-hero h2{font-size:clamp(1.9rem,3.2vw,3.35rem);font-weight:450;line-height:1.12;letter-spacing:-.04em;color:white;margin:1.4rem 0 1rem;max-width:17ch}.partner-hero p{font-size:.86rem;line-height:1.7;max-width:38ch;color:#c3cfe4;margin:0 0 1.5rem}.partner-hero-actions{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}.partner-hero-link{color:#e4ecfc;font-size:.76rem;min-height:44px;display:inline-flex;align-items:center}.partner-hero-link:hover{text-decoration:underline}.partner-hero-foot{margin-top:auto;padding-top:2.5rem;width:100%;display:flex;justify-content:space-between;gap:1rem;color:#a8bad8;font-size:.49rem;letter-spacing:.14em}.partner-hero-product{position:relative;display:block;min-width:0;align-self:stretch;min-height:290px}.partner-product-caption{position:absolute;bottom:1.25rem;right:1.5rem;left:1rem;display:flex;align-items:center;justify-content:end;gap:1rem;color:white;font-size:.65rem}.partner-product-caption>span:first-child{font-size:.5rem;letter-spacing:.14em;color:#d9e5fc}.partner-product-caption>span:last-child{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;background:#203968a6;border:1px solid #d6e2ff40}.partner-product-caption svg{width:14px;height:14px}
.dealer-shortcuts{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-block:1.25rem 3rem}.dealer-shortcut{padding:1.15rem;min-height:155px;position:relative;box-shadow:none;transition:border-color .2s,transform .2s}.dealer-shortcut:hover{border-color:#8da4cf;transform:translateY(-3px);box-shadow:0 12px 24px #19355c08}.dealer-shortcut-top{margin-bottom:1rem}.dealer-shortcut .tool-icon{width:34px;height:34px}.dealer-shortcut .tool-icon svg{width:18px}.dealer-step{font-size:.6rem;color:#9ba9bd;font-variant-numeric:tabular-nums}.dealer-shortcut b{font-size:.81rem;letter-spacing:-.02em}.dealer-shortcut small{font-size:.7rem;line-height:1.55;padding-right:.6rem}.dealer-shortcut-arrow{right:.75rem;bottom:.65rem}.dealer-shortcut-arrow svg{width:15px}.dealer-section-head{gap:1rem;align-items:end;margin-block:2.5rem 1.4rem}.dealer-section-head h2{font-size:clamp(1.5rem,2.4vw,2.1rem);font-weight:650;margin:.5rem 0}.dealer-section-head p{font-size:.84rem}.catalog-heading .eyebrow{font-size:.58rem}
.showroom-grid{gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr))}.showroom-card{border-radius:14px;border-color:#e1e7f0;box-shadow:0 4px 20px #18315003;transition:box-shadow .25s,transform .25s,border-color .25s}.showroom-card:hover{border-color:#b2c0dd;box-shadow:0 16px 30px #1831500c;transform:translateY(-3px)}.product-image-button{background:#f9fafd;padding:1.1rem 1.1rem 2.8rem;aspect-ratio:auto;height:19rem;display:grid;place-items:center;overflow:hidden}.product-photo-frame{display:block;width:100%;max-width:15rem;aspect-ratio:1;overflow:hidden;border-radius:6px}.product-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .2s}.product-portrait .product-photo-frame img{object-fit:cover;object-position:50% 65%}.product-image-button:hover img{transform:none}.product-image-button:hover .product-photo-frame{box-shadow:0 4px 16px #152b500d}.product-open{font-size:.65rem;color:#4d6593;right:1.25rem;bottom:1rem}.showroom-info{padding:1.35rem;border-top:1px solid #edf0f6}.showroom-info>small{display:inline-block;font-size:.6rem;letter-spacing:.15em;font-weight:650;color:#667a9b}.showroom-info h3{font-size:1.45rem;font-weight:600;color:var(--blue);margin:.25rem 0 1rem;letter-spacing:-.035em}.showroom-info h3 button{min-height:38px}.showroom-price{font-family:Figtree,system-ui,sans-serif;font-weight:500;font-size:clamp(1.8rem,2.5vw,2.15rem);letter-spacing:-.045em;color:#193254;font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}.showroom-info p{font-size:.69rem;color:#6c7c94}.mycashmatic-reminder,.insurance-reminder{font-size:.72rem}.reminder-document-cta{font-size:.65rem}.product-detail .eyebrow{margin-top:1.5rem}.product-detail-image{max-height:340px;object-fit:contain}.product-detail h3{font-size:1rem}.product-detail .spec-section{border-color:var(--line)}
.doc-grid{gap:1.1rem}.doc{border-radius:14px}.doc .doc-cover{background:#edf1f7;padding:1.5rem 1.5rem 3rem;aspect-ratio:1.5}.doc-cover img{filter:drop-shadow(0 6px 7px #1b365525)}.doc-cover-label{font-size:.64rem;background:#ffffffed;border:1px solid #ffffffaa;border-radius:6px;padding:.4rem .65rem}.doc .doc-content{padding:1.35rem}.doc h3{font-size:1.03rem;letter-spacing:-.025em;line-height:1.4}.doc small{font-size:.7rem}.doc a{font-size:.77rem}.doc .doc-description{font-size:.78rem}.resource-search{border-left:3px solid var(--blue);box-shadow:0 6px 22px #152b5004}.resource-search>label{font-family:Manrope;font-size:.94rem;letter-spacing:-.03em}.resource-search>p{font-size:.75rem}.resource-product{padding:1.2rem}.resource-product>button:first-child{font-family:Manrope;letter-spacing:-.03em}.resource-product-grid{gap:1rem}.reference-card{border-radius:14px;overflow:hidden}.reference-content h2{font-size:1.15rem}.reference-content p{font-size:.8rem}
.dashboard-toolbar{font-size:.78rem;padding:1rem 1.25rem;background:#eaf0f8;border:1px solid #dde5f1;border-radius:10px;margin-bottom:1.25rem}.dashboard-metric{padding:1.25rem;box-shadow:none}.dashboard-metric>span{font-size:.76rem}.dashboard-metric strong{font-weight:650;letter-spacing:-.06em}.dashboard-metric small{font-size:.68rem;line-height:1.5}.dashboard-metric[aria-pressed=true]{box-shadow:0 0 0 2px var(--blue);border-color:transparent}.dashboard-company small{font-size:.72rem}.dashboard-contact{padding:1.1rem 1.5rem}.dashboard-number{font-size:.72rem}.update-item{padding:1.2rem 1.5rem}.update-content{font-size:.8rem}.update-content small{font-size:.68rem}.empty,.dealer-empty{color:var(--muted);font-size:.84rem}.dealer-empty h3{font-size:1rem}
#modal{border-radius:18px;box-shadow:0 28px 100px #13254430;border:1px solid #dfe7f2}dialog::backdrop{background:#11244066;backdrop-filter:blur(4px)}.modal-top{border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1.5rem}.modal-top h2{font-size:1.35rem;letter-spacing:-.04em}.close{border-radius:50%;background:#f0f3f9;width:44px;height:44px;flex-shrink:0}.menu-toggle{border:1px solid #e2e8f2;background:white;border-radius:8px;font-size:.75rem}.mobile-brand img{width:140px}footer{border-top:1px solid var(--line);color:#7b899d;font-size:.65rem}footer button{font-size:.65rem}#toast{border-radius:10px;box-shadow:0 10px 35px #10244222}
/* Auth: distinctive brand panel and restrained form. */
.premium-login{background:#eef2f8}.auth-login{max-width:1160px;min-height:100svh;gap:0;padding:clamp(1rem,4vw,3rem);grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch}.auth-login .auth-intro{padding:clamp(2rem,4vw,4rem);background:#19345f;color:white;border-radius:20px 0 0 20px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.auth-login .auth-intro:after{content:'';position:absolute;width:29rem;height:29rem;border:1px solid #ffffff14;border-radius:50%;right:-18rem;bottom:-15rem;pointer-events:none}.auth-login .auth-logo{filter:brightness(0) invert(1);width:190px;margin-bottom:4rem}.auth-login .auth-intro .eyebrow{color:#c5d2e9;font-size:.58rem}.auth-login h1{font-size:clamp(2rem,3.6vw,3.4rem);font-weight:450;line-height:1.14;max-width:14ch;color:white;margin:1rem 0 1.4rem}.auth-login .auth-intro>.muted{color:#c3cfe3;font-size:.88rem}.login-signature{display:flex;flex-wrap:wrap;gap:1rem;margin-top:3rem;color:#acbfdd;font-size:.48rem;letter-spacing:.12em}.auth-access{background:white;padding:clamp(1.5rem,4vw,4rem);border-radius:0 20px 20px 0;display:flex;flex-direction:column;justify-content:center}.auth-access .card.pad{border:0;box-shadow:none;padding:0;margin:0 0 1rem}.auth-access h2{font-size:1.65rem;font-weight:650;margin:.6rem 0}.auth-access .eyebrow{font-size:.56rem;color:var(--blue)}.login-form-intro{font-size:.8rem;margin-bottom:2rem}.auth-access .field input{background:#f7f9fc;min-height:50px}.auth-access .auth-help{font-size:.67rem;line-height:1.7;color:#79869a;margin:.5rem 0}.auth-access .btn{width:100%;margin-top:.5rem;min-height:50px}
@media(min-width:80rem){.dealer-welcome{flex-wrap:nowrap}.dealer-welcome .actions .btn{flex:none}}
@media(max-width:70rem){.dealer-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.partner-hero h2{font-size:2.25rem}.partner-hero-product{padding-inline:1rem}.partner-product-caption>span:last-child{display:none}}
@media(max-width:56rem){.auth-login{grid-template-columns:minmax(0,1fr);max-width:650px;min-height:100svh;align-content:center;padding:1rem}.auth-login .auth-intro{border-radius:16px 16px 0 0;padding:2rem}.auth-login .auth-logo{margin-bottom:2rem;width:165px}.auth-login h1{font-size:2.4rem}.login-signature{margin-top:1.4rem}.auth-access{border-radius:0 0 16px 16px;padding:2rem}.partner-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.partner-hero h2{font-size:2rem}.partner-hero-copy{padding:1.75rem}.dealer-welcome .actions{flex-wrap:wrap}.dealer-welcome .actions .btn{font-size:.75rem}.partner-hero-foot{display:none}}
@media(max-width:40rem){header{min-height:64px}.page-head{margin-bottom:1.5rem}.page-head h1{font-size:1.85rem}.page-head p{font-size:.8rem}.partner-hero{grid-template-columns:minmax(0,1fr);border-radius:14px;min-height:0}.partner-hero-copy{padding:1.75rem 1.5rem}.partner-hero h2{font-size:2.3rem;margin-top:1.2rem}.partner-hero p{font-size:.8rem;max-width:34ch}.partner-hero-actions{gap:.8rem}.partner-hero-actions .btn{font-size:.75rem}.partner-hero-scene{position:relative;inset:auto;grid-column:1;grid-row:2;height:230px;object-fit:cover;object-position:right}.partner-hero:after{display:none}.partner-hero-copy{grid-column:1;grid-row:1}.partner-hero-product{position:absolute;bottom:0;inset-inline:0;height:230px;min-height:0;padding:0}.partner-product-caption{bottom:.7rem;inset-inline:1.5rem}.partner-product-caption b{font-size:1.3rem}.partner-product-caption>span:last-child{display:flex;font-size:.58rem}.dealer-welcome{align-items:start;margin-bottom:1.3rem}.dealer-welcome h1{font-size:1.5rem}.dealer-welcome .actions{width:100%;gap:.5rem}.dealer-welcome .actions .btn{padding:.65rem .85rem;min-height:44px}.dealer-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-bottom:2rem}.dealer-shortcut{min-height:145px;padding:1rem}.dealer-shortcut:last-child{grid-column:1/-1;min-height:100px;display:grid;grid-template-columns:auto 1fr;column-gap:1rem;align-items:center}.dealer-shortcut:last-child .dealer-shortcut-top{grid-row:1/3;margin:0}.dealer-shortcut:last-child .dealer-step{display:none}.dealer-section-head{align-items:start;margin-top:2rem;flex-wrap:wrap}.dealer-section-head h2{font-size:1.65rem}.dealer-section-head p{font-size:.78rem}.showroom-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr))}.showroom-info{padding:1.25rem}.showroom-price{font-size:2rem}.card-head{padding:1.2rem}.doc .doc-cover{aspect-ratio:1.5}.auth-login h1{font-size:2.1rem}.auth-login .auth-intro{padding:1.75rem}.auth-access{padding:1.75rem}.auth-login .auth-logo{margin-bottom:1.75rem}.login-signature{font-size:.45rem}.auth-access h2{font-size:1.45rem}.resource-search-controls input,.resource-search-controls select{font-size:1rem}.dashboard-contact{padding:1rem}.modal-top h2{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){.btn,.showroom-card,.dealer-shortcut,.tool{transition:none!important;transform:none!important}}

/* Greeting uses the authenticated person; dealership stays a separate line. */
.account-greeting{display:block;overflow-wrap:anywhere}.dealer-welcome .greeting-company{font-weight:600;color:var(--blue);font-size:.85rem;margin:.4rem 0 .25rem}.dealer-welcome h1{max-width:32ch}.dealer-welcome>div:first-child{min-width:0}

/* Product typography: quiet labels, distinct model names and unchanged amounts. */
.price-label{display:block;font-size:.62rem;font-weight:500;color:#64758e;letter-spacing:.02em;margin-bottom:.35rem}.price-currency{font-size:.58em;font-weight:450;color:#566b8b;letter-spacing:0;vertical-align:baseline}.product-price-block{padding-block:.85rem .1rem;border-top:1px solid #e7ecf4}.showroom-info .product-price-note{font-size:.72rem;line-height:1.55;color:#62718a;min-height:2.3em;margin:.5rem 0 0}.showroom-card{display:flex;flex-direction:column}.showroom-info{flex:1;display:flex;flex-direction:column}.showroom-info .mycashmatic-reminder.product-service,.showroom-info .insurance-reminder.product-service{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:.75rem;border:1px solid #e1e7f1;border-radius:8px;padding:.8rem .85rem;margin:.65rem 0 0;background:#f8fafe;min-height:44px;color:var(--navy)}.showroom-info .mycashmatic-reminder.product-service{margin-top:1.1rem;background:#f0f4fb;border-color:#dce5f4}.product-service .service-copy{min-width:0;display:flex;flex-direction:column;gap:.14rem}.product-service b{font-size:.8rem;font-weight:600;color:var(--blue);letter-spacing:-.01em}.product-service .service-copy>span:not(.reminder-document-cta){font-size:.71rem;color:#536783}.product-service .service-copy>.service-benefit{color:var(--blue);font-weight:600}.product-service small{font-size:.65rem;color:#62718a}.product-service .reminder-document-cta{font-size:.64rem;font-weight:450;text-decoration:none;margin-top:.2rem;color:#61708a}.product-service .service-arrow{font-size:1.05rem;color:var(--blue);flex-shrink:0}.product-service:hover{border-color:#a2b4d5;background:#eaf0fa}.product-service:hover .reminder-document-cta{text-decoration:underline}.product-detail .showroom-price{font-size:clamp(2rem,5vw,2.8rem);margin-top:.6rem}.product-detail .product-item-label{font-size:.75rem;color:#687a92}.product-detail .eyebrow{font-size:.65rem}

/* Filters are scoped to the leads already authorized by the server. */
.crm-filter-panel{margin-bottom:1.25rem;padding:0}.crm-filter-panel summary{cursor:pointer;min-height:48px;padding:1rem 1.25rem;font-weight:600;color:var(--blue);font-size:.85rem}.crm-filter-panel summary span{font-weight:450;color:var(--muted);font-size:.72rem;margin-left:.5rem}.crm-filter-grid{padding:0 1.25rem 1.25rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem;align-items:end}.crm-filter-grid .field{margin:0;min-width:0}.crm-filter-grid select{width:100%;font-size:1rem;min-height:46px}.crm-filter-grid .btn{align-self:end}.crm-filter-panel:not([open]) .crm-filter-grid{display:none}@media(max-width:40rem){.product-image-button{height:18rem}.product-photo-frame{max-width:14rem}.crm-filter-grid{grid-template-columns:minmax(0,1fr)}}

/* Profile permissions use the same controls on desktop and touch screens. */
.permission-group{border:1px solid var(--line,#dce2ec);border-radius:1rem;margin:1rem 0;padding:1rem;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.45rem 1rem}
.permission-group legend{color:#3c57a1;font-weight:650;padding:0 .4rem}.permission-option{display:flex;align-items:center;gap:.75rem;min-height:44px;cursor:pointer;line-height:1.4}.permission-option input[type=checkbox]{width:20px;height:20px;min-width:20px;accent-color:#3c57a1}.permission-option:has(input:disabled){cursor:default}.permission-option span{overflow-wrap:anywhere}.managed-document-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem 0;border-bottom:1px solid #e3e8f0}.account-table td{overflow-wrap:anywhere}.account-table td:nth-child(3){max-width:32rem;font-size:.85rem}

.export-preview{margin:1rem 0;padding:1rem;background:#f4f6fb;border:1px solid #dce3f0;border-radius:1rem}.export-preview-heading{display:flex;align-items:baseline;gap:.65rem;color:#3c57a1}.export-preview-heading strong{font-size:1.75rem}.export-preview ul{list-style:none;padding:0;margin:.75rem 0}.export-preview li{padding:.6rem 0;border-top:1px solid #dce3f0;overflow-wrap:anywhere}.export-preview li span{display:block;font-size:.85rem;color:#596579}.export-help{display:block;margin-top:.75rem;line-height:1.5}

.uploaded-document-image{display:block;width:100%;height:12rem;object-fit:contain;border-radius:.75rem;background:#f5f7fc}.managed-document-row small{display:block;overflow-wrap:anywhere}.managed-document-row .actions{flex-wrap:wrap}

.material-library{margin-block:2rem}.material-grid{margin-top:1.25rem}.material-path{font-size:.75rem;overflow-wrap:anywhere}.material-more{margin-top:1rem}.material-library select{max-width:100%;min-width:0}

.material-video{display:block;width:100%;max-height:70vh;background:#101828;border-radius:1rem}

@media(max-width:48rem){.dashboard-toolbar select{font-size:1rem}}

/* Agenda uses the existing Cashmatic controls and CRM scope. */
.agenda-view-switch{margin-bottom:1.25rem;gap:.5rem;flex-wrap:wrap}.agenda-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}.agenda-tools .actions{flex-wrap:wrap}.agenda-tools .search{max-width:24rem}.agenda-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:1.5rem;align-items:start}.agenda-calendar{padding:1.25rem;min-width:0}.agenda-month{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:1.25rem}.agenda-month h2{font-size:1.2rem;margin:0;text-transform:capitalize}.agenda-month .btn{min-width:46px;font-size:1.5rem;padding:.3rem .75rem}.agenda-week,.agenda-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.agenda-week{text-align:center;color:var(--muted);font-size:.75rem;padding-bottom:.6rem}.agenda-day{border:1px solid var(--line);border-radius:6px;min-width:0;min-height:72px;background:#fff;color:var(--text);font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 2px}.agenda-day>span{font-weight:650}.agenda-day small{font-size:.65rem;color:var(--muted)}.agenda-day:hover{background:#edf1fa}.agenda-day.is-today{border:2px solid var(--blue)}.agenda-day.is-selected{background:var(--blue);border-color:var(--blue);color:white}.agenda-day.is-selected small{color:white}.agenda-hint{font-size:.8rem;margin:1rem 0 0}.agenda-detail{min-width:0}.agenda-detail>h2{font-size:1.2rem;margin:0 0 .5rem;text-transform:capitalize}.agenda-detail>p{font-size:.85rem;margin-bottom:1rem}.agenda-event{padding:1.25rem;margin-bottom:.75rem;overflow-wrap:anywhere}.agenda-event-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}.agenda-event h3{font-size:1.1rem;margin:0}.agenda-event p{font-size:.85rem;margin:.4rem 0}.agenda-event small{display:block;margin-top:.5rem}.agenda-event .btn{margin-top:1rem}.agenda-empty{padding:1.5rem;color:var(--muted);font-size:.9rem}.agenda-quick-dates{gap:.4rem;flex-wrap:wrap;margin-top:.6rem}.agenda-quick-dates .btn{font-size:.75rem;padding:.5rem .7rem}.agenda-tools [aria-pressed=true]{background:var(--blue);color:white}
@media(max-width:1100px){.agenda-layout{grid-template-columns:minmax(0,1fr)}.agenda-calendar{max-width:46rem}}
@media(max-width:500px){.agenda-calendar{padding:.75rem}.agenda-day{min-height:52px}.agenda-day small{font-size:.52rem;letter-spacing:-.025em}.agenda-week{font-size:.65rem}.agenda-month h2{font-size:1.05rem}.agenda-tools,.agenda-tools .search{width:100%;max-width:none}.agenda-tools .actions{width:100%;display:grid;grid-template-columns:1fr 1.6fr}.agenda-event .btn{width:100%}}
.agenda-detail{scroll-margin-top:9rem}@media(max-width:500px){.agenda-count-label{display:none}.agenda-day small{font-size:.7rem;font-weight:600}}
.agenda-view-switch .btn{flex:0 1 10rem}.agenda-tools .actions .btn,.agenda-quick-dates .btn{flex:none}@media(max-width:500px){.agenda-view-switch .btn{flex:1}.agenda-tools .actions .btn{width:100%}}
.agenda-client-picker{display:grid;gap:.5rem;max-height:50vh;overflow:auto}.agenda-client-picker button{display:flex;align-items:start;flex-direction:column;text-align:left;gap:.3rem}.agenda-client-picker button span{font-weight:400;color:var(--muted)}.agenda-detail>[data-add-on-day]{margin:.5rem 0}
.agenda-completed{display:flex;align-items:center;gap:.5rem;font-size:.8rem;min-height:44px}.agenda-completed input{width:18px;height:18px;accent-color:var(--blue)}.personal-reminder-text{white-space:pre-wrap;overflow-wrap:anywhere}.personal-notifications{margin-bottom:2rem}.personal-notifications>h2{font-size:1.15rem}.personal-notifications .notification-card{margin-bottom:.75rem}#personalReminderForm .permission-option{margin-block:.7rem}#personalReminderForm>small{display:block;line-height:1.5}#personalReminderForm button[type=submit]{margin-top:1rem}
.pdf-share-feedback{margin:0;padding:.6rem 1rem;background:#fff;color:var(--text);font-size:.85rem}.portal-pdf-viewer .pdf-viewer-header{position:relative;flex-shrink:0;z-index:2}.portal-pdf-viewer .pdf-viewer-controls{flex-shrink:0}.portal-pdf-viewer .pdf-viewer-stage{min-height:0;overscroll-behavior:contain}.portal-pdf-viewer #closePdfViewer{white-space:normal}@media(max-width:40rem){.portal-pdf-viewer .pdf-viewer-header{display:grid;grid-template-columns:1fr 1fr;padding-top:calc(.7rem + env(safe-area-inset-top,0px))}.portal-pdf-viewer #closePdfViewer{grid-column:1/-1}.portal-pdf-viewer #pdfViewerTitle{grid-column:1/-1;grid-row:3}.portal-pdf-viewer .pdf-viewer-header .btn{width:100%;font-size:.8rem}.portal-pdf-viewer .pdf-viewer-stage{padding-bottom:env(safe-area-inset-bottom,0px)}}
.dealer-main-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:0 0 1.25rem}.dealer-main-actions .btn{justify-content:center;min-height:56px;white-space:normal}.dealer-start{margin-bottom:1.5rem}.dealer-branding{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.25rem;margin-bottom:1.5rem}.dealer-branding h2{font-size:1rem;margin:.2rem 0}.dealer-branding p{font-size:.8rem;margin:.3rem 0;color:var(--muted)}.dealer-branding form{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:24rem}.dealer-branding form small{font-size:.7rem;color:var(--muted);width:100%;line-height:1.5}.dealer-branding input[type=file]{max-width:13rem;font-size:.7rem}.dealer-branding label.btn{display:flex;flex-direction:column;align-items:start;gap:.6rem;padding:.6rem}.dealer-uploaded-logo{max-width:140px;max-height:55px;width:auto;height:auto;object-fit:contain;margin-bottom:.5rem}.dealer-home-more{border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:1rem;padding:0 1.25rem}.dealer-home-more>summary{cursor:pointer;min-height:56px;padding:1.1rem 0;font-weight:650;font-size:.9rem}.dealer-home-more>summary span{display:block;font-weight:400;font-size:.75rem;color:var(--muted);margin-top:.25rem}.dealer-home-more[open]{padding-bottom:1.25rem}.dealer-home-simple .partner-hero{min-height:250px;margin-bottom:1.5rem}.dealer-home-simple .partner-hero-copy{padding:1.75rem}.dealer-home-simple .partner-hero h2{font-size:clamp(1.7rem,3vw,2.3rem)}.dealer-home-simple .partner-hero-foot{display:none}.dealer-home-simple .dealer-shortcuts{margin-block:1rem}@media(max-width:650px){.dealer-main-actions{grid-template-columns:1fr;gap:.5rem}.dealer-main-actions .btn{min-height:48px}.dealer-branding{flex-direction:column;align-items:stretch;gap:.7rem}.dealer-home-simple .partner-hero{min-height:0}.dealer-home-simple .partner-hero-scene{height:170px}}

.dealer-branding form label.btn{position:relative;cursor:pointer}
.dealer-branding form input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.dealer-branding form label.btn:focus-within{outline:3px solid #96a5f4;outline-offset:3px}
/* Assistance calculator: same Cashmatic palette, comfortable touch controls. */
.repair-calculator{margin-top:1.5rem;overflow:hidden;min-width:0}
.repair-calculator>summary{display:flex;align-items:center;gap:1rem;list-style:none;cursor:pointer;padding:clamp(1rem,2.5vw,1.5rem);min-height:88px;background:#f8faff}
.repair-calculator>summary::-webkit-details-marker{display:none}
.repair-calculator>summary:focus-visible{outline:3px solid var(--blue);outline-offset:-4px}
.repair-symbol{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:12px;background:#eaf0fb;color:var(--blue)}
.repair-symbol svg{width:26px;height:26px}
.repair-calculator h2{margin:0;font-size:clamp(1rem,2vw,1.3rem);line-height:1.35;color:var(--navy);flex:1;min-width:0}
.repair-calculator h2 small{display:block;font-family:inherit;font-size:.76rem;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:.3rem}
.repair-chevron{font-size:1.5rem;color:var(--blue);transform:rotate(-90deg);flex-shrink:0}
.repair-calculator[open] .repair-chevron{transform:rotate(0)}
.repair-calculator[open]>summary{border-bottom:1px solid var(--line)}
.repair-pricing{padding:clamp(1rem,2.5vw,1.5rem);min-width:0}
.repair-intro{font-size:.88rem;color:var(--muted);margin:0 0 1.2rem}
.repair-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:1rem;margin-bottom:1.25rem}
.repair-filters label,.repair-quantity label{display:block;font-size:.78rem;font-weight:600;color:var(--navy);min-width:0}
.repair-filters input,.repair-filters select{display:block;width:100%;min-width:0;max-width:100%;height:50px;border:1px solid #dbe3ef;border-radius:8px;background:#fcfdff;color:var(--navy);font:inherit;font-size:1rem;padding:.7rem;margin-top:.5rem}
.repair-filters input:focus,.repair-filters select:focus,.repair-stepper input:focus{outline:2px solid var(--blue);outline-offset:1px}
.repair-total{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border:1px solid #d9e3f5;border-radius:12px;background:#edf2fc;padding:1.2rem 1.35rem;margin-bottom:1.5rem;overflow-wrap:anywhere}
.repair-total-label{display:block;font-size:.78rem;color:#49618b;margin-bottom:.4rem}
.repair-total strong{display:block;font-size:clamp(1.6rem,4vw,2.1rem);font-weight:700;line-height:1.15;color:var(--navy);font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.repair-total p{margin:0;font-size:.8rem;color:#49618b}
.repair-total p span{display:block;margin-top:.35rem;color:#725212;font-weight:600}
.repair-list-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.65rem;font-size:.85rem}
.repair-count{font-size:.73rem;color:var(--muted)}
.repair-results{max-height:34rem;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:10px;background:white;min-width:0;scroll-padding:1rem}
.repair-results:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.repair-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(7rem,.35fr) 148px;align-items:center;gap:1.25rem;padding:1.1rem;border-bottom:1px solid var(--line);font-size:.85rem;min-width:0}
.repair-row:last-child{border-bottom:0}.repair-row.is-selected{background:#f5f8ff;box-shadow:inset 3px 0 var(--blue)}
.repair-component{min-width:0;overflow-wrap:anywhere}.repair-component h3{font-size:.92rem;line-height:1.45;letter-spacing:-.02em;margin:.4rem 0;color:var(--navy)}
.repair-code{display:inline-block;font-size:.65rem;font-weight:650;letter-spacing:.035em;color:var(--blue);background:#edf1fa;border-radius:4px;padding:.2rem .4rem}
.repair-component small{display:block;font-size:.72rem;line-height:1.6;color:var(--muted)}
.repair-component a{display:inline-flex;align-items:center;min-height:44px;font-size:.74rem;color:var(--blue)}
.repair-unit-price{min-width:0}.repair-unit-price span{display:block;font-size:.7rem;color:var(--muted);margin-bottom:.45rem}.repair-unit-price strong{display:block;font-size:1rem;color:var(--navy);font-variant-numeric:tabular-nums}
.repair-quantity{min-width:0}.repair-quantity label{font-size:.7rem;color:var(--muted);font-weight:400;margin-bottom:.45rem}
.repair-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;border:1px solid #ccd8ec;border-radius:8px;overflow:hidden;background:white;min-width:0}
.repair-stepper button{min-width:44px;min-height:46px;padding:0;border:0;background:#f1f5fc;color:var(--blue);font:inherit;font-size:1.4rem;cursor:pointer}
.repair-stepper button:hover:not(:disabled){background:#e3ebf9}.repair-stepper button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.repair-stepper button:disabled{opacity:.4;cursor:default}
.repair-stepper input{min-width:0;width:100%;border:0;border-radius:0;padding:.3rem 0;background:white;text-align:center;font-size:1rem;font-variant-numeric:tabular-nums;color:var(--navy);appearance:textfield;-moz-appearance:textfield}
.repair-stepper input::-webkit-inner-spin-button,.repair-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.repair-empty{padding:2rem 1rem;text-align:center;color:var(--muted);font-size:.85rem}.repair-empty p{margin:.4rem 0 0}
.repair-source{display:flex;gap:.25rem 1rem;flex-wrap:wrap;align-items:center;margin:1rem 0 0;font-size:.74rem;line-height:1.6;color:var(--muted)}
.repair-source a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-weight:600}
@media(max-width:850px){.repair-row{grid-template-columns:minmax(0,1fr) 148px;gap:.5rem 1rem}.repair-component{grid-column:1/-1}.repair-unit-price{align-self:center}}
@media(max-width:600px){.repair-filters{grid-template-columns:minmax(0,1fr);gap:.85rem}.repair-calculator>summary{gap:.75rem}.repair-symbol{width:40px;height:40px;flex-basis:40px;border-radius:10px}.repair-symbol svg{width:24px;height:24px}.repair-total{padding:1rem;gap:.6rem}.repair-total p{flex-basis:100%}.repair-results{max-height:30rem}.repair-row{padding:.9rem;gap:.35rem .75rem;grid-template-columns:minmax(0,1fr) 140px}.repair-calculator h2 small{font-size:.7rem}.repair-source{display:block}.repair-source span{display:block}.repair-unit-price strong{font-size:.95rem}}
@media(max-width:360px){.repair-row{padding:.7rem;column-gap:.5rem;grid-template-columns:minmax(0,1fr) 132px}.repair-stepper{grid-template-columns:44px minmax(0,1fr) 44px}.repair-pricing{padding:.8rem}.repair-calculator>summary{padding:.9rem;gap:.6rem}.repair-symbol{display:none}}

/* Customer details */
.lead-profile-fields{grid-column:1/-1}.lead-profile-summary .client-section-title{flex-wrap:wrap}.lead-profile-summary .client-section-title .btn{margin-left:auto;font-size:.75rem;min-height:40px}.lead-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;margin:1.4rem 0}.lead-profile-grid dt{font-size:.7rem;color:#68788e;margin-bottom:.4rem}.lead-profile-grid dd{margin:0;font-size:.9rem;overflow-wrap:anywhere}.lead-profile-grid a{color:#19345f;text-decoration:underline;text-underline-offset:3px}.lead-profile-fields input{width:100%;min-width:0}@media(max-width:40rem){.lead-profile-grid{grid-template-columns:1fr}.lead-profile-summary .client-section-title .btn{margin-left:0}}
