:root{font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ink:#20253d;--muted:#59647d;--line:#dce2ef;--bg:#f5f6fc;--purple:#6546df;--soft:#eeeaff;--teal:#087e86;--green:#087b50;--red:#ca2f49;--amber:#a7600a;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:10px;padding:10px 15px;min-height:44px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.4}button:hover{border-color:#a393e6;background:#f6f3ff}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #16a9b6;outline-offset:3px}.primary{background:var(--purple);color:white;border-color:var(--purple)}.primary:hover{background:#5036c4;color:white}.quiet{color:var(--purple);background:#f6f3ff;border-color:transparent}.danger{color:var(--red);border-color:#f1c9d2;background:#fff6f7}.icon-button{width:44px;padding:9px;flex-shrink:0}.icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.22;letter-spacing:-.8px}h2{font-size:21px;line-height:1.35}h3{font-size:17px}p+p{margin-top:10px}.muted{color:var(--muted)}.small,small{font-size:15px}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:700;color:#787591;margin-bottom:10px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:30px;font-size:15px;font-weight:600;white-space:nowrap}.neutral{color:#66568f;background:var(--soft)}.teal{background:#e4f6f6;color:var(--teal)}.success{color:var(--green);background:#e9f8f0}.warning{color:var(--amber);background:#fff3de}.brand{display:flex;align-items:center;gap:12px;font-weight:750;line-height:1.35;font-size:15px}.brand-mark{display:inline-grid;place-items:center;width:47px;height:49px;border-radius:13px;background:#7957ee;color:white;font-size:18px;font-weight:800;flex-shrink:0;letter-spacing:-.4px}.app-layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100dvh;min-height:600px;background:#191d35;color:#f3f4ff;padding:30px 18px 18px;display:flex;flex-direction:column;z-index:25}.sidebar>.brand{padding:0 5px}.aside-label{color:#9fa8c6;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;margin:43px 14px 14px;line-height:1.8}.sidebar nav{display:grid;gap:7px}.side-link{width:100%;justify-content:flex-start;white-space:nowrap;border:0;background:transparent;color:#bac2dc;font-weight:500;text-align:left;padding:12px 14px;gap:11px}.side-link:hover,.side-link.current{color:white;background:#343250}.side-link.current{font-weight:650;box-shadow:inset 3px 0 #a18af8}.nav-count{margin-left:auto;background:#ffffff15;border-radius:7px;padding:0 6px;font-size:15px}.nav-icon{display:inline-flex}.side-note{margin-top:auto;display:flex;gap:10px;padding:28px 12px 22px;color:#9ca7c5;font-size:15px}.side-note .icon{width:17px}.side-profile{margin-top:auto;border-top:1px solid #35394f;padding:20px 6px 12px;display:flex;align-items:center;gap:12px;min-width:0}.avatar{display:inline-grid;place-items:center;width:38px;height:38px;background:#343553;border-radius:50%;flex-shrink:0}.side-profile strong{display:block;font-size:15px;overflow-wrap:anywhere}.side-profile div{min-width:0}.side-profile div>span{font-size:15px;color:#b7bfd8}.logout{font-size:15px;padding:10px 8px}.main-column{min-width:0;display:flex;flex-direction:column}.topbar{height:75px;flex-shrink:0;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px}.topbar-start{display:flex;align-items:center;gap:12px;min-width:0}#breadcrumb{color:var(--muted);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.read-only{font-size:15px;color:var(--muted);display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.read-only .icon{width:16px;height:16px}main{padding:32px 36px 34px;width:100%;max-width:1600px;margin:0 auto;flex:1;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading .muted{margin-top:9px;max-width:760px}.source-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.source-tabs button{padding:10px 16px;background:white;font-weight:600}.source-tabs button.active{background:var(--soft);border-color:var(--purple);color:#5437c6;box-shadow:0 0 0 1px var(--purple)}.source-logo{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:7px;font-weight:800;font-size:15px;flex:0 0 25px}.source-logo.direct{background:#ffeae5;color:#cd4337}.source-logo.vk{background:#e4efff;color:#0671e9;font-size:12px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.card,.panel,.project-card{background:white;border:1px solid var(--line);border-radius:17px;padding:24px;min-width:0}.panel{margin-bottom:22px}.project-card{box-shadow:0 4px 18px #20253d03;display:flex;flex-direction:column}.project-card:hover{border-color:#b4a7e8;box-shadow:0 8px 25px #45318308}.project-top{display:flex;align-items:center;gap:14px;margin-bottom:20px}.project-logo{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:15px;background:var(--soft);color:var(--purple);font-size:25px;font-weight:700}.project-card:nth-child(even) .project-logo{background:#e2f4f3;color:#06858a}.project-top h2{font-size:23px;letter-spacing:-.4px;overflow-wrap:anywhere;margin-bottom:5px}.snap-caption{display:flex;align-items:flex-start;gap:8px;font-size:15px;color:#59637c;margin-bottom:15px}.snap-caption .icon{width:18px;height:18px;flex-basis:18px;margin-top:2px}.project-metrics{display:grid;grid-template-columns:1fr 1fr;gap:17px 18px;border-block:1px solid var(--line);padding:20px 0}.metric-label{font-size:15px;color:var(--muted)}.project-metrics strong{display:block;font-size:25px;font-weight:750;letter-spacing:-.6px;margin-top:3px;font-variant-numeric:tabular-nums}.snapshot-status{padding:12px 14px;background:#f7f7fc;border-radius:10px;font-size:15px;margin-top:18px}.snapshot-status>span{display:block;color:var(--muted);margin-top:3px}.status-line{display:flex;align-items:center;gap:7px}.status-dot{width:7px;height:7px;background:#23a57c;border-radius:50%;flex:0 0 7px}.project-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto;padding-top:22px}.project-bottom small{flex:1;min-width:100px;color:var(--muted)}.project-bottom button{white-space:nowrap;flex-shrink:0}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:12px;min-height:235px;padding:26px;grid-column:1/-1}.empty>.icon{width:36px;height:36px;color:#9788ce;flex-basis:36px}.empty p{color:var(--muted);max-width:550px}.loading{color:var(--muted);padding:30px}.skeleton{color:#9ba1b6!important}.detail-back{margin-bottom:18px}.filter-panel{padding:22px 24px}.filter-grid{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(180px,1fr);gap:20px;align-items:start}.field-label{display:block;color:#58627b;font-weight:600;font-size:15px;margin-bottom:7px}label{display:block;font-weight:600;font-size:15px}input,select{font:inherit;border-radius:9px;border:1px solid #b9c2d8;min-height:46px;padding:10px 12px;background:#f7f6fd;width:100%;color:var(--ink)}select{cursor:pointer}input::placeholder{color:#8b91a4}input:not([type=checkbox]){display:block}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--purple);padding:0;flex-shrink:0}.check{display:flex;align-items:center;gap:9px;font-weight:400;font-size:15px;cursor:pointer}.filter-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:19px}.meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px 24px;font-size:15px;color:var(--muted);margin-top:17px}.meta-row span{display:inline-flex;align-items:center;gap:7px}.meta-row .icon{width:16px;height:16px;flex-basis:16px}.archive-control{margin-top:16px}.archive-control summary{cursor:pointer;color:var(--purple);font-size:15px;font-weight:600;padding:8px 0}.periods{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.periods button{font-size:15px;min-height:40px;padding:8px 12px}.periods button.selected{border-color:var(--purple);color:var(--purple);background:var(--soft)}.section-tabs{display:flex;gap:6px;padding:6px;background:#eaeaf5;border-radius:12px;margin:23px 0}.section-tabs button{background:transparent;border:0;min-width:122px;color:#626a83}.section-tabs button.active{background:white;color:var(--purple);box-shadow:0 2px 7px #22224913}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.panel-head h2{display:flex;align-items:center;gap:10px}.panel-head h2>.icon{color:var(--purple)}.panel-head p{font-size:15px;color:var(--muted);margin-top:5px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi{background:white;border:1px solid var(--line);border-radius:14px;padding:19px;min-width:0}.kpi:first-child{border-color:#d7cef8;background:#fbfaff}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:9px;color:var(--muted);font-size:15px;min-height:24px}.kpi-top>.icon{color:#9a8bcf;width:18px;height:18px;flex-basis:18px}.kpi strong{display:block;font-size:27px;font-weight:750;letter-spacing:-.8px;margin:10px 0 5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.kpi small{display:block;font-size:15px;color:var(--muted)}.support-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.support-metrics>div{border-left:1px solid var(--line);padding-left:18px}.support-metrics>div:first-child{padding-left:0;border-left:0}.support-metrics strong{display:block;font-size:21px;margin-top:4px;font-variant-numeric:tabular-nums}.note{display:flex;align-items:flex-start;gap:9px;background:#f6f5fc;border-radius:10px;padding:13px 15px;color:#66708a;font-size:15px;line-height:1.6;margin-top:18px}.note>.icon{width:17px;height:17px;flex-basis:17px;margin-top:3px}.table-wrap{overflow:auto;max-width:100%;border:1px solid #e5e8f1;border-radius:10px}table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}th,td{padding:14px 15px;border-bottom:1px solid #e3e7f0;text-align:right;white-space:nowrap;vertical-align:middle}th{color:#69748e;background:#f4f5fb;font-weight:600;font-size:15px}td:first-child,th:first-child{text-align:left;white-space:normal;min-width:200px}td:first-child strong{display:block}td small{display:block;color:var(--muted);margin-top:4px;font-size:15px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfaff}tfoot td{font-weight:700;background:#f3f0ff;border-top:2px solid #c2b6ef}.goal-name{font-weight:600}.goal-name+.muted{font-size:15px}.origin{font-size:15px;border-radius:6px;padding:4px 8px;background:#f1effa;color:#665389;display:inline-block;white-space:nowrap}.origin.vk{background:#eaf2ff;color:#1e67b3}.origin.metrika{background:#e9f6f3;color:#227569}.comparison-periods{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:22px}.comparison-periods>div{background:#fafafe;border:1px solid var(--line);border-radius:12px;padding:15px 18px}.comparison-periods>div:last-child{background:#f5f2ff;border-color:#d8cff6}.comparison-periods small{color:var(--muted);display:block;margin-bottom:5px}.comparison-periods strong{font-size:15px}.comparison-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.compare-metric{padding:15px;background:#f7f7fc;border-radius:11px}.compare-values{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-weight:700;font-size:19px;margin:9px 0}.compare-values span{white-space:nowrap}.compare-arrow{color:#9b9fb1;font-weight:400}.delta{font-size:15px;font-weight:600}.up{color:var(--green)}.down{color:var(--red)}.flat{color:var(--muted)}.chart-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}.chart-controls label{min-width:240px}.chart-legend{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.legend-item{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;padding:7px 11px;background:#f6f3ff;color:var(--purple);border-radius:8px}.legend-item.before{color:#787d8c;background:#f6f6f8}.line-sample{width:25px;border-top:3px solid currentColor}.before .line-sample{border-top-style:dashed}.chart-total{font-size:15px;color:var(--muted);text-align:right}.chart-total strong{display:block;color:var(--ink);font-size:18px;margin-top:3px}.chart-wrap{position:relative;min-width:0;min-height:280px}canvas{display:block;width:100%;height:280px;touch-action:pan-y}.chart-tip{position:absolute;z-index:4;pointer-events:none;width:max-content;max-width:min(310px,100%);background:#25283f;color:white;padding:12px 15px;border-radius:11px;box-shadow:0 7px 20px #20253d27;font-size:15px;line-height:1.6}.chart-tip strong{color:white}.chart-tip>div+div{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff22}.chart-tip .tip-value{font-size:16px;font-weight:700;color:#d9d0ff}.chart-caption{font-size:15px;color:var(--muted);margin-top:12px;line-height:1.6}.daily-details{margin-top:20px}.daily-details summary{cursor:pointer;font-weight:600;color:var(--purple);padding:12px 0}.access-hero{display:flex;align-items:center;gap:18px;margin-bottom:24px}.access-hero .avatar{width:55px;height:55px;background:var(--soft);color:var(--purple);font-size:23px}.access-hero p{font-size:15px;color:var(--muted);margin-top:3px}.access-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.access-projects article{padding:18px;background:#f8f8fc;border-radius:11px;border:1px solid var(--line)}.access-projects .pill{margin-top:9px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:16px 0}.user-row strong{display:block}.user-row small{color:var(--muted);display:block;margin-top:4px}.user-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:900px}.user-form input,.user-form select{margin-top:7px}.full-width{grid-column:1/-1}.user-form h3{margin-top:9px}.grant-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grant-options label{background:#f8f8fc;padding:12px;border-radius:8px}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:40px}.login-card{display:grid;grid-template-columns:1.1fr 1fr;border-radius:24px;border:1px solid var(--line);overflow:hidden;width:100%;max-width:1150px;box-shadow:0 16px 55px #20253d05;background:white}.login-art{background:#20243f;color:white;padding:48px;display:flex;flex-direction:column;min-height:590px}.login-message{margin:auto 0;padding:50px 0}.login-message h1{font-size:42px;letter-spacing:-1px;line-height:1.22}.login-message .eyebrow{color:#b7a8ef}.login-message>p:last-child{color:#b8c1dc;margin-top:24px;font-size:17px}.domain-pill{align-self:flex-start;background:#eeeaff;color:#6650ad;border-radius:30px;padding:7px 13px;font-size:15px;font-weight:700}.login-form{padding:50px 44px;align-self:center}.login-form h2{font-size:27px;margin-top:22px}.login-form>.muted{font-size:15px;margin-top:12px;margin-bottom:26px}.login-form label{margin-top:18px;color:#525c75}.login-form input{margin-top:8px;min-height:50px}.login-submit{width:100%;justify-content:space-between;margin-top:24px;min-height:50px}.form-help{font-size:15px;color:var(--muted);margin-top:18px;line-height:1.6}.privacy-line{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;color:#8a91a6;font-size:15px;display:flex;gap:8px}footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 36px;padding:20px 0 25px;border-top:1px solid var(--line);font-size:15px;color:var(--muted)}footer>span:last-child{display:inline-flex;align-items:center;gap:7px}footer .icon{width:15px;height:15px;flex-basis:15px}#notice{position:fixed;top:18px;right:24px;z-index:80;max-width:min(600px,calc(100vw - 32px));padding:15px 20px;background:#fff4e4;color:#86500b;border:1px solid #edd6b3;border-radius:12px;box-shadow:0 8px 25px #513b1815;font-size:15px}.mobile-menu{display:none}.nav-overlay{display:none}.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:white;color:var(--purple);padding:12px}.skip-link:focus{top:10px}[hidden]{display:none!important}@media(min-width:1600px){.kpi strong{font-size:30px}.project-card{padding:28px}}@media(max-width:1200px){main{padding:28px 24px}.topbar{padding:0 24px}footer{margin:0 24px}.app-layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding-inline:14px}.project-card{padding:21px}.project-top h2{font-size:21px}.project-bottom .primary{padding:10px 12px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.support-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.support-metrics>div:nth-child(4){padding-left:0;border-left:0}.login-art{padding:38px}.login-form{padding:40px 32px}.login-message h1{font-size:36px}}@media(max-width:950px){.project-grid{grid-template-columns:1fr}.project-card{padding:24px}.project-top h2{font-size:24px}.filter-grid{grid-template-columns:1fr}.support-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.user-form{grid-template-columns:1fr}.full-width{grid-column:auto}.grant-options{grid-template-columns:1fr}.login-shell{padding:28px}.login-message h1{font-size:32px}}@media(max-width:700px){.app-layout{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;transform:translateX(-100%);transition:transform .18s;min-height:0;height:100dvh}.nav-open .sidebar{transform:translateX(0)}.nav-open .nav-overlay{display:block;position:fixed;inset:0;border:0;border-radius:0;background:#11152a66;z-index:24}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 16px;position:sticky;top:0;z-index:15}.read-only{font-size:0;gap:0}.read-only>.icon{width:18px;height:18px}.topbar #breadcrumb{font-size:15px}main{padding:23px 16px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:23px}.page-heading h1{font-size:27px}.page-heading .muted{font-size:15px}.page-heading>.pill{font-size:12px;padding:5px 8px;white-space:normal;text-align:center}.source-tabs{gap:8px;margin-bottom:19px}.source-tabs button{font-size:15px;padding:9px 12px}.project-top h2{font-size:22px}.project-card,.panel{padding:19px;border-radius:14px}.project-grid{gap:17px}.project-bottom{gap:12px}.project-bottom button{font-size:15px}.project-metrics strong{font-size:25px}.snapshot-status{font-size:15px}.kpi{padding:15px}.kpi strong{font-size:24px}.kpi-top{font-size:15px}.support-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.support-metrics>div:nth-child(odd){padding-left:0;border-left:0}.support-metrics>div:nth-child(4){padding-left:18px;border-left:1px solid var(--line)}.section-tabs button{min-width:0;flex:1;padding:10px 8px;font-size:15px}.section-tabs .icon{width:16px;height:16px;flex-basis:16px}.panel-head h2{font-size:18px}.comparison-periods{gap:10px}.comparison-periods>div{padding:12px}.comparison-periods strong{font-size:15px}.comparison-periods small{font-size:15px}.compare-values{font-size:17px}.chart-controls{gap:15px}.chart-controls label{width:100%;min-width:0}.chart-total{text-align:left}.chart-legend{gap:7px}.legend-item{font-size:12px;padding:6px 8px}.chart-wrap{min-height:250px}canvas{height:250px}.chart-caption{font-size:15px}.access-projects{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-direction:column;gap:12px}.login-shell{padding:16px}.login-card{grid-template-columns:1fr;border-radius:18px}.login-art{min-height:0;padding:26px}.login-message{padding:35px 0 0;margin:0}.login-message .eyebrow{display:none}.login-message h1{font-size:30px}.login-message>p:last-child{font-size:15px;margin-top:14px}.domain-pill{display:none}.login-form{padding:28px 25px}.login-form h2{font-size:25px;margin-top:16px}.privacy-line{margin-top:23px}footer{margin:0 16px;padding-bottom:22px;font-size:12px}.filter-bottom{align-items:flex-start}.meta-row{font-size:15px}th,td{padding:12px}#notice{right:16px;top:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.vat-control{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 18px}.vat-control .check{font-weight:600}.vat-control input{accent-color:var(--purple);width:20px;height:20px}.vat-control>label{display:flex;align-items:center;gap:9px}.vat-control select{width:90px;min-height:42px;padding:7px 12px;background:var(--soft);border:1px solid #c9bff3;border-radius:9px}.vat-help{position:relative;color:var(--purple)}.vat-help summary{list-style:none;cursor:pointer;font-size:24px;padding:2px 8px}.vat-help>div{position:absolute;right:0;z-index:22;width:min(360px,calc(100vw - 50px));background:white;color:var(--ink);padding:18px;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #20253d22;font-size:15px}@media(max-width:700px){.vat-control{justify-content:flex-start;gap:10px;font-size:15px}}

.access-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.direction-column{--direction:#6546df;--direction-dark:#382875;min-width:0;border:1px solid #d4dbe8;border-radius:15px;background:#f3f5f9;overflow:hidden}
.direction-vk{--direction:#0969c8;--direction-dark:#174772}.direction-seo{--direction:#087e69;--direction-dark:#284b47}
.direction-heading{display:flex;align-items:center;gap:12px;padding:18px 20px;background:var(--direction-dark);color:white;border-bottom:4px solid var(--direction)}
.direction-heading h3{font-size:20px;margin:0;overflow-wrap:anywhere;line-height:1.4}
.direction-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#ffffff1c;color:white;flex-shrink:0}
.direction-icon.vk,.direction-icon.seo{background:#ffffff1c;color:white}
.direction-count{margin-left:auto;background:#ffffff22;color:white;min-width:30px;padding:3px 8px;border-radius:9px;text-align:center;font-size:16px;font-weight:700}
.direction-projects{padding:16px;display:grid;gap:14px}
.direction-projects article{background:white;border:1px solid #d3dbe8;border-radius:11px;padding:18px;min-width:0;box-shadow:0 2px 4px #20253d05}
.direction-projects h4{margin:0 0 17px;font-size:19px;line-height:1.45;overflow-wrap:anywhere}
.access-open{font-size:16px;min-height:46px;width:100%;justify-content:space-between;text-align:left;background:var(--direction);border-color:var(--direction);color:white;gap:12px;padding:11px 14px}
.access-open:hover{background:var(--direction-dark);border-color:var(--direction-dark);color:white}.access-open span{white-space:nowrap}.access-open .icon{flex-shrink:0}
.direction-empty{padding:12px 5px;color:#526078;font-size:16px;line-height:1.65}
.access-hero p{font-size:16px;overflow-wrap:anywhere}.access-hero h2{font-size:23px}
.note{font-size:15px;color:#505c76}.metric-label,.field-label,label,.check,.panel-head p{font-size:15px}
@media(max-width:1150px){.access-directions{grid-template-columns:1fr}.direction-projects{grid-template-columns:repeat(2,minmax(0,1fr))}.direction-empty{grid-column:1/-1}}
@media(max-width:700px){.direction-projects{grid-template-columns:1fr}.direction-heading{padding:15px}.access-hero{gap:12px}.access-hero p{font-size:15px}.access-hero .avatar{width:44px;height:44px}.kpi-top,.kpi small,.chart-caption,.meta-row,.snapshot-status{font-size:15px}.page-heading>.pill{font-size:13px}.legend-item{font-size:14px}.direction-heading h3{font-size:19px}}

/* Published slices calendar: selection, availability and today are independent. */
.slice-calendar{margin-top:22px;border:1px solid #cec5ef;border-radius:14px;background:#fff;overflow:hidden}
.slice-calendar>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;color:#44327e;font-size:17px;font-weight:700;background:#f5f2fe;min-height:58px}
.slice-calendar>summary::-webkit-details-marker{display:none}.calendar-summary-icon{font-size:24px;line-height:1}.calendar-summary-period{margin-left:auto;font-size:15px;font-weight:600;color:#586079}.calendar-chevron{font-size:23px}.slice-calendar[open] .calendar-chevron{transform:rotate(180deg)}
.calendar-body{padding:20px}.calendar-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;color:#536078;margin-bottom:18px}.calendar-legend>span{display:flex;align-items:center;gap:8px}.calendar-legend i{display:inline-block;flex-shrink:0}.legend-range{width:19px;height:14px;background:#e9e2ff;border:1px solid #8263e4;border-radius:4px}.legend-published{width:8px;height:8px;border-radius:50%;background:#008563}.legend-today{width:17px;height:17px;border:2px solid #ce7600;border-radius:5px}
.calendar-navigation{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.calendar-navigation>button{min-width:42px;min-height:42px;justify-content:center;background:#f5f2fe;border-color:#d4caef;color:#5739b1}.calendar-window{font-size:15px;color:#414b65}.calendar-navigation .calendar-return{margin-left:auto;font-size:14px;padding:8px 12px}
.calendar-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.calendar-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.calendar-month h3{text-transform:capitalize;font-size:16px;margin:0 0 14px;text-align:center}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-weekdays{font-size:12px;color:#68738a;text-align:center;margin-bottom:8px}.calendar-days>span{min-height:36px}.calendar-day{position:relative;min-width:0;min-height:36px;padding:4px 0 9px;display:flex;justify-content:center;align-items:center;border:2px solid transparent;border-radius:7px;background:transparent;color:#263049;font-size:14px;font-weight:500;box-shadow:none}.calendar-day:hover{background:#edf0f7;border-color:#abb6cc}.calendar-day.in-range{background:#ece6ff;color:#4e31ae}.calendar-day.range-start,.calendar-day.range-end{background:#6746db;color:white;font-weight:700}.calendar-day.is-today{border-color:#ce7600}.calendar-day:focus-visible{outline:3px solid #1c73d4;outline-offset:1px}.calendar-day.focused-day{box-shadow:inset 0 0 0 1px #263e75}.published-dot{position:absolute;bottom:3px;width:5px;height:5px;border-radius:50%;background:#008563}.range-start .published-dot,.range-end .published-dot{background:#a3ffdb}
.calendar-results{border-left:1px solid #e1e5ee;padding-left:20px;min-width:0}.calendar-results h3{font-size:16px;margin:0 0 7px}.calendar-results-help,.calendar-hint,.calendar-empty{font-size:14px;line-height:1.6;color:#5a667f}.calendar-slices{display:grid;gap:8px;max-height:305px;overflow:auto;margin-top:13px;padding:2px}.calendar-slice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:11px 12px;background:#f9fafc;white-space:normal;border:1px solid #dce1ec;border-radius:9px}.calendar-slice strong{font-size:14px}.calendar-slice span{font-size:13px;color:#667189}.calendar-slice.selected{border-color:#7658d6;background:#f1ecff}.calendar-slice.selected strong{color:#5135af}.calendar-all{margin-top:12px;font-size:14px;color:#583ab5}.calendar-hint{margin:18px 0 0;padding-top:14px;border-top:1px solid #e5e8f0}
@media(max-width:1300px){.calendar-content{grid-template-columns:1fr}.calendar-results{border-left:0;padding-left:0;border-top:1px solid #e1e5ee;padding-top:18px}.calendar-slices{grid-template-columns:repeat(2,minmax(0,1fr));max-height:230px}}
@media(max-width:700px){.calendar-summary-period{display:none}.calendar-body{padding:15px}.calendar-months{grid-template-columns:1fr}.calendar-month:not(:nth-child(2)){display:none}.calendar-month h3{font-size:18px}.calendar-day{min-height:42px;font-size:16px}.calendar-window{display:none}.calendar-navigation .calendar-return{font-size:13px}.calendar-legend{gap:10px;font-size:13px}.calendar-slices{grid-template-columns:1fr}.calendar-summary-icon{font-size:22px}}

/* 0.2.6: aligned traffic metrics and compact campaign overview. */
.support-metrics>div,.support-metrics>div:first-child{padding-left:18px;border-left:1px solid var(--line)}
.campaign-table{table-layout:fixed;font-size:15px;line-height:1.4}
.campaign-table th,.campaign-table td{padding:12px 7px}
.campaign-table th{white-space:normal;overflow-wrap:normal;vertical-align:middle;height:64px;line-height:1.3}
.campaign-table th:first-child,.campaign-table td:first-child{min-width:0;width:auto;padding-left:14px;overflow-wrap:anywhere}
.campaign-table th:last-child,.campaign-table td:last-child{padding-right:14px}
.campaign-table td{white-space:normal;overflow-wrap:anywhere}
.campaign-table td small{font-size:14px;line-height:1.4}
.campaign-panel>.panel-head{flex-wrap:wrap;gap:12px}
.campaign-panel>.panel-head>.pill{font-size:14px}
@media(max-width:1200px){.support-metrics>div:nth-child(4){padding-left:18px;border-left:1px solid var(--line)}}
@media(max-width:1100px){
 .campaign-table colgroup,.campaign-table thead{display:none}
 .campaign-table,.campaign-table tbody,.campaign-table tfoot{display:block}
 .campaign-table tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:12px 10px;gap:12px;border-bottom:1px solid var(--line)}
 .campaign-table td{display:block;border:0;text-align:left;padding:0;min-width:0}
 .campaign-table td:first-child{grid-column:1/-1;padding:0}
 .campaign-table td:last-child{padding:0}
 .campaign-table td[data-label]::before{content:attr(data-label);display:block;font-size:14px;font-weight:400;color:var(--muted);margin-bottom:4px}
 .campaign-table tfoot{background:#f3f0ff;border-top:2px solid #c2b6ef}
 .campaign-table tfoot td{border:0}
}
@media(max-width:700px){.support-metrics>div:nth-child(odd){padding-left:18px;border-left:1px solid var(--line)}.campaign-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}

.campaign-table col:nth-child(1){width:20%}.campaign-table col:nth-child(2){width:10%}.campaign-table col:nth-child(3){width:9%}.campaign-table col:nth-child(4){width:8%}.campaign-table col:nth-child(5){width:9%}.campaign-table col:nth-child(6){width:8%}.campaign-table col:nth-child(7){width:6%}.campaign-table col:nth-child(8){width:6%}.campaign-table col:nth-child(9){width:8%}.campaign-table col:nth-child(10){width:8%}.campaign-table col:nth-child(11){width:8%}

.goal-cost-summaries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px}.goal-cost-summary{padding:20px 22px;border:1px solid #dcd5f5;border-radius:16px;background:#f6f3ff}.goal-cost-summary strong{display:block;font-size:28px;line-height:1.3;margin-top:8px;color:#34285c}.goal-cost-summary p{margin:10px 0 6px}.goal-cost-summary small{display:block;color:#59637a;line-height:1.5}

/* VK reports: source separation, readable compact daily modes. */
.vk-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.vk-source-grid article{border:1px solid #dfe3ed;border-radius:14px;padding:18px;background:#fafbfe}.vk-source-grid h3{font-size:23px;margin:16px 0 12px}.vk-source-grid small{display:block;font-size:14px;line-height:1.55;color:#566078}.vk-goal-list{padding:0;list-style:none}.vk-goal-list li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px dotted #c4cada}.daily-modes{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.daily-modes button.active{background:#6646dc;color:white;border-color:#6646dc}.daily-compact table{min-width:0;width:100%;table-layout:auto;font-size:15px}.daily-compact th,.daily-compact td{padding:12px 10px}.daily-compact th{white-space:normal;font-size:14px}.daily-compact td:first-child{white-space:normal}.daily-compact small{display:block;color:#626d83;font-size:13px;margin-top:5px}@media(max-width:950px){.vk-source-grid{grid-template-columns:1fr}.daily-compact{overflow-x:auto}.daily-compact table{min-width:650px}}

/* Feedback inbox: new items and a clear project / request / message hierarchy. */
.feedback-count{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:50px;background:#e63e53;color:#fff;font-size:12px;font-weight:750;line-height:1;flex-shrink:0}
.feedback-count[hidden]{display:none}
.message-thread{margin-top:16px;border:1px solid #e2dfed;border-radius:16px;overflow:hidden;background:#fff}
.message-thread>summary{display:flex;flex-direction:column;gap:9px;padding:20px;cursor:pointer;list-style:none}
.message-thread>summary::-webkit-details-marker{display:none}
.message-thread>summary:focus-visible{outline:3px solid #7954dc;outline-offset:-3px}
.message-thread>summary:hover{background:#f7f4ff}
.message-thread>summary::after{content:'Открыть переписку ↓';color:#6541c9;font-size:13px;font-weight:650}
.message-thread[open]>summary::after{content:'Свернуть переписку ↑'}
.message-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.message-heading>strong{font-size:20px}.message-subject{font-weight:600;overflow-wrap:anywhere}
.message-unread{border-left:4px solid #e63e53;background:#fcfaff}
.message-thread>.phrase-feedback-card{margin:0;border:0;border-top:1px solid #e2dfed;border-radius:0}
.phrase-feedback-card{margin:20px 0;padding:22px!important;border:1px solid #dce2ef;border-radius:14px;background:#fff}
.phrase-feedback-card.feedback-new{border-left:4px solid #e63e53}
.feedback-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.feedback-label{display:block;color:#646c83;font-size:13px;font-weight:650;line-height:1.5;margin-bottom:5px}
.feedback-project{font-size:24px;line-height:1.25;text-transform:uppercase;letter-spacing:.3px;color:#30234f;overflow-wrap:anywhere}
.feedback-status-new{color:#b42137;background:#fff0f2;flex-shrink:0}
.feedback-query{background:#f5f3fc;border:1px solid #e7e1f5;border-radius:10px;padding:14px 16px}
.feedback-query .phrase-text{font-size:19px;font-weight:650;color:#20253d}
.feedback-context{display:flex;flex-wrap:wrap;gap:6px 22px;color:#59647d;font-size:14px;margin:12px 0 18px}
.feedback-client-message{border-left:3px solid #9074e5;padding-left:14px;margin:18px 0 12px}
.feedback-client-message .feedback-message{font-size:17px;color:#20253d;line-height:1.6;margin:0}
.feedback-inbox-hint{margin:0 0 18px}
.phrase-feedback-card .feedback-review{border-top:1px solid #e4dfef;background:#faf9fd}
@media(max-width:600px){.phrase-feedback-card{padding:16px!important}.feedback-project{font-size:21px}.feedback-card-heading{gap:10px}.feedback-context{display:grid}}
/* Current targeting settings and review workflow. */
.phrase-discuss{min-height:34px;padding:6px 12px;margin-top:10px;font-size:14px;line-height:1.4;color:#5433bb;background:#eee7ff;border:1px solid #b8a3f1;border-radius:8px;gap:7px}
.phrase-discuss::before{content:"";width:13px;height:10px;border:1.5px solid currentColor;border-radius:4px;box-shadow:-2px 3px 0 -1px #eee7ff;flex-shrink:0}
.phrase-discuss:hover,.phrase-discuss[aria-expanded="true"]{color:#fff;background:#6546df;border-color:#6546df}
.phrase-group-filter{display:grid;align-content:start;gap:8px;font-weight:600;min-width:0}
.phrase-group-filter details{position:relative;font-weight:400}
.phrase-group-filter summary{padding:12px;border:1px solid #b9bed0;border-radius:10px;background:#f7f7fc;cursor:pointer;min-height:48px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.phrase-group-filter summary::after{content:"⌄";color:#6546df}
.phrase-group-filter details[open] summary{border-color:#8c70df;box-shadow:0 0 0 2px #eee7ff}
.phrase-group-options{position:absolute;z-index:35;top:calc(100% + 6px);left:0;right:0;min-width:260px;max-height:320px;overflow:auto;background:white;padding:10px;border:1px solid #cbbcec;border-radius:12px;box-shadow:0 12px 30px #25203d22}
.phrase-group-options label{display:flex!important;align-items:flex-start;gap:9px!important;padding:9px 6px;font-size:15px;font-weight:400!important;cursor:pointer}
.phrase-group-options label:first-child{font-weight:650!important;border-bottom:1px solid #e4dff0;margin-bottom:5px}
.phrase-group-options input[type="checkbox"]{width:17px!important;height:17px;margin:3px 0 0;padding:0;accent-color:#6546df;flex-shrink:0}
@media(max-width:850px){.phrase-group-options{min-width:0}}
.phrase-filters{display:grid;grid-template-columns:1fr 1.3fr 1.5fr;gap:16px;margin:24px 0}.phrase-filters label,.phrase-comment label,.feedback-review label{display:grid;gap:8px;font-weight:600}.phrase-filters input,.phrase-filters select,.phrase-comment select,.phrase-comment textarea,.feedback-review select,.feedback-review textarea{width:100%;padding:12px;border:1px solid #b9bed0;border-radius:10px;background:#f7f7fc;color:#20243b;font:inherit}.phrase-row,.phrase-feedback-card{padding:20px 0;border-bottom:1px solid #e0e2ec}.phrase-row-top{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.phrase-text{font-size:18px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.phrase-location{font-size:15px;line-height:1.6;color:#586078;margin:10px 0 14px;overflow-wrap:anywhere}.phrase-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.phrase-comment,.feedback-review{display:grid;gap:16px;margin-top:20px;padding:18px;background:#f6f4ff;border-radius:12px}.phrase-comment button,.feedback-review button{justify-self:start}.feedback-message,.feedback-reply p{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-reply{background:#eff8f5;border-left:3px solid #188464;padding:14px;margin-top:16px}.phrase-feedback-card .small{margin:8px 0}.phrase-row-top .pill{flex-shrink:0}@media(max-width:850px){.phrase-filters{grid-template-columns:1fr}.phrase-row-top{flex-direction:column;gap:8px}}

/* Project sections: high-contrast active state and horizontal scrolling on narrow screens. */
.section-tabs{gap:8px;padding:9px;background:#e6dfff;border:1px solid #b9a5f0;border-radius:14px;box-shadow:0 3px 12px #6546df12;overflow-x:auto;scroll-padding:9px}
.section-tabs button{flex:0 0 auto;min-width:122px;min-height:46px;padding:11px 18px;border:1px solid transparent;color:#433474;font-weight:700;white-space:nowrap}
.section-tabs button:hover{background:#f5f1ff;border-color:#bba7ee;color:#4626ac}
.section-tabs button.active{background:#6546df;color:#fff;border-color:#6546df;box-shadow:0 3px 8px #4e2fb533}
.section-tabs button.active:hover{background:#5335c8;border-color:#5335c8;color:#fff}
@media(max-width:700px){.section-tabs{margin:19px 0;padding:7px;gap:6px}.section-tabs button{flex:0 0 auto;min-width:100px;min-height:46px;padding:10px 14px}}

.user-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.user-row{gap:16px}.login-form[hidden]{display:none!important}
@media(max-width:680px){.user-actions{justify-content:flex-start}.user-row{align-items:flex-start;flex-direction:column}}

.account-balance{display:flex;flex-direction:column;gap:6px;padding:18px 20px;background:#f0ecff;border:1px solid #d7cdf8;border-radius:14px;margin:18px 0}.account-balance strong{font-size:28px;line-height:1.3;font-variant-numeric:tabular-nums;color:#3d287d}.account-balance strong small{font-size:14px;font-weight:500;color:#59647d}.balance-stale{background:#fff8ea;border-color:#e8cd98}#detail>.account-balance{margin:0 0 20px}

.balance-spending{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:1px solid #d7cdf8;padding-top:14px;margin-top:8px}.balance-spending>div{display:flex;flex-direction:column;gap:6px}.account-balance .balance-forecast{font-size:20px}@media(max-width:700px){.balance-spending{grid-template-columns:1fr}}

.login-form>button{margin-top:18px}.login-form>.form-help:empty{display:none}#recovery-sent-title:focus{outline:none}

/* Client phrase list: phrase and action first; context is optional. */
.phrase-row-compact{padding:18px 0}.phrase-row-compact .phrase-row-top{align-items:center;gap:18px}.phrase-row-compact .phrase-text{font-size:19px;line-height:1.45}.phrase-row-compact .phrase-discuss{flex-shrink:0;white-space:nowrap;margin:0}.phrase-details{margin-top:10px}.phrase-details>summary,.phrase-help>summary{color:#6546df;cursor:pointer;font-size:14px;font-weight:600;min-height:32px;padding:5px 0}.phrase-detail-body{margin-top:10px;padding:18px;background:#f7f7fc;border:1px solid #e0e2ec;border-radius:12px}.phrase-context{margin:0 0 18px;display:grid;gap:8px}.phrase-context>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px}.phrase-context dt,.phrase-stat-grid dt{font-size:14px;color:var(--muted)}.phrase-context dd{margin:0;font-size:15px;overflow-wrap:anywhere}.phrase-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.phrase-stat-grid dd{margin:4px 0 0;font-size:18px;font-weight:650}.phrase-goals ul{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}.phrase-goals li{display:flex;justify-content:space-between;gap:18px;font-size:14px}.phrase-goals li span{overflow-wrap:anywhere}.phrase-help{margin:12px 0}.phrase-help p{margin:8px 0 14px}#phrase-count{color:var(--muted);margin-top:14px}@media(max-width:850px){.phrase-row-compact .phrase-row-top{flex-direction:row;align-items:flex-start}.phrase-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.phrase-row-compact .phrase-row-top{flex-direction:column;gap:10px}.phrase-context>div{grid-template-columns:1fr;gap:2px}.phrase-row-compact .phrase-text{font-size:18px}}

.guide-dialog{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #c8bcf4;border-radius:18px;background:white;color:var(--ink);box-shadow:0 12px 60px #191d3533}.guide-dialog::backdrop{background:#191d3530}.guide-intro{inset:0;margin:auto;height:fit-content}.guide-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.guide-close{font-size:26px;line-height:1;padding:3px;min-width:44px;flex-shrink:0}.guide-dialog h2{font-size:23px;margin-bottom:14px}.guide-dialog h2:focus{outline:none}.guide-dialog p{font-size:16px;line-height:1.6}.guide-dialog .guide-fallback{font-size:14px;margin-top:12px;padding:12px;background:#fff8ea;border-radius:10px}.guide-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:22px}.guide-highlight{outline:4px solid #9675ff!important;outline-offset:5px;scroll-margin-top:24px;border-radius:12px;box-shadow:0 0 0 10px #e6dcff!important}@media(max-width:700px){.guide-dialog:not(.guide-intro){inset:auto 16px 16px;max-height:48dvh;width:auto;padding:18px}.guide-dialog h2{font-size:20px}.guide-dialog p{font-size:15px}.guide-actions button{flex:1}.guide-highlight{scroll-margin-top:86px}}

/* 0.6.4: VK source uses blue throughout its cards and report controls. */
.source-tabs button[data-source="vk"].active{background:#e8f3ff;border-color:#1681e8;color:#0868c4;box-shadow:0 0 0 1px #1681e8}
.project-card[data-source="vk"],#detail[data-source="vk"]{--purple:#0879e4;--soft:#e8f3ff}
.pill.source-vk{background:#e8f3ff;color:#0967bd}
.project-card[data-source="vk"] .project-logo{background:#e8f3ff;color:#0879e4}
.project-card[data-source="vk"]:hover{border-color:#9acafa;box-shadow:0 8px 25px #0879e408}
.project-card[data-source="vk"] .primary:hover,#detail[data-source="vk"] .primary:hover{background:#0665c1;border-color:#0665c1}
.account-balance.balance-vk:not(.balance-stale){background:#edf6ff;border-color:#bddcfa}
.account-balance.balance-vk strong{color:#135b9f}
#detail[data-source="vk"] .daily-modes button.active{background:#0879e4;border-color:#0879e4}

/* 0.6.5: label the report period separately from account balances. */
.snap-caption>span{display:flex;flex-direction:column;gap:3px}.snap-caption strong{font-weight:600;color:var(--ink)}.snap-caption small{font-size:14px;color:var(--muted)}

/* Metric information lives in the browser top layer, outside document flow. */
.cpa-info-trigger{display:inline-flex;vertical-align:middle;margin-left:6px;padding:0;width:28px;height:28px;min-height:28px;border:0;background:transparent;color:#087ce5;font-size:19px;line-height:1;flex-shrink:0}
.cpa-info-trigger:hover{background:#eaf5ff;border:0}
.metric-info-popup{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:38px 20px 20px;border:1px solid #c5dff6;border-radius:12px;background:#fff;color:#283448;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 8px 28px #16294530;overflow:auto;overflow-wrap:anywhere}
.metric-info-close{position:absolute;right:6px;top:4px;padding:0;width:30px;height:30px;min-height:30px;border:0;background:transparent;color:#59647d;font-size:24px;font-weight:400}
.metric-info-popup::backdrop{background:transparent}

/* Connect each query goal name with its count, in both reader roles. */
.phrase-goals ul{gap:2px;margin-top:10px}
.phrase-goals li{align-items:baseline;justify-content:initial;gap:10px;padding:6px 0;font-size:15px;line-height:1.6}
.phrase-goals li>span{flex:0 1 auto;min-width:0;max-width:calc(100% - 70px);overflow-wrap:anywhere}
.phrase-goals li::after{content:"";order:1;flex:1 0 18px;border-bottom:1px dotted #bac4d6;align-self:baseline;transform:translateY(-.2em)}
.phrase-goals li>strong{order:2;flex:0 0 auto;min-width:3ch;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink)}

/* Read-only SEO positions. Keep the position centred independently of its delta. */
.source-logo.seo{font-size:12px;background:#e3f3ed;color:#087951}.source-seo{background:#e3f3ed;color:#087951}.source-tabs button[data-source="seo"].active{background:#e3f3ed;border-color:#139967;color:#087951;box-shadow:0 0 0 1px #139967}
.seo-card-summary{padding:22px;background:#f0f8ff;border:1px solid #c5dcf7;border-radius:14px;display:flex;flex-direction:column;gap:7px}.seo-card-summary>strong{font-size:38px;color:#145cdb}.seo-card-summary>small{color:var(--muted)}
.seo-panel{min-width:0}.seo-controls,.seo-search-row{display:flex;align-items:center;gap:20px;justify-content:space-between;flex-wrap:wrap;margin-bottom:24px}.seo-controls label{flex:1;min-width:240px;max-width:650px}.seo-controls select{width:100%}.seo-panel h2{margin-bottom:14px}.seo-dates{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.seo-dates button.selected{background:var(--purple);border-color:var(--purple);color:white}.seo-search{max-width:360px;flex:1;min-width:190px}.seo-search-row{margin-bottom:16px;gap:12px}.seo-legend{display:flex;gap:7px;align-items:center;font-size:14px}.seo-legend i{height:11px;width:11px;border-radius:50%;display:inline-block;margin-left:6px}.seo-blue{background:#c8e0fc}.seo-green{background:#ccefd3}.seo-yellow{background:#fff0be}.seo-red{background:#ffe2e3}.seo-table-wrap{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:12px}.seo-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto}.seo-table th,.seo-table td{border-right:1px solid #c8d3e3;border-bottom:1px solid #dce2ef}.seo-table thead th{position:sticky;top:0;background:#f1effc;z-index:3;padding:0;min-width:150px}.seo-table thead th:first-child{min-width:320px;width:100%;padding:16px;text-align:left;left:0;z-index:4}.seo-table thead button{border:0;border-radius:0;width:100%;min-width:150px;flex-direction:column;background:transparent;font-weight:500;padding:12px 8px;gap:7px;white-space:nowrap}.seo-percent{display:inline-block;color:#145cdb;background:#e1ebff;border:1px solid #a8c8ff;border-radius:30px;padding:3px 11px;font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}.seo-table tbody th{position:sticky;left:0;z-index:2;background:white;font-weight:500;text-align:left;min-width:320px;padding:15px 16px;white-space:normal}.seo-table td.seo-rank{position:relative;min-width:150px;width:150px;text-align:center;font-size:22px;font-variant-numeric:tabular-nums;padding:13px 48px;white-space:nowrap}.seo-delta{position:absolute;left:calc(50% + 27px);top:50%;transform:translateY(-50%);font-size:15px;font-weight:750}.seo-up{color:#00a329}.seo-down{color:#ef5c05}.seo-note{margin-top:18px}.seo-empty{padding:24px;color:var(--muted)}
@media(max-width:700px){.seo-controls{gap:14px}.seo-search-row{align-items:flex-start;flex-direction:column}.seo-search{width:100%;max-width:none}.seo-table thead th:first-child,.seo-table tbody th{min-width:240px}.seo-legend{flex-wrap:wrap}.seo-table-wrap{max-height:65vh}}
/* 0.6.18: budget urgency matches the native app; mobile cards and SEO. */
.account-balance.balance-critical{background:#fff4f4;border-color:#ef969b}
.account-balance.balance-warning{background:#fff8ec;border-color:#e7b467}
.account-balance.balance-critical>strong,.account-balance.balance-critical .balance-forecast,.balance-critical .balance-signal-label{color:#d93643}
.account-balance.balance-warning>strong,.account-balance.balance-warning .balance-forecast,.balance-warning .balance-signal-label{color:#a85b08}
.balance-signal-label{font-size:14px;font-weight:650}
.project-metrics>div,.balance-spending>div{min-width:0}
.seo-scroll-hint{display:none}
@media(max-width:700px){
 .project-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:18px 14px}
 .project-metrics strong{font-size:clamp(19px,5.4vw,25px);white-space:nowrap;letter-spacing:-.5px}
 .project-bottom{flex-direction:column;align-items:stretch;gap:12px}
 .project-bottom small{flex:none;min-width:0;overflow-wrap:normal}
 .project-bottom button{width:100%;justify-content:center}
 .account-balance{padding:16px}
 .account-balance>strong,.balance-spending strong:not(.balance-forecast){font-size:clamp(22px,6.2vw,28px);white-space:nowrap}
 .account-balance .balance-forecast{font-size:19px}
 .seo-scroll-hint{display:block;font-size:14px;color:var(--muted);margin:0 0 10px}
 .seo-table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .seo-table{width:max-content;min-width:100%;table-layout:fixed;--query-width:clamp(128px,42vw,160px)}
 .seo-table thead th:first-child,.seo-table tbody th{width:var(--query-width);min-width:var(--query-width);max-width:var(--query-width);padding:12px 10px;overflow-wrap:anywhere;box-shadow:2px 0 3px #20253d0d;font-size:14px}
 .seo-table thead th:not(:first-child),.seo-table td.seo-rank{width:108px;min-width:108px;max-width:108px}
 .seo-table thead button{min-width:0;width:108px;font-size:13px;padding:10px 4px;gap:5px}
 .seo-table td.seo-rank{font-size:20px;padding:12px 30px}
 .seo-table .seo-delta{left:calc(50% + 21px);font-size:13px}
 .seo-percent{font-size:16px;padding:3px 8px}
}
