/* Scoped additions using the APP's existing palette, typography and controls. */
.mt-root .integration-card .mt-admin-account-count{margin:0;font-size:22px}.mt-admin-connections-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.mt-admin-connections-head p{margin:0;color:var(--text2)}#admin-connection-results{margin-top:16px;max-height:55dvh;overflow:auto}
.mt-root .mt-lock-content{position:absolute;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:92%;padding:10px;background:var(--bg2);border-radius:var(--r)}.mt-root .mt-lock-content .mt-lock-caption{position:static;max-width:100%;padding:4px;font-size:10px}.mt-root .mt-mini-passive .mt-lock-content{gap:5px;padding:6px}.mt-root .mt-mini-passive .mt-lock-content button{font-size:9px;padding:6px 9px}
.mt-root .mt-onboarding.mt-compact-onboarding{padding:0;background:var(--bg2);margin-bottom:18px}.mt-root .mt-compact-onboarding summary{padding:16px 18px;list-style:none;cursor:pointer}.mt-root .mt-compact-onboarding summary::-webkit-details-marker{display:none}.mt-root .mt-compact-onboarding summary:focus-visible{outline:2px solid var(--violet2);outline-offset:2px;border-radius:var(--r2)}.mt-root .mt-compact-onboarding .mt-onboarding-head{gap:14px}.mt-root .mt-compact-onboarding .mt-onboarding-head h2{font-size:13px;margin:0 0 4px}.mt-root .mt-compact-onboarding .mt-onboarding-head>strong{font-size:18px;margin-left:auto}.mt-root .mt-compact-onboarding .mt-setup-progress{height:4px;margin:12px 0 0}.mt-root .mt-compact-onboarding .mt-setup-steps{padding:0 18px 8px}.mt-root .mt-disclosure-button{display:flex;align-items:center;gap:8px;color:var(--text2);border:1px solid var(--border2);border-radius:var(--r);padding:8px 10px;font-size:10px;white-space:nowrap}.mt-root .mt-disclosure-button svg{width:14px;height:14px;transition:transform .2s}.mt-root .mt-when-open{display:none}.mt-root details[open] .mt-when-open{display:inline}.mt-root details[open] .mt-when-closed{display:none}.mt-root details[open] .mt-disclosure-button svg{transform:rotate(180deg)}
.mt-root .mt-home-gate{border:1px solid var(--border2);border-radius:var(--r2);background:var(--bg2);margin-bottom:20px;overflow:hidden}.mt-root .mt-home-gate-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;background:radial-gradient(ellipse at top left,var(--violetbg),transparent 70%);border-bottom:1px solid var(--border)}.mt-root .mt-home-gate-head h2{font-size:21px;line-height:1.4;margin:8px 0 10px}.mt-root .mt-home-gate-head p{font-size:12px;color:var(--text2);line-height:1.8;margin:0;max-width:540px}.mt-root .mt-home-gate-head>button{flex-shrink:0;min-height:42px}.mt-root .mt-home-gate .mt-connect-brands{justify-content:flex-start;margin-top:20px;gap:8px}.mt-root .mt-home-gate .mt-brand-mark{width:32px;height:32px;border-radius:8px}.mt-root .mt-home-gate .mt-brand-mark img{width:22px;height:22px}.mt-root .mt-home-gate .mt-connect-brands>span:last-child{font-size:10px;color:var(--text3);margin-left:6px}.mt-root .mt-home-preview{max-height:310px;overflow:hidden;padding:20px 24px 0;filter:blur(5px);opacity:.38;mask-image:linear-gradient(#000 65%,transparent)}.mt-root .mt-home-gate-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;padding:12px 20px 20px;font-size:10px;color:var(--text3)}.mt-root .mt-home-gate-footer span:before{content:'✓';margin-right:7px;color:var(--violet2)}
.mt-root .mt-passive-lock{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:var(--r2);margin-bottom:20px;min-height:190px;display:grid;place-items:center;background:var(--bg2)}.mt-root .mt-passive-lock>.mt-data-preview{width:100%}.mt-root .mt-passive-lock .panel{margin:0}.mt-root .mt-lock-caption{position:absolute;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:var(--text2);padding:12px;text-align:center;max-width:90%;background:var(--bg2);border-radius:var(--r)}.mt-root .mt-lock-caption svg{width:15px;height:15px;flex-shrink:0;color:var(--text3)}.mt-root .mt-mini-passive{min-height:110px;margin-bottom:0}.mt-root .mt-mini-passive .mt-lock-caption{font-size:10px;padding:8px}.mt-root .mt-source-guide{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--violetborder);border-radius:var(--r2);padding:16px 18px;margin-bottom:20px;background:var(--violetbg)}.mt-root .mt-source-guide strong{font-size:12px}.mt-root .mt-source-guide p{font-size:10px;color:var(--text2);line-height:1.8;margin:5px 0 0}.mt-root .mt-source-guide>button{flex-shrink:0}
#tracking-toolbar .mt-period-control{position:relative;max-width:100%}#tracking-period-toggle{display:flex;align-items:center;gap:10px;text-align:left;min-height:42px;padding:9px 12px}#tracking-period-toggle>svg{width:18px;height:18px;color:var(--text3);flex-shrink:0}#tracking-period-toggle>svg.mt-period-chevron{width:14px;margin-left:14px}#tracking-period-toggle strong{font-size:11px;font-weight:500;display:block;color:var(--text)}#tracking-period-toggle small{font-size:9px;display:block;margin-top:3px;color:var(--text3)}#tracking-period-popover{position:fixed;inset:auto;margin:0;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:6px;border:1px solid var(--border2);border-radius:var(--r2);background:var(--bg2);color:var(--text);box-shadow:0 16px 50px #0008}#tracking-period-popover::backdrop{background:transparent}#tracking-period-popover .mt-period-head{padding:10px 12px 12px;color:var(--text3);font-size:10px;border-bottom:1px solid var(--border);margin-bottom:4px}#tracking-period-popover .mt-period-option{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:0;background:transparent;color:var(--text2);border-radius:var(--r);font:inherit;font-size:11px;text-align:left;cursor:pointer;min-height:38px}#tracking-period-popover .mt-period-option small{color:var(--text3);font-size:9px;display:block;margin-top:3px}#tracking-period-popover .mt-period-option:hover,#tracking-period-popover .mt-period-option:focus-visible{background:var(--bg3);outline:2px solid var(--violetborder);outline-offset:-2px}#tracking-period-popover .mt-period-option[aria-pressed=true]{background:var(--violetbg);color:var(--violet2)}#tracking-period-popover .mt-period-check{opacity:0;color:var(--violet2)}#tracking-period-popover .mt-period-option[aria-pressed=true] .mt-period-check{opacity:1}#tracking-period-popover [data-period=custom]{border-top:1px solid var(--border);border-radius:0;margin-top:4px}#tracking-custom-period{padding:12px 6px 6px}#tracking-custom-period .mt-custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px}#tracking-toolbar #tracking-custom-period label{max-width:none;min-width:0}#tracking-custom-period input{min-width:0;font-size:11px;padding:8px 5px;width:100%;min-height:38px}#tracking-custom-period .actions{justify-content:flex-end;margin-top:14px}#tracking-period-error{color:var(--rose);font-size:10px;line-height:1.5;margin:10px 0 0}
@media(max-width:760px){.mt-root .mt-home-gate-head{padding:22px;gap:20px;align-items:flex-start;flex-direction:column}.mt-root .mt-home-gate-head h2{font-size:19px}.mt-root .mt-home-gate-head p{font-size:11px}.mt-root .mt-home-preview{max-height:260px;padding:16px}.mt-root .mt-source-guide{align-items:flex-start;flex-direction:column;gap:12px}.mt-root .mt-home-gate-footer{gap:12px}.mt-root .mt-compact-onboarding .mt-onboarding-head{flex-wrap:wrap;gap:8px}.mt-root .mt-compact-onboarding .mt-onboarding-head>div{flex:1;min-width:180px}.mt-root .mt-disclosure-button{padding:7px 8px}.mt-root .mt-compact-onboarding .mt-onboarding-head h2{font-size:12px}#tracking-toolbar .mt-period-control{flex:1;min-width:220px}#tracking-period-toggle{width:100%;justify-content:flex-start}#tracking-period-toggle .mt-period-chevron{margin-left:auto!important}#tracking-toolbar>label:not(#tracking-workspace-label){max-width:86px;flex:0 1 86px}}
.mt-root .mt-campaign-card:only-child{grid-column:1/-1}
@media(min-width:1101px){.mt-root .mt-campaign-card:only-child .mt-campaign-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Cross-operation observation for staff. Client controls retain their own layout. */
.mt-root .mt-admin-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mt-root .mt-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.mt-root .mt-admin-heading h2{font-size:21px;line-height:1.4;margin:7px 0}.mt-root .mt-admin-heading p{font-size:11px;line-height:1.8;color:var(--text3);margin:0;max-width:650px}.mt-root .mt-admin-heading .eyebrow{font-size:9px;letter-spacing:.14em;color:var(--violet2)}
.mt-root .mt-admin-readonly{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;font-size:10px;padding:8px 10px;border:1px solid var(--border2);border-radius:99px;background:var(--bg2);color:var(--text2)}.mt-root .mt-admin-readonly svg{width:15px;height:15px}
.mt-root .mt-admin-filters{display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);margin-bottom:20px}.mt-root .mt-admin-filters label{min-width:180px;flex:1;max-width:340px}
.mt-root .mt-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:26px}.mt-root .mt-admin-kpis>.mt-admin-metric{padding:18px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2)}.mt-root .mt-admin-metric{display:flex;flex-direction:column;gap:7px;min-width:0}.mt-root .mt-admin-metric>span{font-size:10px;color:var(--text3)}.mt-root .mt-admin-metric strong{font-size:20px;font-weight:600;overflow-wrap:anywhere;line-height:1.3;color:var(--text)}.mt-root .mt-admin-metric small{font-size:9px;color:var(--text3)}.mt-root .positive strong{color:var(--emerald)}.mt-root .negative strong,.mt-root .mt-admin-platform-meta .negative{color:var(--rose)}
.mt-root .mt-admin-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 14px}.mt-root .mt-admin-list-heading h3,.mt-root .mt-admin-section-title{font-size:13px;margin:0}.mt-root .mt-admin-list-heading>span{font-size:9px;color:var(--text3)}
.mt-root .mt-admin-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.mt-root .mt-admin-operation{display:block;text-align:left;width:100%;padding:20px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);color:var(--text);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}.mt-root .mt-admin-operation:hover,.mt-root .mt-admin-platform-card:hover{border-color:var(--violetborder);background:var(--bg3)}.mt-root .mt-admin-operation:focus-visible,.mt-root .mt-admin-platform-card:focus-visible{outline:2px solid var(--violet2);outline-offset:3px}
.mt-root .mt-admin-operation-head{display:flex;align-items:center;gap:12px}.mt-root .mt-admin-avatar{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:var(--violetbg);color:var(--violet2);font-size:12px;font-weight:600}.mt-root .mt-admin-operation-head>div{min-width:0}.mt-root .mt-admin-operation h3{font-size:13px;margin:0 0 5px;overflow-wrap:anywhere}.mt-root .mt-admin-operation p{font-size:10px;color:var(--text3);margin:0}.mt-root .mt-admin-roas{margin-left:auto;padding:6px 8px;background:var(--emeraldbg);color:var(--emerald);font-size:10px;border-radius:7px;white-space:nowrap}.mt-root .mt-admin-operation-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:22px 0}.mt-root .mt-admin-operation-metrics strong{font-size:18px}.mt-root .mt-admin-operation-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:14px;border-top:1px solid var(--border)}.mt-root .mt-admin-platforms{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.mt-root .mt-admin-platforms .mt-brand-mark{width:24px;height:24px;border-radius:6px}.mt-root .mt-admin-platforms .mt-brand-mark img{width:17px;height:17px}.mt-root .mt-admin-platforms small{font-size:9px;color:var(--text3);margin-left:4px}.mt-root .mt-admin-open{color:var(--violet2);font-size:10px;white-space:nowrap}
.mt-root .mt-admin-empty{padding:44px 24px;text-align:center;border:1px dashed var(--border2);border-radius:var(--r2);background:var(--bg2)}.mt-root .mt-admin-empty h3{font-size:14px;margin:10px 0}.mt-root .mt-admin-empty p{font-size:11px;line-height:1.8;color:var(--text3);max-width:500px;margin:0 auto}.mt-root .mt-admin-empty .mt-connect-brands{justify-content:center}.mt-root .mt-admin-detail-caption{font-size:11px;color:var(--text3);padding-bottom:20px}
.mt-root .mt-admin-platform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 26px}.mt-root .mt-admin-platform-card{padding:20px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);text-align:left;color:var(--text);font:inherit;cursor:pointer;min-width:0}.mt-root .mt-admin-account-count{display:block;font-size:30px;margin:18px 0 12px;line-height:1.2}.mt-root .mt-admin-account-count small{display:block;font-size:10px;font-weight:400;color:var(--text3);margin-top:5px}.mt-root .mt-admin-platform-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:9px;color:var(--text3);margin-bottom:16px}
@media(max-width:1100px){.mt-root .mt-admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-root .mt-admin-operations{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.mt-root .mt-admin-heading{flex-wrap:wrap;gap:10px}.mt-root .mt-admin-heading h2{font-size:18px}.mt-root .mt-admin-filters{padding:12px;gap:10px}.mt-root .mt-admin-filters label{min-width:100%;max-width:none}.mt-root .mt-admin-kpis{gap:10px}.mt-root .mt-admin-kpis>.mt-admin-metric{padding:14px}.mt-root .mt-admin-metric strong{font-size:18px}.mt-root .mt-admin-list-heading{align-items:flex-start;flex-direction:column;gap:7px}.mt-root .mt-admin-operation{padding:16px}.mt-root .mt-admin-operation-head{flex-wrap:wrap}.mt-root .mt-admin-operation-footer{flex-wrap:wrap}.mt-root .mt-admin-platform-grid{grid-template-columns:minmax(0,1fr)}.mt-root .mt-admin-platform-card{padding:18px}}
/* Dialogs are centered independently of the APP reset and mobile sheets. */
.mt-root [hidden]{display:none!important}
.mt-root .mt-onboarding{padding:24px;border:1px solid var(--violetborder);border-radius:var(--r2);background:linear-gradient(135deg,var(--violetbg),var(--bg2) 65%);margin-bottom:22px}
.mt-root .mt-onboarding-head{display:flex;align-items:center;gap:20px;justify-content:space-between}.mt-root .mt-onboarding-head h2{font-size:19px;margin:6px 0}.mt-root .mt-onboarding-head p{margin:0;color:var(--text3);font-size:11px;line-height:1.7}.mt-root .mt-onboarding-head>strong{font-size:30px;color:var(--violet2)}
.mt-root .mt-setup-progress{height:6px;background:var(--bg4);border-radius:99px;overflow:hidden;margin:20px 0}.mt-root .mt-setup-progress span{display:block;height:100%;background:var(--violet);border-radius:99px;transition:width .3s}
.mt-root .mt-setup-steps{list-style:none;padding:0;margin:0}.mt-root .mt-setup-steps li{display:flex;align-items:center;gap:14px;padding:15px 0;border-top:1px solid var(--border)}.mt-root .mt-step-index{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--bg3);border:1px solid var(--border2);color:var(--text2);font-size:12px}.mt-root .completed .mt-step-index{background:var(--emeraldbg);color:var(--emerald);border-color:transparent}.mt-root .mt-setup-steps h3{font-size:12px;margin:0 0 5px}.mt-root .mt-setup-steps p{font-size:10px;margin:0;color:var(--text3);line-height:1.6}.mt-root .mt-step-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;flex-shrink:0;max-width:300px}.mt-root .mt-step-done{font-size:10px;color:var(--emerald)}
.mt-root .mt-data-lock{position:relative;border-radius:var(--r2);overflow:hidden;margin-bottom:20px;border:1px solid var(--border);min-height:190px}.mt-root .mt-data-preview{filter:blur(6px);opacity:.42;pointer-events:none;user-select:none;min-height:inherit}.mt-root .mt-data-preview .panel{margin-bottom:0}.mt-root .mt-data-preview>.stats-grid{margin:0}.mt-root .mt-data-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:linear-gradient(110deg,var(--bg2),transparent,var(--bg2))}.mt-root .mt-data-message{max-width:400px;text-align:center;padding:18px 24px;background:var(--bg2);border:1px solid var(--border2);border-radius:var(--r2);box-shadow:0 8px 30px #0003}.mt-root .mt-data-message h3{font-size:13px;line-height:1.6;margin:12px 0}.mt-root .mt-data-message .mt-connect-brands{justify-content:center}.mt-root .mt-mini-lock{margin-bottom:0;min-height:145px}.mt-root .mt-mini-lock .mt-data-message{padding:8px;background:transparent;border:0;box-shadow:none}.mt-root .mt-mini-lock .mt-data-message h3{font-size:10px;margin:0 0 8px}.mt-root .mt-mini-lock .mt-data-overlay{padding:10px}.mt-root .mt-mini-lock button{font-size:9px;padding:8px}.mt-root .mt-orders-lock .mt-data-lock{min-height:420px}.mt-root .mt-chart-placeholder{height:180px;background:repeating-linear-gradient(0deg,transparent,transparent 42px,var(--border) 43px,transparent 44px)}
.mt-root .mt-welcome{text-align:center;padding:24px 12px 30px}.mt-root .mt-welcome-check{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:var(--emeraldbg);color:var(--emerald);font-size:30px}.mt-root .mt-welcome h2{font-size:28px;margin:0 0 12px}.mt-root .mt-welcome p{font-size:12px;color:var(--text2);line-height:1.8;margin:0 auto 24px;max-width:390px}.mt-root .mt-cost-explanation{padding:16px;border-radius:var(--r);background:var(--violetbg);border:1px solid var(--violetborder)}.mt-root .mt-cost-explanation strong{font-size:12px}.mt-root .mt-cost-explanation p{font-size:11px;line-height:1.8;margin:7px 0 0;color:var(--text2)}.mt-root [data-form=cost] input:disabled,.mt-root [data-form=cost] select:disabled{opacity:.4;cursor:not-allowed}.mt-root .mt-cost-tabs{margin-bottom:16px}
@media(max-width:760px){.mt-root .mt-setup-steps li{flex-wrap:wrap;align-items:flex-start}.mt-root .mt-setup-steps li>div:first-of-type{flex:1;min-width:180px}.mt-root .mt-step-actions{margin-left:44px;justify-content:flex-start;max-width:none}.mt-root .mt-onboarding{padding:18px}.mt-root .mt-onboarding-head h2{font-size:16px}.mt-root .mt-onboarding-head>strong{font-size:23px}.mt-root .mt-data-message{padding:15px;max-width:100%}.mt-root .mt-data-message h3{font-size:11px}.mt-root .mt-connect-brands{gap:8px}}
#tracking-dialog{position:fixed;inset:0;margin:auto;height:fit-content;overscroll-behavior:contain}
body.tracking-pilot .overlay.open{align-items:center!important;justify-content:center;padding:16px}
body.tracking-pilot .overlay.open .modal,body.tracking-pilot .overlay.open .modal.modal-lg,#modal-detailbody.tracking-pilot .overlay.open .modal{max-width:calc(100vw - 32px)!important;max-height:88dvh!important;border-radius:var(--r4)!important;height:auto;border:1px solid var(--border2)}
.mt-root .mt-brand-mark{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0;overflow:hidden}
.mt-root .mt-brand-mark img,.mt-root .mt-brand-mark svg{width:28px;height:28px;object-fit:contain;display:block}
.mt-root .mt-brand-meta{background:#0866ff}.mt-root .mt-brand-meta img{filter:brightness(0) invert(1)}
.mt-root .mt-brand-google{background:#fff}.mt-root .mt-brand-tiktok{background:#08080b;border:1px solid #fe2c5544}.mt-root .mt-brand-tiktok img{filter:brightness(0) invert(1);filter:brightness(0) invert(1) drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee)}
.mt-root .mt-brand-kiwify{background:#e9fff4}.mt-root .mt-brand-hotmart{background:#fff4ed}.mt-root .mt-brand-custom{background:var(--violetbg);color:var(--violet2)}
.mt-root .mt-platform-group{margin-bottom:20px;--platform-accent:#8b5cf6;border:1px solid var(--border2);border-radius:var(--r2);overflow:hidden;background:var(--bg2)}
.mt-root .mt-platform-heading{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--bg3)}
.mt-root .mt-platform-heading h2{font-size:14px;color:var(--text)}.mt-root .mt-platform-heading>span:last-child{margin-left:auto;font-size:10px;color:var(--text2)}
.mt-root .mt-platform-meta{--platform-accent:#458fff;border-color:#0866ff55}.mt-root .mt-platform-meta .mt-platform-heading{background:linear-gradient(100deg,#0866ff,#0747b6)}.mt-root .mt-platform-meta .mt-platform-heading h2,.mt-root .mt-platform-meta .mt-platform-heading>span{color:white}.mt-root .mt-platform-meta .mt-brand-meta{background:#ffffff14}
.mt-root .mt-platform-google{--platform-accent:#4285f4;border-color:#4285f455}.mt-root .mt-platform-google .mt-platform-heading{background:linear-gradient(100deg,#152948,#17251f);border-top:3px solid transparent;border-image:linear-gradient(90deg,#4285f4 25%,#ea4335 25%,#ea4335 50%,#fbbc05 50%,#fbbc05 75%,#34a853 75%) 1}
.mt-root .mt-platform-tiktok{--platform-accent:#fe2c55;border-color:#fe2c5555}.mt-root .mt-platform-tiktok .mt-platform-heading{background:#050509;border-left:3px solid #25f4ee;border-bottom-color:#fe2c5544}.mt-root .mt-platform-tiktok .mt-platform-heading h2{color:#ff6686}
.mt-root .mt-campaign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.mt-root .mt-campaign-card{background:var(--bg);border:1px solid var(--border);border-left:3px solid var(--platform-accent);border-radius:var(--r2);padding:16px;min-width:0}
.mt-root .mt-campaign-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mt-root .mt-campaign-top h3{margin:0 0 4px;font-size:12px;overflow-wrap:anywhere}.mt-root .mt-campaign-top .status-switch{flex-shrink:0;padding-top:0}
.mt-root .mt-campaign-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px;margin-top:20px}.mt-root .mt-campaign-metrics span{display:block;font-size:9px;color:var(--text3);margin-bottom:5px}.mt-root .mt-campaign-metrics strong{display:block;font-family:'Poppins',sans-serif;font-size:16px;font-weight:500;overflow-wrap:anywhere}.mt-root .mt-campaign-metrics>div:first-child strong{color:var(--platform-accent)}.mt-root .mt-parent-paused{color:var(--amber);margin-top:10px}
.mt-root .mt-campaigns-lock{position:relative;min-height:480px;isolation:isolate;border-radius:var(--r2);overflow:hidden}.mt-root .mt-campaigns-preview{filter:blur(7px);opacity:.45;pointer-events:none;user-select:none;padding:6px}.mt-campaigns-locked #tracking-toolbar{filter:blur(5px);opacity:.45;pointer-events:none;user-select:none}
.mt-root .mt-connect-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(transparent,#08080f66)}
.mt-root .mt-connect-message{text-align:center;background:#0f0f1af2;border:1px solid var(--border3);border-radius:var(--r4);padding:30px;max-width:440px;box-shadow:0 16px 50px #0005}.mt-root .mt-connect-message h2{font-size:19px;margin:18px 0 8px}.mt-root .mt-connect-message p{font-size:12px;margin:0 0 20px}.mt-root .mt-connect-brands{display:flex;align-items:center;justify-content:center;gap:10px}
.mt-root .mt-preview-line{height:12px;border-radius:4px;background:var(--bg5);width:65%;margin-bottom:12px}.mt-root .mt-preview-line.short{width:40%;height:8px}.mt-root .mt-preview-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:30px}.mt-root .mt-preview-metrics span{display:block;height:30px;border-radius:4px;background:var(--bg4)}
.mt-root .mt-integration-section{margin-bottom:28px;scroll-margin-top:20px}.mt-root .mt-integration-section-head{margin-bottom:14px}.mt-root .mt-integration-section-head h2{font-size:15px;margin-bottom:5px}.mt-root .mt-integration-section-head p{margin:0}.mt-root .mt-integration-brand{display:flex;align-items:center;gap:12px;margin-bottom:12px}.mt-root .mt-integration-brand h3{margin:0;font-size:15px}.mt-root .mt-ad-managers .cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mt-root .mt-integration-meta{border-top:3px solid #0866ff}.mt-root .mt-integration-google{border-top:3px solid #4285f4}.mt-root .mt-integration-tiktok{border-top:3px solid #fe2c55}.mt-root .mt-integration-kiwify{border-top:3px solid #19c787}.mt-root .mt-integration-hotmart{border-top:3px solid #f04e23}.mt-root .mt-integration-custom{border-top:3px solid var(--violet)}
.mt-root .mt-category-empty{display:flex;align-items:center;gap:16px;padding:20px;border:1px dashed var(--border2);border-radius:var(--r2);background:var(--bg2)}.mt-root .mt-category-empty>svg{width:32px;height:32px;flex-shrink:0;color:var(--text3)}.mt-root .mt-category-empty strong{font-size:12px;font-weight:500}.mt-root .mt-category-empty p{margin:5px 0 0}
@media(max-width:1100px){.mt-root .mt-ad-managers .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mt-root .mt-campaign-grid,.mt-root .mt-ad-managers .cards-grid{grid-template-columns:1fr}.mt-root .mt-campaign-card{padding:13px}.mt-root .mt-campaign-metrics{gap:16px 8px}.mt-root .mt-campaign-metrics strong{font-size:14px}.mt-root .mt-platform-heading{gap:9px;padding:12px}.mt-root .mt-platform-heading h2{font-size:12px}.mt-root .mt-platform-heading>span:last-child{font-size:9px}.mt-root .mt-connect-message{padding:24px 18px}.mt-root .mt-connect-message h2{font-size:17px}.mt-root .mt-connect-overlay{padding:12px}.mt-root .mt-campaigns-lock{max-height:560px}.mt-root .mt-integration-section{margin-bottom:22px}}
#tracking-toolbar[hidden],#tracking-module[hidden]{display:none}
#tracking-test-tools{position:fixed!important;top:10px;right:68px;z-index:360}
@media(max-width:900px){#tracking-test-tools{right:116px}}
.mt-host{padding:0 24px}.mt-demand-summary{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:13px 18px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);margin-bottom:16px}.mt-demand-summary>div{display:flex;align-items:center;gap:12px;flex:1;min-width:125px}.mt-demand-summary span{font-size:11px;color:var(--text3)}.mt-demand-summary strong{font-family:'Poppins',sans-serif;font-size:19px}
@media(max-width:600px){.mt-host{padding:0 16px}.mt-demand-summary{padding:12px;gap:9px}.mt-demand-summary>div{flex-basis:100%;justify-content:space-between}.mt-demand-summary .quiet{width:100%}}
.mt-root{--surface:var(--bg2);--muted:var(--text3);--purple:var(--violet2);--green:var(--emerald);min-width:0}
.mt-root h2,.mt-root h3{font-family:'Poppins',sans-serif;font-weight:600}.mt-root h2{font-size:13px;margin:0}.mt-root h3{font-size:13px;margin:16px 0 10px}.mt-root p{color:var(--text3);font-size:11px;line-height:1.8}.mt-root label{display:flex;flex-direction:column;gap:6px;color:var(--text2);font-size:11px}.mt-root input,.mt-root select,.mt-root textarea{background:var(--bg3);border:1px solid var(--border);color:var(--text);border-radius:var(--r);font:inherit;padding:9px 11px;width:100%;min-width:0;max-width:100%}.mt-root textarea{min-height:110px;resize:vertical}.mt-root button{cursor:pointer}.mt-root button:disabled{opacity:.45;cursor:default}
.mt-root .primary,.mt-root .quiet{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font:inherit;font-size:11px;border-radius:var(--r);min-height:34px;border:1px solid var(--border);color:var(--text2);background:var(--bg3)}.mt-root .primary{background:var(--violet);color:white;border-color:var(--violet)}.mt-root .quiet:hover{background:var(--bg4);color:var(--text)}
.mt-root .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.mt-root .metric{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);padding:17px 18px;min-width:0;overflow-wrap:anywhere}.mt-root .metric-label{display:block;font-size:10px;color:var(--text3);margin-bottom:8px}.mt-root .metric strong{display:block;font-family:'Poppins',sans-serif;font-size:24px;line-height:1.25;letter-spacing:-.6px;font-weight:600}.mt-root .metric small{display:block;font-size:10px;color:var(--text3);margin-top:8px}.mt-root .metric.green strong{color:var(--emerald)}.mt-root .metric.accent{background:var(--violetbg);border-color:var(--violetborder)}.mt-root .metric.accent strong{color:var(--violet2)}
.mt-root .panel{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);margin-bottom:16px;min-width:0;overflow:hidden}.mt-root .panel>.panel-head{padding:14px 16px;border-bottom:1px solid var(--border);margin:0}.mt-root .panel-body{padding:16px}.mt-root .panel-head,.mt-root .actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mt-root .actions{justify-content:flex-start}.mt-root>.panel-head{margin-bottom:16px}.mt-root .two-cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.mt-root .small{font-size:10px;color:var(--text3);line-height:1.7}.mt-root .list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border);font-size:11px}.mt-root .list-row:last-child{border:0}.mt-root .list-row strong{font-size:12px;font-weight:500}
.mt-root .chart{width:100%;height:190px;display:block}.mt-root .legend{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--text3)}.mt-root .notice{font-size:11px;color:var(--text3);line-height:1.8;margin:12px 0 16px}.mt-root .empty{padding:32px 20px;text-align:center;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);margin-bottom:16px}.mt-root .empty h2{font-size:15px}.mt-root .empty .actions{justify-content:center;margin-top:14px}.mt-root .eyebrow{font-size:9px;letter-spacing:1px;color:var(--text3)}
.mt-root .filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px}.mt-root .filters label{flex:1;min-width:120px}.mt-root .filters .search{flex:2;min-width:220px}.mt-root .table-scroll{overflow:auto;width:100%;max-width:100%}.mt-root table{width:100%;white-space:nowrap;text-align:left;border-collapse:collapse}.mt-root th,.mt-root td{padding:12px 14px;border-bottom:1px solid var(--border);font-size:11px}.mt-root th{font-size:10px;font-weight:500;color:var(--text3);background:var(--bg3)}.mt-root td small{display:block;color:var(--text3);font-size:9px}.mt-root tr:last-child td{border-bottom:0}.mt-root .pill{display:inline-flex;border-radius:6px;padding:4px 7px;font-size:9px;background:var(--violetbg);color:var(--violet2)}.mt-root .pill.paid,.mt-root .pill.ACTIVE{color:var(--emerald);background:var(--emeraldbg)}.mt-root .pill.pending,.mt-root .pill.PAUSED{color:var(--amber);background:var(--amberbg)}.mt-root .pill.refunded,.mt-root .pill.chargeback{color:var(--rose);background:var(--rosebg)}.mt-root .pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:14px;font-size:10px;color:var(--text3)}
.mt-root .cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.mt-root .integration-card{padding:18px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);min-width:0}.mt-root .integration-card h3{margin-top:0}.mt-root .integration-card .actions{margin-top:12px}.mt-root .provider-logo{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:var(--r);background:var(--violetbg);color:var(--violet2);margin-bottom:12px;font-size:16px;font-weight:600}.mt-root .funnel-row{display:grid;grid-template-columns:150px minmax(0,1fr) 35px;align-items:center;gap:10px;font-size:10px;margin:13px 0}.mt-root .funnel-bar{background:var(--bg3);border-radius:4px;overflow:hidden;height:22px}.mt-root .funnel-bar svg{height:22px}
.mt-root .form-grid,.mt-root .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mt-root .wide{grid-column:1/-1}.mt-root .checkbox{flex-direction:row;align-items:center}.mt-root .checkbox input{width:16px;min-height:16px}.mt-root .code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.7;padding:14px;background:var(--bg3);border:1px solid var(--border);border-radius:var(--r)}.mt-root .detail-grid{margin-bottom:20px}.mt-root dt{font-size:10px;color:var(--text3)}.mt-root dd{font-size:12px;margin:5px 0 0;overflow-wrap:anywhere}.mt-root .timeline{padding:0;list-style:none}.mt-root .timeline li{padding:10px 14px;border-left:2px solid var(--violetborder);font-size:10px;color:var(--text3)}.mt-root .timeline strong{display:block;color:var(--text2);margin:4px 0}
#tracking-dialog{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);color:var(--text);width:min(820px,calc(100vw - 28px));padding:20px;max-height:88dvh;overflow:auto}#tracking-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}#tracking-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}#tracking-dialog .dialog-head h2{font-size:14px}#tracking-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px}#tracking-toolbar label{max-width:155px}#tracking-toolbar .period-label{margin-right:auto;align-self:center;color:var(--text3);font-size:11px}#tracking-workspace-label{display:none}#tracking-test-tools{position:relative}#tracking-test-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:250;width:230px;max-width:calc(100vw - 28px);background:var(--bg2);border:1px solid var(--border);border-radius:var(--r2);padding:6px;box-shadow:0 8px 32px #0005}#tracking-test-menu[hidden]{display:none}#tracking-test-menu button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:var(--r);padding:11px 10px;color:var(--text2);font:inherit;font-size:11px;cursor:pointer}#tracking-test-menu button:hover{background:var(--bg3);color:var(--text)}.mt-host{min-width:0}.mt-demand-title{font-family:'Poppins',sans-serif;font-size:12px;font-weight:600;margin:12px 0}#dash-stats{margin-bottom:16px}.mt-level-tabs{display:flex;gap:6px;margin-bottom:16px}.mt-level-tabs button[aria-pressed=true]{background:var(--violetbg);color:var(--violet2);border-color:var(--violetborder)}.mt-root .status-switch{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--text2);padding:6px;font-size:10px}.mt-root .status-switch span{display:block;width:29px;height:17px;background:var(--bg4);border-radius:99px;position:relative;transition:background .2s}.mt-root .status-switch span:after{content:'';width:11px;height:11px;position:absolute;left:3px;top:3px;border-radius:50%;background:var(--text3);transition:transform .2s}.mt-root .status-switch[aria-checked=true] span{background:var(--violet)}.mt-root .status-switch[aria-checked=true] span:after{transform:translateX(12px);background:white}.mt-root .status-switch:focus-visible{outline:2px solid var(--violet2);outline-offset:2px}.mt-root .skeleton{background:var(--bg3);height:100px;border-radius:var(--r2)}.mt-root .error-state{padding:22px;color:var(--rose)}
@media(max-width:1100px){.mt-root .metric strong{font-size:21px}.mt-root .two-cols{grid-template-columns:1fr}.mt-root .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mt-root .stats-grid{gap:9px}.mt-root .metric{padding:14px 12px}.mt-root .metric strong{font-size:20px}.mt-root .cards-grid,.mt-root .form-grid,.mt-root .detail-grid{grid-template-columns:1fr}.mt-root .wide{grid-column:auto}.mt-root .panel-body{padding:12px}.mt-root .filters label{min-width:120px}.mt-root .filters .search{min-width:100%;flex:1}.mt-root .funnel-row{grid-template-columns:118px minmax(0,1fr) 24px;gap:7px;font-size:9px}#tracking-toolbar{gap:8px}#tracking-toolbar .period-label{width:100%;margin-bottom:2px}#tracking-toolbar label{flex:1;max-width:none;min-width:82px}.mt-root .legend{font-size:8px}.mt-root .pagination{flex-wrap:wrap}.mt-level-tabs{flex-wrap:wrap}.mt-demand-title{margin-top:18px}}
.mt-webhook-heading{display:flex;align-items:center;gap:14px;margin:4px 0 22px}.mt-webhook-heading p{margin:4px 0;color:var(--text-muted,#a1a1b5)}.mt-webhook-events{margin:22px 0 8px;padding:16px;border:1px solid var(--border,#272638);border-radius:12px}.mt-account-options{display:grid;gap:10px;max-height:45vh;overflow:auto;margin-bottom:20px}.mt-account-option{display:flex!important;align-items:center;gap:12px;padding:16px;border:1px solid var(--border,#272638);border-radius:12px;cursor:pointer}.mt-account-option input{width:18px!important;height:18px;flex:none;accent-color:#8b5cf6}.mt-account-option small{display:block;margin-top:5px;color:var(--text-muted,#a1a1b5)}.mt-platform-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;margin:24px 0;border:1px solid var(--border,#272638);border-radius:12px}.mt-platform-settings p{margin:6px 0 0}.mt-brand-cartpanda,.mt-brand-perfectpay{background:#fff}.mt-brand-cartpanda img,.mt-brand-perfectpay img{object-fit:contain}@media(max-width:600px){.mt-platform-settings{align-items:stretch;flex-direction:column}.mt-account-option{padding:12px}}
/* Site tracking adds optional stages; it never hides checkout or ad totals. */
.mt-root .mt-funnel-group h3{font-size:12px;margin:0 0 14px}.mt-root .mt-funnel-group .list-row{padding:10px 0;font-size:11px;border-bottom:1px solid var(--border)}.mt-root .mt-funnel-group>button{margin-top:12px}.mt-root .mt-funnel-sources{gap:24px;margin-bottom:0}.mt-root .mt-funnel-site{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}.mt-root .mt-funnel-site h3{display:flex;align-items:center;gap:9px;margin-bottom:8px}.mt-root .mt-funnel-site h3>span{font-size:9px;font-weight:500;color:var(--text3);padding:4px 8px;border-radius:20px;background:var(--bg3)}.mt-root .mt-funnel-connect{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;font-size:11px;border-bottom:1px solid var(--border)}.mt-root .mt-funnel-connect button{padding:5px 10px;font-size:10px;min-height:32px}
