/* Saved merchant branding; harmonize with Altitude luxury obsidian & champagne gold. */
body[data-merchant]{
  --teal:var(--brand-action,#0C121E);
  --teal-soft:var(--brand-soft,#F1F5F9);
  --good:var(--chart-stroke,var(--brand-action,#0C121E));
  --good-soft:var(--good-soft,var(--brand-soft,#F1F5F9));
  --chart-stroke:var(--chart-stroke,var(--brand-action,#0C121E));
  --chart-accent:var(--merchant-accent,#F5D77F);
  --primary-gradient:linear-gradient(135deg,var(--brand-action,#0C121E),var(--brand-sidebar,#0C121E));
}
body[data-merchant] .sidebar{background:linear-gradient(175deg,var(--brand-sidebar,#0C121E),var(--brand-sidebar-end,#070A10))}
body[data-merchant] .side-link.active,body[data-merchant] .side-link.active:hover{background:var(--merchant-accent,#F5D77F);color:var(--brand-accent-ink,#12181A);border-color:transparent}
body[data-merchant] .brand-tile{background:var(--merchant-accent,#F5D77F);color:var(--brand-accent-ink,#12181A)}
body[data-merchant] .scan-btn,body[data-merchant] .send-btn,body[data-merchant] .primary-action{background:var(--brand-action,#0C121E)!important;color:#fff;box-shadow:0 4px 12px rgba(12,18,30,0.18)}
body[data-merchant] .period-btn.active{background:var(--brand-soft,#F1F5F9);color:var(--brand-action,#0C121E)}
body[data-merchant] .kpi-card.kpi-revenue{
  background:var(--kpi-revenue-bg, linear-gradient(135deg, var(--brand-soft, #F1F5F9) 0%, #ffffff 100%))!important;
  border-color:var(--kpi-revenue-border, var(--line, #E2E8F0))!important;
}
body[data-merchant] .sync-pill .row .live,
body[data-merchant] .sync-line .live,
body[data-merchant] .who .dot-wrap span{
  background:var(--chart-stroke, var(--merchant-accent, var(--brand-action)))!important;
}
body[data-merchant] .heading-dot{
  color:var(--chart-stroke, var(--merchant-accent, var(--brand-action)))!important;
}
.location-scope{display:flex;align-items:center;gap:16px 24px;justify-content:space-between;margin:0 0 26px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}
.location-scope>div{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
.location-scope label{font-size:11px;font-weight:700;color:#52655c;white-space:nowrap}
.location-scope label i{margin-right:5px;color:var(--brand-action)}
.location-scope select{max-width:300px;min-height:44px;min-width:0;padding:10px 14px;border:1px solid #d7e0d9;border-radius:9px;background:#fbfcfa;color:var(--ink);font-size:13px;font-weight:600;appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;background-image:none!important;cursor:default;}
.location-scope select.has-multiple-pos{padding-right:36px!important;cursor:pointer!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 14px!important;}
.location-scope p{max-width:530px;margin:0;color:#596a61;font-size:11px;line-height:1.65}
.location-scope :focus-visible{outline:3px solid var(--brand-action);outline-offset:3px}
.location-add{display:grid;place-items:center;flex-shrink:0;min-width:44px;min-height:44px;border:1px solid #d7e0d9;border-radius:9px;background:var(--brand-soft);color:var(--brand-action)}
#topbarPosWrap{display:none}
@media(max-width:600px){.location-scope>div{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;gap:6px 8px!important}.location-scope label{grid-column:1/-1}.location-scope select{grid-column:1;grid-row:2}.location-scope .location-add{grid-column:2;grid-row:2}}
/* Only the automated marketing panel is redesigned. */
#autopilotSection{background:var(--brand-soft,#F8FAFC);border:1px solid #E2E8F0;color:var(--ink);padding:28px;border-radius:20px;box-shadow:0 8px 28px rgba(15,23,42,0.06);overflow:visible}
#autopilotSection::before{display:none}
#autopilotSection .autopilot-head{gap:24px;align-items:flex-start;margin-bottom:24px}
#autopilotSection .autopilot-head-left{flex:1 1 410px;align-items:flex-start;gap:14px;min-width:0}
#autopilotSection .autopilot-badge-icon{width:48px;height:48px;border-radius:15px;flex-shrink:0;background:var(--brand-action,#0C121E);color:#F5D77F;box-shadow:0 4px 10px rgba(12,18,30,0.18)}
#autopilotSection .autopilot-head-titles{min-width:0}
#autopilotSection .autopilot-head-titles h3{font-size:22px;line-height:1.4;letter-spacing:-.6px;gap:10px;color:var(--ink);margin:0 0 6px}
#autopilotSection .autopilot-head-titles p{color:#52645a;font-size:12px;line-height:1.7;max-width:590px;margin:0}
#autopilotSection .autopilot-head-titles .autopilot-scope{font-size:10px;color:#64736a;margin-top:7px}
#autopilotSection .autopilot-status-pill{background:#fff;border:1px solid #CBD5E1;color:#0F766E;font-size:10px;line-height:1.4;font-weight:600;padding:5px 9px;letter-spacing:0;white-space:nowrap}
#autopilotSection .autopilot-status-pill.paused{background:#FFFBEB;color:#92400E;border-color:#FDE68A}
#autopilotSection .autopilot-head-actions{flex:0 1 auto;gap:8px;align-items:center;flex-wrap:wrap}
#autopilotSection .autopilot-master-toggle-wrap{background:#fff;color:#334155;border:1px solid #E2E8F0;padding:0 12px;gap:10px;min-height:44px;border-radius:10px}
#autopilotSection .autopilot-btn-run,#autopilotSection .autopilot-btn-save{min-height:44px;padding:11px 14px;border-radius:10px;font-size:12px;font-weight:600;justify-content:center;box-shadow:none;transition:background .18s,box-shadow .18s}
#autopilotSection .autopilot-btn-run{background:#fff;border:1px solid #E2E8F0;color:var(--ink)}
#autopilotSection .autopilot-btn-save{background:var(--brand-action,#0C121E);border:1px solid transparent;color:#fff}
#autopilotSection .autopilot-btn-run:hover{background:#F1F5F9}
#autopilotSection .autopilot-btn-save:hover{box-shadow:0 4px 14px rgba(12,18,30,0.25);transform:none}
#autopilotSection button:disabled{opacity:.55;cursor:wait}
#autopilotSection .autopilot-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:#E2E8F0;border:1px solid #E2E8F0;padding:0;border-radius:14px;overflow:hidden;margin:0 0 24px}
#autopilotSection .autopilot-kpi-box{padding:18px 16px;background:#fff;min-width:0;display:flex;flex-direction:column;gap:5px}
#autopilotSection .autopilot-kpi-label{font-size:10px;letter-spacing:.3px;line-height:1.6;color:#64748B;overflow-wrap:anywhere}
#autopilotSection .autopilot-kpi-label i{margin-right:4px}
#autopilotSection .autopilot-kpi-box:last-child{background:var(--brand-accent-soft,#FFFDF5)}
#autopilotSection .autopilot-kpi-box:last-child i{color:var(--brand-action,#0C121E)!important}
#autopilotSection .autopilot-kpi-val{font-size:28px;line-height:1.2;color:var(--ink);letter-spacing:-1px;font-weight:650;font-variant-numeric:tabular-nums}
#autopilotSection .autopilot-kpi-sub{font-size:10px;color:#64748B;line-height:1.5}
#autopilotSection .autopilot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#autopilotSection .ap-card{min-width:0;border:1px solid #E2E8F0;border-radius:16px;padding:22px;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,0.03);display:flex;flex-direction:column;gap:0;transition:border-color .2s}
#autopilotSection .ap-card:hover{transform:none;border-color:#94A3B8;box-shadow:none}
#autopilotSection .ap-card-top{gap:12px;align-items:flex-start;min-height:48px;margin-bottom:12px}
#autopilotSection .ap-card-title-group{min-width:0;align-items:flex-start;gap:11px}
#autopilotSection .ap-icon-bubble{width:38px;height:38px;border-radius:12px;flex-shrink:0}
#autopilotSection .ap-card-title-group h4{font-size:14px;line-height:1.5;font-weight:650;letter-spacing:-.15px;margin:0 0 3px;overflow-wrap:anywhere}
#autopilotSection .ap-card-badge{font-size:10px;border:0;padding:0;background:transparent;color:#64748B;line-height:1.5}
#autopilotSection .ap-card-desc{min-height:40px;font-size:11px;line-height:1.7;color:#64748B;margin:0 0 18px}
#autopilotSection .ap-input-field{margin-bottom:14px;min-width:0}
#autopilotSection .ap-input-field:last-child{margin-bottom:0}
#autopilotSection .ap-input-field label{font-size:10px;line-height:1.5;color:#475569;font-weight:650;letter-spacing:.15px;margin-bottom:7px}
#autopilotSection .ap-input-field input,#autopilotSection .ap-input-field textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #E2E8F0;border-radius:9px;background:#F8FAFC;font-size:12px;line-height:1.65;color:#0F172A}
#autopilotSection .ap-input-field textarea{min-height:90px;resize:vertical}
#autopilotSection .ap-input-field input:focus,#autopilotSection .ap-input-field textarea:focus{border-color:var(--brand-action);box-shadow:0 0 0 3px var(--brand-soft);outline:none;background:#fff}
#autopilotSection .ap-row-2col{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#autopilotSection .ap-channel-row{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:13px 12px;gap:12px;margin-bottom:10px;min-height:64px}
#autopilotSection .ap-channel-info{min-width:0;gap:10px;line-height:1.5;font-size:12px}
#autopilotSection .ap-channel-info>i{width:18px;flex-shrink:0;text-align:center}
#autopilotSection .ap-channel-info>div>div:last-child{font-size:10px!important;line-height:1.6;color:#64748B!important}
#autopilotSection .ap-switch{width:44px;height:44px;flex-shrink:0}
#autopilotSection .ap-slider{top:10px;bottom:10px;background:#CBD5E1}
#autopilotSection .ap-slider:before{width:18px;height:18px;left:3px;bottom:3px}
#autopilotSection .ap-switch input:checked+.ap-slider{background:var(--brand-action,#0C121E)}
#autopilotSection .ap-switch input:checked+.ap-slider:before{transform:translateX(20px)}
#autopilotSection :focus-visible{outline:3px solid var(--brand-action,#0C121E);outline-offset:3px}
#autopilotSection .ap-switch input:focus-visible+.ap-slider{outline:3px solid var(--brand-action);outline-offset:3px}
@media(max-width:1200px){.location-scope{flex-wrap:wrap;gap:8px}.location-scope p{max-width:none}#autopilotSection .autopilot-head-left{flex-basis:100%}#autopilotSection .autopilot-head-actions{width:100%}}
@media(max-width:1000px){#autopilotSection .autopilot-grid{grid-template-columns:1fr}#autopilotSection .ap-card-desc{min-height:0}}
@media(max-width:900px){.location-scope{margin-top:0}.location-scope select{font-size:16px}#autopilotSection .ap-input-field input,#autopilotSection .ap-input-field textarea{font-size:16px}}
@media(max-width:600px){.location-scope{padding:14px;gap:8px}.location-scope>div{width:100%;flex-wrap:wrap;gap:6px}.location-scope select{width:100%;max-width:none}.location-scope p{font-size:10px}#autopilotSection{padding:16px;border-radius:16px}#autopilotSection .autopilot-head{gap:18px;margin-bottom:18px}#autopilotSection .autopilot-head-left{flex-basis:auto;gap:10px}#autopilotSection .autopilot-badge-icon{width:40px;height:40px;border-radius:12px}#autopilotSection .autopilot-head-titles h3{font-size:19px}#autopilotSection .autopilot-head-titles p{font-size:11px}#autopilotSection .autopilot-head-actions{display:grid;grid-template-columns:1fr 1fr}#autopilotSection .autopilot-master-toggle-wrap{grid-column:1/-1;justify-content:space-between}#autopilotSection .autopilot-btn-run,#autopilotSection .autopilot-btn-save{font-size:11px;padding:11px 8px;gap:6px}#autopilotSection .autopilot-kpis{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}#autopilotSection .autopilot-kpi-box{padding:14px 12px}#autopilotSection .autopilot-kpi-box:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:4px 10px}#autopilotSection .autopilot-kpi-box:last-child .autopilot-kpi-val{grid-column:2;grid-row:1/3;align-self:center}#autopilotSection .ap-card{padding:16px}#autopilotSection .autopilot-grid{gap:14px}#autopilotSection .ap-card-top{gap:8px}#autopilotSection .ap-card-title-group{gap:8px}#autopilotSection .ap-card-title-group h4{font-size:13px}#autopilotSection .ap-row-2col{grid-template-columns:1fr;gap:0}#autopilotSection .ap-card-desc{font-size:11px}}
@media(prefers-reduced-motion:reduce){#autopilotSection *,#autopilotSection *::before{animation:none!important;transition:none!important}}
