:root {
  color-scheme: light;
  --brand-50:#eff6ff;--brand-100:#dbeafe;--brand-500:#3b82f6;--brand-600:#2563eb;--brand-700:#1d4ed8;
  --ink:#0f172a;--text:#334155;--muted:#64748b;--soft:#94a3b8;--line:#e2e8f0;--canvas:#f6f8fc;--surface:#fff;
  --success:#15803d;--success-bg:#dcfce7;--warning:#a16207;--warning-bg:#fef3c7;--danger:#b91c1c;--danger-bg:#fee2e2;
  --sidebar:#0b1220;--sidebar-soft:#172033;--shadow-sm:0 1px 2px rgba(15,23,42,.06);--shadow-md:0 12px 32px rgba(15,23,42,.12);
  --r-sm:8px;--r-md:12px;--r-lg:16px;--sidebar-w:248px;--topbar-h:72px;
}
*{box-sizing:border-box}
html{min-width:320px;background:var(--canvas)}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:var(--brand-600)}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
:focus-visible{outline:3px solid rgba(37,99,235,.32);outline-offset:2px}
.subtle{color:var(--muted)}
.eyebrow{margin:0 0 4px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-600);font-size:11px;font-weight:800}
.danger-text{color:var(--danger)!important}

/* Login */
.login-layer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:
  radial-gradient(circle at 15% 15%,rgba(59,130,246,.22),transparent 34%),
  radial-gradient(circle at 85% 85%,rgba(34,197,94,.12),transparent 30%),var(--sidebar)}
.login-card{width:min(408px,100%);padding:34px;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 30px 80px rgba(0,0,0,.32)}
.login-card .brand-mark{margin-bottom:24px}.login-card h1{margin:0 0 8px;font-size:26px}.login-card>.subtle{margin:0 0 24px}
.login-mode-switch{display:grid;grid-template-columns:1fr 1.35fr;gap:4px;margin:0 0 20px;padding:4px;border:1px solid #e2e8f0;border-radius:11px;background:#f1f5f9}
.login-mode-switch button{min-height:36px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11.5px;font-weight:800;white-space:nowrap}
.login-mode-switch button.on{color:var(--brand-700);background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.login-pin-field{margin-bottom:9px}.login-pin-field>span{text-align:center}
#lg-pin{height:58px;padding-left:28px;text-align:center;font-size:24px;font-weight:850;letter-spacing:14px;font-variant-numeric:tabular-nums}
.login-help{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 18px;color:var(--muted);font-size:11px}
.login-help>span{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}
.pin-recovery-toggle{margin:-5px 0 15px;padding:0;border:0;background:transparent;color:var(--brand-600);font-size:11.5px;font-weight:750}
.pin-compact{text-align:center;font-size:18px;font-weight:800;letter-spacing:7px;font-variant-numeric:tabular-nums}
.security-note{margin:0 0 14px;padding:10px 11px;border-radius:9px;color:#475569;background:#f8fafc;font-size:11.5px;line-height:1.5}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,var(--brand-500),var(--brand-700));color:#fff;font-weight:900;letter-spacing:-.04em;box-shadow:0 8px 22px rgba(37,99,235,.28)}

/* Shell */
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);z-index:50;display:flex;flex-direction:column;padding:20px 14px;background:var(--sidebar);color:#cbd5e1;border-right:1px solid rgba(255,255,255,.06)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px 18px}.sidebar-brand strong{display:block;color:#fff;font-size:15px}.sidebar-brand span{display:block;color:#7f8da3;font-size:11px}
.store-switch{display:block;margin:0 4px 18px}.store-switch>span{display:block;margin:0 4px 6px;color:#7f8da3;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.store-switch select{width:100%;height:40px;padding:0 30px 0 11px;color:#e2e8f0;border:1px solid #29364a;border-radius:9px;background:#111b2e}
.store-switch select option{color:var(--ink);background:#fff}
.side-nav{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto;padding-right:2px;scrollbar-width:thin}
.nav-group{margin:15px 10px 5px;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.side-nav button{position:relative;display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:8px 11px;border:0;border-radius:9px;color:#9aa8bc;background:transparent;text-align:left;font-weight:650}
.side-nav button svg{width:18px;height:18px}.side-nav button:hover{color:#fff;background:rgba(255,255,255,.055)}.side-nav button.on{color:#fff;background:linear-gradient(90deg,rgba(37,99,235,.28),rgba(37,99,235,.14));box-shadow:inset 3px 0 var(--brand-500)}
.nav-dot{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.13)}
.sidebar-footer{position:relative;margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.connection-state{display:flex;align-items:center;gap:10px;margin:0 8px 10px;color:#94a3b8}.connection-state>span{width:8px;height:8px;border-radius:50%;background:#f59e0b}.connection-state.ok>span{background:#22c55e}.connection-state.offline>span{background:#ef4444}
.connection-state b,.connection-state small{display:block}.connection-state b{font-size:11px;color:#cbd5e1}.connection-state small{font-size:10px}
.profile-card{display:grid;grid-template-columns:34px 1fr 20px;align-items:center;gap:10px;width:100%;padding:9px;border:0;border-radius:10px;background:transparent;color:#cbd5e1;text-align:left}.profile-card:hover{background:rgba(255,255,255,.06)}
.profile-card b,.profile-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-card b{font-size:12px;color:#fff}.profile-card small{font-size:10px;color:#7f8da3;text-transform:capitalize}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:900;border:0}
.profile-card>svg{width:17px}
.profile-menu{position:absolute;bottom:62px;left:4px;right:4px;z-index:10;padding:6px;border:1px solid #273449;border-radius:11px;background:#111b2e;box-shadow:var(--shadow-md)}
.profile-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:#cbd5e1;text-align:left}.profile-menu button:hover{background:rgba(255,255,255,.07)}.profile-menu svg{width:17px}
.app-main{min-height:100vh;margin-left:var(--sidebar-w)}
.topbar{position:sticky;top:0;z-index:35;display:flex;align-items:center;justify-content:space-between;height:var(--topbar-h);padding:0 28px;border-bottom:1px solid rgba(226,232,240,.9);background:rgba(255,255,255,.9);backdrop-filter:blur(14px)}
.topbar h1{margin:0;font-size:20px;letter-spacing:-.02em}.breadcrumb{margin:0 0 2px;color:var(--muted);font-size:11px}.topbar-actions{display:flex;align-items:center;gap:9px}.scope-pill{padding:7px 11px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--text);font-size:12px;font-weight:650}.top-avatar{display:none}
#main-content{width:100%;max-width:1480px;margin:auto;padding:26px 28px 72px}
.page-section{animation:fade-in .16s ease}.section-header,.page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.section-header h2,.page-intro h2{margin:0;font-size:23px;letter-spacing:-.025em}.section-header p,.page-intro p{margin:4px 0 0;color:var(--muted)}
.date-chip{padding:7px 11px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--muted);font-size:12px}

/* Primitives */
.surface{min-width:0;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-sm)}
.surface-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.surface-head h3{margin:0;font-size:15px}.surface-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border:1px solid transparent;border-radius:9px;font-weight:750;font-size:13px;transition:.14s ease}.btn svg{width:17px;height:17px}.btn-primary{color:#fff;background:var(--brand-600);box-shadow:0 4px 12px rgba(37,99,235,.2)}.btn-primary:hover{background:var(--brand-700)}.btn-secondary{color:var(--text);background:#fff;border-color:var(--line)}.btn-secondary:hover,.btn-ghost:hover{background:#f8fafc}.btn-ghost{color:var(--text);background:transparent;border-color:transparent}.btn-danger{color:#fff;background:var(--danger)}.btn-block{width:100%}
.icon-btn{width:40px;height:40px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text)}.icon-btn:hover{background:#f8fafc;border-color:#cbd5e1}.icon-btn svg{width:18px;height:18px}.icon-btn.sound-on{position:relative;color:#b45309;border-color:#fbbf24;background:#fffbeb}.icon-btn.sound-on:after{content:"";position:absolute;right:6px;top:6px;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#22c55e}.profile-menu button.sound-on,.more-menu button.sound-on{color:#047857;background:#ecfdf5}.profile-menu button.sound-test,.more-menu button.sound-test{color:#92400e;background:#fffbeb}.profile-menu button.sound-test:hover,.more-menu button.sound-test:hover{background:#fef3c7}
.notification-wrap{position:relative}.notification-trigger{position:relative}.notification-trigger[aria-expanded="true"]{color:var(--brand-700);border-color:#93c5fd;background:var(--brand-50)}
.notification-badge{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:99px;color:#fff;background:#ef4444;font-size:9px;font-weight:900;line-height:1;box-shadow:0 3px 8px rgba(185,28,28,.28)}
.notification-panel{position:absolute;z-index:85;top:49px;right:0;width:min(430px,calc(100vw - 28px));overflow:hidden;border:1px solid #dbe2ea;border-radius:16px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.2)}
.notification-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 17px 14px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fbff,#fff)}.notification-head p,.notification-head h2,.notification-head small{display:block;margin:0}.notification-head p{text-transform:uppercase;letter-spacing:.08em;color:var(--brand-600);font-size:9px;font-weight:850}.notification-head h2{margin-top:2px;font-size:17px;letter-spacing:-.02em}.notification-head small{margin-top:2px;color:var(--muted);font-size:10.5px}.notification-close{flex:0 0 auto;width:34px;height:34px}
.notification-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);background:#fff}.notification-filters{display:flex;align-items:center;gap:3px;padding:3px;border-radius:9px;background:#f1f5f9}.notification-filters button,.notification-sound{min-height:32px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;font-weight:800}.notification-filters button{padding:0 10px}.notification-filters button.on{color:var(--brand-700);background:#fff;box-shadow:var(--shadow-sm)}.notification-sound{display:inline-flex;align-items:center;gap:5px;padding:0 8px}.notification-sound svg{width:14px;height:14px}.notification-sound.sound-on{color:#047857;background:#ecfdf5}
.notification-list{max-height:min(500px,calc(100dvh - 220px));overflow:auto;overscroll-behavior:contain;background:#fff}.notification-loading,.notification-empty{padding:42px 22px;color:var(--muted);font-size:12px;text-align:center}.notification-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:10px;width:100%;padding:13px 14px;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left}.notification-item:hover,.notification-item:focus-visible{background:#f8fbff}.notification-item:last-child{border-bottom:0}.notification-event-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#1d4ed8;background:#dbeafe}.notification-event-icon.paid{color:#047857;background:#d1fae5}.notification-event-icon svg{width:18px;height:18px}.notification-copy{min-width:0}.notification-copy b,.notification-copy span,.notification-copy small{display:block}.notification-copy b{overflow:hidden;color:var(--ink);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.notification-copy span{margin-top:2px;overflow:hidden;color:var(--text);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.notification-copy small{margin-top:4px;overflow:hidden;color:var(--muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.notification-meta{min-width:72px;text-align:right}.notification-meta time,.notification-meta strong{display:block}.notification-meta time{color:var(--muted);font-size:9px;white-space:nowrap}.notification-meta strong{margin-top:6px;color:var(--ink);font-size:10px;white-space:nowrap}.notification-test{display:inline-flex!important;width:max-content;margin-top:5px!important;padding:2px 5px;border-radius:99px;color:#475569!important;background:#e2e8f0;font-size:8px!important;font-weight:850}.notification-foot{padding:10px 13px;border-top:1px solid var(--line);background:#f8fafc}.notification-foot .text-btn{width:100%;justify-content:center;min-height:34px}
.text-btn{display:inline-flex;align-items:center;gap:4px;padding:4px;border:0;background:transparent;color:var(--brand-600);font-weight:750;font-size:12px}.text-btn svg{width:14px}
.badge{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:4px 9px;border-radius:99px;font-size:11px;font-weight:800;line-height:1.2}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.badge.paid,.badge.live,.badge.active,.badge.sent{color:var(--success);background:var(--success-bg)}.badge.pending,.badge.retry,.badge.queued,.badge.draft{color:var(--warning);background:var(--warning-bg)}.badge.failed,.badge.expired,.badge.inactive{color:var(--danger);background:var(--danger-bg)}.badge.test,.badge.archived,.badge.neutral{color:#475569;background:#e2e8f0}.badge.role{color:#5b21b6;background:#ede9fe}.badge.partner{color:#1d4ed8;background:#dbeafe}.badge.cs{color:#9d174d;background:#fce7f3}
.money{font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.empty-state,.error-state,.loading-state{display:grid;place-items:center;min-height:180px;padding:28px;text-align:center;color:var(--muted)}.empty-state svg,.error-state svg{width:28px;height:28px;margin-bottom:10px}.empty-state h3,.error-state h3{margin:0 0 5px;color:var(--ink);font-size:15px}.empty-state p,.error-state p{margin:0 0 14px;max-width:440px}
.skeleton{position:relative;overflow:hidden;border-radius:7px;background:#e8edf4}.skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:shimmer 1.2s infinite}.skeleton-line{height:13px;margin:8px 0}.skeleton-card{height:112px}

/* Forms */
.field{display:block;margin-bottom:14px}.field>span,.filter-panel label>span{display:block;margin-bottom:6px;color:var(--text);font-size:12px;font-weight:750}.field input,.field select,.filter-panel input,.filter-panel select,.list-toolbar input,.list-toolbar select{width:100%;height:42px;padding:0 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;outline:none;transition:.14s}.field input:focus,.field select:focus,.filter-panel input:focus,.filter-panel select:focus,.list-toolbar input:focus,.list-toolbar select:focus{border-color:var(--brand-500);box-shadow:0 0 0 3px rgba(37,99,235,.11)}
.field input:disabled{background:#f1f5f9;color:var(--muted)}.field-help{margin:4px 0 0;color:var(--muted);font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .full{grid-column:1/-1}
.check-card{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.check-card input{margin-top:3px;accent-color:var(--brand-600)}.check-card b,.check-card small{display:block}.check-card small{margin-top:2px;color:var(--muted)}.danger-check{border-color:#fecaca;background:#fff7f7}
.form-error{margin:12px 0;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;color:var(--danger);background:#fff1f2;font-size:12px}

/* Dashboard */
.summary-range-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:12px 16px}.summary-range-bar .quick-ranges{flex:1}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.metric-card{position:relative;min-width:0;overflow:hidden;padding:18px;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;box-shadow:var(--shadow-sm)}.metric-card .metric-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:16px;border-radius:10px;color:var(--brand-600);background:var(--brand-50)}.metric-card .metric-icon svg{width:18px}.metric-card p{margin:0 0 3px;color:var(--muted);font-size:12px;font-weight:650}.metric-card strong{display:block;min-width:0;overflow:hidden;font-size:24px;letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap}.metric-card small{color:var(--muted)}.metric-card:after{content:"";position:absolute;width:76px;height:76px;right:-28px;top:-28px;border-radius:50%;background:var(--brand-50)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:16px}.span-2{grid-column:1/-1}
.segmented{display:flex;padding:3px;border-radius:8px;background:#f1f5f9}.segmented button{padding:5px 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;font-weight:750}.segmented button.on{color:var(--ink);background:#fff;box-shadow:var(--shadow-sm)}
.chart{position:relative;display:flex;align-items:flex-end;gap:7px;height:210px;padding:24px 4px 25px;border-bottom:1px solid var(--line)}.chart.single{justify-content:center}.chart.single .chart-bar{flex:0 0 42px}.chart-bar{position:relative;flex:1;min-width:8px;max-width:42px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#60a5fa,var(--brand-600));transition:height .2s ease}.chart-bar:hover{filter:brightness(.95)}.chart-bar span{position:absolute;bottom:-23px;left:50%;transform:translateX(-50%);color:var(--muted);font-size:9px;white-space:nowrap}.chart-bar i{position:absolute;top:-21px;left:50%;transform:translateX(-50%);font-style:normal;font-size:9px;font-weight:800;white-space:nowrap}
.store-rank{display:grid;gap:14px}.rank-row{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px}.rank-code{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--brand-50);color:var(--brand-700);font-size:10px;font-weight:900}.rank-row b,.rank-row small{display:block}.rank-row b{font-size:12px}.rank-row small{color:var(--muted);font-size:11px}.rank-row .money{font-size:12px}
.summary-order-link{padding:0;border:0;background:transparent;text-align:left}.summary-order-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}.summary-customer{min-width:0;margin:11px 0;padding:10px;border-radius:9px;background:#f8fafc}.summary-customer b,.summary-customer small,.summary-customer span{display:block}.summary-customer b{font-size:13px}.summary-customer small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.45;overflow-wrap:anywhere}.summary-product b,.summary-product small{display:block}.summary-product b{display:-webkit-box;overflow:hidden;font-size:11px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.summary-product small{margin-top:3px;color:var(--muted);font-size:10px}.summary-order-foot{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid #edf0f4}.summary-order-foot>div{min-width:0}.summary-order-foot span,.summary-order-foot small{display:block;overflow-wrap:anywhere}.summary-order-foot span{font-size:10.5px;font-weight:750}.summary-order-foot small{margin-top:3px;color:var(--brand-600);font-size:10px;font-weight:750}.summary-order-card:has(.summary-order-open[data-summary-order]):hover{border-color:#bfdbfe;box-shadow:0 6px 16px rgba(37,99,235,.08)}

/* Lists and tables */
.table-wrap{width:100%;overflow:auto}.data-table,table{width:100%;border-collapse:collapse}.data-table th,.data-table td,table th,table td{padding:13px 12px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:top}.data-table th,table th{color:var(--muted);font-size:10.5px;text-transform:uppercase;letter-spacing:.055em;font-weight:800;white-space:nowrap}.data-table tr:last-child td,table tr:last-child td{border-bottom:0}.data-table tbody tr:hover td,table tbody tr:hover td{background:#fbfcfe}.cell-title{display:block;color:var(--ink);font-weight:750;text-decoration:none}.cell-title:hover{color:var(--brand-600)}.cell-sub{display:block;margin-top:3px;color:var(--muted);font-size:11.5px;line-height:1.45}.order-id{color:var(--brand-600);font-weight:800;text-decoration:none;white-space:nowrap}
.order-link{padding:0;border:0;background:transparent;text-align:left}.cell-title svg{width:13px;height:13px;vertical-align:-2px}
.order-lp-link{display:inline-flex;align-items:center;gap:4px;width:max-content;margin-top:5px;color:var(--brand-600);font-size:10px;font-weight:800;text-decoration:none}.order-lp-link svg{flex:none;width:12px;height:12px}.order-lp-link:hover{text-decoration:underline}.order-lp-link:focus-visible{outline:2px solid #93c5fd;outline-offset:2px;border-radius:3px}.order-card-product .order-lp-link{margin-top:7px}
.mobile-list{display:none}.sales-overview{padding:0;margin-bottom:16px;overflow:hidden}.sales-range-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border-bottom:1px solid var(--line)}.sales-range-copy{flex:0 0 auto}.sales-range-copy span,.sales-range-copy strong{display:block}.sales-range-copy span{color:var(--muted);font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.055em}.sales-range-copy strong{margin-top:3px;font-size:13px}.quick-ranges{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.quick-ranges::-webkit-scrollbar{display:none}.quick-ranges button{flex:0 0 auto;min-height:34px;padding:7px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;white-space:nowrap}.quick-ranges button:hover{color:var(--brand-700);background:var(--brand-50)}.quick-ranges button.on{border-color:#bfdbfe;color:var(--brand-700);background:var(--brand-50);box-shadow:inset 0 0 0 1px rgba(37,99,235,.04)}.sales-chart-panel{padding:17px 18px 18px}.sales-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.sales-chart-head h3{margin:0;font-size:14px}.sales-chart-head p{margin:3px 0 0;color:var(--muted);font-size:10.5px}.sales-chart-actions{display:flex;align-items:center;gap:12px}.sales-chart-actions>strong{font-size:17px;white-space:nowrap}.sales-chart{position:relative;min-height:220px;overflow-x:auto;scrollbar-width:thin}.sales-chart-grid{--bar-count:1;display:grid;grid-template-columns:repeat(var(--bar-count),minmax(25px,1fr));align-items:end;gap:7px;min-width:max(100%,calc(var(--bar-count) * 32px));height:220px;padding:28px 4px 0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),#edf1f5 calc(25% - 1px),#edf1f5 25%)}.sales-chart-bar{display:grid;grid-template-rows:minmax(0,1fr) 23px;align-items:end;height:100%;min-width:0}.sales-bar-plot{position:relative;display:flex;align-items:flex-end;justify-content:center;height:100%;border-bottom:1px solid #dbe2ea}.sales-bar-fill{width:min(22px,72%);min-height:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#60a5fa,var(--brand-600));box-shadow:0 5px 12px rgba(37,99,235,.16);transition:height .18s ease,filter .15s ease}.sales-chart-bar:hover .sales-bar-fill{filter:brightness(.92)}.sales-bar-value{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:850;white-space:nowrap}.sales-bar-label{align-self:end;padding-top:6px;color:var(--muted);text-align:center;font-size:9px;white-space:nowrap}.sales-chart-empty{display:grid;place-items:center;min-height:210px;border:1px dashed #dbe2ea;border-radius:11px;background:#fbfcfe;text-align:center}.sales-chart-empty b,.sales-chart-empty span{display:block}.sales-chart-empty b{font-size:13px}.sales-chart-empty span{margin-top:4px;color:var(--muted);font-size:11px}.orders-surface{padding:0}.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.result-count{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.result-count strong{font-size:17px}.result-count span{color:var(--muted);font-size:12px}.closing-only-toggle{display:inline-flex;align-items:center;gap:5px;min-height:28px;margin-left:5px;padding:5px 9px;border:1px solid #bbf7d0;border-radius:999px;color:#047857;background:#ecfdf5;font-size:10px;font-weight:850;white-space:nowrap;transition:.15s}.closing-only-toggle:hover{border-color:#6ee7b7;background:#d1fae5}.closing-only-toggle.on{border-color:#059669;color:#fff;background:#059669;box-shadow:0 4px 12px rgba(5,150,105,.2)}.closing-only-toggle svg{width:12px;height:12px}.closing-only-toggle:focus-visible{outline:3px solid rgba(16,185,129,.2);outline-offset:2px}.toolbar-actions{display:flex;align-items:center;gap:8px}
.order-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px 18px;border-bottom:1px solid var(--line);background:#f8fafc}.order-stat{min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}.order-stat span{display:block;color:var(--muted);font-size:10px;font-weight:700}.order-stat b{display:block;margin-top:3px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-stat.paid b{color:var(--success)}.order-stat.pending b{color:var(--warning)}
.aov-insights{padding:15px 18px 17px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfdff)}.aov-insights-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:11px}.aov-insights-head h3{margin:0;font-size:13px}.aov-insights-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.aov-insights-head>span{flex:0 0 auto;padding:5px 8px;border:1px solid #dbeafe;border-radius:999px;color:#1d4ed8;background:#eff6ff;font-size:9px;font-weight:800}.aov-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.aov-card{position:relative;min-width:0;padding:12px 13px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03)}.aov-card::before{position:absolute;inset:0 auto 0 0;width:3px;border-radius:11px 0 0 11px;background:#94a3b8;content:""}.aov-card-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.aov-card-label span{overflow:hidden;color:var(--muted);font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.aov-card-label i{flex:0 0 auto;width:8px;height:8px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px #f1f5f9}.aov-card strong{display:block;margin-top:8px;color:var(--ink);font-size:19px;letter-spacing:-.025em;white-space:nowrap}.aov-card small{display:block;min-height:14px;margin-top:4px;overflow:hidden;color:var(--muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.aov-card.pending::before,.aov-card.pending .aov-card-label i{background:#f59e0b}.aov-card.pending .aov-card-label i{box-shadow:0 0 0 4px #fffbeb}.aov-card.paid::before,.aov-card.paid .aov-card-label i{background:#10b981}.aov-card.paid .aov-card-label i,.aov-card.bump .aov-card-label i{box-shadow:0 0 0 4px #ecfdf5}.aov-card.paid strong,.aov-card.bump strong{color:#047857}.aov-card.bump::before,.aov-card.bump .aov-card-label i{background:#059669}.aov-card.base::before,.aov-card.base .aov-card-label i{background:#3b82f6}.aov-card.base .aov-card-label i{box-shadow:0 0 0 4px #eff6ff}
@media(max-width:960px){.aov-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.aov-insights{padding:13px 12px 14px}.aov-insights-head{display:block;margin-bottom:10px}.aov-insights-head>span{display:inline-block;margin-top:8px}.aov-card-grid{gap:8px}.aov-card{padding:11px 10px 10px}.aov-card-label{align-items:flex-start}.aov-card-label span{min-height:25px;overflow:visible;text-overflow:clip;white-space:normal}.aov-card strong{font-size:16px}.aov-card small{min-height:28px;overflow:visible;line-height:1.35;text-overflow:clip;white-space:normal}}
.closing-insights{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,2fr);gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fff}.closing-today-card,.closing-method-card{min-width:0;border-radius:12px}.closing-today-card{padding:15px 16px;color:#fff;background:linear-gradient(135deg,#123b66,#1d5f91);box-shadow:0 8px 20px rgba(15,67,109,.14)}.closing-card-head,.closing-method-head,.closing-method-name{display:flex;align-items:center;justify-content:space-between;gap:10px}.closing-card-head>span:first-child{font-size:11px;font-weight:800;letter-spacing:.015em}.dedupe-pill,.unique-buyer-note{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap}.dedupe-pill{color:#dff4ff;background:rgba(255,255,255,.14)}.closing-rate-value{display:block;margin-top:12px;font-size:32px;line-height:1;letter-spacing:-.04em}.closing-today-card p{margin:9px 0 3px;color:#fff;font-size:11px;font-weight:750}.closing-today-card small{color:#c7e0f3;font-size:9.5px}.closing-method-card{padding:13px 14px;border:1px solid var(--line);background:#f8fafc}.closing-method-head{align-items:flex-start;margin-bottom:10px}.closing-method-head h3{margin:0;font-size:13px}.closing-method-head p{margin:3px 0 0;color:var(--muted);font-size:9.5px}.unique-buyer-note{color:#1e40af;background:#e8f1ff}.closing-method-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px}.closing-method-item{min-width:0;padding:9px 10px;border:1px solid #e3e9f0;border-radius:9px;background:#fff}.closing-method-name span{min-width:0;overflow:hidden;color:var(--ink);font-size:10.5px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.closing-method-name b{color:var(--brand-700);font-size:13px;white-space:nowrap}.closing-progress{height:5px;margin:8px 0 6px;overflow:hidden;border-radius:99px;background:#e6edf5}.closing-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#22a06b)}.closing-method-item small{display:block;color:var(--muted);font-size:9.5px}.closing-method-empty{grid-column:1/-1;padding:15px;border:1px dashed #cbd5e1;border-radius:9px;color:var(--muted);background:#fff;text-align:center;font-size:10.5px}
.search-box{display:flex;align-items:center;min-width:340px;height:40px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;overflow:hidden}.search-box:focus-within{border-color:var(--brand-500);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.search-box>svg{flex:0 0 auto;width:17px;margin-left:10px;color:var(--muted)}.search-box select{width:88px;height:100%;padding:0 6px;border:0;border-right:1px solid var(--line);background:#f8fafc;font-size:11px;outline:0}.search-box input{min-width:0;flex:1;height:100%;padding:0 10px;border:0;outline:0;background:transparent}.search-box.simple{min-width:260px}.search-box.simple input{width:100%}.search-box.simple svg{margin-left:10px}
.filter-panel{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto;align-items:end;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);background:#f8fafc}.filter-panel label>span{margin-bottom:4px}.filter-panel input,.filter-panel select{height:38px}.filter-actions{display:flex;gap:6px}.active-filters{display:flex;flex-wrap:wrap;gap:7px;padding:11px 18px;border-bottom:1px solid var(--line)}.filter-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:99px;color:#1e40af;background:var(--brand-50);font-size:11px;font-weight:700}.filter-chip button{display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit}.filter-chip svg{width:12px;height:12px}
.active-filters{align-items:center}.account-filter-shell{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.account-filter-caption{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:1px 5px;flex:0 0 116px;min-width:0}.account-filter-caption>span{font-size:10px;font-weight:850;text-transform:uppercase}.account-filter-caption>small{overflow:hidden;color:var(--muted);font-size:8px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.account-refresh-button{grid-column:2;grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #bfdbfe;border-radius:8px;color:#1d4ed8;background:#eff6ff}.account-refresh-button:hover{border-color:#60a5fa;background:#dbeafe}.account-refresh-button:disabled{cursor:wait;opacity:.65}.account-refresh-button svg{width:14px}.account-refresh-button.is-loading svg{animation:spin .8s linear infinite}.account-filter-group{display:flex;align-items:stretch;gap:6px;min-width:0;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.account-filter-group::-webkit-scrollbar{display:none}.account-filter-card{display:grid;grid-template-rows:auto auto auto;gap:3px;flex:0 0 132px;min-width:132px;min-height:68px;padding:7px 8px;border:1px solid #dbe2ea;border-radius:8px;background:#fff;color:var(--ink);text-align:left}.account-filter-card:hover{border-color:#93c5fd;background:#f8fbff}.account-filter-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.account-filter-card-head strong{font-size:11px}.account-filter-card-head>b{min-width:20px;padding:1px 5px;border-radius:7px;color:#1e40af;background:#eaf2ff;font-size:9px;text-align:center}.account-filter-card>small{overflow:hidden;color:var(--muted);font-size:8px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.account-filter-metrics{display:grid;grid-template-columns:1fr 1fr;gap:4px}.account-filter-metrics i{overflow:hidden;color:#64748b;font-size:7.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.account-filter-metrics b{display:block;color:var(--ink);font-size:8.5px}.account-filter-card.on{border-color:#2563eb;background:#eff6ff;box-shadow:inset 0 0 0 1px #2563eb}.account-filter-card.on strong,.account-filter-card.on>small,.account-filter-card.on .account-filter-metrics b{color:#1d4ed8}.account-filter-empty{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:9px;white-space:nowrap}
.account-filter-card{grid-template-rows:auto auto auto auto}.account-filter-aov{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding-top:3px;border-top:1px solid #e5eaf0;color:#64748b;font-size:7.5px}.account-filter-aov b{overflow:hidden;color:var(--ink);font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.account-filter-card.on .account-filter-aov b{color:#1d4ed8}
.new-order-banner{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px;border:0;border-bottom:1px solid #bfdbfe;color:#1d4ed8;background:#eff6ff;font-size:12px}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#3b82f6;box-shadow:0 0 0 0 rgba(59,130,246,.5);animation:pulse 1.6s infinite}
.order-table-wrap{max-height:calc(100vh - 270px)}.order-table-wrap thead{position:sticky;top:0;z-index:3;background:#fff}.order-table-wrap th:first-child,.order-table-wrap td:first-child{position:sticky;left:0;z-index:2;background:#fff}.order-table-wrap tbody tr:hover td:first-child{background:#fbfcfe}
.row-actions{position:relative;text-align:right}.more-btn{display:grid;place-items:center;width:32px;height:32px;margin-left:auto;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted)}.more-btn:hover{background:#f1f5f9}.more-btn svg{width:19px}.row-menu{position:absolute;right:10px;top:40px;z-index:20;width:224px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-md)}.row-menu a,.row-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left;text-decoration:none;font-size:12px}.row-menu a:hover,.row-menu button:hover{background:#f8fafc}.row-menu svg{width:16px}
.load-more{display:block;width:calc(100% - 36px);margin:12px 18px 18px;padding:10px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8fafc;color:var(--text);font-weight:700}.load-more:hover{border-color:var(--brand-500);color:var(--brand-600)}
.list-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:16px}.list-toolbar>select,.list-toolbar>input{width:auto;min-width:140px;height:40px}.list-toolbar .search-box input{border:0;box-shadow:none}
.page-account-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.page-account-badge{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border:1px solid #a7f3d0;border-radius:99px;color:#047857;background:#ecfdf5;font-size:9px;font-weight:850;line-height:1}.page-account-empty{color:#94a3b8;font-size:9px;font-style:italic}
.popover-wrap{position:relative}.popover{position:absolute;right:0;top:46px;z-index:30;width:205px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:var(--shadow-md)}.popover label{display:flex;align-items:center;gap:8px;padding:7px;border-radius:7px;font-size:12px}.popover label:hover{background:#f8fafc}.popover input{accent-color:var(--brand-600)}

/* Store and team */
.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.store-card{padding:18px;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;box-shadow:var(--shadow-sm)}.store-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.store-logo{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:var(--brand-700);background:var(--brand-50);font-weight:900}.store-card h3{margin:12px 0 2px;font-size:16px}.store-card>a{display:inline-flex;align-items:center;gap:4px;font-size:12px;text-decoration:none}.store-card>a svg{width:13px}.store-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.store-stats div{padding:10px;border-radius:9px;background:#f8fafc}.store-stats span,.store-stats b{display:block}.store-stats span{color:var(--muted);font-size:10px}.store-stats b{margin-top:2px;font-size:13px}.store-meta{min-height:42px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.permission-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin:8px 0 18px}.permission-grid fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}.permission-grid legend{padding:0 5px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.permission-grid label{display:flex;align-items:center;gap:8px;margin:7px 0;font-size:12px}.permission-grid input{accent-color:var(--brand-600)}.permission-grid p{margin:0 0 7px;color:var(--muted);font-size:10px}

/* Activity and system */
.timeline{position:relative;display:grid;gap:0}.timeline-item{position:relative;display:grid;grid-template-columns:36px 1fr auto;gap:12px;padding:13px 0}.timeline-item:not(:last-child):after{content:"";position:absolute;left:17px;top:44px;bottom:-4px;width:1px;background:var(--line)}.timeline-icon{z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--brand-600);background:var(--brand-50)}.timeline-icon svg{width:17px}.timeline-item b,.timeline-item small{display:block}.timeline-item p{margin:2px 0 0;color:var(--muted);font-size:11px;word-break:break-word}.timeline-item time{color:var(--muted);font-size:11px;white-space:nowrap}
.system-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.status-list{display:grid;gap:9px}.status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border-radius:9px;background:#f8fafc}.status-row>span{display:flex;align-items:center;gap:9px}.status-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.status-dot.ok{background:#22c55e}.status-dot.warn{background:#f59e0b}.status-dot.bad{background:#ef4444}.status-row b{font-size:12px}.status-row small{color:var(--muted)}
.flow-list{display:grid;gap:14px;margin:0;padding:0;list-style:none}.flow-list li{display:grid;grid-template-columns:30px 1fr;gap:10px}.flow-list li>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--brand-700);background:var(--brand-50);font-size:11px;font-weight:900}.flow-list b{font-size:12px}.flow-list p{margin:2px 0 0;color:var(--muted);font-size:11px}.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.guide-grid div{padding:13px;border-radius:10px;background:#f8fafc}.guide-grid b{font-size:12px}.guide-grid p{margin:4px 0 0;color:var(--muted);font-size:11px}

/* Dialogs */
dialog{padding:0;border:0;color:var(--ink);background:#fff}dialog::backdrop{background:rgba(2,6,23,.56);backdrop-filter:blur(2px)}
.modal-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border-radius:18px;box-shadow:0 24px 80px rgba(2,6,23,.3)}.modal-dialog.wide{width:min(720px,calc(100vw - 28px))}.modal-dialog.compact{width:min(420px,calc(100vw - 28px))}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.dialog-head h2{margin:0;font-size:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.form-section{padding:14px 0;border-top:1px solid var(--line)}.form-section:first-of-type{padding-top:0;border-top:0}.form-section h3{margin:0 0 12px;font-size:13px}
.stepper{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:0 0 20px;color:var(--muted);font-size:11px;font-weight:800}.stepper i{height:1px;background:var(--line)}.stepper span.on{color:var(--brand-600)}
.selection-card,.order-preview{margin-bottom:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.selection-card:empty{display:none}.selection-card b,.selection-card span{display:block}.selection-card span{margin-top:2px;color:var(--muted);font-size:11px}.preview-row{display:flex;justify-content:space-between;gap:16px;padding:5px 0;font-size:12px}.preview-row.total{margin-top:5px;padding-top:10px;border-top:1px solid var(--line);font-weight:850}
.success-state{text-align:center;padding:18px 4px}.success-state>.success-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:50%;color:var(--success);background:var(--success-bg)}.success-state>.success-icon svg{width:26px;height:26px}.success-state h3{margin:0 0 5px}.success-state p{margin:0 0 14px;color:var(--muted)}.success-link{padding:10px;border-radius:9px;background:#f8fafc;word-break:break-all;font-size:11px}
.confirm-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:13px;border-radius:12px;color:var(--danger);background:var(--danger-bg)}.confirm-icon svg{width:21px}.modal-dialog#confirm-dialog h2{margin:0 0 7px}.modal-dialog#confirm-dialog p{margin:0;color:var(--muted)}
.bottom-sheet{position:fixed;inset:auto 0 0;width:100%;max-height:80dvh;margin:0;padding:12px 18px max(24px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.sheet-handle{width:40px;height:4px;margin:0 auto 16px;border-radius:99px;background:#cbd5e1}.more-menu{display:grid;gap:5px}.more-menu button{display:grid;grid-template-columns:24px 1fr 18px;align-items:center;gap:10px;width:100%;padding:12px;border:0;border-radius:10px;background:#f8fafc;text-align:left}.more-menu button svg:last-child{width:15px}
.drawer-dialog{position:fixed;inset:0 0 0 auto;width:min(600px,100vw);max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0;background:#f6f8fc;box-shadow:-16px 0 46px rgba(2,6,23,.18)}.drawer-shell{min-height:100%;padding-bottom:28px}.drawer-head{position:sticky;top:0;z-index:5;padding:18px 20px 14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}.drawer-head-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.drawer-head h2{margin:0;font-size:19px}.drawer-head p{margin:3px 0 0;color:var(--muted);font-size:11px}.drawer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.drawer-tabs{position:sticky;top:95px;z-index:4;display:flex;gap:4px;padding:9px 20px;border-bottom:1px solid var(--line);background:#fff;overflow:auto;scrollbar-width:none}.drawer-tabs::-webkit-scrollbar{display:none}.drawer-tabs button{flex:0 0 auto;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;font-weight:800}.drawer-tabs button.on{color:var(--brand-700);background:var(--brand-50)}
.drawer-content{padding:14px}.drawer-panel{display:grid;gap:12px}.detail-card{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff}.detail-card h3{margin:0 0 12px;font-size:13px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-field label{display:block;margin-bottom:2px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}.detail-field div{font-size:12px;font-weight:650;word-break:break-word}.copy-btn{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:3px;padding:0;border:0;border-radius:6px;background:#f1f5f9;color:var(--muted);vertical-align:middle}.copy-btn svg{width:13px}.line-item{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #f1f5f9;font-size:12px}.line-item:last-child{border-bottom:0}.line-item.total{margin-top:5px;padding-top:11px;border-top:1px solid var(--line);font-weight:850}.net-box{display:flex;justify-content:space-between;margin-top:8px;padding:10px;border-radius:9px;color:var(--success);background:#f0fdf4;font-weight:850}
.history-list{display:grid;gap:8px}.history-item{position:relative;padding:10px 11px 10px 35px;border-radius:9px;background:#f8fafc}.history-item:before{content:"";position:absolute;left:14px;top:15px;width:8px;height:8px;border-radius:50%;background:#94a3b8}.history-item.ok:before{background:#22c55e}.history-item.warn:before{background:#f59e0b}.history-item b,.history-item small{display:block}.history-item b{font-size:11px}.history-item small{margin-top:2px;color:var(--muted);font-size:10px;word-break:break-word}

.sales-funnel-total{display:inline-flex;align-items:center;gap:10px}.sales-funnel-total span{display:inline-flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}.sales-funnel-total i{width:8px;height:8px;border-radius:2px}.sales-funnel-total .ic{background:#2563eb}.sales-funnel-total .purchase{background:var(--brand-700)}.sales-funnel-pair{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;height:100%}.sales-funnel-pair .sales-bar-fill{width:min(15px,38%)}.sales-bar-fill.sales-bar-ic{background:linear-gradient(180deg,#93c5fd,#2563eb);box-shadow:0 5px 12px rgba(37,99,235,.16)}.sales-bar-fill.sales-bar-purchase{background:linear-gradient(180deg,#64d1aa,var(--brand-700));box-shadow:0 5px 12px rgba(13,138,101,.14)}@media(max-width:560px){.sales-funnel-total{gap:7px}.sales-funnel-total span{font-size:10.5px}.sales-chart-actions{align-items:flex-start;flex-wrap:wrap}.sales-chart-actions .segmented{margin-left:auto}}

/* Toast and mobile */
.toast-region{position:fixed;right:20px;bottom:20px;z-index:1200;display:grid;gap:8px;width:min(360px,calc(100vw - 32px))}.toast{display:grid;grid-template-columns:22px 1fr auto;align-items:start;gap:9px;padding:12px;border:1px solid #273449;border-radius:11px;color:#fff;background:#111827;box-shadow:var(--shadow-md);animation:toast-in .2s ease}.toast svg{width:18px}.toast p{margin:0;font-size:12px}.toast button{padding:0;border:0;background:transparent;color:#94a3b8}.toast.error{border-color:#7f1d1d;background:#450a0a}
.mobile-nav{display:none}

/* Follow-up CS */
.followup-workspace{padding:0;overflow:hidden}.followup-safety{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #bbf7d0;background:#f0fdf4}.followup-safety-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#047857;background:#d1fae5;font-size:18px;font-weight:900}.followup-safety b,.followup-safety p{display:block;margin:0}.followup-safety b{font-size:13px}.followup-safety p{margin-top:2px;color:#47635a;font-size:11px}.followup-dedupe{color:#047857;background:#d1fae5}.followup-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:13px 18px;border-bottom:1px solid var(--line);background:#f8fafc}.followup-stats>.skeleton{height:92px}.followup-stat{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.followup-stat span,.followup-stat small{display:block}.followup-stat span{color:var(--muted);font-size:10px;font-weight:750}.followup-stat b{display:block;margin:2px 0;font-size:21px;letter-spacing:-.03em}.followup-stat small{color:var(--muted);font-size:9.5px}.followup-stat.urgent{border-color:#fed7aa;background:#fff7ed}.followup-stat.urgent b{color:#c2410c}.followup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 18px;border-bottom:1px solid var(--line)}.followup-toolbar .search-box{width:min(520px,100%)}.followup-list{display:grid}.followup-item{display:grid;grid-template-columns:minmax(170px,1fr) minmax(280px,1.65fr) minmax(135px,.72fr) minmax(205px,.9fr);align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid #edf0f4}.followup-item:last-child{border-bottom:0}.followup-item:hover{background:#fbfcfe}.followup-person{display:flex;align-items:center;gap:10px;min-width:0}.followup-avatar{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#1d4ed8;background:#dbeafe;font-weight:900}.followup-person b,.followup-person a{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.followup-person b{font-size:12px}.followup-person a{margin-top:2px;color:var(--muted);font-size:10.5px;text-decoration:none}.followup-order{min-width:0}.followup-order>b,.followup-order>small{display:block}.followup-order>b{margin:6px 0 2px;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.followup-order>small,.followup-meta small,.followup-action small{color:var(--muted);font-size:9.5px}.followup-stage{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:9px;font-weight:850}.followup-stage.new{color:#1d4ed8;background:#dbeafe}.followup-stage.warm{color:#a16207;background:#fef3c7}.followup-stage.urgent{color:#b91c1c;background:#fee2e2}.followup-meta span,.followup-meta b,.followup-meta small{display:block}.followup-meta span{font-size:10px;font-weight:750}.followup-meta b{margin:2px 0;font-size:13px}.followup-action{display:grid;gap:6px}.followup-action .btn{width:100%;min-height:37px;font-size:11px}.btn-whatsapp{color:#fff;background:#128c4a;border-color:#128c4a;box-shadow:0 4px 12px rgba(18,140,74,.18)}.btn-whatsapp:hover{background:#0e793f}.proof-summary{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin-bottom:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.proof-summary span,.proof-summary b{font-size:12px}.proof-summary small{grid-column:1/-1;color:var(--muted);font-size:10px}.proof-preview{display:grid;place-items:center;margin:12px 0;padding:10px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc}.proof-preview img{max-width:100%;max-height:230px;border-radius:8px}.proof-preview p{margin:8px 0 0;color:var(--muted);font-size:10px;text-align:center}.proof-file-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:12px;color:#b91c1c;background:#fee2e2;font-size:13px;font-weight:900}.payment-confirm{margin-top:14px;border-color:#bfdbfe;background:#eff6ff}.support-assignment{margin-top:2px}
.followup-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 18px;border-bottom:1px solid #bbf7d0;background:#f0fdf4}.followup-summary>.skeleton{width:100%;height:58px}.followup-summary-main{display:flex;align-items:center;gap:11px;min-width:0}.followup-summary-main b,.followup-summary-main p{display:block;margin:0}.followup-summary-main b{font-size:13px}.followup-summary-main p{margin-top:2px;color:#47635a;font-size:10.5px}.followup-summary-note{display:flex;align-items:center;gap:9px;color:#47635a}.followup-summary-note small{font-size:9.5px}.followup-day-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 18px;border-bottom:1px solid var(--line);background:#fff}.followup-day-bar .quick-ranges{flex:1}.followup-day-bar .quick-ranges button{display:inline-flex;align-items:center;gap:6px}.followup-day-bar .quick-ranges button span{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:#e2e8f0;color:#475569;font-size:9px}.followup-day-bar .quick-ranges button.on span{background:#bfdbfe;color:#1d4ed8}.followup-item{grid-template-columns:minmax(220px,.9fr) minmax(300px,1.55fr) minmax(230px,.8fr);align-items:center;gap:18px;padding:15px 18px}.followup-customer{min-width:0}.followup-when{display:flex;align-items:center;gap:7px;margin-top:8px}.followup-when time{overflow:hidden;color:var(--muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.followup-order>b{margin:0 0 3px}.followup-facts{display:flex;align-items:center;gap:6px;margin-top:8px}.followup-facts span,.followup-facts strong{display:inline-flex;padding:5px 8px;border-radius:7px;background:#f1f5f9;font-size:9.5px}.followup-facts strong{color:var(--success);background:#ecfdf5}.followup-action{grid-template-columns:1fr 1fr}.followup-action .btn{min-height:40px;padding:0 10px}.followup-action .btn svg{flex:0 0 auto}

/* Smart LP statistics */
.privacy-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #bbf7d0;border-radius:99px;color:#047857;background:#f0fdf4;font-size:10px;font-weight:850;white-space:nowrap}.privacy-chip svg{width:14px;height:14px}
.smart-stats-controls{margin-bottom:14px;padding:0;overflow:hidden}.smart-stats-controls .sales-range-head{border-bottom:1px solid var(--line)}
.analytics-filter-row{display:grid;grid-template-columns:minmax(230px,1.5fr) minmax(150px,.8fr) minmax(180px,1fr) auto;align-items:end;gap:10px;padding:14px 16px}.analytics-filter-row label,.analytics-custom-range label{min-width:0}.analytics-filter-row label>span,.analytics-custom-range label>span{display:block;margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:800}.analytics-filter-row select,.analytics-custom-range input{width:100%;height:40px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#fff}.analytics-custom-range{grid-template-columns:1fr 1fr auto;padding:13px 16px;background:#f8fafc}
.analytics-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.analytics-kpi{min-width:0;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}.analytics-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.analytics-kpi-top span{overflow:hidden;color:var(--muted);font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.analytics-kpi-top i{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;color:#1d4ed8;background:#eff6ff;font-style:normal}.analytics-kpi-top svg{width:13px;height:13px}.analytics-kpi strong{display:block;margin:8px 0 1px;font-size:22px;letter-spacing:-.04em}.analytics-kpi small{display:block;color:var(--muted);font-size:9.5px}.analytics-kpi.warn strong{color:#c2410c}.analytics-kpi.good strong{color:#047857}
.analytics-insight-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.8fr);gap:12px;margin-bottom:12px}.analytics-insight-card{position:relative;overflow:hidden;color:#fff;border-color:#1d4ed8;background:linear-gradient(135deg,#174f86,#2563a8)}.analytics-insight-card:after{content:"";position:absolute;right:-38px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.08)}.analytics-insight-kicker{display:flex;align-items:center;gap:7px;margin:0 0 7px;color:#bfdbfe;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.analytics-insight-kicker svg{width:15px}.analytics-insight-card h3{position:relative;z-index:1;margin:0 0 6px;font-size:18px;line-height:1.35}.analytics-insight-card p{position:relative;z-index:1;max-width:760px;margin:0;color:#dbeafe;font-size:11px}.analytics-insight-card small{position:relative;z-index:1;display:block;margin-top:12px;color:#bfdbfe;font-size:9.5px}
.analytics-performance-card h3,.analytics-performance-card p{margin:0}.analytics-performance-card>p{margin-top:3px;color:var(--muted);font-size:10px}.analytics-performance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}.rum-metric{padding:9px;border-radius:9px;background:#f8fafc}.rum-metric span,.rum-metric strong,.rum-metric small{display:block}.rum-metric span{color:var(--muted);font-size:8.5px;font-weight:850}.rum-metric strong{margin:2px 0;font-size:14px}.rum-metric small{color:var(--muted);font-size:8px}.rum-metric.good strong{color:#047857}.rum-metric.warn strong{color:#b45309}.rum-metric.bad strong{color:#b91c1c}
.analytics-journey-card{margin-bottom:12px}.analytics-journey{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.analytics-stage{position:relative;min-width:0;padding:11px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.analytics-stage span,.analytics-stage strong,.analytics-stage small{display:block}.analytics-stage span{overflow:hidden;color:var(--muted);font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.analytics-stage strong{margin:4px 0;font-size:18px}.analytics-stage small{color:var(--muted);font-size:8.5px}.analytics-stage-bar{height:4px;margin-top:8px;overflow:hidden;border-radius:99px;background:#e2e8f0}.analytics-stage-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#10b981)}
.analytics-two-col{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:12px;margin-bottom:12px}.analytics-trend{min-height:220px}.analytics-trend-bars{display:flex;align-items:stretch;gap:7px;height:210px;padding:16px 0 20px;border-bottom:1px solid var(--line);overflow-x:auto}.analytics-trend-day{position:relative;flex:1 0 30px;min-width:30px;display:flex;align-items:flex-end;justify-content:center;gap:2px}.analytics-trend-day i{width:8px;min-height:2px;border-radius:4px 4px 1px 1px;background:#93c5fd}.analytics-trend-day i.lead{background:#2563eb}.analytics-trend-day i.paid{background:#10b981}.analytics-trend-day span{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);color:var(--muted);font-size:8px;white-space:nowrap}.analytics-trend-legend{display:flex;gap:12px;margin-top:9px;color:var(--muted);font-size:9px}.analytics-trend-legend i{display:inline-block;width:8px;height:8px;margin-right:4px;border-radius:2px;background:#93c5fd}.analytics-trend-legend i.lead{background:#2563eb}.analytics-trend-legend i.paid{background:#10b981}
.analytics-bars{display:grid;gap:11px}.analytics-subhead{margin-top:5px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.analytics-bar-row{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:4px 12px}.analytics-bar-row b,.analytics-bar-row strong{font-size:10.5px}.analytics-bar-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-bar-row strong{color:var(--brand-700)}.analytics-bar-track{grid-column:1/-1;height:6px;overflow:hidden;border-radius:99px;background:#e2e8f0}.analytics-bar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#10b981)}.analytics-bar-row small{grid-column:1/-1;color:var(--muted);font-size:8.5px}
.analytics-section-card,.analytics-pages-card{margin-bottom:12px}.analytics-section-list{display:grid;gap:8px}.analytics-section-row{display:grid;grid-template-columns:54px minmax(130px,.65fr) minmax(180px,1.4fr) minmax(130px,.75fr);align-items:center;gap:13px;padding:9px;border:1px solid var(--line);border-radius:11px;background:#fff}.analytics-section-thumb{width:54px;height:46px;overflow:hidden;border-radius:8px;background:#f1f5f9}.analytics-section-thumb img{width:100%;height:100%;object-fit:cover;object-position:top}.analytics-section-name b,.analytics-section-name span{display:block}.analytics-section-name b{font-size:11px}.analytics-section-name span{color:var(--muted);font-size:9px}.analytics-section-reach{min-width:0}.analytics-section-reach>div{display:flex;justify-content:space-between;gap:8px;font-size:9.5px}.analytics-section-reach>div strong{color:var(--brand-700)}.analytics-section-track{height:7px;margin-top:6px;overflow:hidden;border-radius:99px;background:#e2e8f0}.analytics-section-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0ea5e9)}.analytics-section-drop{text-align:right}.analytics-section-drop b,.analytics-section-drop small{display:block}.analytics-section-drop b{font-size:11px}.analytics-section-drop small{color:var(--muted);font-size:8.5px}.analytics-section-drop.hot b{color:#c2410c}
.analytics-pages-card .mobile-list{padding:0}.analytics-footnote{margin:7px 3px 0;color:var(--muted);font-size:9.5px;text-align:center}

@media(max-width:1100px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.search-box{min-width:280px}.filter-panel{grid-template-columns:repeat(2,1fr)}
  .followup-item{grid-template-columns:minmax(210px,.85fr) minmax(280px,1.15fr)}.followup-action{grid-column:1/-1;grid-template-columns:1fr 1fr}.followup-meta{display:none}
}
@media(max-width:767px){
  :root{--topbar-h:64px}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .login-layer{padding:14px}.login-card{padding:26px 22px;border-radius:18px}.login-card .brand-mark{margin-bottom:18px}.login-card h1{font-size:23px}.login-mode-switch{grid-template-columns:1fr 1.35fr}
  .sidebar{display:none}.app-main{margin-left:0}.topbar{height:var(--topbar-h);padding:0 16px}.topbar h1{font-size:17px}.breadcrumb,.scope-pill{display:none}.top-avatar{display:grid}.notification-panel{position:fixed;top:calc(var(--topbar-h) + 7px);left:10px;right:10px;width:auto;max-height:calc(100dvh - var(--topbar-h) - 86px);border-radius:14px}.notification-list{max-height:calc(100dvh - var(--topbar-h) - 245px)}.notification-head{padding:14px}.notification-tools{align-items:stretch;flex-direction:column}.notification-filters{display:grid;grid-template-columns:repeat(3,1fr)}.notification-filters button{min-height:36px}.notification-sound{justify-content:center;min-height:36px;border:1px solid var(--line)}.notification-item{grid-template-columns:36px minmax(0,1fr);padding:12px}.notification-event-icon{width:36px;height:36px}.notification-meta{grid-column:2;display:flex;align-items:center;justify-content:space-between;text-align:left}.notification-meta strong{margin-top:0}.notification-copy b,.notification-copy span{white-space:normal}.topbar-actions{gap:7px}
  #main-content{padding:18px 14px 30px}.section-header,.page-intro{align-items:flex-start;margin-bottom:15px}.section-header h2,.page-intro h2{font-size:20px}.section-header p,.page-intro p{font-size:12px}.section-header>.btn{min-width:42px}.section-header>.btn svg{width:18px}
  .mobile-nav{position:fixed;z-index:45;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);height:calc(64px + env(safe-area-inset-bottom));padding:5px 5px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
  .mobile-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:9.5px;font-weight:750}.mobile-nav button svg{width:20px;height:20px}.mobile-nav button.on{color:var(--brand-600);background:var(--brand-50)}.mobile-nav i{position:absolute;top:6px;right:calc(50% - 16px);width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#3b82f6}
  .summary-range-bar{display:block;margin-bottom:11px;padding:12px}.summary-range-bar .sales-range-copy{margin-bottom:9px}.summary-range-bar .quick-ranges{justify-content:flex-start;margin:0 -12px;padding:0 12px}.quick-ranges button{min-height:44px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{padding:13px}.metric-card .metric-icon{width:30px;height:30px;margin-bottom:11px}.metric-card strong{overflow:visible;font-size:clamp(16px,5vw,19px);overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.metric-card p{font-size:10px}.metric-card small{display:block;font-size:10px;white-space:normal}
  .dashboard-grid,.system-grid{grid-template-columns:1fr;gap:12px}.span-2{grid-column:auto}.surface{padding:15px;border-radius:13px}.chart-card{overflow:hidden}.chart{height:180px;gap:4px;overflow-x:auto;justify-content:flex-start}.chart-bar{flex:0 0 20px}.guide-grid{grid-template-columns:1fr 1fr}
  .desktop-only,.table-wrap{display:none}.mobile-list{display:grid;gap:9px}.sales-overview{margin-bottom:12px;border-radius:13px}.sales-range-head{display:block;padding:13px 12px}.sales-range-copy{margin-bottom:9px}.quick-ranges{justify-content:flex-start;margin:0 -12px;padding:0 12px}.quick-ranges button{min-height:44px}.sales-chart-panel{padding:14px 12px}.sales-chart-head{align-items:flex-start;flex-direction:column;margin-bottom:5px}.sales-chart-actions{width:100%;justify-content:space-between}.sales-chart-actions>strong{font-size:15px}.sales-chart{min-height:195px}.sales-chart-grid{height:195px;min-width:max(100%,calc(var(--bar-count) * 34px));gap:6px;padding-top:25px}.sales-bar-value{display:none}.orders-surface{border-radius:13px}.orders-toolbar{display:block;padding:12px}.result-count{margin-bottom:10px}.toolbar-actions{display:grid;grid-template-columns:1fr 40px 40px;gap:7px}.toolbar-actions .search-box{grid-column:1/-1;min-width:0;width:100%}.icon-label{width:40px;padding:0}.icon-label span{display:none}.filter-panel{grid-template-columns:1fr 1fr;padding:12px}.filter-actions{grid-column:1/-1;justify-content:flex-end}.active-filters{display:block;padding:10px 12px;overflow:visible}.active-filters>.filter-chip{margin:0 6px 8px 0}.account-filter-shell{display:block;width:100%;min-width:0}.account-filter-caption{display:flex;align-items:center;width:100%;margin-bottom:7px}.account-filter-caption>span{flex:none}.account-filter-caption>small{flex:1;margin-left:8px;text-align:right}.account-refresh-button{grid-column:auto;grid-row:auto;flex:0 0 34px;width:34px;height:34px;margin-left:7px}.account-filter-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;overflow:visible;padding:0}.account-filter-card{width:100%;min-width:0;min-height:66px;padding:7px}.account-filter-card>small{font-size:7.5px}.account-filter-metrics{gap:3px}.account-filter-metrics i{font-size:7px}.account-filter-metrics b{font-size:8px}.account-filter-empty{grid-column:1/-1}
  .order-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px}.order-stat{padding:9px}.order-stat b{font-size:13px}
  .closing-insights{grid-template-columns:1fr;padding:11px 12px}.closing-today-card{padding:14px}.closing-rate-value{font-size:29px}.closing-method-head{display:block}.unique-buyer-note{margin-top:8px}.closing-method-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-table-wrap{display:none}.order-cards,.mobile-list{padding:0}.orders-surface>.mobile-list{padding:10px 12px}.order-card,.generic-card{padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff}.summary-order-card{padding:0;overflow:hidden}.summary-order-card .summary-order-open{min-height:44px;padding:13px}.order-card-head{display:flex;justify-content:space-between;gap:10px}.order-card-head .order-id{font-size:12px}.order-card-head time{display:block;margin-top:2px;color:var(--muted);font-size:10px}.order-card-customer{margin:11px 0;padding:9px;border-radius:8px;background:#f8fafc}.order-card-customer b,.order-card-customer small{display:block}.order-card-customer b{font-size:12px}.order-card-customer small{color:var(--muted);font-size:10px}.order-card-product{margin-bottom:11px;font-size:11px}.order-card-foot{display:flex;align-items:end;justify-content:space-between;gap:12px}.order-card-foot small,.order-card-foot strong{display:block}.order-card-foot small{color:var(--muted);font-size:10px}.order-card-foot strong{font-size:13px}.card-actions{display:flex;gap:5px}.card-actions .icon-btn{width:36px;height:36px}
  .list-toolbar{display:grid;grid-template-columns:1fr 1fr}.list-toolbar .search-box{grid-column:1/-1;width:100%;min-width:0}.list-toolbar>select,.list-toolbar>input{width:100%;min-width:0}.list-toolbar>.btn{grid-column:1/-1}
  .store-grid{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.modal-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:16px}.drawer-dialog{width:100vw}.drawer-tabs{top:92px;padding-left:14px;padding-right:14px}.drawer-content{padding:10px}.detail-grid{grid-template-columns:1fr}.dialog-actions .btn{flex:1}.toast-region{left:16px;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto}.timeline-item{grid-template-columns:34px 1fr}.timeline-item time{grid-column:2}.date-chip{display:none}
  .followup-safety{grid-template-columns:34px 1fr;padding:13px}.followup-safety-icon{width:34px;height:34px}.followup-dedupe{grid-column:2;width:max-content}.followup-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px}.followup-summary{display:block;padding:12px}.followup-summary-note{justify-content:space-between;margin-top:9px;padding-top:8px;border-top:1px solid #bbf7d0}.followup-summary-note .followup-dedupe{grid-column:auto}.followup-summary-note small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.followup-day-bar{display:block;padding:11px 12px}.followup-day-bar .sales-range-copy{margin-bottom:8px}.followup-day-bar .quick-ranges{justify-content:flex-start;margin:0 -12px;padding:0 12px}.followup-toolbar{display:block;padding:12px}.followup-toolbar .search-box{width:100%;min-width:0}.followup-toolbar>span{display:block;margin-top:7px}.followup-item{grid-template-columns:1fr;gap:12px;padding:14px 12px}.followup-customer{display:grid;gap:8px}.followup-when{justify-content:space-between;margin-top:0}.followup-when time{font-size:9.5px}.followup-meta{display:block}.followup-order>b{white-space:normal}.followup-facts{margin-top:7px}.followup-action{grid-column:auto;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.followup-action .btn{min-height:44px;padding:0 7px;font-size:10.5px}.followup-workspace{border-radius:13px}
}
@media(max-width:420px){
  .metric-grid{grid-template-columns:1fr 1fr}.metric-card strong{font-size:16px}.guide-grid{grid-template-columns:1fr}.filter-panel{grid-template-columns:1fr}.filter-actions{grid-column:auto}.surface-head{gap:8px}.segmented{flex:0 0 auto}.closing-method-list{grid-template-columns:1fr}.followup-summary-main p{font-size:9.5px}.followup-summary-note small{max-width:190px}
}
@media(max-width:359px){
  .account-filter-group{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .analytics-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-filter-row>.btn{grid-column:1/-1}.analytics-insight-grid,.analytics-two-col{grid-template-columns:1fr}.analytics-performance-card{min-width:0}
}
@media(max-width:767px){
  .smart-stats-header{display:block}.privacy-chip{margin-top:10px}.smart-stats-controls .sales-range-head{padding:13px 12px}.analytics-filter-row{grid-template-columns:1fr;padding:12px}.analytics-filter-row>.btn{grid-column:auto}.analytics-custom-range{grid-template-columns:1fr 1fr;padding:12px}.analytics-custom-range .filter-actions{grid-column:1/-1}.analytics-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.analytics-kpi{padding:12px}.analytics-kpi strong{font-size:19px}.analytics-insight-grid,.analytics-two-col{gap:10px}.analytics-insight-card h3{font-size:16px}.analytics-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-journey{display:flex;margin:0 -15px;padding:0 15px;overflow-x:auto;scroll-snap-type:x proximity}.analytics-stage{flex:0 0 126px;scroll-snap-align:start}.analytics-section-row{grid-template-columns:45px 1fr}.analytics-section-thumb{width:45px;height:43px}.analytics-section-reach,.analytics-section-drop{grid-column:2;text-align:left}.analytics-section-drop{display:flex;align-items:center;gap:6px}.analytics-section-drop small{display:inline}.analytics-trend{min-height:190px}.analytics-trend-bars{height:180px}.analytics-pages-card .mobile-list{display:grid}
}
@media(max-width:420px){
  .analytics-custom-range{grid-template-columns:1fr}.analytics-custom-range .filter-actions{grid-column:auto}.analytics-kpi-grid{grid-template-columns:1fr 1fr}.analytics-kpi-top span{white-space:normal}.analytics-journey-card .surface-head{display:block}.analytics-journey-card .unique-buyer-note{display:inline-flex}.analytics-section-card .surface-head{display:block}.analytics-section-card .text-btn{margin-top:8px}
}
.sv-sync-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:12px 16px}.sv-sync-strip>span:first-child{display:grid;grid-template-columns:10px auto;align-items:center;gap:3px 8px}.sv-sync-strip>span:first-child small{grid-column:2;color:var(--muted);font-size:10px}.sv-readonly{padding:6px 9px;border-radius:99px;color:#1d4ed8;background:#eff6ff;font-size:10px;font-weight:800;white-space:nowrap}.sv-metrics{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 18px 0}.sv-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.sv-source-card{padding:16px}.sv-source-card>div:first-child{display:flex;align-items:center;gap:8px}.sv-source-card h3{margin:0;font-size:13px}.sv-source-card>strong{display:block;margin:15px 0 2px;font-size:20px}.sv-source-card p{margin:0 0 12px;color:var(--muted);font-size:11px}.sv-source-card small{display:block;margin-top:7px;color:var(--muted);font-size:10px}.sv-source-empty{grid-column:1/-1;color:var(--muted);text-align:center}.sv-source-pill{display:inline-flex;align-items:center;width:max-content;padding:4px 7px;border-radius:6px;color:#075985;background:#e0f2fe;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.045em}.sv-source-pill.panel{color:#5b21b6;background:#ede9fe}.sv-filter-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.sv-filter-row .search-box{min-width:260px}.sv-filter-row select{min-width:155px;height:40px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-size:11px}.sv-basis-note{padding:10px 18px;border-bottom:1px solid var(--line);color:var(--muted);background:#fbfcfe;font-size:10px;line-height:1.55}
@media(max-width:1100px){.sv-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sv-filter-row{flex-wrap:wrap}.sv-filter-row .search-box{width:100%}}
@media(max-width:767px){.sv-sync-strip{align-items:flex-start;flex-direction:column;margin-bottom:11px;padding:12px}.sv-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.sv-source-grid{grid-template-columns:1fr;gap:9px;margin-bottom:12px}.sv-source-card{padding:13px}.sv-toolbar{display:block}.sv-filter-row{display:grid;grid-template-columns:1fr 1fr}.sv-filter-row .search-box{grid-column:1/-1;width:100%;min-width:0}.sv-filter-row select{width:100%;min-width:0;height:44px}.sv-basis-note{padding:10px 12px}.sv-readonly{white-space:normal}}
@media(max-width:420px){.sv-filter-row{grid-template-columns:1fr}.sv-filter-row .search-box{grid-column:auto}}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@keyframes fade-in{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes shimmer{to{transform:translateX(100%)}}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(59,130,246,0)}100%{box-shadow:0 0 0 0 rgba(59,130,246,0)}}
@keyframes toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Automatic eBook account origin in Penjualan */
.ebook-account-cell{display:flex;align-items:flex-start;flex-direction:column;gap:4px;min-width:84px}.ebook-account-cell small{color:var(--muted);font-size:8.5px;white-space:nowrap}.ebook-account-tag{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid #a7f3d0;border-radius:999px;color:#047857;background:#ecfdf5;font-size:10px;font-weight:900;letter-spacing:.025em}.ebook-account-empty{color:#94a3b8;font-weight:800}.order-card-account{margin-top:-2px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.order-card-account .ebook-account-cell{align-items:center;flex-direction:row;justify-content:space-between}.order-card-account .ebook-account-cell small{white-space:normal;text-align:right}
.capi-order-cell{display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-width:126px}.capi-event-pill{display:inline-grid;grid-template-columns:54px auto;align-items:center;gap:5px;width:100%;padding:4px 7px;border:1px solid #e2e8f0;border-radius:7px;color:#64748b;background:#f8fafc;font-size:8px;line-height:1.2;white-space:nowrap}.capi-event-pill b{color:inherit;font-size:8.5px}.capi-event-pill.sent{border-color:#a7f3d0;color:#047857;background:#ecfdf5}.capi-event-pill.sent span:before{content:"\2713 ";font-weight:900}.capi-event-pill.failed{border-color:#fecaca;color:#b91c1c;background:#fef2f2}.capi-event-pill.failed span:before{content:"! ";font-weight:900}.capi-event-pill.dedup,.capi-event-pill.waiting_payment,.capi-event-pill.not_applicable{border-color:#e2e8f0;color:#64748b;background:#f8fafc}.capi-event-pill.not_sent{border-color:#fde68a;color:#92400e;background:#fffbeb}.order-card-capi{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:9px 10px;border:1px solid #dbeafe;border-radius:9px;background:#f8fbff}.order-card-capi>span{flex:none;color:#475569;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}.order-card-capi .capi-order-cell{align-items:stretch;flex:1;min-width:0;max-width:190px}.order-card-capi .capi-event-pill{grid-template-columns:52px auto}

/* Global payment methods */
.payment-method-page{max-width:1280px;margin:0 auto}
.payment-method-alert{margin:-4px 0 14px;padding:11px 14px;border:1px solid #facc15;border-radius:11px;color:#854d0e;background:#fffbeb;font-size:12px;font-weight:650}
.payment-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.payment-summary-card{position:relative;overflow:hidden;padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}
.payment-summary-card:after{content:"";position:absolute;inset:0 0 auto;height:3px;background:#cbd5e1}
.payment-summary-card.accent:after{background:linear-gradient(90deg,var(--brand-500),var(--brand-700))}
.payment-summary-card.success:after{background:#22c55e}.payment-summary-card.warning:after{background:#f59e0b}
.payment-summary-card span,.payment-summary-card strong,.payment-summary-card small{display:block}
.payment-summary-card span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.payment-summary-card strong{margin:6px 0 2px;font-size:24px;letter-spacing:-.03em}
.payment-summary-card small{color:var(--muted);font-size:10.5px}
.payment-method-workspace{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(340px,.78fr);align-items:start;gap:16px}
.payment-method-config{padding:0;overflow:hidden}
.payment-method-config .surface-head{margin:0;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fbfdff,#fff)}
.payment-live-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:99px;color:#047857;background:#ecfdf5;font-size:9px;font-weight:850;white-space:nowrap}
.payment-live-pill i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}
.payment-method-list{min-height:180px}
.payment-method-row{display:grid;grid-template-columns:24px 46px minmax(0,1fr) 62px 42px;align-items:center;gap:11px;min-height:78px;padding:12px 17px;border-bottom:1px solid #edf1f5;transition:background .15s ease,opacity .15s ease}
.payment-method-row:last-child{border-bottom:0}.payment-method-row:hover{background:#fafcff}.payment-method-row.is-enabled{background:linear-gradient(90deg,var(--brand-50),#fff 54%)}
.payment-method-row.is-unavailable:not(.is-enabled){opacity:.62}
.payment-order-no{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:var(--muted);background:#f1f5f9;font-size:9px;font-weight:850}
.payment-method-logo{display:grid;place-items:center;width:46px;height:34px;padding:5px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
.payment-method-logo img{display:block;max-width:100%;max-height:22px;object-fit:contain}
.payment-logo-fallback{display:grid;place-items:center;width:46px;height:34px;border:1px solid #dbe3ec;border-radius:8px;color:var(--brand-700);background:var(--brand-50);font-size:10px;font-weight:900;letter-spacing:.04em}
.payment-method-copy{min-width:0}.payment-method-copy>div{display:flex;align-items:center;gap:7px}.payment-method-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.payment-method-copy code{padding:2px 5px;border-radius:5px;color:#475569;background:#f1f5f9;font-size:8.5px;font-weight:800}
.payment-method-copy p{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:5px 0 0}
.provider-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:99px;font-size:8.5px;font-weight:850}
.provider-badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.provider-badge.ok{color:#047857;background:#ecfdf5}.provider-badge.off{color:#b91c1c;background:#fef2f2}.provider-badge.wait{color:#a16207;background:#fef3c7}
.lp-coverage{color:var(--muted);font-size:9px}
.payment-order-actions{display:flex;gap:3px}.payment-order-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:#fff;font-size:13px;font-weight:900}.payment-order-actions button:hover{color:var(--brand-700);border-color:#bfdbfe;background:var(--brand-50)}
.payment-switch{position:relative;display:inline-flex;justify-self:end;width:40px;height:23px}.payment-switch input{position:absolute;opacity:0;pointer-events:none}.payment-switch span{position:absolute;inset:0;border-radius:99px;background:#cbd5e1;transition:.18s}.payment-switch span:after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.18s}.payment-switch input:checked+span{background:var(--brand-600)}.payment-switch input:checked+span:after{transform:translateX(17px)}.payment-switch input:focus-visible+span{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}.payment-switch input:disabled+span{opacity:.55;cursor:not-allowed}
.payment-preview-panel{position:sticky;top:calc(var(--topbar-h) + 18px);overflow:hidden;border:1px solid #22314a;border-radius:17px;background:linear-gradient(145deg,#0f172a,#17233a);box-shadow:0 20px 46px rgba(15,23,42,.2)}
.payment-preview-panel.has-changes{border-color:var(--brand-500);box-shadow:0 20px 48px rgba(37,99,235,.2)}
.payment-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;color:#fff}.payment-preview-head span{display:block;color:#93c5fd;font-size:8px;font-weight:900;letter-spacing:.12em}.payment-preview-head h3{margin:2px 0 0;font-size:14px}.payment-preview-head .preview-live-badge{padding:4px 7px;border-radius:99px;color:#86efac;background:rgba(34,197,94,.14);letter-spacing:.07em}
.checkout-preview{margin:0 9px 9px;padding:17px;border-radius:12px;background:#fff}.checkout-preview>label{display:block;margin:10px 0 5px;color:#334155;font-size:10px;font-weight:750}.checkout-preview>label:first-child{margin-top:0}.preview-input{height:37px;padding:10px;border:1.5px solid #dbe2ea;border-radius:7px;color:#94a3b8;background:#f8fafc;font-size:10px}
.preview-method-title{display:flex;align-items:center;gap:8px;margin:17px 0 10px;color:#0f172a;font-size:11px;font-weight:850}.preview-method-title span{flex:1;height:1px;background:#e2e8f0}
.payment-method-preview{display:grid;gap:7px}.checkout-method-preview{position:relative;display:grid;grid-template-columns:16px 17px 42px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:52px;padding:8px 9px;border:1.5px solid #dbe2ea;border-radius:9px;background:#fff;cursor:grab;transition:transform .12s,border-color .12s,box-shadow .12s}.checkout-method-preview:hover,.checkout-method-preview.selected{border-color:#22c55e;background:#f0fdf4;box-shadow:0 4px 12px rgba(22,163,74,.09)}.checkout-method-preview:active{cursor:grabbing}.checkout-method-preview.dragging{opacity:.42;transform:scale(.985)}.checkout-method-preview.drag-over:before,.checkout-method-preview.drag-after:after{content:"";position:absolute;left:5px;right:5px;height:3px;border-radius:9px;background:var(--brand-500)}.checkout-method-preview.drag-over:before{top:-6px}.checkout-method-preview.drag-after:after{bottom:-6px}
.checkout-method-preview .preview-grip{color:#94a3b8;font-size:11px;letter-spacing:-3px;cursor:grab;touch-action:none;user-select:none}.preview-radio{display:grid;place-items:center;width:16px;height:16px;border:1.5px solid #94a3b8;border-radius:50%}.selected .preview-radio{border-color:#16a34a}.selected .preview-radio i{width:8px;height:8px;border-radius:50%;background:#16a34a}
.checkout-method-preview .payment-method-logo,.checkout-method-preview .payment-logo-fallback{width:42px;height:29px}.checkout-method-preview .payment-method-logo img{max-height:18px}.checkout-method-preview b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px}.checkout-method-preview small{color:#64748b;font-size:8px;font-weight:800}
.preview-drag-help{display:flex;align-items:flex-start;gap:6px;margin:10px 0 13px;color:#64748b;font-size:8.5px;line-height:1.45}.preview-drag-help svg{flex:none;width:13px;height:13px}.payment-apply{min-height:43px}.payment-method-dirty{margin:7px 0 0;color:#64748b;font-size:9px;text-align:center}.payment-preview-empty{padding:18px;border:1px dashed #f59e0b;border-radius:9px;color:#92400e;background:#fffbeb;font-size:10px;text-align:center}
#payment-method-refresh.is-loading svg{animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.payment-method-workspace{grid-template-columns:1fr}.payment-preview-panel{position:relative;top:auto;order:-1;max-width:620px;width:100%;margin:0 auto}}
@media(max-width:767px){.payment-summary-grid{grid-template-columns:1fr;gap:8px}.payment-summary-card{padding:14px 15px}.payment-summary-card strong{font-size:20px}.payment-method-row{grid-template-columns:22px 42px minmax(0,1fr) 40px;gap:8px;padding:11px 12px}.payment-method-row .payment-order-actions{grid-column:3;justify-content:flex-start;margin-top:-2px}.payment-method-row .payment-switch{grid-column:4;grid-row:1/3}.payment-method-copy>div{display:block}.payment-method-copy code{display:inline-block;margin-top:3px}.payment-method-copy p{display:grid;gap:3px}.provider-badge{width:max-content}.payment-method-config .surface-head{padding:15px}.payment-live-pill{display:none}.checkout-preview{padding:14px}.payment-preview-head{padding:14px}.section-header #payment-method-refresh{flex:none}}
@media(max-width:420px){.payment-method-page .section-header{display:block}.payment-method-page .section-header #payment-method-refresh{width:100%;margin-top:11px}.payment-method-row{grid-template-columns:20px 38px minmax(0,1fr) 40px}.payment-method-logo,.payment-logo-fallback{width:38px}.payment-method-copy b{white-space:normal}.checkout-method-preview{grid-template-columns:14px 16px 38px minmax(0,1fr)}.checkout-method-preview small{display:none}.checkout-method-preview .payment-method-logo,.checkout-method-preview .payment-logo-fallback{width:38px}}
@media(max-width:420px){.payment-method-page .section-header{display:block}.payment-method-page .section-header #payment-method-refresh{width:100%;margin-top:11px}.payment-method-row{grid-template-columns:20px 38px minmax(0,1fr) 40px}.payment-method-logo,.payment-logo-fallback{width:38px}.payment-method-copy b{white-space:normal}.checkout-method-preview{grid-template-columns:14px 16px 38px minmax(0,1fr)}.checkout-method-preview small{display:none}.checkout-method-preview .payment-method-logo,.checkout-method-preview .payment-logo-fallback{width:38px}}

/* ROAS & attribution — local mirror; zero browser calls to Meta */
.roas-header{align-items:center}.roas-readonly-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #a7f3d0;border-radius:999px;color:#047857;background:#ecfdf5;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.roas-readonly-chip svg{width:13px;height:13px}.roas-contract{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:16px 18px;border-color:#bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff)}.roas-contract strong{font-size:12px}.roas-contract p{max-width:760px;margin:4px 0 0;color:#475569;font-size:9.5px;line-height:1.5}.roas-freshness{display:grid;grid-template-columns:auto auto;align-items:center;gap:1px 7px;flex:none;padding:9px 11px;border-radius:10px;color:#065f46;background:#ecfdf5}.roas-freshness .pulse-dot{grid-row:1/3}.roas-freshness b{font-size:9px}.roas-freshness small{color:#047857;font-size:8px}.roas-freshness.stale{color:#92400e;background:#fffbeb}.roas-freshness.stale small{color:#b45309}.roas-controls{margin-bottom:14px;padding:14px 18px}.roas-custom-range{margin-top:12px}.roas-warning{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #fde68a;border-radius:11px;color:#92400e;background:#fffbeb}.roas-warning>svg{flex:none;width:17px;height:17px}.roas-warning strong{font-size:10px}.roas-warning p{margin:3px 0 0;font-size:9px;line-height:1.5}.roas-kpi-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin-bottom:14px}.roas-kpi{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.roas-kpi span{display:block;color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.roas-kpi strong{display:block;overflow:hidden;margin:6px 0 4px;font-size:17px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.roas-kpi small{display:block;min-height:22px;color:#64748b;font-size:8px;line-height:1.4}.roas-kpi.blue{border-color:#bfdbfe;background:#f8fbff}.roas-kpi.green{border-color:#bbf7d0;background:#f7fff9}.roas-kpi.amber{border-color:#fde68a;background:#fffdf7}.roas-account-surface,.roas-campaign-surface,.roas-closing-surface{margin-bottom:14px;padding:0;overflow:hidden}.roas-account-surface .surface-head,.roas-campaign-surface .surface-head,.roas-closing-surface .surface-head{margin:0;padding:15px 18px;border-bottom:1px solid var(--line)}.roas-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 18px 18px}.roas-account-card{min-width:0;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fbfcfe}.roas-account-card>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.roas-account-card span{font-size:10px;font-weight:850}.roas-account-card small{color:#64748b;font-size:8px}.roas-account-card dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0 0;padding-top:10px;border-top:1px solid #e8eef5}.roas-account-card dt{color:#64748b;font-size:7.5px}.roas-account-card dd{overflow:hidden;margin:3px 0 0;font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.roas-campaign-surface .table-wrap,.roas-closing-surface .table-wrap{max-height:520px}.roas-campaign-surface th,.roas-closing-surface th{position:sticky;z-index:1;top:0;background:#f8fafc}.roas-mobile-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.roas-mobile-metrics span{display:flex;justify-content:space-between;padding:7px;border-radius:7px;color:#64748b;background:#f8fafc;font-size:9px}.roas-mobile-card p{margin:9px 0 0}
@media(max-width:1250px){.roas-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.roas-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.roas-header{align-items:flex-start}.roas-readonly-chip{margin-top:8px}.roas-contract{align-items:flex-start;flex-direction:column;padding:14px}.roas-freshness{width:100%}.roas-controls{padding:12px}.roas-controls .quick-ranges{display:flex;overflow-x:auto}.roas-controls .quick-ranges button{flex:0 0 auto}.roas-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.roas-kpi{padding:12px}.roas-kpi strong{font-size:16px}.roas-account-surface .surface-head,.roas-campaign-surface .surface-head,.roas-closing-surface .surface-head{align-items:flex-start;padding:13px}.roas-account-grid{grid-template-columns:1fr;padding:11px}.roas-account-card dl{grid-template-columns:repeat(3,minmax(0,1fr))}.roas-campaign-surface .table-wrap,.roas-closing-surface .table-wrap{display:none}.roas-campaign-surface .mobile-list,.roas-closing-surface .mobile-list{display:grid;padding:11px}.roas-warning{padding:11px}}
@media(max-width:420px){.roas-kpi-grid{grid-template-columns:1fr 1fr}.roas-account-card dl{grid-template-columns:1fr 1fr}.roas-contract p{font-size:9px}}
