:root {
  color-scheme: light;
  --surface: #fff;
  --canvas: #f4f5f9;
  --ink: #1a2135;
  --muted: #515d75;
  --line: #e1e5ef;
  --control: #acb5ca;
  --accent: #4437d1;
  --accent-hover: #372ab1;
  --accent-soft: #eeedfc;
  --chart-tint: #4437d135;
  --chart-clear: #4437d100;
  --side: #14192d;
  --side-ink: #e7e9f4;
  --side-muted: #aeb7d0;
  --good: #176748;
  --good-bg: #e7f6ee;
  --waiting: #815109;
  --waiting-bg: #fff3d9;
  --bad: #a23344;
  --bad-bg: #fcecf0;
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
button, input, select { font: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .59; }
:focus-visible { outline: 3px solid #7367ec; outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg:not(.symbols) { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
.shell { display: grid; grid-template-columns: 229px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; max-height: 100vh; align-self: start; min-height: 100vh; display: flex; flex-direction: column; gap: 32px; padding: 24px 14px 16px; background: var(--side); color: var(--side-ink); }
.brand { display: flex; min-height: 44px; width: fit-content; align-items: center; gap: 11px; padding: 4px 9px; color: white; text-decoration: none; font-size: 22px; font-weight: 770; letter-spacing: -.055em; }
.brand-mark { width: 33px; height: 33px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; background: #6054e9; }
.brand-mark i { display: block; width: 4px; height: 10px; background: white; transform: skewY(-19deg); border-radius: 4px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 21px; }
nav { display: grid; gap: 4px; }
nav a, .back-link { display: flex; align-items: center; gap: 11px; padding: 9px 11px; min-height: 45px; text-decoration: none; color: var(--side-muted); border-radius: 8px; font-weight: 550; white-space: nowrap; }
nav a:hover, .back-link:hover { color: white; background: #242c45; }
nav a[aria-current] { color: white; background: #303856; box-shadow: inset 3px 0 #a29bff; }
.back-link { margin-top: auto; font-size: 13px; }
.content { min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 3.8vw, 53px); min-height: 65px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; color: var(--muted); gap: 7px; font-size: 13px; }
.breadcrumb svg { width: 14px; height: 14px; }
#crumb { color: var(--ink); font-weight: 660; }
.demo { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.demo span { width: 7px; height: 7px; border-radius: 50%; background: #7768e8; }
main { max-width: 1430px; margin: 0 auto; padding: 33px clamp(16px, 3.8vw, 53px) 52px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
h1 { font-size: clamp(30px, 4vw, 49px); line-height: 1.08; letter-spacing: -.062em; font-weight: 760; }
.heading p, .panel-head p { color: var(--muted); margin-top: 6px; }
.heading p { max-width: 62ch; }
h2 { font-size: 19px; font-weight: 730; line-height: 1.22; letter-spacing: -.025em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; min-width: 0; padding: 19px; box-shadow: 0 2px 10px #171e3404; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-head p { font-size: 13px; }
.campaign-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(278px, 1fr); gap: 17px; }
.stack { display: grid; gap: 17px; align-content: start; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.span-2 { grid-column: 1 / -1; }
label { display: grid; min-width: 0; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 660; }
input:not([type=checkbox]), select { min-width: 0; max-width: 100%; width: 100%; min-height: 43px; border: 1px solid var(--control); border-radius: 7px; background: var(--surface); color: var(--ink); padding: 7px 9px; font-size: 14px; }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
input[type=file] { overflow: hidden; font-size: 13px; }
.attribution { margin-top: 12px; }
.attribution summary { color: var(--accent); font-weight: 650; font-size: 13px; cursor: pointer; min-height: 44px; align-content: center; }
.attribution summary svg { width: 16px; height: 16px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.3; transition: background-color .15s, border-color .15s; }
.button svg { width: 17px; height: 17px; }
.primary { color: white; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.outline { border-color: var(--control); }
.outline:hover, .icon:hover { background: var(--accent-soft); }
.quiet-button { color: var(--accent); background: var(--accent-soft); }
.quiet-button:hover, .text-button:hover { background: #e4e1fc; }
.text-button { color: var(--accent); padding-inline: 7px; }
.button.icon { width: 44px; padding: 0; }
.block { width: 100%; }
.asset-list { display: grid; gap: 8px; margin-bottom: 5px; }
.asset { min-width: 0; display: grid; grid-template-columns: 39px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; }
.asset strong, .asset small { display: block; overflow-wrap: anywhere; }
.asset strong { font-size: 14px; line-height: 1.25; }
.asset small, .muted { color: var(--muted); font-size: 13px; }
.asset-thumb { height: 39px; border-radius: 6px; overflow: hidden; background: var(--accent-soft); }
.asset-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-thumb .still { height: 100%; }
.ready-panel { background: #f8f8fe; border-color: #dcdbf3; }
.summary { display: grid; gap: 7px; margin-bottom: 16px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; font-weight: 720; }
.targets-panel { margin-top: 17px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 14px; }
.table th, .table td { padding: 9px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.table th { background: #f4f5fa; color: var(--muted); font-weight: 700; font-size: 12px; white-space: normal; }
.table tr:last-child td { border-bottom: 0; }
.targets th:nth-child(3) { width: 48%; }
.table small { display: block; color: var(--muted); }
.table input { min-width: 152px; font-family: ui-monospace, monospace; font-size: 13px; }
.target-app { font-weight: 670; }
.target-actions { display: flex; justify-content: end; gap: 1px; }
.target-actions .button { min-width: 35px; width: 41px; padding: 0; }
.empty { color: var(--muted); padding: 14px 0 3px; font-size: 14px; }
.notice { background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 10px; margin-top: 13px; font-size: 13px; }
.status { width: fit-content; display: inline-flex; align-items: center; gap: 5px; background: #eef1f7; color: var(--muted); padding: 4px 7px; border-radius: 6px; font-size: 12px; font-weight: 670; white-space: nowrap; }
.status[data-tone=good] { color: var(--good); background: var(--good-bg); }
.status[data-tone=waiting] { color: var(--waiting); background: var(--waiting-bg); }
.status[data-tone=bad] { color: var(--bad); background: var(--bad-bg); }
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.toolbar input, .toolbar select { max-width: 300px; }
.pack-grid, .account-grid, .report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack-tile { padding: 0; overflow: hidden; text-align: left; }
.pack-tile:hover, .account-tile:hover { border-color: #9b92ec; }
.pack-picture { display: block; aspect-ratio: 1.58; overflow: hidden; background: var(--accent-soft); }
.pack-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.still { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, #232045, #5145aa); color: white; }
.still.warm { background: linear-gradient(140deg, #693341, #b25145); }
.still svg { width: 32px; height: 32px; }
.asset-thumb .still svg { width: 18px; height: 18px; }
.pack-info { display: grid; gap: 4px; padding: 15px; }
.pack-info strong { font-size: 16px; overflow-wrap: anywhere; }
.account-tile { display: grid; text-align: left; gap: 8px; color: var(--ink); }
.account-tile[aria-pressed=true] { border-color: #8c7de4; background: #f8f7ff; }
.account-tile strong { font-size: 16px; }
.accounts-apps, .account-apps { margin-top: 17px; }
.history-grid { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr); gap: 17px; align-items: start; }
.history-list { display: grid; gap: 7px; }
.history-item { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; min-height: 53px; padding: 8px; text-align: left; display: grid; }
.history-item[aria-pressed=true], .history-item:hover { background: var(--accent-soft); border-color: #a9a0ec; }
.history-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.history-step ul { margin: 6px 0 0; padding-left: 19px; }
.report-stats .panel { display: grid; gap: 7px; }
.report-stats span { color: var(--muted); }
.report-stats strong { font-size: clamp(17px, 2.9vw, 34px); letter-spacing: -.05em; white-space: nowrap; }
dialog { width: min(586px, calc(100vw - 22px)); max-height: calc(100dvh - 30px); border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 15px; padding: 21px; box-shadow: 0 14px 67px #14192d44; }
dialog::backdrop { background: #14192d9c; }
.dialog-head, .dialog-actions { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dialog-head { margin-bottom: 15px; }
.dialog-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.dialog-actions { justify-content: end; margin-top: 16px; flex-wrap: wrap; }
.choice-group { border: 0; padding: 0; margin: 0 0 11px; }
.choice-group legend { font-weight: 700; margin-bottom: 5px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); cursor: pointer; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-weight: 400; }
.plan-list { list-style: none; padding: 0; margin: 8px 0; }
.plan-list li { padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.plan-list small { display: block; color: var(--muted); }
@media (max-width: 1050px) { .shell { grid-template-columns: 190px minmax(0, 1fr); } main, .top { padding-inline: 22px; } .campaign-grid { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); } }
@media (max-width: 840px) { .shell { grid-template-columns: 1fr; } .sidebar { position: static; min-height: auto; max-height: none; gap: 8px; padding: 8px 12px; } nav { display: flex; flex-wrap: wrap; gap: 2px; } nav a { font-size: 13px; } .back-link { margin-top: 0; min-height: 36px; } .top { min-height: 49px; } }
@media (max-width: 620px) { .campaign-grid, .history-grid { grid-template-columns: 1fr; } .heading, .panel-head { flex-wrap: wrap; align-items: start; } .pack-grid, .account-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } main, .top { padding-inline: 13px; } main { padding-top: 20px; } .panel { padding: 13px; } .pack-tile { padding: 0; } .demo { white-space: normal; } .targets thead { display: none; } .targets, .targets tbody, .targets tr { display: block; } .targets tr { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; padding-block: 9px; } .targets td { display: block; padding: 3px 0; border: 0; } .targets td:nth-child(1), .targets td:nth-child(2) { grid-column: 1; } .targets td:nth-child(3) { grid-column: 1 / -1; } .targets td:nth-child(4) { grid-column: 2; grid-row: 1 / 3; } .targets td:nth-child(3)::before { content: "Название кампании"; display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; } }
@media (max-width: 390px) { .report-stats { grid-template-columns: 1fr 1fr; } .fields { gap: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.filters { display: grid; grid-template-columns: .95fr .9fr .8fr .75fr 1.4fr; gap: 10px; margin-bottom: 16px; }
.overview-kpi, .overview-tables { display: grid; gap: 16px; }
.overview-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-tables { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.metric { display: grid; gap: 5px; }
.metric span { color: var(--muted); font-size: 14px; font-weight: 680; }
.metric strong { color: var(--ink); font-size: clamp(29px, 3.5vw, 46px); line-height: 1.05; font-weight: 740; letter-spacing: -.06em; overflow-wrap: anywhere; }
.metric small { color: var(--muted); }
.performance { margin: 16px 0; }
.metric-selector { min-width: 140px; }
.chart-frame { min-width: 0; height: 250px; }
#performance-chart { width: 100%; height: 100%; }
.soft-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 700; white-space: nowrap; }
.soft-link:hover { text-decoration: underline; }
@media (max-width: 1050px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters label:last-child { grid-column: 1 / -1; } .overview-tables { grid-template-columns: 1fr; } .overview-kpi { gap: 7px; } .metric { padding: 10px; } .metric strong { font-size: clamp(17px, 5.6vw, 30px); } .metric small { font-size: 11px; } .chart-frame { height: 195px; } }
.nav-footer { margin-top: auto; display: grid; gap: 3px; }
.nav-footer a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; min-height: 44px; text-decoration: none; color: var(--side-muted); border-radius: 8px; font-size: 13px; font-weight: 660; margin-top: 0; }
.nav-footer a:hover, .nav-footer a[aria-current] { color: white; background: #303856; }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 9px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; }
.profile-identity { display: flex; align-items: center; gap: 12px; }
.profile-avatar { width: 45px; height: 45px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.profile-help { margin-top: 8px; }
#profile-provider { border-top: 1px solid var(--line); margin: 13px 0 0; padding-top: 12px; }
.factor-form label { margin-top: 12px; }
@media (max-width: 840px) { .nav-footer { display: flex; flex-wrap: wrap; margin-top: 0; } }
@media (max-width: 620px) { .profile-grid { grid-template-columns: 1fr; } }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; padding-inline: 8px; white-space: nowrap; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary svg { width: 13px; height: 13px; transform: rotate(90deg); }
.account-menu[open] summary svg { transform: rotate(-90deg); }
.account-initial { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.account-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 7px); z-index: 5; min-width: 224px; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 13px 30px #14192d28; }
.account-menu-identity { display: grid; gap: 3px; padding: 7px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.account-menu-identity span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; width: 100%; min-height: 44px; border: 0; border-radius: 6px; padding: 7px 8px; background: none; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 640; text-align: start; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--accent-soft); }
.account-dropdown button { color: var(--bad); }
@media (max-width: 530px) { .top-actions { gap: 5px; } .account-menu summary { white-space: normal; } #account-display-name { max-width: 115px; } }
