.crm-intro{padding:14px 18px;margin:18px 0;border:1px solid #30363e;border-radius:10px;background:#1b2027;color:#aeb6c2;font-size:12px;line-height:1.6}
.crm-toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:22px 0 12px}.crm-toolbar label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#9aa4b2}.crm-toolbar .crm-search{flex:1;min-width:240px}.crm-toolbar input:not([type=checkbox]),.crm-toolbar select{min-height:38px;background:#1b2027;border:1px solid #343c47;border-radius:7px;color:#e4e8ee;padding:8px 11px;font:inherit;font-size:12px;color-scheme:dark}.crm-toolbar .crm-check{flex-direction:row;align-items:center;min-height:38px}.crm-check input{accent-color:#7aa8df}.crm-count{font-size:12px;color:#8e99a8;margin:12px 0}.crm-table-wrap{overflow:auto;border:1px solid #2d333d;border-radius:10px}.crm-table{width:100%;min-width:780px}.crm-table td{vertical-align:top;font-size:12px}.crm-table small{display:block;color:#8d98a8;font-size:12px;line-height:1.6;margin-top:6px}.crm-table .crm-unknown{color:#d7b576}.crm-name,.crm-back{border:0;padding:0;background:none;color:#e1e7ef;font:inherit;cursor:pointer;text-align:left}.crm-name{font-weight:600}.crm-name:hover,.crm-back:hover{color:#9bc5ff}.crm-back{font-size:12px;margin-bottom:20px}.crm-review{color:#e0bf83!important;background:#30291e!important;border:1px solid #5b492d}.crm-tabs{display:flex;gap:5px;border-bottom:1px solid #303640;margin:16px 0 22px;overflow:auto}.crm-tabs button{white-space:nowrap;border:0;background:none;color:#8f9bac;padding:13px 16px;font:inherit;font-size:12px;cursor:pointer;border-bottom:2px solid transparent}.crm-tabs button.active{color:#dce9ff;border-bottom-color:#79a4dd}.crm-empty{padding:26px;max-width:850px}.crm-empty h3,.crm-note h3{font-size:12px}.crm-empty p{line-height:1.8;font-size:12px;max-width:700px}.crm-note{padding:18px;margin-bottom:14px}.crm-note p{white-space:pre-wrap;font-size:12px;line-height:1.7}.crm-name:focus-visible,.crm-back:focus-visible,.crm-tabs button:focus-visible{outline:2px solid #7aa8df;outline-offset:4px}.crm-table td:nth-child(n+2){max-width:260px}.crm-table .btn{white-space:nowrap}@media(max-width:800px){.crm-toolbar{gap:10px}.crm-tabs button{padding:12px 10px}.crm-table{min-width:680px}}

.crm-company-section{margin-bottom:14px}.crm-company-section h3,.crm-company-history h3{margin:0 0 16px;font-size:12px}.crm-company-section h4{margin:18px 0 12px;font-size:12px}.crm-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.crm-company-field{display:grid;gap:7px;font-size:12px}.crm-company-field input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #42494c;border-radius:6px;background:#191d20;color:#f3f5f4;font:inherit}.crm-company-field input:focus-visible{outline:2px solid #7da9cd;outline-offset:2px}.crm-company-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.crm-company-heading h3,.crm-company-heading h4{margin:0}.crm-delivery{border-top:1px solid #42494c;margin-top:18px;padding-top:18px}.crm-company-flag{margin:18px 0}.crm-company-history{margin-top:18px}.crm-company-history details{border-top:1px solid #42494c;padding:12px 0;font-size:12px}.crm-company-history summary{cursor:pointer}.crm-company-history li{margin:8px 0;overflow-wrap:anywhere}.crm-company-section .muted,.crm-company-history .muted,#cp-feedback{font-size:12px;line-height:1.5}#crm-company-form fieldset{border:0;padding:0;margin:0;min-width:0}#crm-company-form fieldset:disabled input{opacity:.8}html[data-theme=lala] :is(.crm-delivery,.crm-company-history details){border-color:#d4d4d0}html[data-theme=lala] .crm-company-field{color:#30302e}html[data-theme=lala] #cp-feedback{color:#30302e}@media(max-width:640px){.crm-company-grid{grid-template-columns:1fr}.crm-company-heading{align-items:flex-start;flex-wrap:wrap}}

/* Customers layout from the locked August reference, in Lili and LALA. */
.crm-page{--crm-surface:#171717;--crm-soft:#202020;--crm-line:#343434;--crm-text:#f1f1ef;--crm-muted:#a4a4a0;color:var(--crm-text)}
html[data-theme=lala] .crm-page{--crm-surface:#fff;--crm-soft:#f5f5f3;--crm-line:#deded9;--crm-text:#111;--crm-muted:#666660}
.crm-page-heading{margin:3px 0 18px}.crm-page-heading h1{font-size:12px;letter-spacing:-.035em;margin:12px 0 8px;font-weight:600}.crm-page-heading p{margin:0;font-size:12px}.crm-page>.crm-tabs{margin:10px 0 18px}
.crm-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.crm-rail,.crm-record{background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:10px;min-width:0}.crm-rail{padding:20px 14px;position:sticky;top:18px}.crm-rail-search{display:grid;gap:10px;padding:0 4px;color:var(--crm-muted);font-size:12px}.crm-rail-search input{width:100%;box-sizing:border-box;background:var(--crm-soft);color:var(--crm-text);border:1px solid var(--crm-line);border-radius:7px;padding:12px 10px;font:inherit;font-size:12px}.crm-rail-filters{margin:14px 4px;font-size:12px;color:var(--crm-muted)}.crm-rail-filters summary{cursor:pointer;padding:5px 0}.crm-rail-filters .crm-toolbar{gap:10px;margin:12px 0}.crm-rail-filters .crm-toolbar label{width:100%}.crm-rail-filters select{width:100%}.crm-rail .crm-count{margin:12px 4px;font-size:12px;color:var(--crm-muted)}.crm-rail-list{max-height:calc(100dvh - 355px);min-height:240px;overflow:auto;padding-right:3px;scrollbar-width:thin}.crm-customer-choice{display:grid;gap:5px;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--crm-text);font:inherit;text-align:left;padding:14px 12px;margin-bottom:4px;cursor:pointer}.crm-customer-choice strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.crm-customer-choice span{font-size:12px;color:var(--crm-muted)}.crm-customer-choice small{font-size:12px;color:var(--crm-muted);line-height:1.4}.crm-customer-choice.selected,.crm-customer-choice:hover{background:var(--crm-soft);border-color:var(--crm-line)}.crm-customer-choice.selected{box-shadow:inset 3px 0 #92928c}.crm-customer-choice small.crm-approved{color:#6d9b7e}.crm-customer-choice small.crm-data-note{color:#c4a86f}.crm-add-customer{margin:16px 4px 0;font-size:12px}.crm-add-customer:disabled{opacity:.55;cursor:not-allowed}.crm-rail-empty{font-size:12px;padding:10px}
.crm-record{min-height:610px;overflow:hidden}.crm-card-header{padding:30px 30px 10px;display:flex;align-items:center;justify-content:space-between;gap:16px}.crm-card-header h2{font-size:12px;letter-spacing:-.03em;margin:12px 0 8px;overflow-wrap:anywhere}.crm-card-header p{font-size:12px;margin:0}.crm-header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.crm-header-actions .btn{font-size:12px}.crm-close{border:0;background:transparent;color:var(--crm-muted);font-size:12px;cursor:pointer;line-height:1;padding:6px}.crm-record-tabs{margin:14px 30px 0;gap:2px;border-color:var(--crm-line)}.crm-record-tabs button{padding:14px 10px;font-size:12px;letter-spacing:.025em}.crm-record-tabs button:first-child{padding-left:0}.crm-record-tabs button.active{color:var(--crm-text);border-bottom-color:var(--crm-text)}.crm-record-content{padding:30px}.crm-record-content>.crm-intro{margin-top:0}.crm-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.crm-section-heading h3,.crm-overview-section h3{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:500;color:var(--crm-muted);margin:0}.crm-section-heading>span{font-size:12px;color:var(--crm-muted)}
.crm-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.crm-summary-metric,.crm-season-card,.crm-location-card,.crm-contact-card{border:1px solid var(--crm-line);border-radius:8px;padding:22px;background:var(--crm-surface);min-width:0}.crm-summary-metric{min-height:142px;display:flex;flex-direction:column;gap:20px}.crm-summary-metric strong{font-size:12px;letter-spacing:-.04em;font-weight:500;overflow-wrap:anywhere;line-height:1.2}.crm-summary-metric small{font-size:12px;color:var(--crm-muted);line-height:1.4}.crm-summary-metric .crm-unknown,.crm-season-card .crm-unknown{display:block;font-size:12px;letter-spacing:0;margin-top:6px}.crm-summary-metric .eyebrow,.crm-season-card .eyebrow,.crm-location-card .eyebrow,.crm-contact-card .eyebrow{font-size:12px;letter-spacing:.08em}
.crm-page .crm-metric-forecast{background:#1b2732;border-color:#344c62}.crm-page .crm-metric-actual{background:#1d2b22;border-color:#375b43}.crm-overview-section{margin-top:32px}.crm-brand-portfolio{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.crm-brand-portfolio span{padding:10px 16px;border:1px solid var(--crm-line);background:var(--crm-soft);border-radius:8px;font-size:12px}.crm-overview-section>p{font-size:12px;line-height:1.6;margin-top:12px}.crm-season-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.crm-season-card{padding:18px;display:grid;gap:18px}.crm-season-card strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.crm-overview-context{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:26px;border-top:1px solid var(--crm-line)}.crm-overview-context>div{display:grid;gap:12px}.crm-overview-context strong{font-size:12px;font-weight:500}.crm-overview-context small{font-size:12px;color:var(--crm-muted)}
.crm-home{padding:56px 34px}.crm-home h2{font-size:12px;font-weight:500;letter-spacing:-.035em;line-height:1.3;margin:20px 0}.crm-home>p{font-size:12px;line-height:1.8;max-width:510px}.crm-home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:36px 0}.crm-home-action{position:relative;display:flex;flex-direction:column;gap:16px;padding:22px 18px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);color:var(--crm-text);font:inherit;text-align:left;min-height:190px}.crm-home-action strong{font-size:12px;font-weight:500;line-height:1.5}.crm-home-action>span:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--crm-muted)}button.crm-home-action{cursor:pointer}button.crm-home-action:hover{background:var(--crm-soft)}.crm-home-action b{position:absolute;bottom:14px;right:16px;font-size:12px;font-weight:400}.crm-coming{opacity:.6}.crm-home-note{font-size:12px!important;color:var(--crm-muted);margin-top:24px}
.crm-company-read dl{display:grid;grid-template-columns:1fr 1fr;gap:24px 22px;margin:0}.crm-company-read dt{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--crm-muted);margin-bottom:9px}.crm-company-read dd{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.crm-company-address{margin-top:26px;padding-top:20px;border-top:1px solid var(--crm-line)}.crm-company-address p,.crm-location-card p{font-size:12px;line-height:1.8;margin:14px 0 0;overflow-wrap:anywhere}.crm-location-grid,.crm-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.crm-contact-card h4{margin:20px 0 16px;font-size:12px}.crm-contact-card p{font-size:12px;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}.crm-contact-card small{font-size:12px;color:var(--crm-muted);display:block;margin-top:20px}.crm-timeline{margin-top:22px}.crm-timeline-item{display:grid;grid-template-columns:140px minmax(0,1fr);gap:20px;border-top:1px solid var(--crm-line);padding:18px 0}.crm-timeline-item time{font-size:12px;color:var(--crm-muted)}.crm-timeline-item strong{font-size:12px;font-weight:500}.crm-timeline-item p{font-size:12px;color:var(--crm-muted);margin:8px 0}
.crm-page button:focus-visible,.crm-page input:focus-visible,.crm-page summary:focus-visible{outline:2px solid #9ca89d;outline-offset:3px}.crm-page .eyebrow{color:var(--crm-muted)}.crm-page .muted{color:var(--crm-muted)}
html[data-theme=lala] .crm-page .crm-metric-forecast{background:#eaf1f8;border-color:#c7d7e7;color:#315f8d}html[data-theme=lala] .crm-page .crm-metric-actual{background:#e5f2e9;border-color:#adc6b5;color:#245f3c}html[data-theme=lala] .crm-page .crm-customer-choice small.crm-approved{color:#245f3c}html[data-theme=lala] .crm-page .crm-customer-choice small.crm-data-note{color:#846322}html[data-theme=lala] .crm-record-tabs button{color:#666660!important}html[data-theme=lala] .crm-record-tabs button.active{color:#111!important;border-bottom-color:#111!important}
@media(min-width:1500px){.crm-workspace{grid-template-columns:270px minmax(0,1fr);gap:22px}.crm-record-content{padding:36px}.crm-card-header{padding:36px 36px 12px}.crm-record-tabs{margin-left:36px;margin-right:36px}}
@media(max-width:1100px){.crm-workspace{grid-template-columns:220px minmax(0,1fr);gap:12px}.crm-record-content{padding:22px}.crm-card-header{padding:24px 22px 8px;align-items:flex-start;flex-wrap:wrap}.crm-record-tabs{margin-left:22px;margin-right:22px}.crm-summary-metric{padding:16px;gap:16px}.crm-summary-metric strong{font-size:12px}.crm-home-actions{grid-template-columns:1fr}.crm-home-action{min-height:135px}.crm-home{padding:36px 24px}}
@media(max-width:800px){.crm-workspace{grid-template-columns:1fr}.crm-rail{position:static}.crm-rail-list{min-height:0;max-height:190px}.crm-record{min-height:0}.crm-overview-metrics,.crm-season-grid{gap:8px}.crm-summary-metric{padding:14px;min-height:125px}.crm-summary-metric strong{font-size:12px}.crm-record-content{padding:20px}.crm-record-tabs{margin-left:20px;margin-right:20px}.crm-home-actions{grid-template-columns:1fr}.crm-contact-grid,.crm-location-grid{grid-template-columns:1fr}.crm-home{padding:32px 22px}.crm-timeline-item{grid-template-columns:1fr;gap:10px}}
@media(max-width:480px){.crm-overview-metrics,.crm-season-grid{grid-template-columns:1fr}.crm-summary-metric{min-height:100px}.crm-company-read dl{grid-template-columns:1fr}.crm-overview-context{grid-template-columns:1fr}.crm-card-header h2{font-size:12px}}

.crm-source-child h4{margin:12px 0 8px}.crm-source-child p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.crm-source-id{display:block;margin-top:12px;color:#8c8c8c;font-size:12px;overflow-wrap:anywhere}


/* One Customers type scale, inherited from Actuals: 12 / 14 / 22. */
.crm-page{--crm-line:#2c2d2a;--crm-muted:#a3a49d;--crm-shadow:0 1px 3px #00000010;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;line-height:1.5}
html[data-theme=lala] .crm-page{--crm-line:#e7e7e3;--crm-muted:#71716b;--crm-shadow:0 1px 3px #00000005}
html[data-theme] .crm-page :is(button,input,select,textarea){font-family:inherit!important}
html[data-theme] .crm-page :is(p,span,small,b,strong,dt,dd,label,button,input,select,summary,time,th,td,h3,h4,.eyebrow,.h1){font-size:12px!important;line-height:1.5;letter-spacing:0}
html[data-theme] .crm-page :is(h1,h2,.crm-summary-metric>strong,.crm-home h2,.h1){font-size:22px!important;font-weight:500;line-height:1.25;letter-spacing:-.4px}
html[data-theme] .crm-page :is(.crm-widget-heading h3,.crm-widget-heading h4,.crm-home-action strong,.crm-season-card strong){font-size:14px!important;font-weight:500}
.main:has(>.crm-page){padding-top:20px}

.crm-page-heading{margin:0 0 10px}.crm-page-heading h1{margin:0}
.crm-page>.crm-tabs{margin:0 0 12px}.crm-page>.crm-tabs button{padding:8px 10px}
.crm-workspace{grid-template-columns:220px minmax(0,1fr);gap:12px}
.crm-rail,.crm-record{border-radius:8px;box-shadow:var(--crm-shadow)}
.crm-rail{padding:12px}.crm-rail-search{gap:6px}.crm-rail-search input{padding:8px 9px}
.crm-rail-filters{margin:8px 4px}.crm-rail-list{min-height:160px;max-height:calc(100dvh - 245px)}
.crm-customer-choice{padding:9px;gap:2px;margin-bottom:2px}.crm-customer-choice.selected{box-shadow:none;background:var(--crm-soft);border-color:transparent}
.crm-customer-choice strong{font-weight:500}.crm-add-customer{margin-top:12px}
.crm-record{min-height:420px}.crm-card-header{padding:16px 18px 6px}.crm-card-header h2{margin:4px 0}.crm-header-actions .btn{padding:5px 8px}
.crm-record-tabs{margin:8px 18px 0}.crm-record-tabs button{padding:8px;letter-spacing:0}.crm-record-content{padding:16px 18px}
.crm-section-heading{margin-bottom:10px}.crm-section-heading h3,.crm-overview-section h3{text-transform:none;letter-spacing:0}
.crm-page :is(.crm-readable-widget,.crm-location-card,.crm-contact-card,.crm-widget-editor){padding:14px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);box-shadow:var(--crm-shadow);min-width:0}
.crm-page .crm-company-read dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}
.crm-page dt{font-weight:400;color:var(--crm-muted);text-transform:none;margin-bottom:2px}
.crm-page dd{margin:0;overflow-wrap:anywhere}
.crm-widget-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.crm-widget-heading :is(h3,h4){margin:0;text-transform:none;letter-spacing:0;color:var(--crm-text)}
.crm-page .crm-widget-edit{padding:3px 7px;border:1px solid var(--crm-line);border-radius:5px;min-height:25px;background:transparent;font-weight:400;box-shadow:none}
.crm-widget-edit:disabled{opacity:.45;cursor:not-allowed}
.crm-page .crm-overview-section{margin-top:18px}.crm-page :is(.crm-contact-grid,.crm-location-grid){grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.crm-page .crm-address-grid{align-items:start}.crm-page .crm-address-grid .crm-location-card{min-height:156px}
.crm-page .crm-address-name{margin:0 0 4px;font-weight:500}.crm-page .crm-address-lines{margin:0;line-height:1.6;overflow-wrap:anywhere}.crm-page .crm-address-note{margin:8px 0 0}
.crm-invoice-contact{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--crm-line);display:grid;gap:7px}
.crm-page .crm-contact-card{min-height:152px;display:flex;flex-direction:column}.crm-page .crm-contact-card h4{color:var(--crm-muted);font-weight:400;text-transform:none}
.crm-page .crm-contact-card .crm-contact-name{margin:0 0 8px}.crm-contact-lines p{margin:0 0 4px;color:var(--crm-muted)}
.crm-contact-source{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto;padding-top:10px}.crm-contact-source small{margin:0!important;color:var(--crm-muted)}.crm-contact-source .crm-name{font-weight:400;color:var(--crm-muted)}
.crm-page .crm-widget-editor fieldset{border:0;padding:0;margin:0;min-width:0}.crm-page .crm-widget-editor input{padding:8px 9px;width:100%}.crm-company-grid{gap:10px}.crm-company-field{gap:4px}.crm-widget-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.crm-widget-actions .btn{padding:6px 9px}
.crm-archived-contacts{margin-top:14px}.crm-removal-notice{padding:10px;border:1px solid var(--crm-line);border-radius:6px}
.crm-page .crm-summary-metric{min-height:100px;padding:14px;gap:10px}.crm-page .crm-season-card{padding:14px;gap:10px}.crm-page .crm-season-grid{margin-top:10px}
.crm-page .crm-brand-portfolio{margin-top:10px;gap:6px}.crm-page .crm-brand-portfolio span{padding:5px 9px}.crm-page .crm-overview-context{padding-top:14px;gap:14px}
.crm-page .crm-home{padding:26px 22px}.crm-page .crm-home-actions{margin:18px 0}.crm-page .crm-home-action{min-height:132px;padding:14px;gap:10px}.crm-page .crm-home-note{margin-top:12px}
html[data-theme=lala] .crm-page .crm-widget-heading :is(h3,h4){color:var(--crm-text)!important}
@media(max-width:1100px){.crm-workspace{grid-template-columns:200px minmax(0,1fr)}.crm-page .crm-company-read dl{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-page :is(.crm-contact-grid,.crm-location-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.crm-workspace{grid-template-columns:1fr}.crm-rail{position:static}.crm-rail-list{min-height:0;max-height:160px}.crm-record{min-height:0}}
@media(max-width:550px){.crm-page :is(.crm-contact-grid,.crm-location-grid,.crm-company-read dl){grid-template-columns:1fr}.crm-page .crm-address-grid .crm-location-card{min-height:0}.crm-card-header{flex-wrap:wrap}}

/* Approved Attio / Linear composition. Keep the existing Actuals type scale. */

.main:has(>.crm-page){padding:22px 28px 40px;max-width:none}
.crm-workspace{grid-template-columns:210px minmax(0,1fr);gap:0}
.crm-rail{border:0;border-radius:0;box-shadow:none;background:var(--crm-soft);padding:16px 12px;min-height:540px}
.crm-record{border:0;border-radius:0;box-shadow:none;overflow:visible}
.crm-card-header{padding:18px 24px 8px}.crm-record-tabs{margin-left:24px;margin-right:24px;border-color:var(--crm-line)}
.crm-record-content{padding:18px 24px}.crm-record-content .crm-company-flat{padding:0 0 20px;border:0;background:none;box-shadow:none}
.crm-company-flat dl{margin:0;display:grid;gap:7px}.crm-company-flat dl>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px}.crm-company-flat dt{color:var(--crm-muted)}
.crm-pencil{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;background:transparent;color:var(--crm-muted);cursor:pointer;border-radius:5px;flex:none;padding:5px}.crm-pencil:hover{background:var(--crm-soft);color:var(--crm-text)}.crm-pencil:disabled{opacity:.4;cursor:not-allowed}
.crm-address-widgets{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;margin:0 0 20px}
.crm-address-widget{border:1px solid var(--crm-line);border-radius:12px;padding:16px 18px;box-shadow:0 2px 8px #00000008;min-width:0;background:var(--crm-surface)}
.crm-address-widget>.crm-widget-heading{margin-bottom:12px}.crm-address-widget>.crm-widget-edit{margin-top:10px;border:0;color:var(--crm-muted);padding:4px 0;background:transparent}
.crm-shipping-entry{position:relative;display:flex;align-items:flex-start;gap:6px;border-bottom:1px solid var(--crm-line);padding:8px 0}.crm-shipping-entry:first-of-type{padding-top:0}.crm-shipping-entry:last-of-type{border:0}.crm-shipping-entry details{flex:1;min-width:0}.crm-shipping-entry summary{cursor:pointer;color:var(--crm-text);padding:2px 0}.crm-shipping-entry summary span{font-weight:500}.crm-shipping-entry summary small{display:block;margin-left:15px;color:var(--crm-muted)}.crm-shipping-entry details[open] summary small{display:none}.crm-shipping-entry details>div{padding:7px 0 5px 15px}.crm-shipping-name{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.crm-page .crm-invoice-contact{border:0;grid-template-columns:1fr;margin:12px 0 0;padding:0;gap:6px}.crm-invoice-contact>div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px}
.crm-inline-contacts{margin-top:18px}.crm-inline-contacts .crm-section-heading{margin-bottom:6px}
.crm-page .crm-contact-grid{display:grid;grid-template-columns:1fr;gap:0;margin-top:0}
.crm-page .crm-contact-card{display:grid;grid-template-columns:30px 135px minmax(120px,1fr) minmax(180px,1.8fr) 28px;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--crm-line);border-radius:0;padding:9px 0;box-shadow:none;min-height:0;background:none;position:relative}
.crm-contact-avatar{grid-column:1;grid-row:1;background:var(--crm-soft);color:var(--crm-muted);width:26px;height:26px;display:grid;place-items:center;border-radius:50%}
.crm-page .crm-contact-card>.crm-widget-heading{grid-column:2;grid-row:1;margin:0;display:contents}.crm-page .crm-contact-card .crm-widget-heading h4{grid-column:2;grid-row:1;margin:0;color:var(--crm-muted)}.crm-contact-card .crm-pencil{grid-column:5;grid-row:1}
.crm-page .crm-contact-card .crm-contact-name{grid-column:3;grid-row:1;margin:0;font-size:12px!important;font-weight:400}.crm-contact-lines{grid-column:4;grid-row:1;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}.crm-contact-lines p{margin:0;overflow-wrap:anywhere}
.crm-page .crm-contact-source{display:none}.crm-page .crm-finance-empty{display:flex;justify-content:space-between;gap:8px}.crm-page .crm-finance-empty .crm-contact-lines{display:none}.crm-page .crm-finance-empty .crm-widget-heading{display:flex;margin:0;gap:8px}.crm-finance-empty .crm-contact-name{color:var(--crm-muted)}
.crm-commercial-strip{display:grid;grid-template-columns:150px repeat(3,minmax(0,1fr));gap:10px;align-items:center;margin:18px 0}.crm-commercial-strip h3{margin:0;font-weight:500}.crm-commercial-strip>div{padding:10px 12px;border-radius:7px;background:var(--crm-soft);display:grid;gap:4px;min-width:0}.crm-commercial-strip strong{font-size:22px!important;font-weight:500;overflow-wrap:anywhere}.crm-commercial-strip span{color:var(--crm-muted)}
.crm-import-fold{margin:16px 0;color:var(--crm-muted)}.crm-import-fold>summary{cursor:pointer}.crm-import-fold .crm-overview-section{margin-top:10px}
.crm-review-bubble{position:relative;color:#e69797;min-width:0}.crm-review-bubble>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;padding:5px 8px;background:#b53a3a15;border-radius:6px;white-space:nowrap}.crm-review-bubble>summary::-webkit-details-marker{display:none}.crm-review-bubble summary span{width:16px;height:16px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-weight:600}
.crm-review-cloud{position:absolute;z-index:50;right:0;top:calc(100% + 9px);width:min(360px,75vw);padding:16px;background:var(--crm-surface);color:var(--crm-text);border:1px solid #b5575770;border-radius:10px;box-shadow:0 12px 32px #00000026;white-space:normal}.crm-review-cloud:before{content:'';position:absolute;right:30px;top:-6px;width:10px;height:10px;transform:rotate(45deg);background:var(--crm-surface);border-left:1px solid #b5575770;border-top:1px solid #b5575770}.crm-review-cloud>strong{font-weight:500}.crm-review-item{padding:9px 0;border-bottom:1px solid var(--crm-line)}.crm-review-item p{margin:0 0 7px}.crm-review-item .btn{padding:4px 7px}.crm-review-cloud>.muted{margin:10px 0 0}
.crm-page .crm-customer-flagged{border-left:2px solid #cf5c5c}.crm-page .crm-customer-choice .crm-data-note{color:#df8888!important}
html[data-theme] .crm-page .crm-review{color:#db8585!important;background:#9a343418!important;border:1px solid #b7575745!important}
html[data-theme=lala] .crm-review-bubble,html[data-theme=lala] .crm-page .crm-customer-choice .crm-data-note{color:#b33333!important}
html[data-theme=lala] .crm-page .crm-review{color:#b33333!important;background:#fff0f0!important}
@media(max-width:1250px){.crm-page .crm-contact-card{grid-template-columns:28px 100px minmax(100px,1fr) minmax(140px,1.5fr) 26px}.crm-contact-lines{grid-template-columns:1fr;gap:2px}.crm-commercial-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-commercial-strip h3{grid-column:1/-1}.crm-header-actions{flex-wrap:wrap}}
@media(max-width:950px){.crm-workspace{grid-template-columns:180px minmax(0,1fr)}.crm-address-widgets{grid-template-columns:1fr}.crm-company-flat dl>div{grid-template-columns:135px minmax(0,1fr)}.crm-page .crm-contact-card{grid-template-columns:28px minmax(0,1fr) 26px;gap:6px 10px}.crm-page .crm-contact-card .crm-widget-heading h4{grid-column:2;grid-row:1}.crm-contact-card .crm-pencil{grid-column:3;grid-row:1}.crm-page .crm-contact-card .crm-contact-name{grid-column:2;grid-row:2}.crm-contact-lines{grid-column:2;grid-row:3}}
@media(max-width:800px){.shell:has(.crm-page){grid-template-columns:1fr}.crm-workspace{grid-template-columns:1fr}.crm-rail{min-height:0}.crm-record-content{padding:16px}.crm-card-header{padding:16px;align-items:flex-start}.crm-record-tabs{margin:0 16px}.main:has(>.crm-page){padding:16px}}

/* Independent widget copy actions */
.crm-card-actions{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}.crm-page .crm-contact-card .crm-card-actions{grid-column:5;grid-row:1}.crm-page .crm-contact-card .crm-card-actions .crm-pencil{grid-column:auto;grid-row:auto}.crm-shipping-name>strong{flex:1}.crm-page .crm-contact-card{grid-template-columns:30px 135px minmax(120px,1fr) minmax(160px,1.5fr) 59px}
@media(max-width:1250px){.crm-page .crm-contact-card{grid-template-columns:30px 100px minmax(120px,1fr) minmax(150px,1.3fr) 59px}}
@media(max-width:950px){.crm-page .crm-contact-card{grid-template-columns:28px minmax(0,1fr) 59px}.crm-page .crm-contact-card .crm-card-actions{grid-column:3}}

/* Customer directory: clean full-width entry and shared Commercial overview */
.crm-workspace-home{display:flex;flex-direction:column;gap:0}.crm-workspace-home>.crm-rail{position:static;width:100%;box-sizing:border-box;background:transparent;border:0;display:flex;align-items:center;gap:20px;padding:18px 0}.crm-workspace-home .crm-rail-search{width:min(380px,50%);padding:0;gap:5px}.crm-workspace-home .crm-rail-search input{padding:9px 12px;background:var(--crm-surface);border-radius:8px}.crm-workspace-home .crm-rail-list,.crm-workspace-home .crm-add-customer{display:none}.crm-workspace-home .crm-rail-filters{margin:18px 0 0;position:relative}.crm-workspace-home .crm-rail-filters[open] .crm-toolbar{position:absolute;top:24px;left:0;z-index:20;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:10px;box-shadow:0 10px 30px #0002;padding:16px;width:230px}.crm-workspace-home .crm-count{margin:18px 0 0 auto}.crm-workspace-home .crm-record{width:100%;min-height:0;background:transparent}.crm-directory-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 0 20px}.crm-directory-heading h2{margin:0 0 5px}.crm-directory-heading p{margin:0}.crm-directory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.crm-directory-stats>div,.crm-directory-stats>button{border:1px solid var(--crm-line);background:var(--crm-surface);border-radius:12px;padding:16px 20px;display:grid;grid-template-columns:1fr auto;gap:5px 12px;text-align:left;font:inherit;color:var(--crm-text)}.crm-directory-stats span{color:var(--crm-muted);align-self:center}.crm-directory-stats strong{font-size:22px;font-weight:500}.crm-directory-stats small{grid-column:1/-1;color:var(--crm-muted)}.crm-directory-stats button{cursor:pointer}.crm-directory-stats .has-review{border-color:#ba5b663d}.crm-directory-stats .has-review strong,.crm-directory-stats .has-review small{color:#bd5965}.crm-directory-table-wrap{overflow:auto;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:0 3px 12px #00000006}.crm-directory-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.crm-directory-table th{padding:12px 18px;font-weight:500;color:var(--crm-muted);background:var(--crm-soft)}.crm-directory-table td{padding:12px 18px;border-top:1px solid var(--crm-line);vertical-align:middle}.crm-directory-table tbody tr:hover{background:var(--crm-soft)}.crm-directory-table td>small{display:block;margin-top:4px;color:var(--crm-muted)}.crm-directory-name,.crm-directory-arrow{font:inherit;border:0;background:none;color:var(--crm-text);cursor:pointer;padding:0;text-align:left}.crm-directory-name{font-size:14px;font-weight:500}.crm-directory-name:hover{text-decoration:underline}.crm-directory-arrow{padding:6px}.crm-directory-brands{display:flex;flex-wrap:wrap;gap:5px}.crm-directory-brands span{background:var(--crm-soft);border:1px solid var(--crm-line);border-radius:5px;padding:3px 7px}.crm-directory-flagged td:first-child{box-shadow:inset 2px 0 #bd5965}.crm-directory-review{color:#bd5965;white-space:nowrap}.crm-record-content>.crm-overview-context{margin-bottom:24px}
@media(max-width:800px){.crm-directory-stats{gap:8px}.crm-directory-stats>div,.crm-directory-stats>button{padding:12px;grid-template-columns:1fr}.crm-directory-table th,.crm-directory-table td{padding:12px}.crm-workspace-home>.crm-rail{gap:12px;flex-wrap:wrap}.crm-workspace-home .crm-rail-search{width:65%}.crm-workspace-home .crm-count{margin:0}}

/* Lili finish across Customers: neutral surfaces, clear type, restrained geometry. */
.crm-workspace-home>.crm-rail{min-height:0}.crm-page{--crm-surface:#181818;--crm-soft:#212121;--crm-line:#ffffff14;--crm-text:#f1f1f1;--crm-muted:#aaa}.crm-page .muted,.crm-page .crm-count{color:var(--crm-muted)!important}.crm-page>.crm-tabs{margin:12px 0 8px;border-color:var(--crm-line)}.crm-page>.crm-tabs button{padding:10px 12px;color:var(--crm-muted)}.crm-page>.crm-tabs button:first-child{padding-left:0}.crm-page>.crm-tabs button.active{color:var(--crm-text);border-bottom-color:var(--crm-text)}.crm-page :is(.card,.crm-empty,.crm-note,.crm-widget-editor,.crm-location-card){background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:12px;box-shadow:0 3px 14px #00000008}.crm-page .crm-empty{padding:20px;max-width:none}.crm-page :is(.crm-intro,.crm-company-field input,.crm-toolbar input:not([type=checkbox]),.crm-toolbar select){background:var(--crm-soft);border-color:var(--crm-line);color:var(--crm-text)}.crm-page .crm-intro{padding:10px 14px;border-radius:8px;color:var(--crm-muted);margin:14px 0}.crm-page .crm-table-wrap{background:var(--crm-surface);border-color:var(--crm-line);border-radius:12px}.crm-page .crm-table :is(th,td){border-color:var(--crm-line);padding:12px 14px;color:var(--crm-text)}.crm-page .crm-table th{background:var(--crm-soft);font-weight:500;color:var(--crm-muted)}.crm-page .crm-table small{color:var(--crm-muted);margin-top:4px}.crm-page .crm-table tbody tr:hover{background:var(--crm-soft)}.crm-page :is(.crm-name,.crm-back){color:var(--crm-text)}.crm-page .crm-name:hover{color:var(--crm-text);text-decoration:underline}.crm-page .crm-directory-stats strong{font-size:22px!important}.crm-page .crm-directory-name{font-size:14px!important}.crm-page .crm-directory-heading{padding-top:6px}.crm-page .crm-directory-stats{margin-bottom:20px}.crm-page .crm-overview-section{padding:16px 0;margin:0;border-top:1px solid var(--crm-line)}.crm-page .crm-overview-context{padding:14px 0;margin-bottom:18px}.crm-page .crm-season-card{min-height:0;padding:14px;border-radius:10px;background:var(--crm-soft);border-color:var(--crm-line)}.crm-page .crm-summary-metric{min-height:0;padding:16px;gap:7px;border-radius:12px}.crm-page .crm-overview-metrics{margin-bottom:18px}.crm-page .crm-summary-metric strong{font-size:22px!important}.crm-page .crm-timeline-item{border-color:var(--crm-line);padding:14px 0}.crm-page .crm-brand-portfolio span{border-radius:6px;border-color:var(--crm-line);background:var(--crm-soft);padding:5px 9px}.crm-page .crm-pencil:hover{background:var(--crm-soft);color:var(--crm-text)}.crm-page :is(button,input,select):focus-visible{outline:2px solid #969696;outline-offset:3px}
html[data-theme=lala] .crm-page{--crm-surface:#fff;--crm-soft:#f5f5f5;--crm-line:#e7e7e7;--crm-text:#151515;--crm-muted:#696969}html[data-theme=lala] .crm-page .crm-review-cloud{background:#fff;color:#151515}

html[data-theme] .crm-page .crm-directory-stats strong{font-size:22px!important;letter-spacing:-.3px}html[data-theme] .crm-page .crm-directory-name{font-size:14px!important}.crm-page .eyebrow{color:var(--crm-muted)!important}.crm-page .crm-overview-section .crm-section-heading{margin-bottom:10px}.crm-page .crm-brand-portfolio{margin-top:10px;gap:6px}.crm-page .crm-season-grid{margin-top:10px;gap:10px}.crm-page .crm-history-pair{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px}.crm-page .crm-season-card{gap:8px}.crm-page .crm-section-heading{margin-bottom:14px}.crm-page .crm-overview-section>p{margin:10px 0 0}

/* Main company address stays visible in the top Company Info section. */
.crm-company-top-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr);gap:30px;align-items:start}.crm-company-top-grid>dl{margin:0}.crm-company-primary-address{border-left:1px solid var(--crm-line);padding:0 0 0 24px;min-width:0}.crm-company-primary-address .crm-widget-heading{margin-bottom:10px}.crm-company-primary-address h4{margin:0}.crm-company-primary-address .crm-address-name{margin-top:0}.crm-company-primary-address .crm-address-lines{line-height:1.7}
@media(max-width:1100px){.crm-company-top-grid{grid-template-columns:1fr;gap:18px}.crm-company-primary-address{border-left:0;border-top:1px solid var(--crm-line);padding:14px 0 0}}

/* Company Info shows the primary address followed only by shipping locations. */
.crm-page .crm-shipping-only{grid-template-columns:minmax(0,1fr)}

/* Invoice address is the standard first entry under Contacts. */
.crm-invoice-contact-card{border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-soft);padding:14px 16px;margin:0 0 12px}.crm-invoice-contact-card .crm-widget-heading{margin-bottom:10px}.crm-invoice-contact-card h4{margin:0}.crm-invoice-contact-body{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px}.crm-invoice-contact-body p{margin:4px 0;overflow-wrap:anywhere}.crm-invoice-contact-body small{display:block;margin-top:5px}.crm-billing-contacts{border-top:1px solid var(--crm-line);margin-top:12px;padding-top:10px}.crm-billing-contacts summary{cursor:pointer;color:var(--crm-muted)}.crm-billing-contact{display:flex;gap:12px;align-items:center;padding-top:8px}.crm-billing-contact>span:first-child{flex:1;overflow-wrap:anywhere}
@media(max-width:800px){.crm-invoice-contact-body{grid-template-columns:1fr;gap:10px}}

/* Quiet entry: search-driven results, no arbitrary first customers. */
.crm-welcome{padding:26px 0 10px}.crm-welcome-heading{margin:0 0 24px}.crm-welcome-heading h2{margin:10px 0}.crm-welcome-heading p{margin:0}.crm-welcome-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}.crm-welcome-action{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);color:var(--crm-text);font:inherit;padding:20px;gap:10px;min-height:170px;cursor:pointer;box-shadow:0 3px 16px #00000007}.crm-welcome-action:hover{background:var(--crm-soft);border-color:#8885;transform:translateY(-1px)}.crm-welcome-action:disabled{opacity:.6;cursor:not-allowed;transform:none}.crm-welcome-action>span:not(.crm-welcome-icon){color:var(--crm-muted);line-height:1.6}.crm-welcome-action small{margin-top:auto;color:var(--crm-muted)}.crm-page .crm-welcome-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--crm-soft);font-size:22px!important}.crm-page .crm-welcome-action strong{font-size:14px!important;font-weight:500}.crm-website-link{color:var(--crm-text);text-decoration:none;overflow-wrap:anywhere}.crm-website-link:hover{text-decoration:underline}.crm-card-header .crm-website-link{display:inline-block;margin-top:6px;color:var(--crm-muted)}.crm-new-start{margin-top:20px;padding:20px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface)}.crm-new-start label{display:grid;gap:8px;margin:14px 0;max-width:300px}.crm-new-start select{padding:10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft);color:var(--crm-text)}.crm-workspace-home .crm-count{display:none}
@media(max-width:800px){.crm-welcome-actions{grid-template-columns:1fr}.crm-welcome-action{min-height:120px}}

/* Shared text hierarchy and direct search in the welcome widget. */
.crm-welcome-search{cursor:default}.crm-welcome-search:hover{background:var(--crm-surface);border-color:var(--crm-line);transform:none}
.crm-welcome-search .crm-rail-search{display:block;width:100%;margin-top:auto}
.crm-welcome-search input{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft);color:var(--crm-text)}
.crm-visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.crm-workspace-home>.crm-rail{min-height:0;padding:0;justify-content:flex-end}.crm-workspace-home .crm-rail-filters{margin-left:auto}
html[data-theme] .crm-page :is(.crm-contact-card .crm-widget-heading h4,.crm-contact-card .crm-contact-name){font-size:12px!important;font-weight:400}
html[data-theme] .crm-page :is(.crm-section-heading h3,.crm-commercial-strip h3,.crm-welcome-action>strong,.crm-new-start h3){font-size:14px!important;font-weight:500}
html[data-theme] .crm-page .crm-commercial-strip>div>strong{font-size:22px!important;font-weight:500;line-height:1.25}
.crm-commercial-strip>div>strong{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}

/* Stable individual avatar colors, with readable text in both themes. */
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-0{background:#304763;color:#c7ddf7}
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-1{background:#3e335c;color:#e0d0f4}
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-2{background:#2e4c43;color:#c4e6d6}
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-3{background:#654832;color:#f5dbb9}
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-4{background:#613c4b;color:#f5cedd}
html[data-theme] .crm-page .crm-contact-avatar.crm-avatar-5{background:#2b5055;color:#c5e9ec}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-0{background:#dce9fa;color:#315a8b}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-1{background:#eadff7;color:#65458b}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-2{background:#dceee3;color:#35684b}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-3{background:#fae8d2;color:#8a5b25}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-4{background:#f5dfe7;color:#8c4966}
html[data-theme=lala] .crm-page .crm-contact-avatar.crm-avatar-5{background:#d8eef0;color:#326d75}

/* Keep the Company details edit action beside its heading in both themes. */
.crm-company-flat > .crm-widget-heading{justify-content:flex-start;gap:8px}

/* Store locations and delivery destinations are distinct, compact groups. */
.crm-address-widgets.crm-location-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:950px){.crm-address-widgets.crm-location-groups{grid-template-columns:1fr}}

/* Approved compact location cards, shared geometry for LILI and LALA. */
.crm-page .crm-location-groups>.crm-address-widget{border:0;background:transparent;box-shadow:none;padding:0;min-width:0}
.crm-page .crm-location-groups>.crm-address-widget>.crm-widget-heading{margin:0 0 10px}
.crm-page .crm-place-list{display:grid;gap:10px;margin-bottom:10px}
.crm-page .crm-place-card{border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:0 3px 12px #00000008;overflow:hidden;min-width:0}
.crm-page .crm-place-heading{display:flex;align-items:center;gap:10px;padding:14px 14px 0}
.crm-page .crm-place-heading .crm-contact-avatar{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 30px;font-size:12px;font-weight:500}
.crm-page .crm-place-title{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.crm-page .crm-place-title h4{margin:0;font-size:14px!important;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.crm-page .crm-place-title .crm-card-actions{gap:2px}
.crm-page .crm-place-title .crm-pencil{width:24px;height:24px;padding:4px}
.crm-page .crm-place-address{padding:8px 14px 13px 54px}
.crm-page .crm-place-address .crm-address-name{margin:0 0 3px;font-size:12px;color:var(--crm-muted)}
.crm-page .crm-place-address .crm-address-lines{margin:0;font-size:12px;line-height:1.6;color:var(--crm-text)}
.crm-page .crm-place-card footer{border-top:1px solid var(--crm-line);padding:8px 14px}
.crm-page .crm-place-card footer a{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--crm-muted);text-decoration:none}
.crm-page .crm-place-card footer a:hover{color:var(--crm-text)}
.crm-page .crm-place-card footer a:focus-visible{outline:2px solid #969696;outline-offset:3px}

/* A selected customer gets a calm full-width record; search stays on the directory. */
.crm-page.crm-customer-focus{max-width:1280px;margin:0 auto}
.crm-page .crm-customer-return{display:inline-flex;align-items:center;margin:0 0 14px;padding:5px 0;font-size:12px;color:var(--crm-muted)}
.crm-page.crm-customer-focus>.crm-record{border:0;background:transparent;padding:0;min-width:0}
.crm-page.crm-customer-focus .crm-card-header{padding-top:0}

/* Customer tabs use the approved 14px size and share the header/content inset. */
.crm-page.crm-customer-focus{--crm-record-inset:24px}
.crm-page.crm-customer-focus .crm-customer-return{margin-left:var(--crm-record-inset)}
.crm-page.crm-customer-focus .crm-card-header{padding-left:var(--crm-record-inset);padding-right:var(--crm-record-inset)}
.crm-page.crm-customer-focus .crm-record-content{padding-left:var(--crm-record-inset);padding-right:var(--crm-record-inset)}
.crm-page.crm-customer-focus .crm-record-tabs{margin-left:var(--crm-record-inset);margin-right:var(--crm-record-inset);display:flex;gap:20px;overflow-x:auto;flex-wrap:nowrap}
html[data-theme] .crm-page .crm-record-tabs button{font-size:14px!important;line-height:1.4;padding:12px 0;white-space:nowrap;font-weight:500;letter-spacing:0}
@media(max-width:800px){.crm-page.crm-customer-focus{--crm-record-inset:16px}.crm-page.crm-customer-focus .crm-record-tabs{gap:16px}}

/* Use the space released by the customer directory rail. */
.crm-page.crm-customer-focus{max-width:none;margin:0;--crm-record-inset:0px}

/* Address creation shortcuts are available on demand via Edit. */
.crm-location-tools{position:relative;margin-left:auto;font-size:12px;color:var(--crm-muted)}
.crm-location-tools>summary{cursor:pointer;list-style:none;padding:4px 6px;border-radius:6px}
.crm-location-tools>summary::-webkit-details-marker{display:none}
.crm-location-tools>summary:hover{color:var(--crm-text);background:var(--crm-soft)}
.crm-location-tools>div{position:absolute;right:0;top:100%;z-index:5;display:grid;gap:6px;min-width:210px;padding:10px;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-surface);box-shadow:0 8px 24px #0003}
.crm-location-tools>div button{text-align:left;white-space:nowrap}

/* Compact company block: a small field grid beside the main address. */
.crm-page .crm-record-content .crm-company-flat{max-width:940px;margin:0 0 20px;padding:16px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:0 3px 12px #00000008}
.crm-page .crm-company-flat>.crm-widget-heading{margin:0 0 12px}
.crm-page .crm-company-top-grid{grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:24px}
.crm-page .crm-company-top-grid>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.crm-page .crm-company-top-grid>dl>div{display:block;min-width:0}
.crm-page .crm-company-top-grid dt{margin:0 0 3px;font-size:12px;line-height:1.4}
.crm-page .crm-company-top-grid dd{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.crm-page .crm-company-primary-address{padding-left:20px;border-left:1px solid var(--crm-line);border-top:0}
.crm-page .crm-company-primary-address .crm-widget-heading{justify-content:flex-start;gap:8px;margin-bottom:6px}
.crm-page .crm-company-primary-address .crm-address-name{margin:0 0 3px}
.crm-page .crm-company-primary-address .crm-address-lines{margin:0;line-height:1.5}
@media(max-width:700px){.crm-page .crm-company-top-grid{grid-template-columns:1fr;gap:14px}.crm-page .crm-company-primary-address{border-left:0;border-top:1px solid var(--crm-line);padding:12px 0 0}}
@media(max-width:420px){.crm-page .crm-company-top-grid>dl{grid-template-columns:1fr}}

/* Customer directory shares the compact, rounded address-card geometry. */
.crm-card-directory{padding-top:10px}.crm-card-directory .crm-welcome-heading{margin-bottom:18px}
.crm-directory-actions{display:flex;align-items:stretch;gap:12px;margin-bottom:18px}
.crm-directory-search{flex:1;max-width:640px;padding:12px 14px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:var(--crm-shadow)}
.crm-directory-search label{display:block;margin-bottom:6px;color:var(--crm-muted);font-size:12px}
.crm-directory-search input{box-sizing:border-box;width:100%;padding:8px 10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft);color:var(--crm-text);font:inherit;font-size:12px}
.crm-directory-add,.crm-directory-import{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);color:var(--crm-text);font:inherit;cursor:pointer;box-shadow:var(--crm-shadow)}
.crm-directory-add strong{font-size:14px;font-weight:500}.crm-directory-add>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--crm-soft);font-size:22px}
.crm-directory-import{align-self:center;padding:10px 14px;color:var(--crm-muted);font-size:12px;box-shadow:none}
.crm-directory-add:disabled{opacity:.5;cursor:not-allowed}
.crm-customer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.crm-directory-card{display:flex;flex-direction:column;min-height:96px;min-width:0;padding:8px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:var(--crm-shadow);cursor:pointer;transition:box-shadow .15s,border-color .15s}
.crm-directory-card:hover{border-color:#8886;box-shadow:0 5px 18px #00000012}
.crm-directory-card>header{display:flex;align-items:flex-start;gap:6px;margin:0 0 5px}
.crm-directory-card-open{display:flex;align-items:flex-start;gap:7px;min-width:0;flex:1;padding:0;border:0;background:none;color:var(--crm-text);text-align:left;font:inherit;cursor:pointer}
.crm-directory-card .crm-contact-avatar{width:26px;height:26px;flex:0 0 26px;display:grid;place-items:center;border-radius:8px;font-size:12px!important}
.crm-directory-identity{display:block;min-width:0}.crm-directory-identity strong{display:block;font-size:14px!important;line-height:1.25;font-weight:500;overflow-wrap:anywhere}.crm-directory-identity small{display:block;margin-top:1px;color:var(--crm-muted);font-size:12px!important}
.crm-directory-meta{display:grid;gap:2px;min-width:0;padding-left:0;color:var(--crm-muted);font-size:12px}
.crm-directory-meta p{display:flex;align-items:center;gap:5px;min-width:0;margin:0;font-size:12px!important;line-height:1.3}
.crm-directory-meta p>span{width:12px;flex:0 0 12px;color:var(--crm-muted)}.crm-directory-meta a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--crm-muted)}
.crm-directory-card>footer{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:5px}
.crm-directory-brand{padding:2px 5px;border-radius:6px;background:var(--crm-soft);color:var(--crm-muted);font-size:12px!important;line-height:1.2}
.crm-directory-card-arrow{margin-left:auto;padding:2px 5px;border:0;background:none;color:var(--crm-muted);font:inherit;cursor:pointer}
.crm-directory-review{padding:3px 6px;border-radius:6px;background:#bd44551a;color:#e78996;flex:0 0 auto;font-size:12px!important;cursor:help}.crm-directory-card.has-review{border-color:#bc526440}
html[data-theme=lala] .crm-directory-review{background:#fae8ec;color:#9a3444}
.crm-directory-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;color:var(--crm-muted);font-size:12px}
.crm-directory-pages>span:first-child{margin-right:auto}.crm-directory-pages button{padding:6px 9px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);color:var(--crm-text);font:inherit;cursor:pointer}.crm-directory-pages button:disabled{opacity:.4;cursor:not-allowed}
.crm-directory-empty{grid-column:1/-1;padding:18px 0}
@media(min-width:1500px){.crm-customer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1001px) and (max-width:1200px){.crm-customer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.crm-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-directory-actions{flex-wrap:wrap}.crm-directory-search{max-width:none;flex-basis:55%}}
@media(max-width:600px){.crm-customer-grid{grid-template-columns:1fr}.crm-directory-search{flex-basis:100%}.crm-directory-add{flex:1}.crm-directory-pages{gap:8px;flex-wrap:wrap}.crm-directory-pages>span:first-child{width:100%}}

/* Quick region switch on the customer directory. */
.crm-directory-regionbar{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;color:var(--crm-muted)}
.crm-directory-regionbar select{max-width:220px;padding:7px 10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);color:var(--crm-text);font:inherit;font-size:12px;cursor:pointer}

/* Narrow customer cards and direct region buttons. */
.crm-customer-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.crm-directory-regionbar{gap:4px}
.crm-directory-regionbar button{padding:4px 8px;border:1px solid var(--crm-line);border-radius:6px;background:transparent;color:var(--crm-muted);font:inherit;font-size:12px;line-height:1.3;cursor:pointer}
.crm-directory-regionbar button[aria-pressed=true]{background:var(--crm-surface);color:var(--crm-text);border-color:#8886}
.crm-directory-card>header{position:relative}
.crm-directory-card .crm-contact-avatar{width:22px;height:22px;flex-basis:22px;border-radius:6px}
.crm-directory-identity strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.crm-directory-card.has-review .crm-directory-card-open{padding-right:10px}
.crm-directory-card .crm-directory-review{position:absolute;top:2px;right:0;width:6px;height:6px;padding:0;border-radius:50%;background:#d75a6b;font-size:0!important}
@media(min-width:1500px){.crm-customer-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(min-width:1001px) and (max-width:1200px){.crm-customer-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:1000px){.crm-customer-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:360px){.crm-customer-grid{grid-template-columns:1fr}}

html[data-theme] .crm-page .crm-directory-card .crm-directory-review{font-size:0!important;overflow:hidden;color:transparent!important}

/* Simple name-and-code tiles fill the full customer directory width. */
.crm-workspace-home .crm-card-directory{width:100%;max-width:none;box-sizing:border-box}
.crm-customer-grid{width:100%;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.crm-directory-card{min-height:64px;padding:10px;box-sizing:border-box;justify-content:center}
.crm-directory-card>header{align-items:center;margin:0}
.crm-directory-card-open{align-items:center;width:100%}
@media(min-width:1500px){.crm-customer-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
@media(min-width:1001px) and (max-width:1200px){.crm-customer-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
@media(max-width:1000px){.crm-customer-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
@media(max-width:360px){.crm-customer-grid{grid-template-columns:1fr}}

/* Spacious name-only customer tiles, with a compact alternative list. */
.crm-directory-actions{align-items:center;gap:8px;margin-bottom:12px}
.crm-directory-search{max-width:420px;padding:0;border:0;background:transparent;box-shadow:none}
.crm-directory-search label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.crm-directory-search input{height:36px;background:var(--crm-surface)}
.crm-directory-add{padding:8px 12px;min-height:36px;box-sizing:border-box;border-radius:8px;box-shadow:none}
.crm-directory-add>span{width:18px;height:18px;font-size:14px}
.crm-directory-import{padding:8px 10px;border-radius:8px}
.crm-directory-regionbar{margin-bottom:16px}
.crm-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.crm-directory-heading h3{margin:0}
.crm-directory-heading-tools{display:flex;align-items:center;gap:14px;font-size:12px}
.crm-directory-view-switch{display:flex;gap:2px;padding:2px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft)}
.crm-directory-view-switch button{padding:4px 9px;border:0;border-radius:6px;background:transparent;color:var(--crm-muted);font:inherit;font-size:12px;cursor:pointer}
.crm-directory-view-switch button[aria-pressed=true]{background:var(--crm-surface);color:var(--crm-text);box-shadow:0 1px 3px #00000012}
.crm-customer-grid.is-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.crm-customer-grid.is-grid .crm-directory-card{min-height:140px;padding:16px;justify-content:flex-start;border-radius:12px}
.crm-customer-grid.is-grid .crm-directory-card-open{flex-direction:column;align-items:flex-start;gap:14px}
.crm-customer-grid.is-grid .crm-contact-avatar{width:28px;height:28px;flex-basis:28px;border-radius:8px}
.crm-directory-identity strong{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.crm-customer-grid.is-list{grid-template-columns:1fr;gap:0;border:1px solid var(--crm-line);border-radius:12px;overflow:hidden;background:var(--crm-surface)}
.crm-customer-grid.is-list .crm-directory-card{min-height:48px;padding:12px 16px;border:0;border-bottom:1px solid var(--crm-line);border-radius:0;background:transparent;box-shadow:none}
.crm-customer-grid.is-list .crm-directory-card:last-child{border-bottom:0}
.crm-customer-grid.is-list .crm-directory-card-open{gap:12px}
.crm-customer-grid.is-list .crm-directory-card:hover{background:var(--crm-soft)}
.crm-directory-card>header{width:100%}
@media(max-width:500px){.crm-customer-grid.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-customer-grid.is-grid .crm-directory-card{min-height:128px;padding:12px}.crm-directory-heading-tools{gap:8px}}
@media(max-width:360px){.crm-customer-grid.is-grid{grid-template-columns:1fr}}

/* Customer relationships and follow-up use the existing compact card rhythm. */
.crm-relationship-widgets{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;margin-top:22px}
.crm-relationship-widget{padding:16px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);box-shadow:var(--crm-shadow);min-width:0}
.crm-relationship-widget .crm-widget-heading{margin-bottom:12px}
.crm-relationship-row{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(0,1.5fr) auto;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--crm-line);font-size:12px}
.crm-relationship-row strong,.crm-relationship-row span{display:block}
.crm-relationship-row small{display:block;color:var(--crm-muted);margin-top:3px;font-size:12px}
.crm-relationship-link{border:0;background:none;color:var(--crm-muted);font:inherit;font-size:12px;padding:4px;cursor:pointer}
.crm-relationship-caption{font-size:12px;color:var(--crm-muted);line-height:1.5;margin:12px 0 0}
.crm-next-action-title{font-size:14px;font-weight:500;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}
.crm-next-action-details{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--crm-muted)}
.crm-followup-reps{display:flex;flex-direction:column;gap:8px;font-size:12px}
.crm-followup-reps label{display:flex;align-items:center;gap:8px}
@media(max-width:900px){.crm-relationship-widgets{grid-template-columns:1fr}}
@media(max-width:500px){.crm-relationship-row{grid-template-columns:1fr}.crm-relationship-link{text-align:left;padding-left:0}}

/* Small brand labels on directory tiles; contacts remain inside customer cards. */
.crm-tile-brands{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto;padding-top:12px}
.crm-tile-brand{display:inline-block;padding:3px 6px;border-radius:5px;background:var(--crm-soft);color:var(--crm-muted);font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.crm-customer-grid.is-list .crm-directory-card{flex-direction:row;align-items:center;gap:16px}
.crm-customer-grid.is-list .crm-directory-card>header{flex:1;min-width:0}
.crm-customer-grid.is-list .crm-tile-brands{max-width:45%;margin-top:0;padding-top:0;justify-content:flex-end}
@media(max-width:500px){.crm-customer-grid.is-list .crm-directory-card{gap:8px}.crm-customer-grid.is-list .crm-tile-brands{max-width:40%}}

/* Compact directory actions with a visible brand overview and customer selection. */
.crm-directory-brandbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 18px;font-size:12px}
.crm-directory-brandbar label{display:flex;align-items:center;gap:8px}
.crm-directory-brandbar select{font:inherit;min-width:140px;height:32px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);color:var(--crm-text);padding:0 8px}
.crm-directory-brandbar .muted{font-size:12px}
.crm-bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;font-size:12px;min-height:32px}
.crm-bulk-bar>span{margin-right:auto;color:var(--crm-muted)}
.crm-bulk-bar strong{color:var(--crm-text)}
.crm-bulk-bar button,.crm-mail-footer button{font:inherit;font-size:12px;border:1px solid var(--crm-line);border-radius:7px;padding:6px 10px;color:var(--crm-text);background:var(--crm-surface);cursor:pointer}
.crm-bulk-bar .crm-bulk-primary{background:#7455dd;color:#fff;border-color:#7455dd}
.crm-directory-card{position:relative}
.crm-tile-select{position:absolute;right:12px;top:12px;display:flex;align-items:center;cursor:pointer}
.crm-tile-select input,.crm-mail-contacts input{accent-color:#8965e8;width:14px;height:14px;cursor:pointer}
.crm-directory-card .crm-directory-review{margin-right:22px}
.crm-directory-card:has(.crm-tile-select input:checked){border-color:#8965e8;box-shadow:0 0 0 1px #8965e833}
.crm-add-tile{min-height:140px;padding:16px;border:1px dashed #8965e870;border-radius:12px;background:linear-gradient(135deg,#8965e810,#8965e804);color:var(--crm-text);font:inherit;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:8px;cursor:pointer}
.crm-add-tile>span{width:28px;height:28px;background:#8965e822;color:#8965e8;border-radius:8px;display:grid;place-items:center;font-size:22px}
.crm-add-tile strong{font-size:14px;font-weight:500}.crm-add-tile small{font-size:12px;color:var(--crm-muted)}
.crm-add-tile:hover{border-color:#8965e8;background:#8965e81a}
.crm-customer-grid.is-list .crm-add-tile{min-height:48px;border:0;border-bottom:1px solid var(--crm-line);border-radius:0;flex-direction:row;align-items:center;justify-content:flex-start;padding:10px 16px}
.crm-customer-grid.is-list .crm-tile-select{position:static;margin-right:12px}
.crm-mail-backdrop{position:fixed;inset:0;z-index:250;background:#0007;backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:center;padding:24px}
.crm-mail-dialog{width:680px;max-width:100%;max-height:85vh;overflow:auto;background:var(--crm-surface);color:var(--crm-text);border:1px solid var(--crm-line);border-radius:16px;box-shadow:0 24px 80px #0004;padding:24px;font-size:14px}
.crm-mail-dialog header{display:flex;justify-content:space-between;align-items:center}.crm-mail-dialog h2{margin:0;font-size:22px}
.crm-mail-dialog header button{border:0;background:none;color:var(--crm-muted);font:inherit;font-size:22px;cursor:pointer}
.crm-mail-dialog>.muted,.crm-mail-dialog details{font-size:12px;line-height:1.5}
.crm-mail-contacts{max-height:260px;overflow:auto;border:1px solid var(--crm-line);border-radius:10px;margin:16px 0}
.crm-mail-contacts label{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--crm-line)}
.crm-mail-contacts label:last-child{border:0}.crm-mail-contacts strong{font-size:14px;font-weight:500}.crm-mail-contacts small{display:block;margin-top:3px;font-size:12px;color:var(--crm-muted);overflow-wrap:anywhere}
.crm-mail-dialog>label{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-size:12px}
.crm-mail-dialog input:not([type=checkbox]),.crm-mail-dialog textarea{font:inherit;font-size:14px;color:var(--crm-text);background:var(--crm-soft);border:1px solid var(--crm-line);border-radius:8px;padding:10px}
.crm-mail-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:12px}.crm-mail-footer>span{margin-right:auto}.crm-mail-footer>p{width:100%;margin:4px 0 0}
.crm-mail-footer button:disabled{opacity:.4;cursor:default}
.crm-new-start{border:1px solid #8965e840!important;border-radius:12px!important;background:var(--crm-surface)!important;padding:20px!important;max-width:440px}
.crm-new-start h3{font-size:14px}.crm-new-start p,.crm-new-start label{font-size:12px}
.crm-new-start input{width:100%;box-sizing:border-box;font:inherit;padding:9px;border:1px solid var(--crm-line);background:var(--crm-soft);color:var(--crm-text);border-radius:8px}
@media(max-width:500px){.crm-directory-brandbar{gap:8px}.crm-directory-brandbar>.muted{width:100%}.crm-mail-backdrop{padding:10px}.crm-mail-dialog{padding:16px}}

.crm-new-start{position:fixed;top:18vh;left:50%;transform:translateX(-50%);z-index:220;width:calc(100% - 48px);box-shadow:0 18px 80px #0005!important;box-sizing:border-box}.crm-new-start:before{content:'';position:fixed;inset:-100vh -100vw;background:#0006;z-index:-1;pointer-events:none}.crm-new-start label{display:block;margin:12px 0}.crm-new-start p{line-height:1.5}

.crm-new-backdrop{position:fixed;inset:0;z-index:220;background:#0006;backdrop-filter:blur(3px);display:flex;align-items:flex-start;justify-content:center;padding:18vh 24px 24px;box-sizing:border-box}.crm-new-backdrop .crm-new-start{position:static;transform:none;width:100%;max-height:75vh;overflow:auto}.crm-new-start:before{display:none}

/* Landing screen: a compact creation card beside quiet name/brand tiles. */
.crm-directory-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:20px}
.crm-directory-accounts{min-width:0}
.crm-create-panel{background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:12px;padding:16px;box-shadow:var(--crm-shadow);font-size:12px;box-sizing:border-box}
.crm-create-panel>header{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.crm-create-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:9px;background:#8965e81c;color:#8965e8;font-size:22px;line-height:1}
.crm-create-panel h2{font-size:14px;font-weight:600;margin:1px 0 4px;line-height:1.3}
.crm-create-panel header p{font-size:12px;line-height:1.45;color:var(--crm-muted);margin:0}
.crm-create-panel fieldset{border:1px solid var(--crm-line);border-radius:8px;margin:0 0 10px;padding:10px;min-width:0}
.crm-create-panel legend{padding:0 5px;font-size:12px;font-weight:600}
.crm-create-panel label{display:flex;flex-direction:column;gap:5px;margin:0 0 10px;font-size:12px;line-height:1.3}
.crm-create-panel label:last-child{margin-bottom:0}
.crm-create-panel label>span{display:contents;color:#e06d76}.crm-create-panel label>small{display:contents;color:var(--crm-muted);font-size:12px}
.crm-create-panel input,.crm-create-panel select,.crm-create-panel textarea{width:100%;min-width:0;box-sizing:border-box;background:var(--crm-soft);border:1px solid var(--crm-line);border-radius:6px;color:var(--crm-text);font:inherit;font-size:12px;padding:7px 9px;min-height:32px}
.crm-create-panel textarea{resize:vertical;line-height:1.5}
.crm-create-panel input::placeholder,.crm-create-panel textarea::placeholder{color:var(--crm-muted);opacity:.8}
.crm-create-panel .seasn-select{width:100%}.crm-create-panel .seasn-select-trigger{width:100%;min-height:32px;font-size:12px;padding:7px 9px}
.crm-create-submit{width:100%;border:1px solid #279972;border-radius:7px;background:#238767;color:#fff;font:inherit;font-size:12px;font-weight:600;min-height:34px;cursor:pointer;box-shadow:0 2px 5px #00000012}
.crm-create-submit:hover{background:#1c7559}.crm-create-submit:disabled{opacity:.5;cursor:default}
.crm-create-caption{font-size:12px;line-height:1.4;color:var(--crm-muted);margin:10px 0 0}
.crm-create-error{font-size:12px;line-height:1.4;color:#df626d;margin:0 0 10px;overflow-wrap:anywhere}.crm-create-error:empty{display:none}
.crm-create-status{font-size:12px;line-height:1.4;color:var(--crm-muted)}
.crm-create-matches{margin:-3px 0 10px;border-radius:6px;background:var(--crm-soft);padding:8px;font-size:12px}
.crm-create-matches small{display:block;color:var(--crm-muted);font-size:12px;margin-bottom:4px}
.crm-create-matches button{display:block;border:0;background:none;color:var(--crm-text);font:inherit;font-size:12px;cursor:pointer;text-align:left;padding:3px 0;overflow-wrap:anywhere}
.crm-directory-card .crm-directory-review{margin-right:0}
.crm-customer-grid.is-grid .crm-directory-card{min-height:132px}
@media(max-width:1000px){.crm-directory-layout{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.crm-customer-grid.is-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}
@media(max-width:700px){.crm-directory-layout{grid-template-columns:1fr}.crm-create-panel{max-width:none}.crm-create-panel fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-create-panel label{margin:0}.crm-create-panel [data-crm-create-matches]{grid-column:1/-1}.crm-create-panel label:has(textarea){grid-column:1/-1}}
@media(max-width:360px){.crm-create-panel fieldset{grid-template-columns:1fr}}

.crm-create-panel label>.crm-create-label{display:block;color:var(--crm-text)}.crm-create-label em{font-style:normal;color:#e06d76}.crm-create-label small{display:inline;color:var(--crm-muted);font-size:12px}

html[data-theme] .crm-page .crm-create-panel h2{font-size:14px;line-height:1.4;margin:1px 0 3px}.crm-create-panel>header{margin-bottom:10px}.crm-create-panel label{gap:4px;margin-bottom:8px}.crm-create-panel input,.crm-create-panel select,.crm-create-panel .seasn-select-trigger{height:28px;min-height:28px;padding:4px 8px}.crm-create-panel textarea{padding:6px 8px;min-height:44px}.crm-create-panel .crm-create-caption{margin-top:8px}.crm-directory-accounts .crm-customer-grid{margin-top:0}

html[data-theme] .crm-page .crm-create-panel h2{font-size:14px!important;line-height:1.4!important;letter-spacing:0;font-weight:600}

/* Read-only import report; uses the existing type scale and theme tokens. */
.crm-import-report-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}
.crm-import-report-toolbar input{min-width:260px;flex:1}
.crm-import-report-totals{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin:20px 0}
.crm-import-report-totals article{border:1px solid var(--crm-line);border-radius:12px;padding:16px;background:var(--crm-surface)}
.crm-import-report-totals strong{display:block;font-size:22px;line-height:1.3}
.crm-import-report-totals span{display:block;font-size:12px;color:var(--crm-muted);margin-top:6px}
.crm-import-report-details{min-width:280px;max-width:480px;max-height:420px;overflow:auto;padding:8px 0}
.crm-import-report-details p{padding:8px 0;border-bottom:1px solid var(--crm-line);margin:0}
@media(max-width:800px){.crm-import-report-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

.crm-review-contact-item,.crm-review-item{position:relative;padding-right:32px}
.crm-review-dismiss{position:absolute;right:4px;top:4px;width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:20px;cursor:pointer;opacity:.65}
.crm-review-dismiss:hover{opacity:1;background:rgba(190,45,45,.1)}
.crm-review-dismiss:disabled{opacity:.3;cursor:default}

.crm-create-panel>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.crm-create-panel>summary::-webkit-details-marker{display:none}
.crm-create-panel>summary:after{content:'+';margin-left:auto;font-size:20px;color:var(--crm-muted)}
.crm-create-panel[open]>summary:after{content:'−'}
.crm-create-panel[open]>summary{margin-bottom:14px}
.crm-create-panel:not([open]){min-height:96px}
.crm-create-panel>summary p{margin:4px 0 0;color:var(--crm-muted);font-size:12px}

.crm-review-bulk{display:flex;gap:8px;align-items:center;padding:10px 0;flex-wrap:wrap}.crm-review-bulk small{font-size:11px;color:var(--muted)}.crm-review-select{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding-top:8px}

/* Compact customer sections; native disclosure stays keyboard accessible. */
.crm-page .crm-disclosure-summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:12px 14px;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-surface);transition:background .15s ease,border-color .15s ease}
.crm-page .crm-disclosure-summary::-webkit-details-marker{display:none}
.crm-page .crm-disclosure-summary h3{margin:0;font-size:13px;font-weight:600;line-height:20px}
.crm-page .crm-disclosure-summary:hover{border-color:var(--crm-muted)}
.crm-page .crm-disclosure-summary:focus-visible{outline:2px solid var(--crm-muted);outline-offset:3px}
.crm-page .crm-disclosure-count{font-size:11px;color:var(--crm-muted);padding:1px 7px;border:1px solid var(--crm-line);border-radius:6px}
.crm-page .crm-disclosure-chevron{margin-left:auto;width:7px;height:7px;border-right:1.5px solid var(--crm-muted);border-bottom:1.5px solid var(--crm-muted);transform:rotate(45deg);transition:transform .15s ease}
.crm-page .crm-section-disclosure[open]>.crm-disclosure-summary>.crm-disclosure-chevron{transform:rotate(225deg)}
.crm-page .crm-disclosure-content{padding:12px 0 0}
.crm-page .crm-inline-contacts.crm-section-disclosure{margin:18px 0 20px}
.crm-page .crm-inline-contacts .crm-disclosure-content>.crm-section-heading{justify-content:flex-end;margin:0 0 8px}
.crm-page .crm-disclosure-content>.crm-widget-heading{justify-content:flex-end;margin:0 0 8px}

/* Keep the first contact/location visible, reveal the rest with a compact control. */
.crm-page .crm-preview-section:not([data-cp-preview="contacts"])[data-expanded="false"]>.crm-preview-list>article:not(:first-child){display:none}
.crm-page .crm-preview-section[data-cp-preview="contacts"][data-expanded="false"]>.crm-preview-list>article:nth-child(n+4){display:none}
.crm-page .crm-preview-section>.crm-widget-heading,.crm-page .crm-inline-contacts>.crm-section-heading{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.crm-page .crm-preview-section>.crm-widget-heading h3,.crm-page .crm-inline-contacts>.crm-section-heading h3{font-size:13px;line-height:20px;margin:0;font-weight:500}
.crm-page .crm-preview-section>.crm-widget-heading .crm-location-tools,.crm-page .crm-inline-contacts>.crm-section-heading>[data-cp-widget]{margin-left:auto}
.crm-page .crm-inline-contacts.crm-preview-section{margin:18px 0 20px}
.crm-page .crm-more-button{display:inline-flex;align-items:center;gap:14px;margin:4px 0 10px;padding:7px 10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-surface);color:var(--crm-muted);font-size:11px;font-weight:500;cursor:pointer;box-shadow:0 1px 3px #00000005}
.crm-page .crm-more-button:hover{color:var(--crm-text);border-color:var(--crm-muted)}
.crm-page .crm-more-button:focus-visible{outline:2px solid var(--crm-muted);outline-offset:3px}
.crm-page .crm-more-button[aria-expanded="true"] .crm-disclosure-chevron{transform:rotate(225deg)}

.crm-page .crm-brand-figures{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:14px}
.crm-page .crm-brand-figure{min-width:0;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);padding:16px;box-shadow:0 2px 8px #00000008}
.crm-page .crm-brand-figure>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.crm-page .crm-brand-figure h4{font-size:14px;font-weight:500;margin:0 0 4px;overflow-wrap:anywhere}
.crm-page .crm-brand-figure header span,.crm-page .crm-brand-figure>footer,.crm-page .crm-brand-history{font-size:11px;color:var(--crm-muted)}
.crm-page .crm-brand-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.crm-page .crm-brand-preview>div{min-width:0;padding:10px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft);display:grid;align-content:start;gap:8px}
.crm-page .crm-brand-preview span{font-size:11px;color:var(--crm-muted)}
.crm-page .crm-brand-preview strong{font-size:18px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.crm-page .crm-brand-preview .crm-unknown{display:block;font-size:10px;font-weight:400}
.crm-page .crm-brand-figure>footer{display:flex;justify-content:space-between;gap:12px;margin:12px 0;overflow-wrap:anywhere}
.crm-page .crm-brand-history{border-top:1px solid var(--crm-line);padding-top:10px}
.crm-page .crm-brand-history summary{cursor:pointer;width:fit-content}
.crm-page .crm-brand-history dl{display:grid;gap:10px;margin:12px 0 0}
.crm-page .crm-brand-history dl>div{display:flex;justify-content:space-between;gap:12px}
.crm-page .crm-brand-history dd{margin:0;color:var(--crm-text);text-align:right}
.crm-page .crm-brand-preview>.crm-metric-forecast{background:#1b2732;border-color:#344c62}
.crm-page .crm-brand-preview>.crm-metric-actual{background:#1d2b22;border-color:#375b43}
html[data-theme=lala] .crm-page .crm-brand-preview>.crm-metric-forecast{background:#eaf1f8;border-color:#c7d7e7}
html[data-theme=lala] .crm-page .crm-brand-preview>.crm-metric-actual{background:#e5f2e9;border-color:#adc6b5}

/* Small contextual shortcuts; existing cards and edit rights remain authoritative. */
.crm-page .crm-address-quick{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-soft)}
.crm-page .crm-address-quick>div:first-child{display:grid;gap:4px}
.crm-page .crm-address-quick strong{font-size:12px;font-weight:500;color:var(--crm-text)}
.crm-page .crm-address-quick span{font-size:11px;color:var(--crm-muted)}
.crm-page .crm-address-quick-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-page .crm-address-quick .btn{font-size:11px;padding:6px 9px;border-radius:7px}
.crm-page .crm-address-quick-close{border:0;background:transparent;color:var(--crm-muted);font:inherit;font-size:18px;padding:2px 6px;cursor:pointer}
.crm-page .crm-address-quick-close:focus-visible{outline:2px solid var(--crm-muted);outline-offset:2px}
@media(max-width:650px){.crm-page .crm-address-quick{align-items:flex-start;flex-direction:column;gap:10px}}

/* Orange means address review; existing red conflict styling stays separate. */
.crm-page .crm-address-needs-check{border:2px solid #e4bf8c!important;box-shadow:none;border-radius:12px}
.crm-page .crm-company-primary-address.crm-address-needs-check{padding:12px}
.crm-page .crm-address-status,.crm-page .crm-address-review-note{color:#d9bea0;font-size:11px;line-height:1.5}
.crm-page .crm-address-status{display:block;margin:8px 0 0}
.crm-page .crm-address-review-note{display:flex;align-items:flex-start;gap:7px;padding-top:10px;margin-top:10px;border-top:1px solid #e4bf8c30}
.crm-page .crm-address-review-note>span:nth-child(2){flex:1}
.crm-page .crm-address-review-note button{white-space:nowrap;color:inherit;font-size:11px}
.crm-page .crm-address-review-dot{width:7px;height:7px;border:1px solid currentColor;border-radius:50%;flex:none;margin-top:5px}
html[data-theme=lala] .crm-page .crm-address-status,html[data-theme=lala] .crm-page .crm-address-review-note{color:#9b7b57}

html[data-theme=lala] .crm-page .crm-address-needs-check{border-color:#d99a4e!important}

/* Dense review overview; 200 accounts per page without oversized tiles. */
.crm-customer-grid.is-compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}
.crm-customer-grid.is-compact .crm-directory-card{min-height:86px;padding:10px}
.crm-customer-grid.is-compact .crm-contact-avatar{display:none}
.crm-customer-grid.is-compact .crm-directory-card header{min-height:0}
.crm-customer-grid.is-compact .crm-directory-card strong{font-size:12px!important}
.crm-customer-grid.is-compact .crm-address-status{font-size:10px!important;margin-top:4px;line-height:1.3}
.crm-customer-grid.is-compact .crm-tile-brands{margin-top:8px;gap:3px}
.crm-customer-grid.is-compact .crm-tile-brand{font-size:10px!important;padding:1px 4px}
.crm-match-choice{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;padding:8px;border:2px solid #d99a4e;border-radius:8px}
.crm-match-choice small{color:var(--crm-muted)}
.crm-match-choice .btn{white-space:normal}


/* A small name-level warning replaces the full customer outline. */
.crm-directory-identity .crm-customer-warning{display:inline-flex;vertical-align:middle;margin-left:6px;width:14px;height:14px;color:#d9933d;cursor:help}
.crm-customer-warning svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
