/* Заметки на графиках: события аккаунта (изменения кабинета и Google Ads, свои заметки). */
.an-flags { position: relative; height: 22px; margin-bottom: 2px; }
.an-flag {
  position: absolute; top: 0; transform: translateX(-50%); height: 20px; min-width: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; transition: background .15s ease-out, border-color .15s ease-out;
}
.an-flag:hover, .an-flag:focus-visible { border-color: var(--ink-3); background: var(--hover); color: var(--ink); }
.an-flag.note { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.an-flag.cal { color: var(--ink-3); border-style: dashed; }
.an-flag svg.i { width: 12px; height: 12px; }
.rp-chart .an-mark { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: .55; }
.rp-chart .an-mark.note { stroke: var(--brand); opacity: .8; }
.rp-chart .an-mark.calendar { opacity: .3; }
.rp-chart .an-band { fill: var(--brand); opacity: .06; }
.an-ftip {
  position: absolute; top: 24px; z-index: 2; width: 260px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px 10px; font-size: 12px; pointer-events: none; display: grid; gap: 4px;
}
.an-tiplist { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); display: grid; gap: 3px; max-width: 280px; }
.an-tiphint { margin-top: 4px; font-size: 11px; }
.an-tiprow { display: flex; gap: 6px; align-items: baseline; line-height: 1.35; }
.an-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); transform: translateY(-1px); }
.an-dot.note { background: var(--brand); }
.an-dot.cabinet { background: var(--ok); }
.an-dot.google { background: var(--info); }
.an-dot.calendar { background: transparent; border: 1px dashed var(--ink-3); }
.an-list { margin-bottom: 16px; }
.an-n { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 2px; }
.seg button.on .an-n { color: inherit; opacity: .7; }
.an-table td { vertical-align: top; }
.an-table .nowrap, .an-table td.nowrap { white-space: nowrap; }
.an-ev { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.an-ev:last-child { border-bottom: 0; }
.an-items { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; color: var(--ink-2); }
.an-form { padding-top: 4px; }
.an-form .row .field { flex: 1; min-width: 140px; }
@media (max-width: 640px) { .an-ftip { width: 220px; } .an-table th:nth-child(4), .an-table td:nth-child(4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .an-flag { transition: none; } }
