/* Scoped to the owner analytics page. */
.v4-analytics-page { --ba-ink:#193449; --ba-muted:#647d8e; --ba-border:#dce7ed; --ba-blue:#4a9ce8; --ba-mint:#69c6a5; --ba-lilac:#b6b0de; gap:18px; }
.v4-analytics-page .v4-analytics-intro h1 { font-size:clamp(32px,4vw,52px); line-height:1.1; }
.v4-analytics-page .v4-analytics-intro { padding-bottom:6px; }
.v4-analytics-page .v4-analytics-dock { justify-content:space-between; flex-wrap:wrap; }
.ba-calendar-month { display:flex; align-items:center; gap:10px; color:var(--ba-muted); font-size:14px; }
.ba-calendar-month input { border:1px solid var(--ba-border); border-radius:10px; min-height:40px; background:#f6f9fb; padding:7px 10px; color:var(--ba-ink); font:inherit; max-width:195px; }
.ba-owner-switch { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ba-owner-switch > span { font-size:14px; color:var(--ba-muted); margin-right:10px; }
.ba-owner-switch > button { font:inherit; font-size:14px; border:1px solid transparent; background:#eaf1f5; color:#5f7b8e; padding:9px 17px; border-radius:11px; cursor:pointer; }
.ba-owner-switch > button.is-active { color:#fff; background:#254b62; border-color:#254b62; }
.ba-avito-accounts { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-bottom:22px; }
.ba-avito-accounts > div { padding:14px 17px; background:#f8fafc; border:1px solid #e4ecf1; border-radius:13px; }
.ba-avito-accounts > div > span { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:14px; color:#3f6379; }
.ba-avito-accounts i { font-style:normal; }
.ba-avito-accounts small { display:block; margin-top:9px; color:var(--ba-muted); font-size:14px; }
.ba-avito-accounts p { font-size:14px; color:#917247; line-height:1.5; margin:10px 0 0; }
.ba-partial-sign { font-size:.72em; color:#987549; }
.ba-jump-nav { display:flex; flex-wrap:wrap; gap:5px 20px; padding:0 4px 2px; }
.ba-jump-nav button { border:0; background:transparent; padding:7px 0; font:inherit; font-size:14px; font-weight:600; color:var(--ba-muted); cursor:pointer; }
.ba-jump-nav button:hover { color:#2185db; }
.v4-analytics-page [id^="ba-"] { scroll-margin-top:170px; }
.v4-analytics-page [class^="ba-"] { min-width:0; box-sizing:border-box; }
.v4-analytics-page .ba-card { padding:26px; border:1px solid var(--ba-border); border-radius:24px; background:#fff; box-shadow:0 8px 26px #25476105; }
.ba-section-head { display:flex; justify-content:space-between; align-items:start; gap:22px; margin-bottom:24px; }
.ba-section-head > div { min-width:0; }
.ba-section-head > div > span,.ba-eyebrow { font-size:14px; font-weight:600; color:var(--ba-muted); }
.ba-section-head h2 { font-size:clamp(21px,2vw,27px); font-weight:650; letter-spacing:-.045em; line-height:1.2; margin:7px 0 0; color:var(--ba-ink); }
.ba-section-head > p { max-width:330px; font-size:14px; color:var(--ba-muted); line-height:1.55; margin:2px 0 0; }
.ba-overview { display:grid; grid-template-columns:minmax(300px,.85fr) minmax(0,1.35fr); gap:16px; }
.ba-result { padding:32px; border-radius:25px; color:#fff; background:radial-gradient(ellipse at 95% 0,#4a978a38,transparent 55%),#18384b; display:flex; flex-direction:column; align-items:start; box-shadow:0 14px 30px #19384b14; }
.ba-result.is-negative { background:radial-gradient(ellipse at 95% 0,#b3685538,transparent 55%),#3c343b; }
.ba-result .ba-eyebrow { color:#9dbbcc; }
.ba-result h2 { font-size:20px; line-height:1.3; font-weight:500; color:#edf7fa; margin:27px 0 13px; letter-spacing:-.035em; }
.ba-result-value { font-size:clamp(34px,3.8vw,57px); letter-spacing:-.045em; font-weight:600; line-height:1.12; margin-bottom:12px; }
.ba-result .v4-analytics-delta { background:#ffffff12; color:#deeee8; }
.ba-result .v4-analytics-delta.is-bad { background:#ed92771f; color:#ffc5b7; }
.ba-result-bottom { display:grid; grid-template-columns:1fr; gap:16px; width:100%; margin-top:auto; padding-top:26px; }
.ba-result-bottom > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-top:18px; border-top:1px solid #ffffff24; }
.ba-result-bottom > div span { font-size:14px; color:#bdd0dc; }
.ba-result-bottom b { font-size:26px; font-weight:500; letter-spacing:-.04em; }
.ba-result-bottom p { margin:0; font-size:14px; line-height:1.6; color:#a8c0cd; }
.ba-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.ba-kpi { border:1px solid var(--ba-border); border-radius:22px; background:#fff; color:var(--ba-ink); padding:22px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:left; font:inherit; cursor:pointer; transition:border-color .15s,box-shadow .15s; }
.ba-kpi:hover { border-color:#b1d5ee; box-shadow:0 8px 20px #2583c00a; }
.ba-kpi > span:first-child { display:flex; justify-content:space-between; gap:10px; width:100%; color:var(--ba-muted); font-size:14px; }
.ba-kpi > span i { font-style:normal; color:#95aab8; }
.ba-kpi > strong { font-size:clamp(23px,2.6vw,36px); line-height:1.2; font-weight:600; letter-spacing:-.05em; }
.ba-kpi > small { color:var(--ba-muted); font-size:14px; line-height:1.5; margin-top:auto; }
.ba-kpi:nth-child(3) .v4-analytics-delta { background:#eef3f7; color:#647d8e; }
.ba-kpi .v4-analytics-delta.is-muted { color:var(--ba-muted); background:#f1f5f8; }
.ba-signals { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:13px; }
.ba-signal { background:#f3f8fc; border:1px solid #dae8f0; border-radius:19px; text-align:left; padding:19px 21px; font:inherit; cursor:pointer; color:var(--ba-ink); }
.ba-signal.is-amber { background:#fdf8ef; border-color:#eee2cc; }
.ba-signal.is-red { background:#fdf4f1; border-color:#f1dfd8; }
.ba-signal.is-mint { background:#eef8f3; border-color:#d7e9e1; }
.ba-signal > span { display:flex; justify-content:space-between; font-size:14px; color:#647781; gap:10px; }
.ba-signal i { font-style:normal; }
.ba-signal > strong { display:block; font-size:25px; font-weight:600; letter-spacing:-.04em; margin:10px 0; }
.ba-signal p { color:#6b7e88; font-size:14px; line-height:1.55; margin:0; max-width:660px; }
.ba-scope-note { padding:13px 17px; border:1px solid #e8dfc8; background:#fffaf0; border-radius:13px; font-size:14px; color:#826d3d; line-height:1.55; margin:0 0 12px; }
.ba-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:stretch; }
.ba-two-col .ba-section-head { display:block; }
.ba-two-col .ba-section-head p { margin-top:12px; max-width:none; }
.ba-fact { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.ba-fact > span { font-size:14px; color:var(--ba-muted); line-height:1.45; }
.ba-fact > strong { font-size:clamp(21px,2.1vw,28px); line-height:1.15; font-weight:600; letter-spacing:-.045em; color:var(--ba-ink); }
.ba-fact small { font-size:14px; line-height:1.5; color:var(--ba-muted); }
.ba-no-value { color:#829aaa; }
.ba-facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 18px; margin-top:25px; }
.ba-note { color:var(--ba-muted); font-size:14px; line-height:1.65; margin:21px 0 0; }
.ba-link { border:0; background:transparent; padding:0; color:#2384d4; font:inherit; font-size:14px; line-height:1.45; font-weight:600; text-align:left; cursor:pointer; }
.ba-link:hover { color:#17669f; text-decoration:underline; }
.ba-link:disabled { color:#829aaa; cursor:wait; text-decoration:none; }
.ba-chart-legend { display:flex; flex-wrap:wrap; gap:10px 23px; align-items:center; margin-bottom:22px; }
.ba-chart-legend > span { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--ba-muted); }
.ba-chart-legend i,.ba-cost-list i,.ba-source-list i,.ba-aging i { width:9px; height:9px; border-radius:3px; display:inline-block; }
.ba-chart-legend small { margin-left:auto; font-size:14px; color:var(--ba-muted); }
.ba-chart-legend .is-receipts,.ba-month-bars .is-receipts { background:var(--ba-blue); }
.ba-chart-legend .is-costs,.ba-month-bars .is-costs { background:var(--ba-lilac); }
.ba-chart-legend .is-result,.ba-month-bars .is-result { background:var(--ba-mint); }
.ba-month-chart { display:grid; grid-template-columns:repeat(var(--month-count),minmax(0,1fr)); gap:8px; padding-top:15px; }
.ba-month-point { display:grid; gap:14px; border:0; border-radius:8px; background:none; padding:6px 4px; font:inherit; cursor:pointer; min-width:0; }
.ba-month-point:hover,.ba-month-point.is-selected { background:#f0f7fc; }
.ba-month-bars { height:210px; position:relative; display:block; width:100%; }
.ba-month-bars > i { position:absolute; width:22%; bottom:var(--zero); border-radius:4px 4px 0 0; min-height:0; }
.ba-month-bars > .is-receipts { left:12%; }
.ba-month-bars > .is-costs { left:39%; }
.ba-month-bars > .is-result { left:66%; }
.ba-month-bars > .is-negative { background:#d68676; border-radius:0 0 4px 4px; }
.ba-month-bars em { position:absolute; left:-4px; right:-4px; height:1px; background:#71879740; pointer-events:none; }
.ba-month-label { font-size:14px; color:var(--ba-muted); font-weight:500; white-space:nowrap; }
.ba-month-label sup { color:#2485d4; margin-left:1px; }
.ba-month-detail { background:#f5f9fc; border:1px solid #e1ebf1; border-radius:15px; display:grid; grid-template-columns:minmax(135px,.65fr) minmax(0,2fr); gap:22px; padding:20px; margin-top:20px; }
.ba-month-detail-title { display:flex; flex-direction:column; gap:8px; }
.ba-month-detail-title > span { font-size:14px; color:var(--ba-muted); }
.ba-month-detail-title > strong { font-size:20px; font-weight:600; color:var(--ba-ink); }
.ba-month-detail-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.ba-month-detail-values .ba-fact > strong { font-size:clamp(18px,1.65vw,24px); }
.ba-month-history,.ba-avito-months { margin-top:22px; border-top:1px solid var(--ba-border); padding-top:18px; }
.v4-analytics-page details > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:15px; font-size:14px; font-weight:600; color:#496b82; cursor:pointer; }
.v4-analytics-page details > summary::-webkit-details-marker { display:none; }
.v4-analytics-page details > summary > span { font-size:22px; line-height:1; color:#7193a9; font-weight:400; }
.v4-analytics-page details[open] > summary > span { transform:rotate(45deg); }
.ba-month-cards,.ba-avito-month-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-top:20px; }
.ba-month-cards > article,.ba-avito-month-grid > article { border:1px solid var(--ba-border); border-radius:15px; padding:18px; }
.ba-month-cards header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.ba-month-cards header strong,.ba-avito-month-grid > article > strong { font-size:17px; font-weight:600; color:var(--ba-ink); }
.ba-month-cards header span { color:var(--ba-muted); font-size:14px; }
.ba-month-cards article > div,.ba-avito-month-grid article > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; margin-top:20px; }
.ba-month-cards .ba-fact > strong,.ba-avito-month-grid .ba-fact > strong { font-size:20px; }
.ba-month-cards .ba-link { margin-top:22px; }
.ba-avito-toolbar { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:15px; padding-bottom:22px; }
.ba-avito-toolbar > div { display:flex; align-items:center; gap:13px; flex-wrap:wrap; }
.ba-avito-toolbar strong { color:var(--ba-ink); font-size:16px; }
.ba-avito-mark { color:#312e50; font-size:22px; font-weight:700; letter-spacing:-1px; }
.ba-status { padding:5px 9px; border-radius:8px; font-size:14px; font-weight:500; background:#edf6fd; color:#427ea6; }
.ba-status.is-mint { background:#edf7f1; color:#418464; }
.ba-status.is-amber { background:#fbf4e7; color:#987237; }
.ba-acquisition-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ba-acquisition-flow > div { border-radius:17px; background:#f1f7fc; padding:22px; position:relative; }
.ba-acquisition-flow > div:nth-child(2) { background:#f3f1fa; }
.ba-acquisition-flow > div:nth-child(3) { background:#eff8f4; }
.ba-stage-number { font-size:14px; color:#7f9daf; margin-bottom:15px; display:block; }
.ba-acquisition-flow .ba-fact > strong { font-size:38px; letter-spacing:-.055em; }
.ba-flow-arrow { position:absolute; top:calc(50% - 17px); right:-21px; z-index:1; width:26px; height:26px; background:#fff; color:#8da7b8; border:1px solid #e7eef2; border-radius:50%; display:grid; place-items:center; font-size:15px; font-style:normal; }
.ba-marketing-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 24px; padding:25px 2px 0; }
.ba-marketing-facts .ba-fact > strong { font-size:25px; }
.ba-avito-empty { padding:35px 10px; font-size:15px; color:var(--ba-muted); }
.ba-avito-empty p { line-height:1.55; }
.ba-inbox-strip { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; border-top:1px solid var(--ba-border); margin-top:25px; padding-top:21px; font-size:14px; color:var(--ba-muted); }
.ba-inbox-strip b { font-weight:500; color:#456b82; }
.ba-inbox-strip button { margin-left:auto; }
.ba-sales-total { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ba-sales-total .ba-fact > strong { font-size:clamp(27px,2.9vw,40px); }
.ba-collection-ring { position:relative; border-radius:50%; width:100px; height:100px; flex:0 0 100px; background:conic-gradient(#72c7a8 var(--collected),#edf2f4 0); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.ba-collection-ring::before { content:''; position:absolute; inset:8px; border-radius:50%; background:#fff; }
.ba-collection-ring strong,.ba-collection-ring > span { position:relative; }
.ba-collection-ring strong { font-size:22px; font-weight:600; color:var(--ba-ink); letter-spacing:-.06em; }
.ba-collection-ring > span { font-size:14px; color:var(--ba-muted); }
.ba-collection-track { display:none; }
.ba-payment-stages { display:grid; gap:16px; margin-top:27px; padding-top:24px; border-top:1px solid var(--ba-border); }
.ba-payment-stages > div { display:flex; align-items:center; gap:11px; font-size:14px; color:var(--ba-muted); }
.ba-payment-stages i { width:9px; height:9px; border-radius:50%; }
.ba-payment-stages .is-mint { background:#70c8a5; }.ba-payment-stages .is-blue { background:#6baee7; }.ba-payment-stages .is-amber { background:#e8ba74; }
.ba-payment-stages b { margin-left:auto; color:var(--ba-ink); font-size:17px; }
.ba-retention-hero { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:23px; background:#f2f7fb; border-radius:16px; }
.ba-retention-hero .ba-fact > strong { font-size:32px; }
.ba-cash-split { border-top:1px solid var(--ba-border); margin-top:22px; padding-top:22px; }
.ba-cash-split > span { color:var(--ba-muted); font-size:14px; }
.ba-cash-split > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.ba-cash-split > p { font-size:14px; color:var(--ba-muted); }
.ba-spending-total { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.ba-spending-total > span { font-size:14px; color:var(--ba-muted); }
.ba-cost-stack { height:12px; border-radius:5px; overflow:hidden; display:flex; gap:3px; background:#f0f4f7; margin:25px 0; }
.ba-cost-stack i { flex-basis:0; }
.ba-cost-stack .is-authors,.ba-cost-list .is-authors { background:#8193bd; }
.ba-cost-stack .is-advertising,.ba-cost-list .is-advertising { background:#75b7e3; }
.ba-cost-stack .is-salary,.ba-cost-list .is-salary { background:#b5a3d1; }
.ba-cost-stack .is-other,.ba-cost-list .is-other { background:#c2cfd6; }
.ba-cost-list { display:grid; gap:20px; }
.ba-cost-list > div { display:flex; align-items:center; gap:12px; }
.ba-cost-list > div > span { flex:1; color:#416074; font-size:15px; }
.ba-cost-list small { display:block; margin-top:5px; color:var(--ba-muted); font-size:14px; }
.ba-cost-list strong { font-size:19px; font-weight:600; color:var(--ba-ink); white-space:nowrap; }
.ba-cash-result { margin-top:26px; padding:20px; background:#f6f9fb; border-radius:15px; display:grid; gap:16px; }
.ba-cash-result > span { display:flex; justify-content:space-between; align-items:baseline; gap:15px; font-size:14px; color:var(--ba-muted); }
.ba-cash-result b { font-size:18px; font-weight:600; white-space:nowrap; color:var(--ba-ink); }
.ba-cash-result > span:last-child { border-top:1px solid var(--ba-border); padding-top:17px; color:var(--ba-ink); }
.ba-cash-result .is-negative b { color:#ab5b4e; }
.ba-source-list { display:grid; gap:26px; }
.ba-source-list article header { display:flex; justify-content:space-between; align-items:baseline; gap:15px; font-size:15px; color:#3e5c70; }
.ba-source-list strong { font-weight:500; overflow-wrap:anywhere; }
.ba-source-list b { font-size:21px; font-weight:600; color:var(--ba-ink); white-space:nowrap; }
.ba-source-track { height:5px; background:#eef3f6; border-radius:5px; margin:13px 0 10px; }
.ba-source-track i { height:5px; display:block; background:#78b4e3; border-radius:5px; }
.ba-source-list footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; color:var(--ba-muted); font-size:14px; }
.ba-risk-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:35px; }
.ba-debt { background:#fdf8ef; border:1px solid #f0e5d0; border-radius:18px; padding:24px; }
.ba-debt .ba-fact > strong { font-size:34px; }
.ba-aging { display:grid; gap:18px; margin-top:25px; }
.ba-aging > div { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; font-size:14px; color:#837454; }
.ba-aging span { display:flex; align-items:center; gap:8px; }
.ba-aging b { color:#725b33; font-size:17px; font-weight:600; }
.ba-aging .is-age-0 { background:#dbc89f; }.ba-aging .is-age-1 { background:#d8ab63; }.ba-aging .is-age-2 { background:#c77d57; }
.ba-risk-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 25px; padding:10px 0; align-content:start; }
.ba-risk-facts > button { grid-column:1/-1; justify-self:start; }
.ba-definitions { border:1px solid var(--ba-border); border-radius:18px; padding:20px 24px; background:#ffffffb8; }
.ba-definitions > div { margin-top:20px; color:var(--ba-muted); font-size:14px; line-height:1.7; }
.ba-definitions > div > p { margin:0 0 15px; }
.ba-definitions > div > p:last-child { margin-bottom:0; }
.v4-analytics-page :is(button,input,summary):focus-visible { outline:3px solid #78b4ea; outline-offset:3px; }
.v4-analytics-page :is(.ba-fact,.ba-kpi,.ba-result,.ba-signal,.ba-cost-list,.ba-aging) .numeric { font-variant-numeric:tabular-nums; }
@media(max-width:1100px) {
  .ba-overview { grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr); }
  .ba-result { padding:25px; }.ba-result-value { font-size:36px; }
  .ba-kpi { padding:20px; }.ba-kpi > strong { font-size:26px; }
  .ba-month-detail { grid-template-columns:1fr; }.ba-month-detail-title { flex-direction:row; align-items:center; flex-wrap:wrap; gap:13px; }
  .ba-month-detail-title button { margin-left:auto; }
  .ba-month-cards,.ba-avito-month-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ba-two-col { grid-template-columns:1fr; }.ba-section-head > p { max-width:270px; }
}
@media(max-width:760px) {
  .v4-analytics-page { gap:13px; }.ba-overview { grid-template-columns:1fr; }
  .ba-result { padding:26px; }.ba-result h2 { margin-top:18px; }.ba-result-value { font-size:43px; }
  .ba-result-bottom { padding-top:12px; gap:10px; }.ba-result-bottom > div { padding-top:15px; }
  .ba-result-bottom p br { display:none; }.ba-kpi { padding:20px; }.ba-kpi > strong { font-size:28px; }
  .ba-risk-grid { grid-template-columns:1fr; gap:20px; }
  .ba-section-head { display:block; }.ba-section-head > p { max-width:none; margin-top:10px; }
  .ba-acquisition-flow { gap:10px; }.ba-acquisition-flow > div { padding:16px 14px; }
  .ba-acquisition-flow .ba-fact > strong { font-size:29px; }.ba-flow-arrow { right:-17px; }
  .ba-month-chart { gap:2px; }.ba-month-point { padding-left:1px; padding-right:1px; }.ba-month-bars { height:160px; }
  .ba-month-label { font-size:14px; }.ba-month-chart:has(> :nth-child(9)) .ba-month-point:nth-child(even) .ba-month-label { visibility:hidden; }
  .ba-month-chart:has(> :nth-child(9)) .ba-month-point:last-child .ba-month-label { visibility:visible; }
  .ba-month-point.is-selected .ba-month-bars { outline:1px solid #a7cbe2; outline-offset:2px; border-radius:3px; }
  .ba-chart-legend { gap:9px 17px; }.ba-chart-legend small { width:100%; margin-left:0; }
  .ba-inbox-strip > button { margin-left:0; }
  .v4-analytics-page .v4-analytics-intro { align-items:start; gap:10px; }.v4-analytics-page .v4-analytics-intro h1 { font-size:34px; }
}
@media(max-width:480px) {
  .v4-analytics-page .ba-card { padding:21px 17px; border-radius:20px; }.v4-analytics-page .v4-analytics-intro { flex-direction:column; }
  .v4-analytics-page .v4-analytics-intro > button { min-height:38px; padding:6px 11px; }
  .v4-analytics-page .v4-analytics-dock { padding:12px; gap:15px; }.ba-calendar-month { width:100%; justify-content:space-between; }
  .ba-jump-nav { gap:0 17px; }.ba-kpis { gap:10px; }.ba-kpi { padding:16px 13px; gap:10px; border-radius:18px; }
  .ba-kpi > strong { font-size:25px; }.ba-kpi > .v4-analytics-delta { font-size:14px; padding:3px 4px; flex-wrap:wrap; line-height:1.5; }
  .ba-result { padding:25px; }.ba-result-value { font-size:40px; }
  .ba-signals { grid-template-columns:1fr; }.ba-signal { padding:19px; }
  .ba-month-detail { padding:17px 14px; }.ba-month-detail-title { gap:8px; }.ba-month-detail-title > span { width:100%; }
  .ba-month-detail-values { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 12px; }.ba-month-detail-values .ba-fact > strong { font-size:21px; }
  .ba-month-cards,.ba-avito-month-grid { grid-template-columns:1fr; }
  .ba-marketing-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
  .ba-acquisition-flow { grid-template-columns:1fr; gap:10px; }.ba-acquisition-flow > div { display:flex; align-items:center; gap:18px; padding:18px; }
  .ba-stage-number { margin-bottom:0; }.ba-acquisition-flow .ba-fact { display:grid; grid-template-columns:1fr auto; width:100%; gap:5px 10px; align-items:baseline; }
  .ba-acquisition-flow .ba-fact small { grid-column:1/-1; }.ba-flow-arrow { display:none; }.ba-acquisition-flow .ba-fact > strong { font-size:29px; }
  .ba-retention-hero { padding:18px 15px; gap:15px; }.ba-retention-hero .ba-fact > strong { font-size:27px; }
  .ba-sales-total .ba-fact > strong { font-size:29px; }.ba-collection-ring { width:85px; height:85px; flex-basis:85px; }.ba-collection-ring strong { font-size:19px; }
  .ba-spending-total { align-items:start; flex-direction:column; gap:8px; }.ba-spending-total .ba-fact > strong { font-size:30px; }
  .ba-cost-list { gap:19px; }.ba-cost-list > div { gap:9px; align-items:start; }.ba-cost-list i { margin-top:6px; flex:0 0 9px; }.ba-cost-list strong { font-size:18px; }
  .ba-cash-result { padding:17px 13px; }.ba-cash-result > span { align-items:start; }.ba-cash-result b { font-size:17px; }
  .ba-risk-facts { gap:25px 14px; }.ba-debt { padding:20px; }.ba-debt .ba-fact > strong { font-size:32px; }
  .ba-definitions { padding:19px 17px; }.ba-fact > strong { font-size:24px; }
}
@media(max-width:360px) {
  .ba-kpi > strong { font-size:21px; }.ba-result-value { font-size:34px; }
  .ba-result { padding:22px; }.ba-sales-total .ba-fact > strong { font-size:24px; }
  .ba-fact > strong,.ba-marketing-facts .ba-fact > strong { font-size:21px; }
  .ba-month-detail-values .ba-fact > strong { font-size:19px; }.ba-retention-hero .ba-fact > strong { font-size:23px; }
  .ba-cost-list > div { flex-wrap:wrap; }.ba-cost-list > div > strong { margin-left:21px; }
  .ba-cost-list > div > span { flex-basis:calc(100% - 22px); }
}
@media(prefers-reduced-motion:reduce) { .v4-analytics-page * { scroll-behavior:auto!important; transition:none!important; } }

@media(max-width:760px) { .v4-analytics-page [id^="ba-"] { scroll-margin-top:200px; } }

/* Unit economics: responsive formula map inspired by the supplied reference. */
.ue-view-tabs { display:flex; gap:5px; width:max-content; max-width:100%; padding:5px; border:1px solid var(--ba-border); border-radius:15px; background:#e8eff4; }
.ue-view-tabs button { border:0; border-radius:11px; padding:11px 23px; background:none; color:#557084; font:inherit; font-size:15px; cursor:pointer; }
.ue-view-tabs button.is-active { background:#fff; color:#193449; box-shadow:0 3px 10px #19344912; }
.ue-page { display:grid; gap:22px; min-width:0; }
.ue-page * { box-sizing:border-box; min-width:0; }
.ue-map { background:radial-gradient(ellipse at 10% 0,#233548 0,transparent 60%),#131b25; color:#f5f8fc; border-radius:28px; padding:36px; }
.ue-map > header { display:flex; justify-content:space-between; gap:28px; align-items:start; }
.ue-eyebrow { font-size:14px; letter-spacing:.13em; color:#afc0d1; font-weight:500; }
.ue-map h2 { font-size:clamp(32px,4vw,53px); letter-spacing:-.05em; line-height:1.05; color:#fff; margin:17px 0 20px; font-weight:600; }
.ue-map > header p { font-size:16px; line-height:1.6; margin:0; color:#b5c2d1; }
.ue-map-badge { border:1px solid #354353; border-radius:13px; padding:13px 16px; font-size:14px; line-height:1.65; color:#bcccd8; }
.ue-equation { display:grid; grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr); gap:16px; align-items:start; margin:40px 0 35px; }
.ue-operator { align-self:center; text-align:center; font-size:39px; color:#c9d8e5; }
.ue-node { border:1px solid #425267; border-radius:16px; background:#1b2838; overflow:hidden; }
.v4-analytics-page .ue-node > summary { position:relative; display:flex; align-items:flex-start; flex-direction:column; justify-content:start; gap:12px; padding:22px; color:inherit; cursor:pointer; }
.v4-analytics-page .ue-node > summary > span { color:#b7c8d8; font-size:14px; line-height:1.4; transform:none; padding-right:12px; }
.ue-node summary strong { font-size:clamp(24px,2.4vw,34px); font-weight:600; line-height:1.15; letter-spacing:-.035em; overflow-wrap:anywhere; }
.ue-node summary small { font-size:14px; font-weight:400; color:#a0b1c5; line-height:1.5; }
.ue-node summary i { position:absolute; right:13px; top:14px; font-size:18px; font-style:normal; color:#a6b7c7; }
.ue-node[open] summary i { transform:rotate(45deg); }
.ue-node > p { border-top:1px solid #ffffff26; padding:16px 22px 20px; margin:0; font-size:14px; color:#c3d0de; line-height:1.65; }
.ue-equation .ue-node { border:0; border-radius:40px; }
.ue-equation .ue-node summary { min-height:225px; justify-content:center; padding:26px; }
.ue-equation .ue-node summary strong { font-size:clamp(24px,2.8vw,41px); }
.ue-equation .ue-node summary > span { font-size:16px; }
.ue-equation .is-profit { background:#c8f66b; color:#172422; }
.ue-equation .is-revenue { background:#307bef; color:#fff; }
.ue-equation .is-cost,.ue-equation .is-loss { background:#fb6d78; color:#351e27; }
.ue-equation .ue-node summary :is(span,small,i),.ue-equation .ue-node > p { color:inherit; }
.ue-equation .ue-node summary small { opacity:.8; }
.ue-map-branches { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:30px; position:relative; padding-top:30px; border-top:1px solid #405166; }
.ue-branch > header { margin-bottom:20px; }
.ue-branch > header > span { color:#9cb7cb; font-size:14px; letter-spacing:.08em; }
.ue-branch h3 { color:#eff6fc; font-size:23px; line-height:1.3; margin:9px 0 0; letter-spacing:-.02em; font-weight:550; }
.ue-node-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.ue-node-grid .ue-node summary { min-height:165px; padding:20px; }
.ue-node-grid .ue-node summary strong { font-size:27px; }
.ue-cost-nodes { display:grid; gap:12px; }
.ue-cost-node { display:flex; align-items:center; gap:12px; border:1px solid #415063; border-left:4px solid var(--ue-color,#9aa9be); border-radius:14px; padding:20px; background:#1c2939; color:#f0f7fc; font:inherit; text-align:left; cursor:pointer; }
.ue-cost-node > span { flex:1; font-size:15px; line-height:1.4; }
.ue-cost-node small { display:block; margin-top:7px; color:#a1b3c8; font-size:14px; }
.ue-cost-node strong { font-size:23px; font-weight:550; letter-spacing:-.04em; white-space:nowrap; }
.ue-cost-node i { color:#9db5c9; font-style:normal; }
.ue-cost-node:hover { background:#283b50; }
.is-variable { --ue-color:#fd9096; }.is-fixed { --ue-color:#8cbcff; }.is-marketing { --ue-color:#d7b1f6; }.is-mixed { --ue-color:#eac181; }.is-oneoff { --ue-color:#95cfba; }.is-review { --ue-color:#bdc5d2; }
.ue-map-note { color:#aabed0; font-size:14px; line-height:1.65; margin:20px 0 0; }
.ue-fixed-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:25px; background:#eef5ff; border-radius:18px; margin-bottom:20px; }
.ue-fixed-summary p { margin:13px 0 0; font-size:14px; line-height:1.6; color:var(--ba-muted); }
.ue-fixed-summary .ba-fact strong { font-size:34px; }
.ue-recurring-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ue-recurring-grid article { border:1px solid var(--ba-border); border-radius:17px; padding:21px; }
.ue-recurring-grid header { display:flex; flex-direction:column; align-items:start; gap:10px; }
.ue-recurring-grid header strong { font-size:18px; color:var(--ba-ink); font-weight:600; }
.ue-recurring-grid header span { font-size:14px; color:#8a7351; line-height:1.4; }
.ue-recurring-grid article > strong { display:block; margin:22px 0; font-size:30px; font-weight:550; color:var(--ba-ink); letter-spacing:-.03em; }
.ue-recurring-grid article > strong > small { display:block; margin-top:5px; font-size:14px; color:var(--ba-muted); font-weight:400; letter-spacing:0; }
.ue-mini-months { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--ba-border); gap:10px; padding-top:16px; }
.ue-mini-months div { display:grid; gap:8px; }
.ue-mini-months span { color:var(--ba-muted); font-size:14px; }
.ue-mini-months b { font-weight:500; font-size:16px; color:var(--ba-ink); }
.ue-payroll { margin-top:24px; padding:22px; background:#fcf6e9; border:1px solid #efe3c9; border-radius:17px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); align-items:center; gap:24px; }
.ue-payroll p,.ue-order-footer p { font-size:14px; line-height:1.65; margin:0; color:var(--ba-muted); }
.ue-order-equation { display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr); gap:17px; padding:25px; border-radius:17px; background:#eef8f1; align-items:center; }
.ue-order-equation > span { color:#799381; font-size:27px; text-align:center; }
.ue-order-footer { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,.8fr) minmax(0,1.6fr); gap:24px; padding:25px 2px 0; }
.ue-marketing-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.ue-avito-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:22px; }
.ue-avito-comparison article { border:1px solid var(--ba-border); border-radius:18px; padding:22px; background:#fafcff; }
.ue-avito-comparison header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:22px; }
.ue-avito-comparison header strong { color:var(--ba-ink); font-size:20px; }
.ue-avito-comparison header span,.ue-avito-comparison p { font-size:14px; color:var(--ba-muted); line-height:1.55; }
.ue-avito-comparison article > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ue-avito-comparison footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-top:18px; border-top:1px solid var(--ba-border); font-size:14px; color:var(--ba-muted); }
.ue-avito-comparison footer b { margin-left:auto; font-size:22px; color:var(--ba-ink); font-weight:550; }
.ue-cost-group { border-top:1px solid var(--ba-border); padding:20px 0; scroll-margin-top:180px; }
.ue-cost-group:last-of-type { padding-bottom:0; }
.ue-dot { display:block; width:11px; height:11px; flex:0 0 11px; border-radius:50%; background:var(--ue-color); }
.v4-analytics-page .ue-cost-group > summary { gap:14px; }
.v4-analytics-page .ue-cost-group > summary .ue-group-title { font-size:17px; color:var(--ba-ink); flex:1; transform:none; line-height:1.4; }
.ue-group-title small { display:block; color:var(--ba-muted); font-size:14px; font-weight:400; margin-top:7px; max-width:580px; }
.ue-cost-group summary > strong { font-size:23px; color:var(--ba-ink); font-weight:550; letter-spacing:-.03em; white-space:nowrap; }
.ue-expense { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:22px; padding:19px 0; border-top:1px solid #e7eef4; }
.ue-expense:first-child { margin-top:20px; }
.ue-expense > div { display:flex; align-items:start; flex-direction:column; gap:9px; }
.ue-expense > div:last-child { align-items:end; }
.ue-expense strong { font-size:16px; font-weight:550; color:var(--ba-ink); overflow-wrap:anywhere; }
.ue-expense span,.ue-expense p { font-size:14px; color:var(--ba-muted); line-height:1.55; margin:0; overflow-wrap:anywhere; }
.ue-expense p b { font-weight:500; color:#927347; }
.ue-limits { padding:8px 0; }
.ue-limits > header > span { font-size:14px; letter-spacing:.08em; color:var(--ba-muted); }
.ue-limits h2 { color:var(--ba-ink); font-size:27px; font-weight:550; letter-spacing:-.03em; margin:9px 0 24px; }
.ue-limits > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ue-limits article { background:#f0f3f6; padding:22px; border-radius:18px; border:1px dashed #c3d0db; }
.ue-limits article > span { color:#6b8394; font-size:14px; }
.ue-limits h3 { font-size:18px; line-height:1.4; color:var(--ba-ink); margin:15px 0 10px; font-weight:550; }
.ue-limits p { margin:0; font-size:14px; color:var(--ba-muted); line-height:1.65; }
@media(max-width:1100px) {
  .ue-map { padding:27px; }.ue-map-badge { max-width:220px; }
  .ue-equation { gap:9px; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr); }
  .ue-equation .ue-node summary { padding:20px; min-height:210px; }
  .ue-map-branches { grid-template-columns:1fr; gap:28px; }
  .ue-cost-nodes { grid-template-columns:repeat(2,minmax(0,1fr)); }.ue-cost-node { flex-wrap:wrap; }
  .ue-cost-node > span { flex-basis:100%; }.ue-cost-node i { margin-left:auto; }
  .ue-node-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ue-limits > div { grid-template-columns:1fr; }.ue-order-footer { grid-template-columns:repeat(2,minmax(0,1fr)); }.ue-order-footer p { grid-column:1/-1; }
}
@media(max-width:760px) {
  .ue-map > header { flex-direction:column; }.ue-map-badge { max-width:none; }.ue-equation .ue-node { border-radius:22px; }
  .ue-equation { grid-template-columns:1fr; gap:9px; margin:25px 0; }.ue-equation .ue-node summary { min-height:0; padding:24px; }.ue-operator { font-size:26px; }
  .ue-equation .ue-node summary strong { font-size:36px; }.ue-node-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ue-fixed-summary,.ue-payroll { grid-template-columns:1fr; }.ue-recurring-grid,.ue-avito-comparison { grid-template-columns:1fr; }
  .ue-order-equation { grid-template-columns:1fr; }.ue-order-equation .ba-fact { align-items:center; text-align:center; }
  .ue-cost-group { scroll-margin-top:210px; }.ue-cost-group summary { flex-wrap:wrap; }.ue-cost-group summary .ue-group-title { flex-basis:calc(100% - 40px); }
  .ue-cost-group summary > strong { margin-left:25px; }.ue-cost-group summary > span:last-child { margin-left:auto; }
}
@media(max-width:480px) {
  .ue-map { padding:23px 17px; border-radius:21px; }.ue-map h2 { font-size:35px; }
  .ue-node-grid,.ue-cost-nodes { grid-template-columns:1fr; }.ue-node-grid .ue-node summary { min-height:0; }
  .ue-cost-node { padding:18px; }.ue-cost-node > span { flex-basis:auto; }.ue-cost-node strong { font-size:23px; }
  .ue-marketing-metrics { grid-template-columns:1fr; gap:22px; }.ue-marketing-metrics .ba-fact { flex-direction:row; align-items:center; justify-content:space-between; }
  .ue-fixed-summary { padding:20px; }.ue-fixed-summary .ba-fact strong { font-size:30px; }
  .ue-recurring-grid article { padding:17px; }.ue-mini-months { grid-template-columns:1fr; }.ue-mini-months div { display:flex; justify-content:space-between; gap:15px; }
  .ue-expense { grid-template-columns:1fr; gap:10px; }.ue-expense > div:last-child { flex-direction:row; align-items:center; justify-content:space-between; }
  .ue-avito-comparison article { padding:17px; }.ue-avito-comparison article > div { grid-template-columns:1fr; gap:22px; }
  .ue-view-tabs { width:100%; }.ue-view-tabs button { flex:1; padding:11px 17px; }
}

/* Detailed Avito analytics */
.ad-root{display:grid;gap:20px;min-width:0}.ad-body{display:grid;gap:20px;min-width:0}.ad-root .ba-card{min-width:0}.ad-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.ad-eyebrow{color:#277a67;font-size:13px;font-weight:700;letter-spacing:.12em}.ad-title h2{font-size:30px;letter-spacing:-.04em;margin:9px 0}.ad-title p{color:#758294;max-width:600px;line-height:1.55;margin:0}.ad-status-line,.ad-sources{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:14px;line-height:1.5;color:#697789;margin-top:20px}.ad-sources{margin-top:8px;font-size:14px}.ad-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 14px}.ad-kpis article{background:#f7f9fb;border:1px solid #edf0f4;border-radius:17px;padding:18px;min-width:0;border-top:3px solid var(--ad-color)}.ad-kpis article>span,.ad-fact>span{color:#68788a;font-size:14px}.ad-kpis strong{display:block;font-size:29px;letter-spacing:-.035em;margin:10px 0;overflow-wrap:anywhere}.ad-kpis small{font-size:14px;line-height:1.45;color:#7b8797}.ad-chart-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ad-toggle{display:flex;gap:4px;border-radius:12px;padding:4px;background:#eff3f7}.ad-toggle button{border:0;background:transparent;border-radius:9px;padding:9px 13px;font:inherit;font-size:14px;color:#748195;cursor:pointer}.ad-toggle .is-active{background:white;color:#243a51;box-shadow:0 2px 5px #263c4c0d}.ad-chart-controls label{display:flex;gap:8px;align-items:center;font-size:14px;color:#768398}.ad-chart-controls select{font:inherit;background:#fff;border:1px solid #dce4ec;border-radius:10px;padding:9px;max-width:100%;color:#34465e}.ad-chart-note{font-size:14px;color:#728196;line-height:1.6;margin:16px 0 4px}.ad-chart-wrap{position:relative;min-width:0;border-radius:12px;outline-offset:4px;touch-action:pan-y}.ad-chart-wrap svg{display:block;width:100%;overflow:visible}.ad-chart-wrap svg text{font-family:inherit;font-size:14px;fill:#8491a3}.ad-chart-wrap svg .ad-svg-title{font-size:16px;font-weight:600;fill:#42546a}.ad-tooltip{position:absolute;z-index:4;top:12px;right:12px;max-width:360px;width:calc(100% - 24px);padding:16px;background:#183449f2;box-shadow:0 10px 35px #16283625;border:1px solid #ffffff30;color:#fff;border-radius:14px;pointer-events:none;font-size:14px;line-height:1.5}.ad-tooltip.is-left{right:auto;left:12px}.ad-tooltip[hidden]{display:none}.ad-tooltip>div{display:grid;gap:7px;margin-top:8px}.ad-tooltip span{display:flex;justify-content:space-between;gap:14px}.ad-tooltip small{display:block;color:#c4d5e3;margin-top:12px;font-size:14px}.ad-chart-readout{border-radius:12px;background:#f5f8fb;padding:15px;font-size:14px;line-height:1.5}.ad-chart-readout>div{display:flex;gap:8px 22px;flex-wrap:wrap;margin-top:6px;color:#6c7a8d}.ad-chart-readout strong{color:#24364c;margin-left:6px}.ad-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.ad-insight-grid article{border-radius:15px;padding:20px;background:#eef7f4}.ad-insight-grid article:nth-child(2){background:#f0f4fb}.ad-insight-grid span{font-size:14px;color:#618077}.ad-insight-grid strong{display:block;font-size:23px;margin-top:10px;letter-spacing:-.03em}.ad-insight-grid p{color:#687d7e;font-size:14px;line-height:1.65;margin:10px 0 0}.ad-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.ad-week-grid article{border:1px solid #e7edf2;border-radius:13px;padding:12px 10px;min-width:0}.ad-week-grid header{display:flex;justify-content:space-between;gap:4px;margin-bottom:12px}.ad-week-grid small{font-size:14px;color:#8391a1}.ad-week-grid article>strong{font-size:22px;display:block}.ad-week-grid article>span{font-size:14px;line-height:1.5;color:#7d8a9c;display:block}.ad-bar{height:6px;border-radius:9px;background:#eef2f6;overflow:hidden;margin:14px 0}.ad-bar i{display:block;min-width:0;height:100%;background:#5197d5;border-radius:9px}.ad-root dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:10px 8px;font-size:14px;line-height:1.45}.ad-root dt{color:#7b8799;min-width:0}.ad-root dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}.ad-week-grid dl{display:flex;flex-direction:column;gap:3px}.ad-week-grid dd{text-align:left;margin-bottom:7px}.ad-outlook{border-top:1px solid #e7edf2;padding-top:18px;margin-top:18px}.ad-root summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.5}.ad-outlook-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ad-outlook-grid article,.ad-bands article{background:#f7f9fb;border-radius:13px;padding:16px;min-width:0}.ad-outlook-grid strong{display:block;font-size:23px;margin-top:10px}.ad-outlook-grid span,.ad-outlook-grid small,.ad-bands small{font-size:14px;color:#7a899b;display:block;line-height:1.55;margin-top:5px}.ad-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ad-bands article>span{font-size:14px;color:#7a899b}.ad-bands strong{display:block;font-size:19px;margin:10px 0}.ad-bands p{font-size:14px;line-height:1.6;color:#4f6379}.ad-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ad-month-grid button{text-align:left;background:white;border:1px solid #e5ebf0;border-radius:15px;padding:17px;color:inherit;font:inherit;cursor:pointer;min-width:0;transition:border-color .15s,box-shadow .15s}.ad-month-grid button:hover{border-color:#8db6d9;box-shadow:0 4px 16px #183b5710}.ad-month-grid header{display:flex;justify-content:space-between;margin-bottom:16px;gap:8px;font-size:15px}.ad-month-grid button>strong{display:block;font-size:26px;letter-spacing:-.025em}.ad-month-grid button>span{display:block;color:#8591a0;font-size:14px;margin-top:5px}.ad-fact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px}.ad-fact{min-width:0}.ad-fact>strong{font-size:23px;display:block;margin-top:8px;overflow-wrap:anywhere}.ad-fact>small{display:block;color:#7b889a;font-size:14px;margin-top:6px}.ad-cost-grid{border-top:1px solid #e6edf2;margin-top:22px;padding-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}.ad-promotion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ad-promotion-grid article{background:#f7f9fb;border-radius:15px;padding:20px;min-width:0}.ad-promotion-grid h3{margin:0 0 12px;font-size:20px}.ad-promotion-grid p,.ad-promotion-grid small{font-size:14px;line-height:1.6;color:#738197}.ad-bid-group{display:grid;gap:5px;font-size:14px;line-height:1.6;border-top:1px solid #e4eaf0;margin-top:10px;padding:12px 0}.ad-bid-group span{color:#65778d}.ad-bid-snapshot{border-top:1px solid #dde5ed;margin-top:12px;padding-top:15px;font-size:14px}.ad-day-list{border-top:1px solid #e5ebf1}.ad-day{border-bottom:1px solid #e5ebf1}.ad-day>summary{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr 20px;gap:18px;align-items:center;padding:17px 0;list-style:none}.ad-day>summary::-webkit-details-marker{display:none}.ad-day summary small{display:block;font-size:14px;color:#8a97a8;font-weight:400;margin-top:5px}.ad-day summary>span{font-size:14px;font-weight:400;color:#7e8da1}.ad-day summary strong{display:block;font-size:18px;color:#334a60;margin-top:5px;overflow-wrap:anywhere}.ad-day summary>i{font-size:22px;font-style:normal;color:#7c91a5}.ad-day[open] summary>i{transform:rotate(45deg)}.ad-day-expanded{padding:20px;border-radius:14px;background:#f7f9fb;margin-bottom:16px}.ad-owner-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px;padding-top:20px;border-top:1px solid #dce5ee}.ad-owner-days article>b{display:block;margin-bottom:16px}.ad-owner-days .ad-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;font-size:14px}.ad-pagination button{font:inherit;padding:10px 14px;background:#f5f8fb;border:1px solid #dce5ef;border-radius:10px;cursor:pointer}.ad-pagination button:disabled{opacity:.4;cursor:default}.ad-method p{color:#748497;font-size:14px;line-height:1.7}.ad-root button:focus-visible,.ad-root select:focus-visible,.ad-root summary:focus-visible,.ad-chart-wrap:focus-visible{outline:3px solid #78b5e1}.ue-view-tabs{flex-wrap:wrap}
@media(max-width:1200px){.ad-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ad-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ad-week-grid dl{display:grid;grid-template-columns:1fr auto;gap:8px}.ad-week-grid dd{text-align:right;margin:0}}
@media(max-width:800px){.ad-title{flex-direction:column}.ad-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-fact-grid,.ad-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-insight-grid,.ad-promotion-grid,.ad-bands{grid-template-columns:1fr}.ad-outlook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-chart-wrap svg text{font-size:21px}.ad-chart-wrap svg .ad-svg-title{font-size:23px}.ad-day>summary{gap:10px}.ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.ad-title h2{font-size:27px}.ad-kpis article{padding:13px}.ad-kpis strong{font-size:24px}.ad-chart-controls label{align-items:flex-start;flex-direction:column;width:100%}.ad-chart-controls select{width:100%}.ad-month-grid{grid-template-columns:1fr}.ad-chart-wrap svg text{font-size:37px}.ad-chart-wrap svg .ad-svg-title{font-size:38px}.ad-chart-wrap{margin:12px -8px}.ad-tooltip{position:relative;top:auto;left:auto!important;right:auto!important;width:100%;max-width:none;margin:10px 0}.ad-chart-readout>div{display:grid;gap:6px}.ad-chart-readout>div>span{display:flex;justify-content:space-between;gap:8px}.ad-day>summary{grid-template-columns:1fr 1fr 1fr 16px;gap:8px}.ad-day summary>b{grid-column:1/5;display:flex;gap:10px;align-items:baseline}.ad-day summary small{margin:0}.ad-day summary strong{font-size:16px}.ad-day-expanded{padding:15px}.ad-owner-days{grid-template-columns:1fr}.ad-fact>strong{font-size:21px}.ad-week-grid article{padding:13px}.ad-root dl{font-size:14px}.ad-week-grid dl{display:flex;gap:3px}.ad-week-grid dd{text-align:left;margin-bottom:5px}.ad-pagination button{padding:9px}.ad-pagination{gap:6px}.ad-chart-note{overflow-wrap:anywhere}}
/* Override the overview's generic details headers inside the daily ledger. */
.v4-analytics-page .ad-day>summary{display:grid;justify-content:normal;grid-template-columns:1.25fr 1fr 1fr 1fr 20px;gap:18px}.v4-analytics-page .ad-day>summary>span{font-size:14px;line-height:1.5;color:#7e8da1;transform:none;min-width:0}.v4-analytics-page .ad-day>summary>b{min-width:0}.ad-eyebrow{font-size:14px}
@media(max-width:500px){.v4-analytics-page .ad-day>summary{grid-template-columns:repeat(3,minmax(0,1fr)) 16px;gap:8px}.v4-analytics-page .ad-day>summary>b{grid-column:1/5}.ad-chart-wrap svg text{font-size:41px}.ad-chart-wrap svg .ad-svg-title{font-size:42px}}
@media(max-width:360px){.ad-chart-wrap svg text{font-size:50px}.ad-chart-wrap svg .ad-svg-title{font-size:50px}}
.v4-analytics-page .ad-root .ad-day>summary>span{transform:none}
.ad-day-expanded .ad-owner-days small,.ad-day-expanded .ad-owner-days p{font-size:14px;line-height:1.6;color:#738197}
/* Analytics: one navigation level, compact filters and expandable content. */
.v4-analytics-page.an-page{width:100%;max-width:1440px;box-sizing:border-box;margin-inline:auto;padding-bottom:48px;align-self:start;align-content:start;grid-auto-rows:max-content}
.an-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 0}
.an-header h1{font-size:30px;letter-spacing:-1px;margin:0;color:#20352f}
.an-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.an-filters label{display:grid;gap:5px;color:#6b7773;font-size:11px;font-weight:650}
.an-filters select,.an-filters input,.an-more{height:40px;border:1px solid #dce5e0;border-radius:11px;padding:0 12px;background:#fff;color:#253c32;font:inherit;font-size:13px}
.an-filters select{min-width:126px}.an-more{cursor:pointer}
.an-tabs{display:flex;align-self:start;align-items:center;gap:4px;padding:5px;background:#eaf0ec;border:1px solid #e0e8e2;border-radius:15px;width:fit-content}
.an-tabs button{border:0;background:transparent;color:#69766e;padding:11px 28px;border-radius:11px;font:inherit;font-weight:650;cursor:pointer}
.an-tabs button.is-active{background:#fff;color:#1d6550;box-shadow:0 2px 7px #304d2910}
.an-tabs button:focus-visible,.an-section>summary:focus-visible{outline:2px solid #347dd9;outline-offset:3px}
.an-period-label{min-height:32px;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:#748079}
.an-period-label [role=status]{color:#287865}.an-snapshot{min-height:400px}.an-initial{height:360px;display:grid;place-content:center;color:#77827c}
.an-section{background:#fff;border:1px solid #e1e8e3;border-radius:18px;margin:0 0 13px;box-shadow:0 3px 14px #29433003;min-width:0;scroll-margin-top:24px}
.an-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:21px 24px;border-radius:18px;user-select:none}
.an-section>summary::-webkit-details-marker{display:none}.an-section>summary h2{font-size:16px;letter-spacing:-.2px;font-weight:650;margin:0;color:#263d32}
.an-section>summary>span{display:grid;place-items:center;background:#f0f5f1;color:#687b6c;width:27px;height:27px;border-radius:50%;font-size:20px;line-height:1}
.an-section[open]>summary>span{transform:rotate(45deg)}
.an-section-body{padding:0 24px 20px;min-width:0}.an-section-body>h3{font-size:14px;font-weight:650;margin:22px 0 16px;color:#425449}
.an-section-body>.ba-card{border:0;box-shadow:none;padding:0;margin:0;background:transparent}.an-section-body>.ba-card>.ba-section-head{display:none}
.an-section-body>.ba-overview{margin-top:0}.an-section-body .ba-two-col{margin:0;gap:22px}.an-section-body .ba-two-col>.ba-card{box-shadow:none;border:0;padding:0}
.an-help{border-top:1px solid #edf1ee;margin-top:20px;color:#738078;font-size:12px}
.an-help>summary{cursor:pointer;padding:14px 0 0;font-weight:550;width:fit-content}.an-help>p{max-width:920px;line-height:1.65;margin:12px 0 0}
.an-section .ba-kpi small{font-size:11px}.an-section .ba-result{border-radius:15px}
.an-section .ba-result-bottom p{display:none}.an-section .ba-result-bottom{margin-top:18px}
.an-section .ue-map{border:0;box-shadow:none;padding:0;background:transparent}.an-section .ue-map-branches{margin-top:22px;border-color:#e1e8e3}.an-section .ue-branch>header h3{font-size:15px;color:#263d32}.an-section .ue-fixed-summary{margin-top:0}
.an-sync{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 16px;padding:13px 18px;border-radius:12px;background:#edf4f0;font-size:11px;color:#62766b}
.an-sync-accounts{display:flex;gap:26px;flex-wrap:wrap}.an-sync-accounts>div{display:flex;flex-wrap:wrap;gap:6px}.an-sync-accounts b{color:#345846}.an-sync-accounts small{flex-basis:100%;max-width:420px;line-height:1.5}.an-sync .ba-link{white-space:nowrap;font-size:12px}
.an-sales-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;margin-top:25px;padding-top:20px;border-top:1px solid #edf1ee}.an-sales-summary h3{font-size:13px;font-weight:650;margin:0 0 16px;color:#53715f}
.an-warning,.an-error{color:#a46635!important;font-size:12px;line-height:1.55}.an-error{border:1px solid #efd9c4;padding:12px 16px;border-radius:12px;background:#fff9f2}
.an-section .ad-kpis{margin:0;gap:12px}.an-section .ad-kpis article{padding:16px;background:#f6f9f7;border:1px solid #e9eeeb;border-radius:12px}.an-section .ad-kpis strong{font-size:25px}.an-section .ad-kpis small{font-size:10px}
.an-section .ad-chart-note{font-size:11px;margin-top:16px}.an-section .am-chart>header>.ad-eyebrow,.an-section .am-chart>header>p{display:none}.an-section .am-chart-grid{margin:0 0 20px;gap:20px}.an-section .am-chart{box-shadow:none;background:#fafcfb;border-color:#e6eee8;border-radius:14px}
.an-city-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.an-city-status article{display:grid;grid-template-columns:auto 1fr;gap:8px 15px;padding:18px;border-radius:14px;background:#f5f9f6;border:1px solid #e7eee8}.an-city-status h3{grid-column:1/-1;font-size:14px;margin:0;color:#426951}.an-city-status strong{font-size:35px;font-weight:600;line-height:1}.an-city-status span{align-self:end;font-size:12px;color:#627969}.an-city-status small,.an-city-status p{grid-column:1/-1;color:#7c8c80;font-size:11px}.an-city-clock{margin:16px 0 0;color:#6f8275;font-size:12px}
.an-city-list{display:grid;gap:14px}.an-city{border:1px solid #e4ebe6;border-radius:15px;overflow:hidden;background:#fff}.an-city>header{padding:16px 18px;background:#f5f8f6}.an-city h3{font-size:16px;margin:0;color:#2f5d43}.an-city-account{padding:17px 18px;border-top:1px solid #edf2ee}.an-city-values{display:grid;grid-template-columns:.65fr .9fr 1.25fr 1fr .6fr;gap:16px;align-items:center}.an-city-values>strong{font-size:12px;color:#64796b}.an-city-values>div{display:grid;gap:6px}.an-city-values span{font-size:10px;color:#89958d}.an-city-values b{font-size:14px;font-weight:600;color:#304f3b}.an-city-values small{font-size:10px}.an-city-account>.am-item-history{margin-top:14px;border-top:1px solid #eef3ef}.an-city-account>.am-item-history>summary{font-size:11px;padding:13px 0 0;color:#6b8172;cursor:pointer}.an-city-account .am-small{font-size:11px;color:#7a8b80}.an-city-account .am-timeline{font-size:12px}.an-empty{padding:20px;color:#7c8b81}

@media(max-width:1050px){.an-header{align-items:flex-start;gap:16px}.an-filters{gap:8px}.an-filters select{min-width:110px}.an-month{display:none}.an-city-values{grid-template-columns:.6fr 1fr 1.2fr 1fr}.an-city-values>div:last-child{display:none}}
@media(max-width:680px){.an-header{display:block;margin-bottom:18px}.an-header h1{font-size:26px;margin-bottom:18px}.an-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.an-filters select{min-width:0;width:100%;max-width:100%;padding:0 8px;font-size:12px}.an-more{padding:0 9px;font-size:12px}.an-tabs{width:100%}.an-tabs button{flex:1;padding:11px 8px;font-size:13px}.an-section>summary{padding:18px 16px}.an-section-body{padding:0 15px 17px}.an-sync{align-items:flex-start;flex-direction:column;padding:12px 15px}.an-sync-accounts{gap:9px}.an-sync-accounts>div{flex-basis:100%}.an-section .ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.an-section .ad-kpis strong{font-size:24px}.an-section .ad-kpis article{padding:12px}.an-sales-summary{grid-template-columns:1fr}.an-city-status{grid-template-columns:1fr}.an-city-values{grid-template-columns:1fr 1fr;gap:16px 12px}.an-city-values>strong{grid-column:1/-1}.an-city-values>div:last-child{display:grid}.an-section .am-chart-grid{grid-template-columns:1fr}.an-section .ba-two-col{grid-template-columns:1fr}.an-period-label{font-size:11px}.an-city-account{padding:16px 13px}.an-section .ue-avito-comparison{grid-template-columns:1fr}}

@media(max-width:1050px){.an-filters label.an-month{display:none}}
.an-section .am-chart-help{display:none}
.an-content .ad-root{width:100%;max-width:none;margin:0}

.am-body .an-section>summary::after,.am-body .an-help>summary::after{display:none}
@media(min-width:681px) and (max-width:1050px){.an-city-values{grid-template-columns:repeat(4,minmax(0,1fr))}.an-city-values>strong{grid-column:1/-1}.an-city-values>div:last-child{display:grid}}

.an-filter-scope { margin:0; color:#65717b; font-size:12px; line-height:1.5; }

/* Unit map sits on a light section; keep headings/operators separate from dark cards. */
.an-section .ue-operator{color:#647d8e}
.an-section .ue-equation .is-revenue{background:#225eb5}
.ue-root{--ba-muted:#526a7b}
.ue-root .an-help{color:#596d60}
.ue-root .an-section>summary>span{color:#526a5b}
.ue-root .ba-link{color:#256caf}
.an-section .ue-equation .ue-node summary small{opacity:1}

.ue-order-scope{margin:0 0 14px;color:var(--ba-muted);font-size:13px}
.an-section .ue-order-footer{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.an-section .ue-order-footer{grid-template-columns:1fr;gap:18px}}

/* CRM visual system: journal controls, Golos typography and shared V4 tokens. */
.v4-analytics-page.an-page {
  --ba-ink: #263b4d;
  --ba-muted: #536979;
  --ba-border: var(--v4-line, #dfe6ec);
  --ba-blue: var(--v4-blue, #3390ec);
  color: var(--ba-ink);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.an-page :where(button,input,select,textarea) { font-family: inherit; }
.an-page .an-header { padding: 11px 3px 0; gap: 20px; }
.an-page .an-header h1 { color:#172b3a;font-size:clamp(42px,4.2vw,58px);line-height:.98;letter-spacing:-.055em; }
.an-page .an-filters { gap: 10px; }
.an-page .an-filters label { gap:7px;color:#718592;font-size:14px;font-weight:660; }
.an-page :is(.an-filters select,.an-filters input,.an-more,.ad-chart-controls select,.am-controls input,.am-controls select) {
  box-sizing:border-box;min-width:0;height:40px;padding:7px 12px;border:1px solid #dce5eb;border-radius:12px;
  background:#fff;color:#263b4d;font-size:14px;font-weight:500;line-height:1.4;
}
.an-page .an-filters select { min-width:126px; }
.an-page .an-tabs { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:min(760px,100%);padding:14px 15px;box-sizing:border-box;background:#fff;border:1px solid #dce5eb;border-radius:20px;box-shadow:0 8px 24px rgba(35,65,84,.045); }
.an-page :is(.an-tabs button,.an-more,.ad-toggle button,.am-pagination button,.ad-pagination button) {
  min-width:0;min-height:40px;padding:7px 12px;border:1px solid #e0e7ec;border-radius:12px;
  background:#f5f7f9;color:#536979;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer;box-shadow:none;
}
.an-page :is(.an-tabs button.is-active,.an-more[aria-expanded="true"],.ad-toggle button.is-active) { border-color:#bcdcf4;background:#eaf6ff;color:#257fce; }
.an-page :is(.an-tabs button,.an-more,.ad-toggle button,.am-pagination button,.ad-pagination button):hover:not(:disabled) { border-color:#bcdcf4;background:#eaf6ff; }
.an-page :is(button,input,select,summary,[tabindex]):focus-visible { outline:3px solid rgba(51,144,236,.35);outline-offset:2px; }
.an-page .ad-toggle { gap:7px;padding:0;border:0;background:transparent; }
.an-page .an-period-label { color:#536979;font-size:13px; }
.an-page .an-section { border-color:#dce5eb;border-radius:20px;box-shadow:0 8px 24px rgba(35,65,84,.045); }
.an-page .an-section>summary { padding:20px 22px;border-radius:20px; }
.an-page .an-section>summary h2 { color:#263b4d;font-size:18px;font-weight:700;letter-spacing:-.025em; }
.an-page .an-section>summary>span { width:28px;height:28px;flex-shrink:0;border-radius:10px;background:#eaf6ff;color:#257fce;font-size:20px; }
.an-page .an-section-body { padding:0 22px 22px; }
.an-page :is(.an-section-body>h3,.an-sales-summary h3,.an-city h3,.an-city-status h3,.ue-branch>header h3) { color:#263b4d;font-size:16px;font-weight:700; }
.an-page :is(.an-help,.ue-root .an-help) { color:#536979;font-size:13px;border-color:#e0e7ec; }
.an-page .an-help>summary { font-size:14px;font-weight:600; }
.an-page :is(.ba-link,.ue-root .ba-link) { color:#257fce;font-family:inherit;font-size:14px;font-weight:600; }
.an-page .an-sync { padding:14px 16px;border:1px solid #dce5eb;border-radius:16px;background:#fff;color:#536979;font-size:12px; }
.an-page .an-sync-accounts b { color:#263b4d;font-size:14px; }
.an-page .an-sync .ba-link { min-height:40px;padding:7px 12px;border:1px solid #bcdcf4;border-radius:12px;background:#eaf6ff;font-size:14px;font-weight:700; }
.an-page :is(.an-city-status article,.an-city>header,.an-section .ad-kpis article,.an-section .am-chart) { background:#f5f7f9;border-color:#dce5eb; }
.an-page :is(.an-city,.an-city-account,.an-sales-summary) { border-color:#dce5eb; }
.an-page :is(.an-city-values>strong,.an-city-values span,.an-city-values small,.an-city-status span,.an-city-status small,.an-city-clock,.an-city-account .am-small,.an-city-account>.am-item-history>summary) { color:#536979;font-size:12px; }
.an-page .an-city-values b { color:#263b4d;font-size:16px; }
.an-page :is(.an-city-status strong,.an-section .ad-kpis strong) { color:#243c4d;font-size:32px;font-weight:700;letter-spacing:-.035em; }
.an-page :is(.an-section .ad-kpis small,.an-section .ba-kpi small,.an-section .ad-chart-note) { color:#536979;font-size:13px; }
.an-page .ba-kpi { border-radius:16px; }
.an-page .ba-kpi>strong { font-size:32px;font-weight:700; }
.an-page .ue-root { --ba-muted:#536979; }
.an-page .ue-map { color:#263b4d; }
.an-page .ue-equation { margin:12px 0 24px; }
.an-page .ue-equation .ue-node { border:1px solid #dce5eb;border-radius:16px;background:#eaf6ff;color:#263b4d; }
.an-page .ue-equation .is-profit { background:#edf8f4;border-color:#cde7db; }
.an-page .ue-equation :is(.is-cost,.is-loss) { background:#fff3ef;border-color:#f1dcd3; }
.an-page .ue-equation .ue-node summary { min-height:160px;padding:22px; }
.an-page .ue-equation .ue-node summary strong { font-size:34px;font-weight:700; }
.an-page .ue-equation .ue-node summary>span { font-size:14px; }
.an-page .ue-map-branches { border-color:#dce5eb;padding-top:20px;margin-top:0; }
.an-page .ue-node-grid .ue-node { border-color:#dce5eb;border-radius:16px;background:#f5f7f9;color:#263b4d; }
.an-page .ue-node-grid .ue-node summary { min-height:150px; }
.an-page .ue-node-grid .ue-node summary :is(span,small,i) { color:#536979; }
.an-page .ue-node-grid .ue-node>p { color:#536979;border-color:#dce5eb; }
.an-page .ue-cost-node { color:#263b4d;background:#f5f7f9;border-color:#dce5eb;border-left-color:var(--ue-color);border-radius:16px; }
.an-page .ue-cost-node:hover { background:#eaf6ff; }
.an-page .ue-cost-node :is(small,i) { color:#536979; }
.an-page :is(.ue-fixed-summary,.ue-order-equation) { background:#f5f7f9;border:1px solid #dce5eb;border-radius:16px; }
@media(max-width:1050px) {
  .an-page .an-header { align-items:flex-start;flex-wrap:wrap; }
}
@media(max-width:680px) {
  .an-page .an-header { padding:4px 0 0;margin:0; }
  .an-page .an-header h1 { font-size:39px;margin-bottom:18px; }
  .an-page .an-filters { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px; }
  .an-page .an-filters select { min-width:0; }
  .an-page .an-more { grid-column:1/-1; }
  .an-page .an-tabs { padding:10px;gap:7px;border-radius:18px; }
  .an-page .an-tabs button { padding:7px 4px; }
  .an-page .an-section>summary { padding:18px 16px; }
  .an-page .an-section-body { padding:0 15px 18px; }
  .an-page .an-sync .ba-link { width:100%; }
  .an-page .ue-equation .ue-node summary { min-height:0;padding:20px; }
  .an-page .ue-equation .ue-node summary strong { font-size:30px; }
  .an-page .ue-node-grid .ue-node summary { min-height:0; }
}

.an-city-sales-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:18px;background:#f5f7f9;border:1px solid #dce5eb;border-radius:16px}
.an-city-sales-list{display:grid;gap:16px}.an-city-sale{border:1px solid #dce5eb;border-radius:16px;overflow:hidden;min-width:0}
.an-city-sale>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;background:#f5f7f9}.an-city-sale h3{margin:0;color:#263b4d;font-size:18px}.an-city-sale>header>strong{font-size:24px;white-space:nowrap}.an-city-sale>section{padding:18px 20px;border-top:1px solid #dce5eb}.an-city-sale h4{margin:0 0 16px;font-size:14px;color:#536979}
.an-city-sales-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px}.an-city-sales-metrics .am-fact>strong{font-size:23px}.an-city-sales-acquisition{font-size:14px;color:#536979;margin:18px 0}
.an-city-sale details>summary,.an-city-sales-unlinked>summary{font-size:14px;font-weight:600;cursor:pointer;color:#257fce;padding:12px 0}
.an-city-sales-orders>div{display:grid;grid-template-columns:1fr 1fr auto;gap:8px 16px;padding:14px 0;border-top:1px solid #e0e7ec}.an-city-sales-orders .ba-link{justify-self:start;text-align:left}.an-city-sales-orders span,.an-city-sales-orders small{font-size:14px;color:#536979}.an-city-sales-orders small{grid-column:1/-1}.an-city-sales-unlinked{margin-top:20px;border-top:1px solid #dce5eb}
@media(max-width:680px){.an-city-sales-summary{grid-template-columns:1fr}.an-city-sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.an-city-sale>section,.an-city-sale>header{padding:16px 12px}.an-city-sales-orders>div{grid-template-columns:1fr auto}.an-city-sales-orders span{grid-column:1/-1;grid-row:2}.an-city-sale>header>strong{font-size:20px}.an-city-sales-metrics .am-fact>strong{font-size:22px}}
.an-city-sales-scope{font-size:14px;color:#536979;margin:0 0 12px}

.an-page :is(.an-city-values span,.an-city-values small,.an-city-status span,.an-city-status small,.an-city-clock,.an-city-account .am-small,.an-city-account>.am-item-history>summary){font-size:14px;color:#536979}
