/* Customer design system. Admin and agent surfaces retain their existing UI. */
.customer-shell{--accent:#315cf5;--line:#e6eaf0;--muted:#788397;--soft:#f5f6f8;--ink:#172033;background:var(--soft);color:var(--ink);grid-template-columns:220px minmax(0,1fr)}
.customer-shell .sidebar{background:#f8f9fc;border-color:var(--line);padding:26px 14px 20px}
.customer-shell .brand{display:flex;align-items:center;gap:9px;font-size:23px;padding:0 10px;color:#142139;letter-spacing:-.7px}.customer-shell .brand>svg{width:34px;height:34px;color:var(--accent);stroke-width:1.9}.customer-shell .brand-sub{padding:7px 12px 14px;font-size:12px}.customer-shell .role-label{display:none}
.customer-shell .nav{margin-top:20px;gap:7px}.customer-shell .nav a{padding:13px 14px;font-size:14px;gap:13px;border-radius:8px}.customer-shell .nav a.current{color:var(--accent);background:#e8edff}.customer-shell .nav a[data-route=settings]{margin-top:22px}.customer-shell .main{padding:0 26px 32px;max-width:1800px}
.customer-shell .topbar{height:64px;border-bottom:1px solid var(--line);display:flex;gap:16px;margin-bottom:24px}.business-picker{display:flex;align-items:center;gap:9px;margin-right:auto;color:var(--muted);min-width:0}.business-picker select{border:0;padding:7px 24px 7px 2px;background:transparent;width:180px;font-size:13px}.customer-shell .account{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px}.customer-shell .account-name{max-width:150px}.customer-shell .avatar{background:#e9edff;color:#315cf5;font-size:12px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%}.customer-shell .topbar>.button{border:0;background:transparent;color:var(--muted);font-size:12px}
.customer-shell .page-head{margin:0 0 24px;align-items:center}.customer-shell h1{font-size:30px;font-weight:700;letter-spacing:-.7px;line-height:1.3}.customer-shell .page-head p{margin-top:7px;color:var(--muted);font-size:14px}.customer-shell h2{font-size:19px;line-height:1.4;font-weight:650}.customer-shell h3{font-size:15px}.customer-shell p,.customer-shell h2,.customer-shell h3{overflow-wrap:anywhere}
.customer-shell .button{border-color:#dae0eb;border-radius:7px;box-shadow:0 1px 2px #14213904;min-height:39px;font-size:13px;padding:9px 14px;color:#44516a;background:white;justify-content:center;gap:7px}.customer-shell .button.small{min-height:33px;padding:6px 11px;font-size:12px}.customer-shell .button.primary{background:var(--accent);border-color:var(--accent);color:white}.customer-shell .button.danger{color:#d6545c;background:#fff;border-color:#efb2b8}.customer-shell .button:hover{filter:brightness(.98);transform:none}.customer-shell .button:focus-visible,.customer-shell a:focus-visible{outline:3px solid #8ca7ff;outline-offset:3px}
.customer-shell .panel{margin:0;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:none;min-width:0}.customer-shell .panel-head{padding:20px 23px;border-bottom:0;min-height:auto}.customer-shell .panel-body{padding:23px}.customer-shell .badge{font-size:11px;line-height:1.5;padding:5px 10px;border-radius:6px;white-space:nowrap}.customer-shell .badge.good{background:#eaf7f1;color:#168065}.customer-shell .badge.neutral{background:#eef2fb;color:#647493}.customer-shell .badge.warn{background:#fff2e6;color:#b9671c}
.customer-shell .preview-note{font-size:11px;margin-bottom:18px;padding:7px 12px;border-radius:6px;background:#fff8ed;color:#8f662d;border-color:#f1e3cd}.customer-shell .overview-strip{display:grid;grid-template-columns:1fr 1.2fr .9fr;background:white;border:1px solid var(--line);border-radius:10px;padding:19px 8px;margin-bottom:22px;gap:0}.overview-strip>div{padding:0 20px;display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;line-height:1.4}.overview-strip>div+div{border-left:1px solid var(--line)}.overview-strip strong{font-size:14px;font-weight:600}.overview-strip small{font-size:11px;color:var(--muted)}.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex-shrink:0;background:#a2adbd}.status-dot.on{background:#159d6a;box-shadow:0 0 0 4px #159d6a12}
.task-switcher{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 15px}.cockpit-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(265px,1fr);gap:20px;align-items:stretch}.cockpit-task{padding:23px;display:flex;flex-direction:column}.cockpit-task-head{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.task-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.task-title h2{font-size:21px;font-weight:700}.platform-pill{font-size:11px;padding:4px 9px;background:#f1f3f7;border-radius:5px}.cockpit-task-head p{font-size:13px;margin-top:8px}.cockpit-task-head .actions{align-self:flex-start;gap:7px}
.workflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:29px 0 24px;gap:0}.workflow-step{display:grid;justify-items:center;position:relative;text-align:center;gap:8px;min-width:0}.workflow-step:before{content:'';position:absolute;height:1px;background:#dce3f0;left:0;right:0;top:16px}.workflow-step:first-child:before{left:50%}.workflow-step:last-child:before{right:50%}.step-symbol{position:relative;z-index:1;width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#f1f4f9;border:1px solid #d7deec;font-size:13px;color:#77879e}.workflow-step strong{font-size:12px;font-weight:600}.workflow-step small{font-size:11px;color:var(--muted)}.workflow-step.current .step-symbol{color:var(--accent);background:#f1f4ff;border-color:#d2dcff;box-shadow:0 0 0 5px #f4f6ff}.workflow-step.current strong,.workflow-step.current small{color:var(--accent)}.spinner{width:16px;height:16px;border:2px solid #cbd6ff;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.live-progress{padding:18px;background:#f5f7fb;border-radius:8px}.live-progress strong{font-size:14px;font-weight:600;display:block;line-height:1.7}.live-progress p{font-size:12px;color:var(--muted);margin-top:5px}.budget-strip{margin-top:12px;padding:13px 15px;border:1px solid var(--line);border-radius:7px;background:#fafbfd;font-size:12px}.budget-strip summary{cursor:pointer}.budget-strip p{margin-top:10px;color:var(--muted)}.task-panel-foot{margin-top:auto;padding-top:20px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.task-panel-foot>span{display:flex;align-items:center;gap:7px}.task-panel-foot svg{width:15px;height:15px}
.cockpit-aside{display:grid;gap:18px;grid-template-rows:auto 1fr}.attention-panel,.notification-panel{padding:22px}.attention-row{margin-top:14px;width:100%;display:flex;align-items:center;gap:9px;background:#f8faff;color:#4e5e79;border:1px solid #e9edf4;border-radius:7px;padding:14px 12px;font:inherit;font-size:12px;text-align:left;min-height:50px}.attention-row>svg:last-child{margin-left:auto;width:15px}.attention-row.warn{background:#fff7ed;border-color:#f3d7b9;color:#b66a18}.notification-copy{display:flex;gap:12px;margin:25px 0 18px;align-items:flex-start}.notification-copy>svg{background:#e7f7ef;color:#139a67;border-radius:50%;padding:6px;width:34px;height:34px}.notification-copy strong{font-size:13px}.notification-copy p{font-size:11px;margin-top:7px}
.recent-panel{margin-top:20px!important}.recent-leads{padding:0 23px 16px}.recent-labels,.recent-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 90px 100px;gap:20px;align-items:center}.recent-labels{font-size:11px;color:var(--muted);background:#f8fafc;padding:12px 14px;border:1px solid var(--line);border-radius:6px 6px 0 0}.recent-row{padding:15px 14px;border-bottom:1px solid var(--line)}.recent-row strong{font-size:13px;font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recent-row small{display:block;margin-top:6px;font-size:11px}.recent-source{font-size:12px;color:#55647b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recent-row>.badge{justify-self:start}.recent-row .button{border:0;color:var(--accent);box-shadow:none;background:transparent;padding:0}.empty-action{text-align:center;padding:0 20px 35px}
.task-directory{display:grid;gap:18px}.directory-task{padding:24px}.directory-task p{font-size:13px;margin-top:9px}.directory-task footer{margin-top:20px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.customer-shell input,.customer-shell select,.customer-shell textarea{border-radius:7px;font-size:13px;color:#28364c}.customer-shell .workspace-grid{gap:22px;grid-template-columns:minmax(240px,.7fr) minmax(0,1.7fr)}.customer-shell .task-list{padding:20px;gap:12px}.customer-shell .task-list>.button{justify-content:flex-start}.customer-shell .settings-grid{gap:20px}.customer-shell .settings-grid>.panel{margin-top:0}.customer-shell #page-content>.settings-grid{margin-top:20px}
/* Modal styles are global because dialogs deliberately live outside the app shell. */
.task-dialog{width:min(680px,calc(100vw - 24px));max-height:94dvh;border-radius:12px;overflow:auto}.task-dialog .dialog-head{padding:24px}.task-dialog .dialog-head p{font-size:12px;margin-top:5px}.task-dialog .dialog-head h2{font-size:21px}.wizard-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);padding:20px 24px;margin:0;gap:8px;background:#fafbfd;border-bottom:1px solid #e6eaf0}.wizard-steps li{display:flex;gap:8px;align-items:center;color:#7a879b;font-size:12px}.wizard-steps li>span{width:24px;height:24px;border-radius:50%;background:#eef1f7;display:grid;place-items:center}.wizard-steps li.current{color:#315cf5;font-weight:600}.wizard-steps li.current>span{background:#315cf5;color:white}.wizard-steps li.complete>span{background:#e7f3ee;color:#21876c}.wizard-body{padding:24px;max-height:53dvh;overflow:auto}.wizard-body>section{display:grid;gap:19px}.wizard-body .field label{font-size:13px}.wizard-body input,.wizard-body select{font-size:14px}.word-preview{display:flex;gap:7px;flex-wrap:wrap;background:#f5f7fb;padding:14px;border-radius:8px}.word-preview small{width:100%;margin-top:5px}.platform-static{display:flex;justify-content:space-between;font-size:13px;padding:13px;border:1px solid #e6eaf0;border-radius:7px}.advanced-settings{padding:15px 0;border-top:1px solid #e6eaf0;font-size:13px}.advanced-settings .form-grid{margin-top:20px}.summary-list{margin:0;display:grid;gap:14px}.summary-list>div{display:grid;grid-template-columns:95px 1fr;gap:16px;font-size:13px}.summary-list dt{color:#7a879b}.summary-list dd{margin:0;overflow-wrap:anywhere}.task-wizard>.error{margin:0 24px 15px;font-size:12px}.task-wizard>.error:empty{display:none}.task-wizard .dialog-foot{padding:18px 24px;position:sticky;bottom:0;background:#fff;z-index:2}.task-wizard .button{border-radius:7px}.task-wizard .primary{background:#315cf5;border-color:#315cf5}
/* Inbox: same shell, quieter green semantic treatment for results. */
.lead-inbox .page-head{margin-bottom:18px}.inbox-search{display:flex;align-items:center;gap:7px;background:white;padding:3px 7px 3px 12px;border:1px solid var(--line);border-radius:8px}.inbox-search>svg{width:18px;color:var(--muted)}.inbox-search input{border:0;padding:8px 4px;min-width:0;max-width:260px}.inbox-search .button{border:0;box-shadow:none}.inbox-run-banner{display:flex;align-items:center;gap:12px;background:#edf7f3;border:1px solid #daeee6;border-radius:8px;padding:12px 16px;margin-bottom:18px;font-size:12px}.inbox-run-banner>.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.inbox-run-banner>.button{margin-left:auto;white-space:nowrap}.inbox-run-banner strong{flex-shrink:0}.inbox-split{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(0,1.35fr);border:1px solid var(--line);border-radius:10px;background:white;min-height:610px;overflow:hidden}.inbox-master{border-right:1px solid var(--line);min-width:0;max-height:calc(100dvh - 250px);overflow:auto}.inbox-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:14px 14px 0;position:sticky;top:0;background:white;z-index:1}.inbox-tabs>.button{border:0;border-radius:0;box-shadow:none;padding:9px 8px 12px;white-space:nowrap;font-size:12px}.inbox-tabs>.current{color:#167c67;border-bottom:2px solid #167c67;font-weight:650}.inbox-count{font-size:10px;padding:9px 20px}.inbox-row{display:flex;align-items:flex-start;gap:11px;border:0;border-bottom:1px solid var(--line);background:white;color:var(--ink);text-align:left;padding:21px 15px;width:100%;font:inherit;cursor:pointer}.inbox-row.selected{background:#edf7f3}.inbox-row:hover{background:#f6faf9}.unread-dot{width:7px;height:7px;background:#315cf5;border-radius:50%;margin-top:13px;flex-shrink:0}.inbox-row.read .unread-dot{background:transparent}.lead-avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#e8efef;color:#637d7a;font-size:13px}.inbox-row-copy{min-width:0;flex:1}.inbox-row-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px}.inbox-row-meta small{color:var(--muted);font-size:10px;white-space:nowrap}.inbox-row-copy>p{font-size:13px;margin:10px 0 8px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.source-title{color:var(--muted);font-size:11px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.row-tags{display:flex;gap:5px;margin-top:12px;flex-wrap:wrap}.row-tags .badge{font-size:10px;padding:3px 7px}.inbox-master>.button{margin:16px}.inbox-detail{padding:26px;min-width:0;max-height:calc(100dvh - 250px);overflow:auto;display:flex;flex-direction:column}.lead-detail-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin-bottom:20px}.lead-detail-head time{color:var(--muted);font-size:11px}.detail-comment{font-size:20px;line-height:1.8;margin:0 0 24px;white-space:pre-wrap}.source-panel{background:#f7f9fc;border:1px solid var(--line);border-radius:8px;padding:17px}.source-panel>span{font-size:12px}.source-panel h3{margin:9px 0 15px}.source-panel .text-link{padding:7px 11px;border:1px solid #dce3ec;border-radius:6px;background:#fff;color:#51637c}.ai-explanation{margin:20px 0;background:#eef8f4;border-radius:8px;padding:18px}.ai-explanation h3{display:flex;gap:10px;align-items:center;color:#167c67;font-size:14px}.ai-explanation p{font-size:13px;margin:12px 0 9px;line-height:1.8}.ai-explanation small{font-size:11px;color:#728780}.delivery-status{display:flex;gap:9px;align-items:center;font-size:12px;color:#167c67;padding:12px 0}.lead-detail-actions{margin-top:auto;padding-top:26px}.lead-detail-actions>.actions{margin-bottom:10px}.lead-detail-actions .button.primary{background:#167c67;border-color:#167c67}.lead-detail-actions details{margin-top:24px;border-top:1px solid var(--line);padding-top:14px;font-size:11px;color:var(--muted)}.lead-detail-actions details .button{margin-top:10px}.inbox-detail>.back-to-list{display:none}.customer-shell .record-list{padding:15px}.customer-shell .metrics{background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:22px}.customer-shell .metrics .metric>strong{font-size:25px}.customer-shell #page-content>.panel{margin-top:22px}
@media(min-width:1500px){.customer-shell .main{padding:0 32px 40px}.cockpit-task{padding:25px}.cockpit-task-head .actions{margin-left:auto}.task-title h2{font-size:22px}.workflow{margin:36px 0 28px}.cockpit-task{min-height:424px}.attention-panel,.notification-panel{padding:24px}.customer-shell .page-head{margin-bottom:26px}}
@media(max-width:1250px){.customer-shell{grid-template-columns:190px minmax(0,1fr)}.customer-shell .main{padding:0 22px 30px}.cockpit-grid{grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:15px}.cockpit-task{padding:20px}.cockpit-task-head .actions{margin-top:5px}.overview-strip>div{padding:0 13px}.overview-strip strong{font-size:12px}.recent-labels,.recent-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 70px 70px;gap:12px}.inbox-row{padding:17px 12px;gap:8px}.inbox-row .lead-avatar{display:none}.inbox-detail{padding:22px}.detail-comment{font-size:18px}}
@media(max-width:1000px){.cockpit-grid{grid-template-columns:1fr}.cockpit-aside{grid-template-columns:1fr 1fr;grid-template-rows:auto}.customer-shell .workspace-grid{grid-template-columns:1fr}.inbox-split{grid-template-columns:minmax(230px,.85fr) minmax(0,1.2fr)}.inbox-run-banner{flex-wrap:wrap}.inbox-run-banner>.muted{width:100%;order:3}.customer-shell .inbox-search{max-width:270px}.customer-shell .lead-inbox .page-head{flex-wrap:wrap;gap:14px}}
@media(max-width:760px){.customer-shell{display:block}.customer-shell .sidebar{height:auto;padding:13px 18px;border-bottom:1px solid var(--line);position:static}.customer-shell .brand{font-size:20px;padding:0}.customer-shell .brand>svg{width:28px;height:28px}.customer-shell .brand-sub,.customer-shell .sidebar-foot{display:none}.customer-shell .mobile-nav{display:none}.customer-shell .nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);margin:0;padding:8px 3px max(9px,env(safe-area-inset-bottom));gap:0;overflow:visible}.customer-shell .nav:has(a[data-route=wallet]){grid-template-columns:repeat(7,minmax(0,1fr))}.customer-shell .nav a{display:flex;flex-direction:column;gap:5px;justify-content:center;padding:6px 1px;font-size:10px;line-height:1.2;white-space:nowrap;border-radius:5px}.customer-shell .nav a[data-route=settings]{margin-top:0}.customer-shell .nav a[data-route=keywords]{font-size:9px}.customer-shell .nav svg{width:19px;height:19px}.customer-shell .main{padding:0 16px 100px}.customer-shell .topbar{height:53px;margin-bottom:17px;gap:8px}.business-picker{gap:5px}.business-picker select{width:130px;font-size:12px}.business-picker>svg{width:16px}.customer-shell .account-name,.customer-shell .account a{display:none}.customer-shell .account{max-width:none;gap:0}.customer-shell .topbar>.button{padding:4px;font-size:10px;min-height:30px}.customer-shell .page-head{flex-direction:row;align-items:center;gap:12px;margin-bottom:18px}.customer-shell h1{font-size:26px}.customer-shell .page-head p{font-size:11px;max-width:220px;line-height:1.7}.customer-shell .page-head>.button{flex-shrink:0;font-size:12px;padding:8px 10px;min-height:35px}.customer-shell .page-head .actions{width:auto}.customer-shell .preview-note{font-size:10px;margin-bottom:15px}.customer-shell .overview-strip{grid-template-columns:1fr 1fr;padding:12px 0;margin-bottom:16px;row-gap:15px}.overview-strip>div{padding:0 12px;gap:7px}.overview-strip>div:last-child{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding-top:12px}.overview-strip strong{font-size:12px}.overview-strip small{font-size:10px}.overview-strip svg{width:16px;height:16px}.cockpit-task{padding:18px}.task-title{gap:8px}.task-title h2{font-size:18px}.cockpit-task-head p{font-size:11px}.workflow{margin:24px 0 20px}.workflow-step strong{font-size:10px}.workflow-step small{font-size:9px}.step-symbol{width:28px;height:28px;font-size:11px}.workflow-step:before{top:14px}.live-progress{padding:14px}.live-progress strong{font-size:12px}.live-progress p{font-size:11px}.budget-strip{padding:12px;font-size:11px;line-height:1.8}.task-panel-foot{padding-top:16px;font-size:10px;gap:10px}.task-panel-foot>span{gap:5px}.cockpit-aside{grid-template-columns:1fr;gap:15px}.attention-panel,.notification-panel{padding:18px}.customer-shell h2{font-size:17px}.notification-copy{margin:18px 0 12px}.recent-panel{margin-top:16px!important}.customer-shell .recent-panel .panel-head{padding:17px 16px}.recent-leads{padding:0 16px 12px}.recent-labels{display:none}.recent-row{grid-template-columns:minmax(0,1fr) 70px;padding:15px 0;gap:10px}.recent-row>div:first-child{grid-column:1/-1}.recent-source{grid-column:1/-1;font-size:11px}.recent-row>.badge{grid-column:1}.recent-row>.button{grid-column:2}.recent-row strong{font-size:13px}.directory-task{padding:18px}.directory-task p{font-size:12px}.task-switcher{gap:6px}.task-switcher .button{font-size:11px}.task-dialog{max-height:94dvh}.wizard-body{padding:20px;max-height:53dvh}.wizard-steps{padding:17px 18px;gap:3px}.wizard-steps li{font-size:11px;gap:5px}.wizard-steps li>span{width:21px;height:21px}.task-wizard .dialog-head{padding:20px 18px}.task-wizard .dialog-foot{padding:15px 18px;gap:7px}.task-wizard .dialog-foot .button{font-size:11px;padding:8px}.summary-list>div{grid-template-columns:65px 1fr;gap:10px}.lead-inbox .page-head{flex-direction:column;align-items:stretch}.customer-shell .inbox-search{max-width:none;width:100%}.inbox-search input{max-width:none;flex:1}.inbox-run-banner{padding:12px;font-size:11px;gap:8px}.inbox-run-banner .button{min-height:30px;font-size:10px}.inbox-split{display:block;min-height:430px}.inbox-master{max-height:none;border:0}.inbox-detail{display:none;max-height:none;padding:20px;min-height:560px}.inbox-split.show-detail .inbox-master{display:none}.inbox-split.show-detail .inbox-detail{display:flex}.inbox-detail>.back-to-list{display:flex;align-self:flex-start;margin-bottom:22px}.back-to-list svg{transform:rotate(180deg)}.inbox-row .lead-avatar{display:grid}.inbox-row{padding:20px 15px;gap:10px}.inbox-row-copy>p{font-size:14px}.inbox-tabs{padding:12px 12px 0}.inbox-tabs>.button{flex:1;font-size:12px}.detail-comment{font-size:19px;line-height:1.85}.source-panel{padding:15px}.lead-detail-actions>.actions{flex-wrap:wrap}.lead-detail-actions .button{font-size:12px}.customer-shell .settings-grid{grid-template-columns:1fr}.customer-shell .metrics .metric>strong{font-size:21px}.customer-shell #page-content>.panel{margin-top:16px}.customer-shell .task-list{max-height:none}.customer-shell .record-list{padding:10px}.customer-shell .lead{padding:16px}}
@media(min-width:761px){
 .customer-shell .nav{display:flex;flex-direction:column;flex:1}.customer-shell .nav a[data-route=settings]{margin-top:auto}.customer-shell .sidebar-foot{margin-top:0;padding-top:17px}
 .customer-shell .topbar{height:48px;margin-bottom:16px}.customer-shell .preview-note{padding:6px 12px;margin-bottom:14px}.customer-shell .page-head{margin-bottom:20px}
 .customer-shell .overview-strip{margin-bottom:18px;padding:17px 8px}.task-switcher{margin-bottom:12px}.cockpit-task{min-height:0;padding:23px}.workflow{margin:24px 0 20px}.live-progress{padding:16px 18px}.recent-panel{margin-top:18px!important}
 .customer-shell .recent-panel .panel-head{padding:17px 23px}.recent-row{padding:12px 14px}.customer-shell .lead-inbox .page-head{margin-bottom:20px}
}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
.keyword-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:stretch}.keyword-sidebar{display:grid;gap:20px;align-content:start;min-width:0}.keyword-sidebar>.panel{margin:0!important}.keyword-layout>.panel{margin:0!important}.customer-shell .business-list{padding:12px;max-height:340px;overflow:auto;gap:7px}.business-row{display:flex;align-items:center;gap:6px;padding:6px 7px;border-radius:7px}.business-row.selected{background:#edf2ff}.business-row>.button{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;padding:8px 6px;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:14px}.business-row.selected>.button{color:#315cf5;font-weight:650}.business-row>small{white-space:nowrap;font-size:11px;color:#8a97ac}.business-remove{border:0;background:none;color:#94a1b3;min-width:32px;height:32px;border-radius:5px;font-size:21px;font-weight:400}.business-remove:hover{color:#be394d;background:#fff0f2}.business-remove:focus-visible{outline:2px solid #315cf5}.deleted-businesses{font-size:12px;padding:12px 6px;color:#8290a4}.deleted-businesses summary{cursor:pointer}.deleted-businesses>.button{margin-top:10px;font-size:12px}.library-editor{display:flex;flex-direction:column;gap:20px;min-height:640px}.library-editor>.keyword-box{flex:1;min-height:260px;padding:18px;border:1px solid #e0e6f0;border-radius:8px;background:#fafcff}.library-chips{align-content:flex-start;gap:10px}.library-chips .chip{background:#eef3ff;border-color:#dce5fb;font-size:13px;padding:8px 10px;max-width:100%;overflow-wrap:anywhere}.library-chips .chip button{margin-left:8px;min-width:22px;min-height:24px}.keyword-entry{display:flex;align-items:center;gap:12px}.keyword-entry>.field{flex:1;min-width:0}.keyword-entry>.button{margin-top:7px}.library-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:20px;border-top:1px solid #e7edf5}.keyword-workspace>.error:empty{display:none}.keyword-workspace>.error{margin-bottom:18px}.expansion-candidates{display:grid;gap:14px;border-top:1px solid #e7edf5;padding-top:18px}.keyword-sidebar .settings-form .button{white-space:normal}.keyword-sidebar .panel-head{padding:18px 20px}.keyword-sidebar .panel-body{padding:20px}.keyword-sidebar .note{line-height:1.8}.data-settings{display:grid;gap:19px}.cleanup-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid #e8edf4}.cleanup-row strong{font-size:14px}.cleanup-row p{font-size:12px;color:#7c8ba1;margin-top:7px}.cleanup-row .button{flex-shrink:0;font-size:12px}
@media(max-width:1200px){.keyword-layout{grid-template-columns:260px minmax(0,1fr);gap:18px}.library-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:880px){.keyword-layout{grid-template-columns:1fr}.keyword-sidebar{grid-template-columns:1fr 1fr;gap:16px}.library-editor{min-height:500px}.library-editor>.keyword-box{min-height:210px}.library-footer{flex-direction:row;align-items:center}}
@media(max-width:560px){.keyword-sidebar{grid-template-columns:1fr}.keyword-entry{align-items:stretch;flex-direction:column;gap:4px}.keyword-entry>.button{align-self:flex-start}.library-footer{align-items:stretch;flex-direction:column}.library-editor{padding:18px;min-height:480px}.cleanup-row{flex-direction:column;align-items:flex-start}.data-settings{padding:18px}}
.topup-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:24px}.topup-option{padding:22px 16px;border:1px solid #dce5f4;border-radius:14px;display:flex;flex-direction:column;gap:12px;background:#f8faff}.topup-option h3{margin:0;font-size:25px}.topup-option p{margin:0;color:#486384}.topup-option strong{font-size:16px}.membership-card{display:flex;justify-content:space-between;align-items:center;padding:28px;gap:24px;margin-bottom:24px;background:linear-gradient(110deg,#f4f7ff,#eaf3ff)}.membership-card h2{font-size:30px;margin:12px 0}.membership-card .note{max-width:680px}.membership-card .eyebrow{color:#3556dd;font-weight:700}@media(max-width:1000px){.topup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.topup-grid{padding:16px;gap:12px}.topup-option{padding:16px 12px}.topup-option h3{font-size:22px}.membership-card{align-items:stretch;flex-direction:column;padding:22px}}
.keyword-sidebar .panel-head{gap:10px;flex-wrap:wrap}.business-row>.button:not(:first-child){flex:0 0 auto;min-width:0;font-size:11px;padding:5px;color:#73829a}.business-row>.button:first-child{font-size:13px}.library-editor>.note{margin:0;font-size:12px}.library-editor>.field{margin:0}.library-editor .keyword-box{max-height:420px;overflow:auto}.library-chips .empty{width:100%;padding:35px 10px}.keyword-entry textarea{width:100%;resize:vertical;min-height:76px}.library-footer .actions{flex-wrap:wrap}.directory-task footer .actions{flex-wrap:wrap}
@media(max-width:560px){.keyword-sidebar{display:contents}.keyword-sidebar>.panel:first-child{order:1}.keyword-layout>.panel{order:2}.keyword-sidebar>.panel:last-child{order:3}.library-editor>.keyword-box{min-height:140px}.library-editor{min-height:0}.keyword-workspace .panel-head{padding:18px}.keyword-layout{gap:16px}}
