
:root{color-scheme:dark;--bg:#080e1b;--panel:#101a2b;--line:#253247;--text:#f3f7ff;--muted:#8e9cb3;--blue:#1684ff;--cyan:#4edcfa;--green:#5ae0b2;--red:#ff8b9e;font-family:Inter,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}.hidden{display:none!important}.landing{background:radial-gradient(ellipse at 50% 25%,#12264766,transparent 60%),#080d18}.preland{max-width:680px;margin:auto;padding:36px 26px 20px;text-align:center}.brand{display:flex;gap:12px;align-items:center;justify-content:center;font-size:23px;font-weight:800;letter-spacing:1px}.brand>b,.brand b{color:var(--cyan)}.brand small{display:block;text-align:left;letter-spacing:4px;font-size:9px;font-weight:500;color:var(--muted);margin-top:5px}.brand-mark{display:block;width:48px;height:48px;overflow:hidden;position:relative}.brand-mark img{width:90px;max-width:none;position:absolute;left:-21px;top:-13px}.network-label{font-size:12px;color:#aebcd0;margin-top:25px}.network-label>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#41cfa1;margin-right:6px;box-shadow:0 0 10px #41cfa180}.globe-wrap{height:300px;margin:6px -20px 0;position:relative}#globe{width:100%;height:100%}.globe-center{position:absolute;top:42%;left:0;right:0;pointer-events:none}.globe-center>span{font-size:50px;font-weight:700;letter-spacing:-3px}.globe-center small{display:block;font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#9fb8d8}.orbit-label{position:absolute;font-size:9px;letter-spacing:3px;color:#6e8db5}.orbit-one{left:6%;top:30%}.orbit-two{right:3%;bottom:17%}.exchange-pill{display:inline-flex;align-items:center;gap:14px;background:#101a2b;border:1px solid #28364c;padding:8px 20px 8px 9px;border-radius:40px;font-size:16px;box-shadow:0 7px 35px #0003}.coin{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#199b7e;color:white;font-size:24px}.swap{background:#1268e8;color:white;border-radius:50%;padding:5px 9px;font-size:20px}.preland h1{font-size:56px;line-height:1.03;letter-spacing:-2.5px;margin:26px 0 14px}.preland h1 span{color:#c1d9fb}.hero-sub{color:#99a9c1;font-size:16px;line-height:1.6;margin:0 0 24px}.telegram-button{display:flex;gap:12px;align-items:center;justify-content:center;padding:21px 20px;background:linear-gradient(160deg,#2295ff,#0054e5);border:1px solid #479cff;border-radius:16px;box-shadow:0 12px 40px #0066ff33,inset 0 1px 0 #8dccff77;text-decoration:none;font-size:18px;font-weight:700;transition:transform .2s,filter .2s}.telegram-button:hover{transform:translateY(-2px);filter:brightness(1.1)}.telegram-button svg{width:24px;height:24px;fill:white}.button-arrow{margin-left:auto;font-weight:400}.redirect-status{color:#8a9ab2;font-size:12px;min-height:16px;margin:15px 0 10px}.progress-track{height:2px;background:#1c2b41;width:100px;margin:auto;overflow:hidden;border-radius:5px}.progress-track span{display:block;width:0;height:100%;background:var(--blue)}.progress-track.running span{animation:progress 1.8s linear forwards}@keyframes progress{to{width:100%}}.landing-details{display:flex;justify-content:center;gap:25px;align-items:center;margin:30px 0;font-size:11px;line-height:1.7;color:#7b8ca5}.landing-details b{color:#c0cce0;font-weight:500}.detail-divider{width:1px;height:30px;background:#293449}.landing-footer{border-top:1px solid #ffffff0b;padding-top:20px;color:#63728c;font-size:10px;line-height:1.8}.landing-footer nav{display:flex;justify-content:center;gap:24px;font-size:12px}.landing-footer a{text-decoration:none}.landing-footer p{margin-bottom:0}.consent{position:fixed;bottom:18px;left:18px;right:18px;max-width:700px;margin:auto;background:#142239;box-shadow:0 15px 80px #000b;border:1px solid #3a5474;padding:22px;border-radius:18px;z-index:5;text-align:left}.consent strong{font-size:16px}.consent p{font-size:13px;color:#aabbd2;line-height:1.5}.consent-actions{display:flex;gap:10px}.primary,.secondary,.ghost{border-radius:10px;padding:11px 17px;font-size:13px;font-weight:600;border:1px solid transparent}.primary{background:#187fff;color:white}.secondary{background:#1c2a40;color:#d8e5f7;border-color:#35445b}.ghost{background:transparent;color:#9bb2d0;border-color:#2d3d56}.legal{max-width:720px;margin:60px auto;padding:24px;line-height:1.8;color:#b0bfd5}.legal h1,.legal h2{color:white}.legal h1{font-size:32px}.legal a{color:#5cb3ff}.app-layout{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:28px 20px;background:#0b1220;border-right:1px solid #1d2b40;display:flex;flex-direction:column}.sidebar .brand{font-size:16px;justify-content:flex-start;gap:4px}.sidebar .brand small{font-size:7px;letter-spacing:2px}.sidebar .brand-mark{width:40px;flex-shrink:0}.sidebar-label{font-size:10px;color:#536986;letter-spacing:2px;margin:42px 10px 12px}.nav-active{background:#133158;color:#91c8ff;border:1px solid #24486f;padding:13px 15px;border-radius:10px;font-size:13px}.sidebar-bottom{margin-top:auto;color:#687d9b;font-size:11px;line-height:1.8}.workspace{padding:36px 40px;max-width:1700px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{color:#7291b7;font-size:10px;text-transform:uppercase;letter-spacing:2px}.topbar h1{font-size:29px;letter-spacing:-.8px;margin:10px 0}.topbar p{font-size:12px;color:var(--muted);margin:0}.topbar-actions{display:flex;gap:10px}.status-row{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 20px}.chip{font-size:10px;padding:7px 10px;border:1px solid #25364d;border-radius:20px;color:#7d92b0;background:#101a29}.chip.good{color:#62d5ae;border-color:#254c47}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kpi{background:linear-gradient(140deg,#142137,#101927);border:1px solid #24354e;border-radius:14px;padding:22px}.kpi-label{font-size:11px;color:#8fa4bf}.kpi-number{font-size:36px;font-weight:700;letter-spacing:-1px;margin:13px 0 8px}.kpi-note{font-size:10px;color:#58799e}.kpi:last-child{background:linear-gradient(140deg,#113940,#10252c);border-color:#235353}.kpi:last-child .kpi-number{color:#64e9c1}.funnel-panel{margin:18px 0 28px;padding:24px;border:1px solid #23324a;border-radius:14px;background:#0e1828}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.section-heading h2{font-size:16px;margin:0}.subtle{color:#6f86a5;font-size:11px}.funnel{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.funnel-step{position:relative;border-left:2px solid #235588;padding-left:13px}.funnel-step:last-child{border-color:#4ccba7}.funnel-step b{display:block;font-size:23px;margin:5px 0}.funnel-step span{font-size:10px;color:#87a0bf}.funnel-step small{font-size:10px;color:#536f92}.campaign-panel{border:1px solid #24324a;border-radius:14px;background:#0e1828;overflow:hidden}.campaign-toolbar{display:flex;align-items:center;justify-content:space-between;padding:22px;gap:15px}.campaign-toolbar h2{font-size:16px;margin:0}.filters{display:flex;gap:10px}input,select{background:#101c2e;border:1px solid #30405a;color:#d6e2f3;border-radius:9px;padding:10px 12px;font-size:12px}input::placeholder{color:#637994}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{color:#6881a3;font-size:9px;font-weight:500;text-transform:uppercase;letter-spacing:.7px;padding:15px 18px;background:#0a1423;border-top:1px solid #1b2b42;border-bottom:1px solid #1b2b42}td{padding:19px 18px;border-bottom:1px solid #1c2a3e;font-size:12px;color:#bbcae0}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#152338}.campaign-name{font-weight:600;color:#e2ecfc;font-size:12px;display:block;margin-bottom:6px}.campaign-source{font-size:10px;color:#6884a8}.source-badge{display:inline-block;margin-right:7px;width:7px;height:7px;border-radius:2px;background:#3694ff}.source-badge.telegram{background:#47cde4}.source-badge.other{background:#b497ed}.link-actions{display:flex;gap:6px}.icon-button{padding:7px 10px;background:#16253b;border:1px solid #2a3f5c;color:#85bfff;border-radius:7px;font-size:11px;text-decoration:none;white-space:nowrap}.completed-value{color:#65dfb5;font-weight:600}.muted{color:#637994}.empty-state{text-align:center;padding:58px 20px;color:#7891b3}.empty-state strong{display:block;color:#c3d7f2;margin:12px 0;font-size:17px}.empty-state p{font-size:12px;max-width:420px;margin:0 auto 22px;line-height:1.8}.panel-note{font-size:11px;line-height:1.7;color:#6b819f;margin:18px 2px}.notice{margin:16px 0;border:1px solid #3a4c65;background:#172438;border-radius:10px;padding:14px;font-size:12px;line-height:1.6;color:#9cb4d2}.toast{position:fixed;right:24px;bottom:24px;background:#1d3c51;border:1px solid #3e6d82;border-radius:12px;padding:14px 20px;font-size:13px;z-index:20;max-width:420px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 40%,#17386055,transparent 55%)}.login-card{width:calc(100% - 40px);max-width:400px;background:#101c2e;border:1px solid #293b58;border-radius:20px;padding:40px}.login-card h1{font-size:23px;margin-top:30px}.login-card p{color:#849bb9;font-size:13px;line-height:1.6}.login-card label{display:block;color:#9db2ce;font-size:12px;margin:24px 0 8px}.login-card input{width:100%;padding:14px}.login-card button{width:100%;margin-top:16px;padding:14px}.error{color:#ff9aa9;font-size:12px;min-height:20px;margin-top:10px}dialog{background:#111e32;color:white;border:1px solid #344d6e;border-radius:18px;padding:30px;width:calc(100% - 36px);max-width:480px}dialog::backdrop{background:#020714ba;backdrop-filter:blur(6px)}dialog h2{font-size:21px;margin:0 0 10px}dialog p{color:#91a8c7;line-height:1.6;font-size:12px}dialog label{display:block;font-size:12px;color:#a6bbd6;margin:22px 0 8px}dialog input,dialog select{width:100%;padding:13px}dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.result-link{font-family:monospace;font-size:12px;width:100%;margin:15px 0}.dialog-close{float:right;background:none;border:0;color:#7d99bf;font-size:24px}.positive{color:var(--green)}.paused{opacity:.55}@media(min-width:1300px){.preland{padding-top:42px}.globe-wrap{height:330px}}@media(max-width:1000px){.app-layout{grid-template-columns:170px 1fr}.sidebar{padding:22px 12px}.workspace{padding:28px 22px}.kpi{padding:16px}.kpi-number{font-size:30px}.topbar h1{font-size:24px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.funnel{gap:12px}}@media(max-width:720px){.app-layout{display:block}.sidebar{height:auto;position:static;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #25334a;border-right:0;padding:14px 18px}.sidebar-label,.nav-active,.sidebar-bottom{display:none}.workspace{padding:24px 16px}.topbar{align-items:flex-start}.topbar h1{font-size:23px}.topbar-actions .secondary{display:none}.kpis{grid-template-columns:repeat(2,1fr)}.kpi-number{font-size:32px}.funnel{grid-template-columns:repeat(3,1fr);gap:22px 12px}.funnel-panel{padding:20px}.campaign-toolbar{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters input{min-width:0;flex:1}.section-heading .subtle{max-width:160px;text-align:right}.preland{padding:27px 22px 18px}.globe-wrap{height:270px}.preland h1{font-size:46px}.hero-sub{font-size:14px}.telegram-button{font-size:15px;padding:20px 14px}.brand{font-size:21px}.landing-details{gap:16px;font-size:10px}.consent{padding:18px;bottom:12px;left:12px;right:12px}.consent-actions button{font-size:12px;padding:10px 12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.app-layout{grid-template-columns:220px minmax(0,1fr)}.workspace{min-width:0}@media(max-width:1000px){.app-layout{grid-template-columns:170px minmax(0,1fr)}}@media(max-width:720px){.app-layout{display:block}}
.mobile-actions{display:none}.topbar>div:first-child{min-width:0}@media(max-width:720px){.mobile-actions{display:flex;gap:10px;margin-top:22px}.topbar-actions{flex-shrink:0}.topbar-actions .primary{padding:11px 12px;font-size:11px}}
.detail-page{color-scheme:light;background:radial-gradient(ellipse at 50% 8%,#dceeff 0,transparent 40%),#f3f8ff;color:#10243e}.detail-main{max-width:580px;margin:auto;padding:34px 24px 26px}.detail-header{text-align:center}.detail-tag{display:inline-block;color:#5381ab;letter-spacing:2px;font-size:9px;font-weight:600}.detail-logo{width:86px;height:86px;background:#06152f;border-radius:26px;margin:25px auto 20px;display:grid;place-items:center;box-shadow:0 12px 30px #295f9b22}.detail-logo .brand-mark{width:70px;height:70px}.detail-logo .brand-mark img{width:126px;left:-28px;top:-18px}.detail-header h1{font-size:32px;letter-spacing:-1px;margin:0 0 12px}.detail-header h1 span{color:#0875e7}.detail-header>p{font-size:15px;line-height:1.55;color:#6583a4;margin:0}.detail-intro{display:flex;align-items:center;gap:14px;justify-content:center;border:1px solid #d6e7fb;background:#eaf4ff;border-radius:14px;margin:25px 0 35px;padding:15px}.detail-intro>span{font-size:23px;color:#0875e7}.detail-intro p{font-size:12px;line-height:1.6;color:#54789f;margin:0}.detail-benefits{position:relative;border:1px solid #c7dff8;background:linear-gradient(135deg,#ffffffdb,#eaf7ffdb);border-radius:22px;padding:25px 20px 13px}.section-badge{position:absolute;top:-15px;left:50%;transform:translateX(-50%);white-space:nowrap;background:linear-gradient(100deg,#096ee6,#25b9d8);border-radius:30px;color:white;font-size:11px;font-weight:600;padding:10px 15px;box-shadow:0 8px 16px #157edc22}.detail-benefits ul{list-style:none;margin:0;padding:0}.detail-benefits li{display:flex;gap:13px;align-items:flex-start;margin:12px 0 20px}.detail-benefits li>span{flex:0 0 22px;height:22px;background:#0a9fb6;color:white;display:grid;place-items:center;border-radius:50%;font-size:13px}.detail-benefits li p{font-size:14px;line-height:1.5;margin:0;color:#4d7197}.detail-benefits li strong{font-weight:500;color:#183d63}.detail-main .telegram-button{margin-top:22px;font-size:16px;padding:20px 17px;box-shadow:0 13px 30px #116ed52b}.detail-main .redirect-status{text-align:center;color:#7191b4;font-size:11px;line-height:1.6}.detail-main .progress-track{background:#d7e7f9}.detail-chips{display:flex;gap:8px;justify-content:center;margin:18px 0 24px}.detail-chips span{background:white;color:#4b6e95;border:1px solid #e0ebf8;border-radius:25px;padding:9px 13px;font-size:11px;box-shadow:0 4px 14px #3f78b109}.detail-rates,.detail-contacts{background:white;border:1px solid #dbe8f7;border-radius:22px;padding:25px;box-shadow:0 12px 35px #426b8c08}.detail-section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.detail-section-title h2,.detail-contacts h2{font-size:20px;margin:0;letter-spacing:-.4px}.detail-section-title>span{font-size:10px;color:#7c98b8;white-space:nowrap}.rate-line{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf2fa;padding:18px 0;gap:10px}.rate-line strong{font-size:13px;display:block;font-weight:500}.rate-line small{font-size:11px;color:#7895b4;display:block;margin-top:6px}.rate-line>b{font-size:30px;color:#0b83c6;letter-spacing:-1px;white-space:nowrap}.detail-rates>p{font-size:11px;text-align:center;color:#87a1bc;line-height:1.7;margin-bottom:0}.detail-description{text-align:center;font-size:13px;line-height:1.8;color:#7493b3;margin:25px 0}.detail-contacts>p{font-size:12px;line-height:1.6;color:#7795b5;margin:10px 0 20px}.detail-contacts>a{display:flex;gap:12px;align-items:center;text-decoration:none;border:1px solid #dceafb;border-radius:14px;padding:14px;margin-top:10px;color:#143b65}.contact-symbol{width:38px;height:38px;border-radius:12px;background:#e8f4ff;display:grid;place-items:center;color:#0a83d7;font-size:20px;flex-shrink:0}.detail-contacts a small{font-size:9px;color:#86a0bb;display:block;letter-spacing:1px;margin-bottom:5px}.detail-contacts a strong{display:block;font-size:12px;font-weight:600}.detail-contacts a>b{margin-left:auto;color:#88acce;font-size:16px}.detail-footer{text-align:center;margin-top:30px;color:#8ca4bf;font-size:10px;line-height:1.8}.detail-footer nav{display:flex;justify-content:center;gap:18px;margin-top:12px}.detail-footer a{color:#4b90c5;text-decoration:none}.detail-footer p{font-size:9px}.detail-page .consent{background:white;border-color:#c7dcf5;color:#143b65}.detail-page .consent p{color:#6a87a8}.detail-page .consent a{color:#0674d8}.detail-page .secondary{background:#edf5ff;color:#226296;border-color:#c5dcf6}.design-cell select{max-width:150px;font-size:10px;padding:7px;margin-top:8px}.auto-option{font-size:11px;color:#849bb9;display:flex;align-items:center;gap:8px;margin-top:12px}.auto-option input{width:auto!important}.source-badge.google{background:#fbbc04}@media(max-width:430px){.detail-main{padding:28px 18px 22px}.section-badge{font-size:9px;padding:10px 12px}.detail-section-title{flex-wrap:wrap;gap:8px}.detail-rates,.detail-contacts{padding:22px 18px}.rate-line strong{font-size:11px}.rate-line>b{font-size:27px}.detail-header h1{font-size:29px}.detail-main .telegram-button{font-size:13px;gap:9px}.detail-benefits li p{font-size:12px}.detail-chips span{font-size:10px;padding:8px 11px}}

.detail-main .telegram-button{color:#fff}

.detail-main .telegram-button{justify-content:center;text-align:center}.detail-main .telegram-button svg{flex-shrink:0}

.design-preview-button{display:flex;justify-content:center;margin-top:18px;text-decoration:none}.design-preview-note{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:10000;max-width:calc(100% - 28px);width:max-content;background:#082342;color:#c8efff;border:1px solid #299cce;box-shadow:0 8px 30px #0006;border-radius:12px;padding:12px 18px;font:12px/1.6 Arial,sans-serif;text-align:center}

.telegram-fallback{display:block;text-align:center;color:#7796b7;font-size:10px;line-height:1.7;text-decoration:none;margin:11px auto 0;max-width:100%}.telegram-fallback:hover{color:#35cfff}.detail-page .telegram-fallback{color:#4a81ac}

/* Separate traffic accounts and advertising profiles. */
.topbar-actions{flex-wrap:wrap;justify-content:flex-end;max-width:55%}dialog{max-height:90dvh;overflow:auto}#access-dialog{max-width:660px}#access-dialog input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0}#access-dialog fieldset{border:1px solid #304b6b;border-radius:12px;margin:20px 0;padding:14px}#access-dialog fieldset label{display:flex;gap:10px;align-items:center;margin:12px 0}#access-dialog legend{font-size:13px;color:#4edcfa}#access-dialog details{margin:18px 0;border-top:1px solid #304b6b;padding-top:16px}#access-dialog summary{cursor:pointer;font-weight:600}#access-dialog .primary{margin-top:20px}#access-dialog p{overflow-wrap:anywhere}@media(max-width:720px){.topbar{flex-direction:column}.topbar-actions{max-width:100%;width:100%;justify-content:flex-start}.topbar-actions .access-action{display:block;font-size:11px;padding:10px}#access-dialog{padding:22px}}

/* v50: compact dashboard navigation and small-screen layouts. */
#dashboard .topbar{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
#dashboard .topbar-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:none;width:100%;justify-content:stretch}
#dashboard .topbar-actions button{display:block;min-width:0;min-height:44px;padding:11px 12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#dashboard .topbar-actions .new-campaign{grid-column:4;grid-row:1;background:linear-gradient(120deg,#187fff,#0870ed)}
#dashboard .funnel{grid-template-columns:repeat(5,minmax(0,1fr))}
#dashboard .funnel-step{min-width:0}#dashboard .funnel-step span,#dashboard .funnel-step small{display:block;line-height:1.5}
#dashboard .campaign-toolbar h2{line-height:1.5}#dashboard .filters{min-width:0}#dashboard .filters input{min-width:0}
#dashboard .table-wrap{max-width:100%;scrollbar-color:#3e5f85 #101a2b}
#dashboard th{white-space:normal;line-height:1.5;min-width:90px}
#dashboard td:first-child{white-space:normal;min-width:220px;max-width:340px;overflow-wrap:anywhere}
#dashboard .campaign-source{line-height:1.7}#dashboard .link-actions{flex-wrap:wrap;max-width:245px}
#dashboard .icon-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center}
#dashboard .status-row .chip{line-height:1.45;overflow-wrap:anywhere}#dashboard .subtle,#dashboard .panel-note{color:#8ea5c3}
#dashboard .funnel-step small{color:#8aa3c4}#dashboard .campaign-source,#dashboard .muted{color:#8aa3c4}
#dashboard button:disabled{cursor:not-allowed}
#access-dialog form>button.primary{width:100%}#access-dialog label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;line-height:1.6}
dialog{overscroll-behavior:contain;scrollbar-gutter:stable;max-width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
#access-dialog{max-width:min(660px,calc(100vw - 24px))}dialog h2{padding-right:24px;overflow-wrap:anywhere}dialog input,dialog select{min-width:0;max-width:100%}dialog fieldset{min-width:0}dialog code{overflow-wrap:anywhere}
.dialog-close{position:sticky;top:0;z-index:2;border-radius:8px;background:#111e32;min-width:36px;min-height:36px;margin:-8px -8px 0 6px}
.toast{max-width:calc(100vw - 32px);overflow-wrap:anywhere}
@media(max-width:1200px) and (min-width:721px){#dashboard.app-layout{grid-template-columns:170px minmax(0,1fr)}#dashboard .workspace{padding:28px 20px}#dashboard .sidebar{padding:22px 12px}#dashboard .topbar-actions{grid-template-columns:repeat(3,minmax(0,1fr))}#dashboard .topbar-actions .new-campaign{grid-column:3;grid-row:1}#dashboard .funnel{gap:14px}}
@media(max-width:850px){#dashboard .funnel{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}#dashboard .campaign-toolbar{align-items:stretch;flex-direction:column}#dashboard .filters{width:100%}#dashboard .filters input{flex:1}}
@media(max-width:720px){#dashboard .workspace{padding:22px 14px}#dashboard .topbar{gap:18px}#dashboard .topbar-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .topbar-actions .new-campaign{grid-column:2;grid-row:1}#dashboard .topbar-actions button{font-size:12px;padding:11px 9px}#dashboard .funnel{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}#dashboard .funnel-step:last-child{grid-column:1/-1}#dashboard .funnel-panel{padding:18px;margin:18px 0}#dashboard .section-heading{align-items:flex-start}#dashboard .section-heading h2{line-height:1.45}#dashboard .section-heading .subtle{max-width:110px}#dashboard .status-row{gap:7px;margin:20px 0 16px}#dashboard .chip{font-size:10px;padding:7px 9px}
#dashboard .table-wrap{overflow:visible}#dashboard table,#dashboard tbody{display:block;width:100%;white-space:normal}#dashboard thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#dashboard tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:16px;border-top:1px solid #2a3d57}#dashboard td{display:block;min-width:0!important;max-width:none!important;border:0;padding:10px 6px;line-height:1.5}#dashboard td:before{content:attr(data-label);display:block;color:#8ea5c3;font-size:10px;line-height:1.5;margin-bottom:6px;font-weight:400}#dashboard td:first-child,#dashboard td:last-child{grid-column:1/-1}#dashboard td:first-child{padding-top:0;padding-bottom:14px;border-bottom:1px solid #25364e}#dashboard td:first-child:before,#dashboard td:last-child:before{display:none}#dashboard td:last-child{padding-bottom:0}#dashboard .campaign-name{font-size:14px;line-height:1.5}#dashboard .link-actions{max-width:none;gap:8px}#dashboard .link-actions .icon-button{min-height:40px;padding:9px 12px}#dashboard .campaign-toolbar{padding:18px 16px}#dashboard .mobile-actions{justify-content:flex-end}dialog,#access-dialog{padding:22px 18px}dialog input,dialog select,.login-card input{font-size:16px}dialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr}dialog .dialog-actions button{min-height:44px;padding:12px 8px}.login-card{padding:28px 22px}.toast{left:16px;right:16px;bottom:16px}}
@media(max-width:380px){#dashboard .filters{flex-direction:column}#dashboard .filters input,#dashboard .filters select{width:100%}#dashboard .topbar h1{font-size:22px}#dashboard .section-heading{flex-direction:column;gap:6px}#dashboard .section-heading .subtle{max-width:none;text-align:left}}

/* v51: management navigation and consistently aligned form controls. */
#dashboard .sidebar{overflow-y:auto;gap:0}
.management-menu{margin:30px 0 20px;min-width:0}.management-menu summary{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#8ea5c3;list-style:none;margin:0 10px 12px;cursor:default}.management-menu summary::-webkit-details-marker{display:none}
#management-nav{display:flex;flex-direction:column;gap:7px;min-width:0}
#management-nav button,#management-nav a{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:0;min-height:44px;text-align:left;padding:12px 13px;border-radius:9px;font-size:12px;font-weight:500;line-height:1.5;text-decoration:none;white-space:normal;overflow-wrap:anywhere;background:transparent;border:1px solid transparent;color:#a8bed9;cursor:pointer}
#management-nav .nav-active{background:#133158;border-color:#24486f;color:#a9d6ff}
#management-nav button:hover,#management-nav a:hover{background:#17273e;border-color:#304764;color:#eff7ff}
#dashboard .sidebar-bottom{padding-top:18px}#dashboard .topbar{display:flex;align-items:center;justify-content:space-between}#dashboard .topbar-actions{display:flex;width:auto;max-width:none;flex-shrink:0}#dashboard .topbar-actions .new-campaign{min-width:150px;min-height:44px}
#access-dialog .check-row,#access-dialog fieldset .check-row{display:flex;align-items:flex-start;gap:12px;margin:20px 0 12px;padding:4px 0;line-height:1.6;cursor:pointer;min-height:28px}
#access-dialog .check-row>input[type=checkbox]{display:block;flex:0 0 18px;width:18px;height:18px;min-width:18px;padding:0;margin:1px 0 0;accent-color:#228cff}
#access-dialog .check-row>span{display:block;flex:1;min-width:0;margin:0;line-height:20px;overflow-wrap:anywhere}
#access-dialog fieldset .check-row{margin:8px 0}#access-dialog form>button.primary{min-height:44px;margin-top:20px;margin-bottom:0}#access-dialog .domain-refresh{margin-top:12px;display:grid}#access-dialog .domain-refresh button{width:100%;min-height:44px;margin:0;padding:12px 14px;line-height:1.5}
#access-dialog form{min-width:0}#access-dialog>button.primary,#access-dialog>button.secondary{min-height:44px}
@media(max-width:1000px) and (min-width:721px){#dashboard .topbar{align-items:flex-start;gap:14px}#dashboard .topbar h1{font-size:24px}#dashboard .topbar-actions .new-campaign{min-width:130px}}
@media(max-width:720px){#dashboard .sidebar{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:16px 14px;overflow:visible}#dashboard .sidebar .brand{align-self:flex-start}#dashboard .management-menu{margin:0;border:1px solid #2a3e5a;border-radius:12px;background:#101c2d}#dashboard .management-menu summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;margin:0;padding:13px 14px;min-height:44px;font-size:12px;letter-spacing:0;text-transform:none;color:#d1e3fa;font-weight:600}#dashboard .management-menu summary:after{content:'＋';font-size:18px;color:#6fbaff}#dashboard .management-menu[open] summary:after{content:'−'}#management-nav{padding:0 8px 8px;gap:4px}#management-nav button,#management-nav a{min-height:44px;padding:11px 12px;font-size:13px}#dashboard .topbar{display:flex;align-items:flex-start;flex-direction:column;gap:16px}#dashboard .topbar-actions{width:100%;display:flex}#dashboard .topbar-actions .new-campaign{width:100%;min-height:46px;font-size:13px}#dashboard .actor-note{margin:16px 2px}#access-dialog .check-row{gap:12px}#access-dialog .check-row>span{font-size:13px;line-height:21px}}

#access-dialog label.check-row:has(input[type=checkbox]){gap:12px;align-items:flex-start}

/* v52: live configuration and observed service states. */
#management-nav button{flex-direction:column;align-items:flex-start;gap:5px}#management-nav .menu-title{display:block}
.service-state{display:inline-flex;align-items:center;gap:6px;max-width:100%;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:500;line-height:1.5;white-space:normal;overflow-wrap:anywhere;border:1px solid #3a4b63;background:#192638;color:#a6bad5}
.service-state:before{content:'';width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
.service-state.state-ok{color:#77e4bb;border-color:#275748;background:#12372c}.service-state.state-error{color:#ffb0b8;border-color:#744451;background:#3b202b}.service-state.state-warning{color:#f0d18b;border-color:#645334;background:#342c1d}.service-state.state-off,.service-state.state-unknown{color:#aebed1}
.service-current-status{margin:16px 0 20px;padding:14px;border:1px solid #304862;border-radius:10px;background:#0d192a}.service-current-status p{margin:9px 0 0;line-height:1.65}.service-current-status>b{font-size:12px;margin-right:8px}

.object-owner,.object-creator{display:block;line-height:1.65;overflow-wrap:anywhere;white-space:normal}.object-owner{color:#b8d9f6;font-size:11px;margin:5px 0 2px}.object-creator{color:#8ea5c3;font-size:10px;margin-bottom:7px}

.panel-user{padding:14px 0;border-bottom:1px solid #2b3c54;font-size:12px;line-height:1.8}.panel-user .service-state{margin-top:8px}.panel-user p{margin:8px 0 0}
#campaign-statistics-dialog{max-width:min(1080px,calc(100vw - 24px));width:calc(100% - 24px)}#geo-stage-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0}
.geo-stage{background:#17283e;border:1px solid #324b68;color:#c6daf2;border-radius:10px;padding:12px;text-align:left;min-width:0;min-height:76px;font:inherit;cursor:pointer}.geo-stage span{display:block;font-size:11px;line-height:1.5}.geo-stage b{display:block;font-size:22px;margin-top:6px}.geo-stage.selected{border-color:#27b9ef;background:#123451;color:white}.geo-table-wrap{overflow:auto;max-width:100%}.geo-table-wrap table{white-space:normal}.geo-table-wrap th,.geo-table-wrap td{padding:13px 12px;line-height:1.6}.geo-table-wrap td:first-child{min-width:130px}.geo-table-wrap small{color:#91a8c5}
@media(max-width:720px){#geo-stage-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-stage{padding:11px;min-height:78px}#campaign-statistics-dialog{padding:22px 16px}.geo-table-wrap table{min-width:480px}.panel-user .service-state{font-size:11px}}

.geo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.geo-toolbar p{overflow-wrap:anywhere;min-width:0}.geo-toolbar button{flex-shrink:0;min-height:40px}

.report-period{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:16px 0}.report-period label{display:flex;flex-direction:column;gap:7px;color:#9fb5d2;font-size:11px;margin:0}.report-period input,.report-period select{min-width:140px}.report-period button{min-height:38px}.report-period p{flex-basis:100%;margin:0;line-height:1.6;color:#8da5c3;font-size:11px}
.conversion-grid,.delay-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.conversion-grid>div,.delay-grid>div{padding:14px;border:1px solid #30445e;border-radius:10px;min-width:0}.conversion-grid span,.delay-grid span{display:block;font-size:11px;line-height:1.6;color:#9cb4d1}.conversion-grid b,.delay-grid b{display:block;margin:8px 0;font-size:21px}.conversion-grid small,.delay-grid small{color:#8da5c3;line-height:1.6}.quality-summary{display:flex;gap:9px;flex-wrap:wrap}.quality-item{border:1px solid #30445e;border-radius:9px;padding:10px 12px;font-size:12px}.quality-item b{margin-left:8px;color:#73d9ef}.quality-inline{display:block;font-size:10px;color:#8da5c3;margin-top:6px;white-space:normal;line-height:1.6}
@media(max-width:720px){.conversion-grid,.delay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-period label{flex:1;min-width:120px}.report-period label input,.report-period label select{min-width:0;width:100%}.report-period button{width:100%}.conversion-grid b,.delay-grid b{font-size:19px}}

.geo-comparison-table{min-width:980px;width:100%;margin:12px 0}.geo-comparison-table td{vertical-align:top}.geo-comparison-table small,.geo-comparison-table td:last-child span{display:block;color:var(--muted,#91a8c9);font-size:11px;margin:3px 0}.geo-comparison-table td:last-child b{display:block}#geo-comparison{margin:24px 0;padding-top:10px;border-top:1px solid #29415e}#geo-selected-country{max-width:360px;margin:8px 0 14px}#geo-country-detail .quality-summary{margin:12px 0}
