/* «Как пишет ИИ» (pe-) и «Показатели» блогеров (st-). */

/* --- Как пишет ИИ --------------------------------------------------------- */

.pe { display: grid; grid-template-columns: 240px minmax(0, 1fr) 264px; gap: var(--sp-6); align-items: start; }

/* список: что пишет ИИ */
.pe-list { position: sticky; top: calc(var(--top-h) + var(--sp-4)); display: flex; flex-direction: column; gap: 2px; }
.pe-area { margin: var(--sp-4) 0 6px; padding-left: var(--sp-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pe-area:first-child { margin-top: 0; }
.pe-item { position: relative; display: flex; gap: var(--sp-3); align-items: center; padding: 8px var(--sp-3); border-radius: 10px; color: var(--muted); text-decoration: none; font-size: var(--s1); font-weight: 500; line-height: 1.3; transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.pe-item:hover { background: var(--tint); color: var(--text); }
.pe-item.on { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px hsl(var(--t-scrim) / .06), 0 4px 14px -6px hsl(var(--t-scrim) / .12); }
.pe-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--muted); transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.pe-item.on .pe-ico { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-soft); }
.pe-name { min-width: 0; flex: 1; }
.pe-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--warn-ink); box-shadow: 0 0 0 3px var(--warn-tint); }

/* главная колонка */
.pe-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.pe-hero { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-6); border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--t-primary) / .14), transparent 55%), var(--card); }
.pe-hero-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-hover), var(--accent)); box-shadow: var(--glow); }
.pe-hero-t { flex: 1; min-width: 0; }
.pe-hero h2 { margin: 0 0 3px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.pe-hero p { margin: 0; font-size: var(--s1); color: var(--muted); }
.pe-state { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--s0); font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.pe-state.is-mod { background: var(--warn-tint); color: var(--warn-ink); }

.pe-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.pe-card-h { display: flex; gap: var(--sp-3); align-items: flex-start; }
.pe-card-h h3 { margin: 1px 0 3px; font-size: var(--s2); font-weight: 600; letter-spacing: -.01em; }
.pe-card-h h3 label { cursor: text; }
.pe-card-h p { margin: 0; font-size: var(--s1); line-height: 1.5; color: var(--muted); }
.pe-step { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: var(--s0); font-weight: 650;
  color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px hsl(var(--t-primary) / .3); font-variant-numeric: tabular-nums; }
.pe textarea { width: 100%; resize: vertical; font: inherit; font-size: var(--s1); line-height: 1.6; min-height: 64px; padding: 12px 14px; border-radius: 12px; }

/* 1. свои правила */
.pe-own { border-color: hsl(var(--t-primary) / .35); box-shadow: 0 0 0 4px hsl(var(--t-primary) / .06); }
.pe-own textarea { min-height: 88px; background: var(--surface); }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-chip { height: auto; min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px dashed var(--line-ctl);
  background: transparent; color: var(--muted); font: inherit; font-size: var(--s0); line-height: 1.35; text-align: left; white-space: normal; max-width: 100%; cursor: pointer;
  transition: background .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out), transform .12s var(--ease-out); }
.pe-chip:hover { background: var(--accent-tint); border-color: hsl(var(--t-primary) / .45); color: var(--text); }
.pe-chip:active { transform: scale(.97); }
.pe-chip.is-used { border-style: solid; border-color: hsl(var(--t-primary) / .45); color: var(--accent); background: var(--accent-tint); }

/* 2. проверить */
.pe-tryrow { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.pe-select { position: relative; flex: 1 1 200px; min-width: 0; display: flex; align-items: center; margin: 0; }
.pe-select > .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.pe-select select { width: 100%; max-width: none; padding-left: 34px; color: var(--text); }
.pe-select .pick { flex: 1; display: block; min-width: 0; }
.pe-select .pick-btn { padding-left: 34px; color: var(--text); }
.pe-select > .icon { z-index: 1; }
.pe-try-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 550; color: var(--text); background: var(--tint); border: 1px solid var(--line-ctl);
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out), transform .12s var(--ease-out); }
.pe-try-btn:hover { background: var(--accent-tint); border-color: hsl(var(--t-primary) / .45); }
.pe-try-btn:active { transform: scale(.98); }
.pe-try-btn .icon { color: var(--accent); }
.pe-result { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: pe-in .35s var(--ease-out); }
/* Пока ИИ пишет новый ответ, прежний не показываем. */
.ui-think:not([hidden]) ~ .pe-result { display: none; }
@keyframes pe-in { from { opacity: 0; transform: translateY(6px); } }
.pe-msg { max-width: 86%; padding: 10px 14px 11px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.pe-msg p { margin: 0; font-size: var(--s1); line-height: 1.5; white-space: pre-wrap; }
.pe-msg small { font-size: 12px; line-height: 1.45; color: var(--muted); white-space: pre-wrap; padding-top: 5px; border-top: 1px dashed var(--line); }
.pe-msg-who { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pe-msg.is-in { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.pe-msg.is-out { align-self: flex-end; background: var(--accent-tint); border: 1px solid hsl(var(--t-primary) / .3); border-bottom-right-radius: 5px; }
.pe-msg.is-out .pe-msg-who { color: var(--accent); }
.pe-result-bad { margin: 0; color: var(--bad-bright); display: flex; gap: 8px; align-items: center; font-size: var(--s1); }
.pe-result-note { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; line-height: 1.5; font-size: var(--s0); color: var(--warn-ink); background: var(--warn-tint); }
/* Новая версия текста для ИИ: что из правок команды не перешло. */
.pe-carried { display: flex; flex-direction: column; gap: var(--sp-2); }
.pe-carried-lost { padding: 0 12px; }
.pe-carried-lost summary { cursor: pointer; font-size: var(--s0); color: var(--muted); }
.pe-carried-lost .pe-read { padding: 8px 0 4px; }
.pe-result-foot { margin: 0; font-size: 11.5px; color: var(--faint); text-align: center; }

/* 3. подробные указания */
.pe-secs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pe-sec + .pe-sec { border-top: 1px solid var(--line); }
.pe-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-4); font-size: var(--s1); font-weight: 550; transition: background .15s var(--ease-out); }
.pe-sec > summary::-webkit-details-marker { display: none; }
.pe-sec > summary:hover { background: var(--surface); }
.pe-sec[open] > summary { background: var(--surface); }
.pe-sec-n { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--tint); font-variant-numeric: tabular-nums; }
.pe-sec-t { flex: 1; min-width: 0; }
.pe-badge { flex: none; font-size: 11px; font-weight: 550; padding: 2px 8px; border-radius: 999px; color: var(--warn-ink); background: var(--warn-tint); }
.pe-sec.is-changed .pe-sec-n { color: var(--warn-ink); background: var(--warn-tint); }
.pe-chev { flex: none; color: var(--faint); transition: transform .2s var(--ease-out); }
.pe-sec[open] > summary .pe-chev { transform: rotate(180deg); }
.pe-sec-b { padding: var(--sp-2) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 22px + var(--sp-3)); display: flex; flex-direction: column; gap: var(--sp-3); }
.pe-read { font-size: var(--s1); line-height: 1.65; color: var(--text); max-width: 68ch; }
.pe-read > :first-child { margin-top: 0; }
.pe-read > :last-child { margin-bottom: 0; }
.pe-read p { margin: 0 0 var(--sp-2); }
.pe-read h4 { margin: var(--sp-3) 0 4px; font-size: var(--s1); font-weight: 600; }
.pe-read ul, .pe-read ol { margin: 0 0 var(--sp-2); padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pe-read li::marker { color: var(--accent); font-weight: 600; }
.pe-read b { font-weight: 600; }
.pe-term { display: inline; padding: 1px 6px; border-radius: 6px; font-size: .95em; background: var(--tint); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pe-sec textarea { display: none; }
.pe-sec.is-editing textarea { display: block; }
.pe-sec.is-editing .pe-read { display: none; }
.pe-sec-act { display: flex; gap: var(--sp-2); }
.pe-sec-act .ghost { display: inline-flex; align-items: center; gap: 6px; }
.pe-sec [data-undo] { display: none; }
.pe-sec.is-editing [data-edit] { display: none; }
.pe-sec.is-editing [data-undo] { display: inline-flex; }

/* сохранить: всегда под рукой */
.pe-save { position: sticky; bottom: var(--sp-4); z-index: 5; display: none; gap: var(--sp-2); align-items: center; padding: 10px 10px 10px var(--sp-4); border-radius: 14px;
  background: hsl(var(--t-card) / .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -12px hsl(var(--t-scrim) / .35); transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.pe-save > input { flex: 1 1 200px; min-width: 0; }
.pe-save .primary { display: inline-flex; align-items: center; gap: 6px; }
.pe-dirty { display: none; align-items: center; gap: 6px; flex: none; font-size: var(--s0); font-weight: 550; color: var(--warn-ink); }
.is-dirty .pe-save { display: flex; animation: pe-in .25s var(--ease-out); border-color: hsl(var(--t-warning) / .5); box-shadow: 0 0 0 4px var(--warn-tint), 0 10px 30px -12px hsl(var(--t-scrim) / .35); }
.is-dirty .pe-dirty { display: inline-flex; }

/* история */
.pe-hist { position: sticky; top: calc(var(--top-h) + var(--sp-4)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: var(--sp-4); }
.pe-hist-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.pe-hist-h p { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: var(--s1); font-weight: 600; }
.pe-hist-h p .icon { color: var(--muted); }
.pe-hist ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pe-hist li { position: relative; padding: 0 0 var(--sp-3) 20px; display: flex; flex-direction: column; gap: 2px; font-size: var(--s0); }
.pe-hist li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-ctl); }
.pe-hist li::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: 2px; width: 1px; background: var(--line); }
.pe-hist li:last-child { padding-bottom: 0; }
.pe-hist li:last-child::after { display: none; }
.pe-hist li.is-now::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.pe-h-who b { font-weight: 600; }
.pe-h-what { color: var(--muted); line-height: 1.45; }
.pe-h-now { color: var(--accent); font-size: 11.5px; font-weight: 550; }
.pe-hist .linkish { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; height: auto; color: var(--muted); font-size: 11.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pe-hist .linkish:hover { color: var(--text); }
.pe-hist li.pe-h-empty { padding: var(--sp-2) 0 0; align-items: center; text-align: center; color: var(--muted); line-height: 1.5; gap: var(--sp-2); }
.pe-h-empty::before, .pe-h-empty::after { display: none; }
.pe-h-empty-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--faint); }

@media (max-width: 1200px) {
  .pe { grid-template-columns: 220px minmax(0, 1fr); }
  .pe-hist { grid-column: 2; position: static; }
}
@media (max-width: 760px) {
  .pe { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .pe-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 calc(-1 * var(--sp-3)); padding: 2px var(--sp-3) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pe-list::-webkit-scrollbar { display: none; }
  .pe-list .pe-area { display: none; }
  .pe-item { flex: none; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); scroll-snap-align: center; white-space: nowrap; }
  .pe-item.on { box-shadow: 0 0 0 1px hsl(var(--t-primary) / .45); }
  .pe-ico { width: 26px; height: 26px; border-radius: 50%; }
  .pe-hist { grid-column: auto; }
  .pe-hero { padding: var(--sp-4); flex-wrap: wrap; gap: var(--sp-3); }
  .pe-hero-ico { width: 40px; height: 40px; border-radius: 12px; }
  .pe-hero-t { flex-basis: calc(100% - 56px); }
  .pe-state { order: 3; }
  .pe-card { padding: var(--sp-4); border-radius: 14px; }
  .pe-sec-b { padding-left: var(--sp-4); }
  .pe-msg { max-width: 100%; }
  .pe-try-btn { flex: 1 1 100%; justify-content: center; }
  .pe-save { bottom: var(--sp-2); flex-wrap: wrap; padding: 10px; }
  .pe-select { flex: 1 1 100%; }
  .pe-save > input { flex-basis: 100%; }
  .pe-save .primary { flex: 1; justify-content: center; }
}

/* --- Показатели блогеров ---------------------------------------------------- */

.st-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin: 0 0 var(--sp-4); }
.st-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.st-seg a { padding: 6px 12px; border-radius: 7px; font-size: var(--s0); color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s var(--ease-out), background .15s var(--ease-out); }
.st-seg a:hover { color: var(--text); }
.st-seg a.on { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.st-bar select { max-width: 240px; }

.st-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.st-tile { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; animation: st-up .45s var(--ease-out) both; }
.st-tile:nth-child(2) { animation-delay: 40ms; } .st-tile:nth-child(3) { animation-delay: 80ms; } .st-tile:nth-child(4) { animation-delay: 120ms; } .st-tile:nth-child(5) { animation-delay: 160ms; } .st-tile:nth-child(6) { animation-delay: 200ms; }
@keyframes st-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-tile.is-accent { background: linear-gradient(160deg, hsl(var(--t-primary) / .16), var(--card) 70%); border-color: hsl(var(--t-primary) / .35); }
.st-k { font-size: var(--s0); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.st-k .icon { color: var(--faint); }
.st-tile.is-accent .st-k .icon { color: var(--accent); }
.st-v { font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-s { font-size: var(--s0); color: var(--muted); }
.st-s b { font-weight: 600; color: var(--text); }
.is-good { color: var(--ok) !important; }
.is-bad { color: var(--bad-bright) !important; }

.st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-4); }
.st-card { grid-column: span 4; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.st-funnel, .st-deals { grid-column: span 7; }
.st-att, .st-ai { grid-column: span 5; }
.st-products { grid-column: span 5; } .st-ops { grid-column: span 3; } .st-langs { grid-column: span 4; }
.st-products, .st-ops { overflow-x: auto; }
.st-wide { grid-column: 1 / -1; }
.st-h { margin: 0; font-size: var(--s2); font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.st-h > span:not(.st-legend):not(.st-count) { font-size: var(--s0); font-weight: 400; color: var(--muted); }
.st-count { font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn-tint); color: var(--warn-ink); display: inline-grid; place-items: center; align-self: center; }
.st-foot, .st-empty { margin: 0; font-size: var(--s0); color: var(--faint); }
.st-sub { margin: 4px 0 0; font-size: var(--s0); color: var(--muted); font-weight: 600; }

.st-funnel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.st-funnel li { display: grid; grid-template-columns: 86px minmax(0, 1fr) 44px 40px; gap: 10px; align-items: center; font-size: var(--s1); }
.st-f-l { color: var(--muted); }
.st-f-bar { height: 22px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.st-f-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, hsl(var(--t-primary) / .95), hsl(var(--t-primary) / .55)); transform-origin: left; animation: st-grow .7s var(--ease-out) both; animation-delay: var(--d); }
.st-funnel li:nth-child(n+6) .st-f-bar i { background: linear-gradient(90deg, hsl(var(--t-success)), hsl(var(--t-success) / .55)); }
@keyframes st-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.st-f-n { text-align: right; font-variant-numeric: tabular-nums; }
.st-f-c { font-size: var(--s0); color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }

.st-att ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 330px; overflow: auto; }
.st-att a { display: grid; grid-template-columns: 8px minmax(0, auto) minmax(0, 1fr) 12px; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: var(--s1); }
.st-att a:hover { background: var(--tint); }
.st-att a i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.st-att .is-reply a i, .st-att .is-decide a i { background: var(--warn-ink); box-shadow: 0 0 0 3px var(--warn-tint); }
.st-att .is-pay a i, .st-att .is-late a i { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-tint); }
.st-att b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-att span { color: var(--muted); font-size: var(--s0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-go { transform: rotate(-90deg); color: var(--faint); }
.st-calm { margin: auto 0; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: var(--s1); padding: 18px; border-radius: var(--r-ctl); background: hsl(var(--t-success) / .08); }
.st-calm .icon { color: var(--ok); flex: none; }

.st-legend { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-size: var(--s0); font-weight: 400; }
.st-legend em { font-style: normal; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.st-legend em b { color: var(--text); font-weight: 600; }
.st-legend i { width: 10px; height: 3px; border-radius: 2px; background: currentColor; }
.st-legend .k-found i { background: hsl(var(--t-muted-foreground)); }
.st-legend .k-written i { background: hsl(var(--t-primary)); }
.st-legend .k-replied i { background: hsl(var(--t-info)); }
.st-svg { position: relative; height: 200px; padding-bottom: 20px; }
.st-svg svg { width: 100%; height: 180px; display: block; overflow: visible; }
.st-grid-l { stroke: var(--line); stroke-dasharray: 2 4; }
.st-axis { stroke: var(--line-ctl); }
.st-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.k-found { color: hsl(var(--t-muted-foreground)); } .st-line.k-found { stroke: hsl(var(--t-muted-foreground)); }
.k-written { color: hsl(var(--t-primary)); } .st-line.k-written { stroke: hsl(var(--t-primary)); }
.k-replied { color: hsl(var(--t-info)); } .st-line.k-replied { stroke: hsl(var(--t-info)); }
.s-found { stop-color: hsl(var(--t-muted-foreground)); } .s-written { stop-color: hsl(var(--t-primary)); } .s-replied { stop-color: hsl(var(--t-info)); }
.st-dots { position: absolute; inset: 0 0 20px; pointer-events: none; }
.st-dots span { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--card); border: 2px solid currentColor; pointer-events: auto; cursor: default; transition: transform .15s var(--ease-out); }
.st-dots span:hover { transform: scale(1.5); }
.st-x { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; font-size: 11px; color: var(--faint); }
.st-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.st-x span:first-child { transform: none; }
.st-x span:last-child { transform: translateX(-100%); }

.st-deals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.st-deals li { display: grid; grid-template-columns: minmax(0, 200px) minmax(60px, 1fr) auto 74px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--s1); }
.st-deals li:last-child { border-bottom: 0; }
.st-d-who { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--text); min-width: 0; }
.st-d-who span { display: flex; flex-direction: column; min-width: 0; }
.st-d-who b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-d-who small { color: var(--muted); font-size: 11.5px; }
.st-d-bars { position: relative; height: 10px; }
.st-d-bars i { position: absolute; left: 0; top: 0; height: 10px; width: var(--w); border-radius: 5px; background: var(--muted); transform-origin: left; animation: st-grow .6s var(--ease-out) both; }
.st-d-bars i.is-asked { background: repeating-linear-gradient(135deg, var(--line-ctl) 0 4px, transparent 4px 7px); border: 1px solid var(--line-ctl); }
.st-d-bars i.is-approved { background: hsl(var(--t-success)); }
.st-d-bars i.is-pending_approval { background: var(--warn-ink); }
.st-d-bars i.is-draft { background: hsl(var(--t-info) / .8); }
.st-d-bars i.is-rejected { background: var(--bad); opacity: .6; }
.st-d-sum { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-d-sum s { display: block; font-size: 11.5px; color: var(--faint); }
.st-d-cpm { font-size: var(--s0); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.st-donut { display: flex; gap: 16px; align-items: center; }
.st-donut svg { width: 92px; height: 92px; flex: none; }
.st-ring { fill: none; stroke: var(--tint); stroke-width: 5; }
.st-ring-v { fill: none; stroke: hsl(var(--t-primary)); stroke-width: 5; stroke-linecap: round; animation: st-ring .9s var(--ease-out) both; }
@keyframes st-ring { from { stroke-dasharray: 0 100; } }
.st-donut b { font-size: 26px; font-weight: 650; display: block; letter-spacing: -.02em; }
.st-donut span { font-size: var(--s0); color: var(--muted); }
.st-ai-n { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.st-ai-n div { padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.st-ai-n dt { font-size: 11.5px; color: var(--muted); }
.st-ai-n dd { margin: 0; font-size: var(--s2); font-weight: 600; font-variant-numeric: tabular-nums; }

.st-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-bars li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--s1); }
.st-bars span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bars i { display: block; height: 8px; width: var(--w); min-width: 3px; border-radius: 4px; background: hsl(var(--t-primary) / .75); transform-origin: left; animation: st-grow .6s var(--ease-out) both; }
.st-bars b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.st-bars small { color: var(--faint); font-weight: 400; }

.st-table { width: 100%; border-collapse: collapse; font-size: var(--s1); }
.st-table th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--faint); padding: 0 6px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table th:not(:first-child), .st-table td:not(:first-child) { text-align: right; }
.st-table td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table td small { display: block; font-size: 11px; color: var(--faint); }
.st-table a { color: var(--text); text-decoration: none; }
.st-table a:hover { color: var(--accent); }

@media (max-width: 1280px) {
  .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-funnel, .st-deals, .st-att, .st-ai, .st-products, .st-ops, .st-langs { grid-column: span 6; }
  .st-card { grid-column: span 6; }
  .st-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-card, .st-funnel, .st-deals, .st-att, .st-ai, .st-products, .st-ops, .st-langs, .st-card:last-child { grid-column: auto; }
  .st-deals li { grid-template-columns: minmax(0, 1fr) auto; }
  .st-d-bars { grid-column: 1 / -1; order: 3; }
  .st-d-cpm { display: none; }
  .st-funnel li { grid-template-columns: 74px minmax(0, 1fr) 36px 34px; gap: 8px; }
  .st-v { font-size: 24px; }
  .st-x span:nth-child(even):not(:last-child) { display: none; }
  .st-x span:nth-last-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-tile, .st-f-bar i, .st-d-bars i, .st-bars i, .st-ring-v, .pe-result { animation: none; }
}
@media (max-width: 640px) {
  .st-att a { grid-template-columns: 8px minmax(0, 1fr) 12px; row-gap: 2px; }
  .st-att a i { grid-row: span 2; }
  .st-att a span { grid-column: 2; grid-row: 2; white-space: normal; }
  .st-att a > .icon { grid-column: 3; grid-row: 1 / span 2; }
}
