:root{
  --ui-ink:#18272b;
  --ui-ink-soft:#2b3d40;
  --ui-paper:#f2f5f2;
  --ui-surface:#fff;
  --ui-line:#dfe7e2;
  --ui-muted:#667772;
  --ui-red:#e20d22;
  --ui-red-dark:#bd0b1c;
  --ui-green:#19745b;
  --ui-green-pale:#eaf5ef;
  --ui-gold:#c59b4e;
  --ui-gold-pale:#f8f2e4;
  --ui-radius:8px;
  --ui-shadow:0 4px 16px rgba(24,39,43,.055);
}
body{background:var(--ui-paper);color:var(--ui-ink);font-family:'DM Sans',sans-serif}
button,input,select,textarea{font-family:'DM Sans',sans-serif}
.button{min-height:40px;padding:0 14px;border-color:#d6e0da;border-radius:7px;background:#fff;color:#2d3e40;font-size:12px;font-weight:700;box-shadow:none;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.button:hover{border-color:#b9c9c0;background:#f8faf8;transform:translateY(-1px)}
.button.primary{border-color:var(--ui-red);background:var(--ui-red);color:#fff;box-shadow:0 3px 9px rgba(226,13,34,.16)}
.button.primary:hover{border-color:var(--ui-red-dark);background:var(--ui-red-dark)}
.button.dark{border-color:var(--ui-ink);background:var(--ui-ink);color:#fff}
.button.admin-cta{border-color:var(--ui-gold);background:var(--ui-gold);color:#18272b}
.control{border-color:#d6e0da;border-radius:6px;background:#fff;color:var(--ui-ink);font-size:12px;transition:border-color .15s,box-shadow .15s}
.control:focus{border-color:#168366;box-shadow:0 0 0 3px rgba(25,116,91,.12);outline:none}
.panel,.surface,.customer-card,.script-card,.call-card{border-color:var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.panel-head,.surface-head{border-color:#e8eeea}
.panel-title,.page-title,.page-heading h1,.dashboard-section-head h2{font-family:'Manrope',sans-serif;color:var(--ui-ink)}
.page-title,.page-heading h1{font-size:26px;line-height:1.2}
.page-description,.surface-head p{color:var(--ui-muted)}
.eyebrow{color:var(--ui-red);font-size:10px;font-weight:800;letter-spacing:.5px}
.topbar{height:74px;padding:0 24px;gap:18px;border:0;background:#18272b;color:#f5f7f5;box-shadow:0 3px 14px rgba(18,37,39,.14)}
.brand-mark{width:39px;height:39px;border-radius:8px;background:var(--ui-red);font-family:'Manrope',sans-serif}
.brand-name,.topbar .brand-sub{color:#f5f7f5}.topbar .brand-sub{opacity:.68}
.role-switch{border-color:#405255;border-radius:8px;background:#243638}
.role-switch-button{border-radius:6px;color:#d4dfda;font-size:11px}
.role-switch-button.active{background:var(--ui-gold);color:#1b292b}
.user-chip{border-color:#435456}.user-label{color:#fff}.role-label{color:#afbfba}
.topbar .button{border-color:#405255;border-radius:7px;background:#243638;color:#eef3f1}
.topbar .button:hover{background:#304548}
.layout{grid-template-columns:248px minmax(0,1fr);max-width:1840px}
.sidebar{position:sticky;top:74px;height:calc(100vh - 74px);min-height:0;padding:24px 16px;border:0;background:#203236;color:#e5ece8}
.nav-caption{padding:9px 11px;color:#a6b6b0;font-size:9px;font-weight:800;letter-spacing:.7px}
.nav-item{height:42px;margin:2px 0;border-radius:7px;color:#ced9d4;font-size:12px;font-weight:600}
.nav-item:hover{background:#2b4143;color:#fff}
.nav-item.active{background:#354a4b;color:#fff;box-shadow:inset 3px 0 var(--ui-red)}
.sidebar-note{border-color:#405354;color:#b1bfba}
.main{padding:30px clamp(18px,3vw,44px) 140px}
.page-head{align-items:center;margin-bottom:23px}
.panel{overflow:hidden}
.panel-head{min-height:58px;padding:16px 19px}
.panel-body{padding:20px}
.grid-2{gap:18px}
.field{gap:6px}.field label,.field>label{color:#425451;font-size:11px;font-weight:700}
.field-grid{gap:13px}
.step-heading{margin:0 0 13px;color:var(--ui-ink)}
.step-heading>span,.workflow-step span{background:var(--ui-ink-soft);border-radius:7px}
.workflow-step{margin-top:5px;color:#53645e}
.workflow-step span{background:var(--ui-green)}
.model-pill,.trim-card,.color-swatch,.discount-steps button,.term-chips button,.purchase-segment button,.loan-package-card{border-color:#d9e3dd;border-radius:7px;box-shadow:none}
.model-pill:hover,.trim-card:hover,.discount-steps button:hover,.term-chips button:hover,.purchase-segment button:hover,.loan-package-card:hover{border-color:#aabeb3;transform:translateY(-1px)}
.model-pill.active,.trim-card.active,.purchase-segment button.active{border-color:var(--ui-red);background:#fff3f3;color:var(--ui-red-dark);box-shadow:0 0 0 2px rgba(226,13,34,.08)}
.color-swatch.active{border-color:var(--ui-red);background:#fff}
.discount-steps button:first-child{border-color:#e8d7ac;background:var(--ui-gold-pale);color:#80611e}
.purchase-segment{border-radius:8px;background:#edf2ee}
.loan-package-card.active{border-color:var(--ui-ink-soft);background:var(--ui-ink-soft)}
.summary-stack{gap:0}
.summary-row{min-height:35px;border-bottom:1px solid #edf1ee}
.summary-row span{color:#596b65}
.summary-total{border-radius:8px;background:#f8f2e4}
.summary-total .money.red{color:var(--ui-red-dark)}
.summary-highlight{border-color:#dce7e0;border-radius:8px;background:#edf5ef}
.quote-campaign-line,.quote-gift-total,.quote-benefit-total{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #e8eeea}
.quote-campaign-line>span,.quote-gift-total>span,.quote-benefit-total>span{flex:0 0 auto;color:#687872;font-size:11px}
.quote-campaign-line>strong,.quote-gift-total>strong,.quote-benefit-total>strong{text-align:right;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.quote-gift-list{display:grid;gap:0;margin:6px 0}
.quote-gift-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #eef2ef;font-size:11px;line-height:1.35}
.quote-gift-list>div>span{min-width:0;overflow-wrap:anywhere}.quote-gift-list>div>strong{flex:0 0 auto;white-space:nowrap}
.quote-gift-total{margin-top:4px}.quote-benefit-total{border:0;color:var(--ui-green)}
.sticky-summary{background:#18272b;box-shadow:0 -4px 18px rgba(18,37,39,.12)}
.sticky-summary .money.red{color:#f08088}
.sticky-metrics span{color:#c3d0ca}
.bottom-nav{border-color:#dce5df;background:#fff;box-shadow:0 -3px 16px rgba(24,39,43,.05)}
.bottom-nav button{color:#71817b}.bottom-nav button.active{color:var(--ui-red)}
.customer-toolbar .control,.search-wrap .control{border-radius:7px}
.customer-card{padding:17px}
.customer-avatar{background:#e8f2ec;color:var(--ui-green)}
.action-btn,.quick-action{border-radius:6px}
.badge{border-radius:5px}
.script-card{padding:16px}
.data-table th{background:#edf2ee;color:#52635d}
.data-table td{border-color:#e8eeea}
.modal-backdrop{background:rgba(20,35,38,.68);backdrop-filter:blur(3px)}
.modal{border:1px solid #dfe7e2;border-radius:10px;box-shadow:0 24px 70px rgba(16,30,32,.24)}
.modal-head{border-color:#e8eeea}.modal-content{scrollbar-color:#b8c5bd transparent}
.admin-sidebar{background:#203236}.admin-topbar{box-shadow:0 2px 10px rgba(24,39,43,.04)}
.admin-nav-item.active{background:#344a4b;box-shadow:inset 3px 0 var(--ui-red)}
.dashboard-hero{background:#203236;box-shadow:inset 4px 0 var(--ui-red)}
.hero-kicker{color:#e7c77f}
.metric-card{border-radius:8px;box-shadow:var(--ui-shadow)}
.surface,.workspace-link{border-radius:8px;box-shadow:var(--ui-shadow)}
.workspace-link{transition:transform .16s,border-color .16s,box-shadow .16s}
.workspace-link:hover{box-shadow:0 8px 22px rgba(24,39,43,.08)}
.workspace-icon.gold{background:var(--ui-gold-pale);color:#856622}
.workspace-icon.green{background:var(--ui-green-pale);color:var(--ui-green)}
.control:focus{border-color:var(--ui-green);box-shadow:0 0 0 3px rgba(25,116,91,.12)}
.data-table th{background:#edf2ee;color:#52635d}
.dashboard-footnote{border-left-color:var(--ui-gold);background:#faf6eb}
.gift-image,.vehicle-photo-box,.vehicle-thumb{background:#edf2ee}
.admin-topbar .button.primary{background:var(--ui-red);border-color:var(--ui-red)}
.admin-topbar .button:not(.primary){border-radius:7px}
.quote-sheet-card{box-shadow:0 5px 18px rgba(24,39,43,.08)}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none}.grid-2{grid-template-columns:1fr}.grid-2>.panel:nth-child(2){position:static}.admin-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.topbar{padding:0 12px}.brand{min-width:0}.main{padding:20px 14px 156px}.page-head{align-items:flex-start}.page-title,.page-heading h1{font-size:22px}.page-description{font-size:11px}.panel-head{padding:14px 15px}.panel-body{padding:15px}.field-grid{gap:10px}.customer-card{padding:13px}.sticky-summary{border-radius:0}.bottom-nav{padding-left:6px;padding-right:6px}}
@media(max-width:620px){.topbar{min-height:78px;padding:7px 10px}.role-switch{border-radius:7px}.role-switch-button{border-radius:5px}.summary-total{padding:12px}.summary-total .money{font-size:18px}.quote-gift-list>div{font-size:10px}.admin-content{padding:18px 12px 35px}.admin-topbar{background:#fff}.admin-feature-action{width:100%}}
.topbar-search{position:relative;flex:0 1 275px;min-width:190px;height:38px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #405456;border-radius:7px;background:#243638;color:#d9e3df}
.topbar-search>.nav-icon{width:16px;height:16px;flex-shrink:0;color:#9eafa8}.topbar-search input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:11px}.topbar-search input::placeholder{color:#a7b5af}
.quick-model-results{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:35;display:grid;max-height:300px;overflow:auto;padding:5px;border:1px solid var(--ui-line);border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(24,39,43,.16)}
.quick-model-result{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:5px;background:#fff;color:var(--ui-ink);text-align:left;font-size:11px}.quick-model-result:hover{background:#f1f5f2}.quick-model-result small{color:var(--ui-muted);font-size:9px}
.quick-vehicle-bar{position:sticky;top:74px;z-index:18;display:flex;align-items:center;gap:12px;min-height:58px;padding:8px clamp(18px,3vw,44px);border-bottom:1px solid var(--ui-line);background:#fff;box-shadow:0 2px 8px rgba(24,39,43,.035)}
.quick-vehicle-label{display:flex;align-items:center;gap:7px;flex:0 0 auto;color:#72817b;font-size:9px;font-weight:800;letter-spacing:.5px}.quick-live-dot{width:7px;height:7px;border-radius:50%;background:var(--ui-green);box-shadow:0 0 0 3px var(--ui-green-pale)}
.quick-vehicle-bar .model-pills{display:flex;flex-wrap:nowrap;gap:6px;min-width:0;overflow:auto;scrollbar-width:none}.quick-vehicle-bar .model-pills::-webkit-scrollbar{display:none}.quick-vehicle-bar .model-pill{flex:0 0 auto;min-height:34px;padding:0 11px;border:1px solid transparent;border-radius:6px;background:#f2f5f2;color:#435550;font-size:10px}.quick-vehicle-bar .model-pill .model-pill-name{font-size:10px}.quick-vehicle-bar .model-pill small{display:none}.quick-vehicle-bar .model-pill.active{border-color:#f0b5bb;background:#fff1f2;color:var(--ui-red-dark)}
.quote-workspace{grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);align-items:start;gap:16px}
.quote-workspace>.panel{border-radius:9px;box-shadow:var(--ui-shadow)}.quote-workspace>.panel:first-child .panel-body{padding:18px}
.quote-preview-panel{position:sticky;top:146px;max-height:calc(100vh - 164px);overflow:auto;scrollbar-width:thin;scrollbar-color:#bdc9c1 transparent}
.quote-preview-head .panel-title{font-size:13px}.quote-preview-body{display:grid;gap:12px}
.quote-hero-card{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:14px;padding:12px;border:1px solid #dfe8e1;border-radius:8px;background:linear-gradient(135deg,#f9fbf9,#edf4ef)}
.quote-hero-image{position:relative;min-height:166px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#e6ece8}
.quote-hero-image>img{width:100%;height:100%;min-height:166px;position:absolute;inset:0;object-fit:cover}.quote-vehicle-image-fallback{display:grid;justify-items:center;gap:3px;color:#82928a}.quote-vehicle-image-fallback>span{font:800 22px 'Manrope',sans-serif;color:#bbc7c0}.quote-vehicle-image-fallback>small{font-size:8px}.quote-hero-color{position:absolute;left:8px;bottom:8px;padding:5px 8px;border:1px solid #ffffffa6;border-radius:4px;background:#ffffffdf;color:#34443e;font-size:9px;font-weight:700;backdrop-filter:blur(4px)}
.quote-hero-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:7px}.quote-hero-kicker{color:#74847c;font-size:8px;font-weight:900;letter-spacing:.6px}.quote-hero-copy h2{margin:0;color:var(--ui-ink);font:800 17px 'Manrope',sans-serif;line-height:1.25;overflow-wrap:anywhere}.quote-hero-sticker,.quote-hero-down{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5a6b63;font-size:10px}.quote-hero-sticker strong{color:var(--ui-ink);font-size:11px}.quote-hero-total{display:grid;gap:3px;padding:8px 0 6px;border-top:1px solid #dce5df;border-bottom:1px solid #dce5df}.quote-hero-total>span{color:#6e7d76;font-size:8px;font-weight:900;letter-spacing:.3px}.quote-hero-total>.money{color:var(--ui-red-dark);font:800 20px 'Manrope',sans-serif;line-height:1.15;overflow-wrap:anywhere}.quote-hero-down strong{color:var(--ui-ink);font-size:11px}
.quote-preview-section-head{display:flex;align-items:center;justify-content:space-between;padding:1px 0 0;color:#52635d;font-size:10px;font-weight:800}.quote-preview-section-head span{color:#89958f;font-size:8px}
.quote-preview-body .summary-stack{padding:0 1px}.quote-preview-body .summary-row{min-height:31px;font-size:10px}.quote-preview-body .summary-row strong{font-size:10px;color:#30433c}.quote-preview-body .quote-gifts-summary{padding:10px 11px;border:1px solid #dce8df;border-radius:7px;background:#f8fbf8}.quote-preview-body .quote-campaign-line{padding:0 0 7px;border-color:#e3ebe5}.quote-preview-body .quote-gift-list{margin:5px 0}.quote-preview-body .quote-gift-total,.quote-preview-body .quote-benefit-total{padding-top:7px}.quote-preview-body .quote-benefit-total strong{color:var(--ui-green)}
.quote-preview-body .summary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:1px}.quote-preview-body .summary-actions .button{width:100%;min-height:38px}.quote-advisor-footer{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px 11px;border-top:1px solid #e6ece8;color:#354841}.quote-advisor-footer>div{min-width:0;display:grid;gap:4px}.quote-advisor-footer span{color:#87938d;font-size:7px;font-weight:900;letter-spacing:.3px}.quote-advisor-footer strong{overflow-wrap:anywhere;font-size:9px;line-height:1.3}
.region-display{min-height:36px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #dce5df;border-radius:6px;background:#f8faf8;color:#344943;font-size:11px;font-weight:700}.region-display .nav-icon{width:14px;height:14px;color:var(--ui-green)}.region-display small{margin-left:auto;color:#7a8982;font-size:8px;font-weight:500}.current-model-field>strong{display:block;padding:9px 10px;border-radius:6px;background:#f4f7f4;color:#263a34;font-size:12px}.insurance-rate-note{color:#7b8982;font-size:9px}
.quote-builder-panel .panel-head{position:static;top:auto;z-index:auto;background:#fff}
.quote-builder-panel .panel-head{border-bottom-color:#e8eeea}
.quote-accordion-list{display:grid;gap:10px}
.quote-accordion{overflow:hidden;border:1px solid #e1e9e3;border-radius:9px;background:#fff;transition:border-color .16s,box-shadow .16s}
.quote-accordion[open]{border-color:#d2dfd6;box-shadow:0 3px 12px rgba(24,39,43,.045)}
.quote-accordion>summary{min-height:62px;display:flex;align-items:center;gap:11px;padding:11px 13px;cursor:pointer;list-style:none;user-select:none}
.quote-accordion>summary::-webkit-details-marker{display:none}
.quote-accordion>summary:focus-visible{outline:2px solid var(--ui-green);outline-offset:-3px;border-radius:8px}
.accordion-number{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:8px;background:#edf3ee;color:#52635b;font-size:10px;font-weight:800}
.quote-accordion[open] .accordion-number{background:var(--ui-green-pale);color:var(--ui-green)}
.accordion-title{min-width:0;display:grid;gap:3px;flex:1}
.accordion-title strong{color:var(--ui-ink);font-size:12px;font-weight:800}
.accordion-title small{color:#7b8982;font-size:9px;line-height:1.35}
.accordion-chevron{width:16px;height:16px;flex:0 0 16px;color:#829089;transition:transform .18s}
.quote-accordion[open] .accordion-chevron{transform:rotate(180deg)}
.accordion-content{padding:2px 13px 14px;border-top:1px solid #eef2ef}
.accordion-content>.field-grid{padding-top:13px}
.accordion-content>.gift-heading{padding:12px 1px 8px}
.accordion-content>.gift-grid{padding:0 1px}
.quote-accordion .field-grid{gap:12px}
.quote-accordion .current-model-field>strong{border:1px solid #e5ece7;background:#f7faf7}
.quote-accordion .policy-strip{background:#fbfaf5}
@media(max-width:700px){.quote-accordion-list{gap:8px}.quote-accordion>summary{min-height:58px;padding:10px}.accordion-content{padding:2px 10px 12px}.accordion-content>.field-grid{padding-top:11px}.accordion-title small{font-size:8px}.quote-accordion .field-grid{gap:10px}}
.sidebar-tools{display:flex;align-items:center;justify-content:space-between;min-height:34px;margin:0 4px 12px;padding:0 6px}
.sidebar-tools-label{color:#a6b6b0;font-size:9px;font-weight:800;letter-spacing:.7px}
.sidebar-toggle{width:30px;height:30px;display:grid;place-items:center;border:1px solid #405354;border-radius:6px;background:#2b4143;color:#dce7e1}
.sidebar-toggle:hover{background:#354a4b;color:#fff}
.sidebar-toggle .nav-icon{width:15px;height:15px}
.sidebar-collapsed .layout{grid-template-columns:72px minmax(0,1fr)}
.sidebar-collapsed .sidebar{padding:20px 9px}
.sidebar-collapsed .sidebar-tools{justify-content:center;margin:0 0 16px;padding:0}
.sidebar-collapsed .sidebar-tools-label,.sidebar-collapsed .sidebar .nav-caption,.sidebar-collapsed .sidebar-note{display:none}
.sidebar-collapsed .sidebar-toggle{background:transparent;border-color:transparent}
.sidebar-collapsed .sidebar .nav-item{justify-content:center;gap:0;padding:0;font-size:0}
.sidebar-collapsed .sidebar .nav-item .nav-icon{width:19px;height:19px;flex:0 0 19px}
.customer-toolbar{flex-wrap:wrap}
.customer-toolbar .search-wrap{min-width:220px}
.customer-count{flex:0 0 auto;color:#75827d;font-size:10px;font-weight:700;white-space:nowrap}
.crm-table{min-width:810px}
.crm-table th{font-size:9px;letter-spacing:.35px}
.crm-table td{padding:9px 11px;font-size:11px}
.crm-table tbody tr:hover{background:#fafcfb}
.crm-person{display:flex;align-items:center;gap:9px;min-width:175px}
.crm-person>.customer-avatar{width:32px;height:32px;flex:0 0 32px;font-size:12px}
.crm-person>span:last-child{display:grid;gap:3px;min-width:0}
.crm-person strong{color:#263a34;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.crm-person small,.crm-cell-note{display:block;color:#87938d;font-size:9px;margin-top:3px}
.crm-row-actions{position:relative;display:flex;justify-content:flex-end;align-items:center;gap:5px;min-width:105px}
.crm-icon-action,.crm-more>summary{width:31px;height:31px;display:grid;place-items:center;border:1px solid #e1e9e3;border-radius:6px;background:#fff;color:#52635b;cursor:pointer;list-style:none}
.crm-icon-action:hover,.crm-more>summary:hover{border-color:#aabeb3;color:var(--ui-green)}
.crm-icon-action svg,.crm-more>summary svg{width:15px;height:15px}
.crm-icon-action.crm-primary-action{border-color:#f2c4c8;color:var(--ui-red-dark);background:#fff7f7}
.crm-more{position:relative}
.crm-more>summary::-webkit-details-marker{display:none}
.crm-more-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:12;width:166px;padding:5px;border:1px solid #dce5df;border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(24,39,43,.15)}
.crm-more-menu button{width:100%;min-height:34px;display:flex;align-items:center;gap:8px;padding:0 8px;border:0;border-radius:4px;background:#fff;color:#435550;text-align:left;font-size:10px}
.crm-more-menu button:hover{background:#f1f5f2;color:var(--ui-ink)}
.crm-more-menu svg{width:14px;height:14px}
.crm-mobile-list{display:none}
.crm-empty{min-height:150px;display:grid;justify-items:center;align-content:center;gap:7px;text-align:center}
.crm-empty strong{font-size:13px;color:var(--ui-ink)}
.crm-empty>span:last-child{color:#829089;font-size:10px}
.crm-empty-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#edf3ee;color:var(--ui-green)}
.crm-empty-icon svg{width:19px;height:19px}
.crm-detail-hero{display:flex;align-items:center;gap:11px;padding:2px 0 15px;border-bottom:1px solid #e8eeea}
.crm-detail-hero>.customer-avatar{width:42px;height:42px;font-size:15px}
.crm-detail-name{font-size:15px;font-weight:800;color:var(--ui-ink)}
.crm-detail-id{display:flex;align-items:center;gap:6px;margin-top:4px;color:#829089;font-size:10px}
.crm-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px 0;border-bottom:1px solid #e8eeea}
.crm-detail-grid>div{display:grid;gap:4px;min-width:0}
.crm-detail-grid span{color:#87938d;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.35px}
.crm-detail-grid strong{color:#344943;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.crm-detail-grid .crm-detail-note{grid-column:1/-1}
.crm-history{padding-top:15px}
.crm-history-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;color:#344943;font-size:12px}
.crm-history-title span{color:#87938d;font-size:9px}
.crm-history-item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:9px;padding:0 0 13px}
.crm-history-item:not(:last-child)>div{border-bottom:1px solid #edf1ee;padding-bottom:11px}
.crm-history-dot{width:8px;height:8px;margin-top:4px;border:2px solid #8bb9a0;border-radius:50%;background:#edf5ef}
.crm-history-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.crm-history-head strong{font-size:10px;color:#344943}
.crm-history-head time,.crm-history-meta{color:#87938d;font-size:9px}
.crm-history-meta{margin-top:4px}
.crm-history-item p{margin:6px 0 0;color:#5d6d66;font-size:10px;line-height:1.45}
.crm-history-empty{padding:14px;border:1px dashed #dce5df;border-radius:6px;color:#87938d;font-size:10px;text-align:center}
.crm-detail-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:8px}
.crm-detail-actions .button{min-height:38px}
@media(max-width:900px){.sidebar-collapsed .layout{grid-template-columns:1fr}.sidebar-collapsed .sidebar{display:none}}
@media(max-width:900px){.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;right:0;bottom:0;left:0;z-index:30;height:60px;padding:5px 8px max(5px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ui-line);box-shadow:0 -3px 16px rgba(24,39,43,.05)}.bottom-nav button{display:grid;justify-items:center;align-content:center;gap:3px;border:0;background:transparent;color:#71817b;font-size:9px;font-weight:700}.bottom-nav button svg{width:19px;height:19px}.bottom-nav button.active{color:var(--ui-red)}.main{padding-bottom:88px}}
@media(min-width:621px) and (max-width:900px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:8px;padding:8px 14px}.topbar-search,.topbar .device-switch,.topbar .hide-mobile{display:none!important}.topbar .brand{min-width:0}.topbar .top-spacer{display:block;flex:1}.topbar .user-chip{margin-left:auto}}
@media(min-width:901px) and (max-width:1100px){.layout{grid-template-columns:1fr}.sidebar{display:none}.topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:8px;padding:8px 16px}.topbar-search,.topbar .device-switch,.topbar .hide-mobile{display:none!important}.topbar .brand{min-width:0}.topbar .top-spacer{display:block;flex:1}.topbar .user-chip{margin-left:auto}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;right:0;bottom:0;left:0;z-index:30;height:60px;padding:5px 8px max(5px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ui-line)}.bottom-nav button{display:grid;justify-items:center;align-content:center;gap:3px;border:0;background:transparent;color:#71817b;font-size:9px;font-weight:700}.bottom-nav button svg{width:19px;height:19px}.bottom-nav button.active{color:var(--ui-red)}.main{padding-bottom:88px}}
@media(min-width:1101px) and (max-width:1350px){.topbar-search,.topbar .device-switch,.topbar .hide-mobile{display:none!important}.topbar .brand{min-width:196px}.topbar .top-spacer{display:block;flex:1}}
@media(max-width:760px){.crm-table-wrap{display:none}.crm-mobile-list{display:grid;gap:9px}.crm-mobile-card{padding:12px;border:1px solid #e1e9e3;border-radius:8px;background:#fff}.crm-mobile-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.crm-mobile-meta{display:flex;flex-wrap:wrap;gap:6px 13px;margin:10px 0;color:#708079;font-size:9px}.crm-mobile-card .crm-row-actions{justify-content:flex-start}.customer-toolbar .search-wrap{min-width:min(100%,220px)}.customer-count{margin-left:auto}}
@media(max-width:480px){.crm-detail-grid{grid-template-columns:1fr}.crm-detail-grid .crm-detail-note{grid-column:auto}.crm-detail-actions{display:grid;grid-template-columns:1fr 1fr}.crm-detail-actions .button:last-child{grid-column:1/-1}}
@media(max-width:1500px){.topbar{gap:10px;padding:0 16px}.topbar .brand{min-width:196px}.topbar-search{flex-basis:235px;min-width:170px}.device-btn{padding:0 5px}.user-chip{padding-left:10px}}
@media(max-width:1100px){.quote-workspace{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:12px}.quote-hero-card{grid-template-columns:130px minmax(0,1fr);gap:10px}.quote-hero-image,.quote-hero-image>img{min-height:145px}}
@media(max-width:900px){.quick-vehicle-bar{top:72px;padding:8px 16px}.quote-workspace{grid-template-columns:1fr}.quote-preview-panel{position:static;max-height:none;overflow:visible}.quote-workspace>.panel:first-child .panel-body{padding:16px}.quote-hero-card{grid-template-columns:180px minmax(0,1fr)}.quote-hero-image,.quote-hero-image>img{min-height:170px}.quote-preview-body .summary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.topbar{flex-wrap:wrap}.topbar-search{flex:1 1 100%;order:5;max-width:none;height:34px}.quick-vehicle-bar{top:112px;min-height:48px;gap:8px;padding:6px 12px}.quick-vehicle-label{font-size:8px}.quick-vehicle-bar .model-pills{gap:5px}.quick-vehicle-bar .model-pill{min-height:31px;padding:0 9px}.quote-workspace{gap:10px}.quote-workspace>.panel:first-child .panel-body{padding:13px}.quote-preview-body{gap:9px}.quote-hero-card{grid-template-columns:120px minmax(0,1fr);gap:9px;padding:9px}.quote-hero-image,.quote-hero-image>img{min-height:145px}.quote-hero-copy h2{font-size:14px}.quote-hero-total>.money{font-size:17px}.quote-hero-kicker{font-size:7px}.quote-preview-body .summary-row{min-height:29px;font-size:9px}.quote-preview-body .summary-row strong{font-size:9px}.quote-preview-body .summary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-advisor-footer{grid-template-columns:1fr 1fr 1fr;gap:5px;padding:8px}.quote-advisor-footer strong{font-size:8px}.region-display small{display:none}}
@media(max-width:620px){.topbar{grid-template-rows:34px 32px 36px;min-height:112px}.topbar .topbar-search{grid-row:3;grid-column:1/-1}.topbar .role-switch{grid-row:2}.topbar .device-switch{grid-row:2}.quick-vehicle-bar{top:112px}.quote-hero-card{grid-template-columns:104px minmax(0,1fr)}.quote-hero-image,.quote-hero-image>img{min-height:138px}.quote-hero-total>.money{font-size:15px}.quote-preview-body .quote-gifts-summary{padding:8px}.quote-advisor-footer span{font-size:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
