/* TTI dashboard — /tools/tti/ (SaM oTPravil, extends home-v3 tokens) */

.so-tti__hero {
  position: relative;
  padding: calc(96px + 48px) 0 72px;
  background: var(--so3-bg);
  color: var(--so3-white);
  overflow: hidden;
}

.so-tti__hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(129, 87, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.so-tti__crumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.so-tti__crumbs a {
  color: #e175ff;
  text-decoration: none;
}

.so-tti__crumbs a:hover {
  color: var(--so3-white);
}

.so-tti__title {
  position: relative;
  margin: 8px 0 16px;
  font-family: var(--so3-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.so-tti__lead {
  position: relative;
  margin: 0;
  max-width: 48ch;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.so-tti__lead strong {
  color: var(--so3-white);
}

.so-tti__toolbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 16px;
}

.so-tti__updated,
.so-tti__muted,
.so-tti__hint {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.so-tti__hint {
  position: relative;
  margin: 0 0 16px;
  max-width: 52ch;
}

.so-tti__toolbar .so3-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.so-tti__cards {
  position: relative;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 960px;
}

.so-tti__card {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--so3-line);
  border-radius: 16px;
}

.so-tti__card--spam {
  border-color: rgba(254, 205, 202, 0.5);
}

.so-tti__card--inbox {
  border-color: rgba(171, 239, 198, 0.5);
}

.so-tti__card--stale {
  opacity: 0.72;
  border-style: dashed;
}

.so-tti__proof {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #e175ff;
  text-decoration: none;
}

.so-tti__proof:hover {
  color: var(--so3-white);
}

.so-tti__card-name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.so-tti__card-value {
  margin: 0;
  font-family: var(--so3-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--so3-white);
}

.so-tti__card-meta {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.so-tti__placement {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: var(--so3-white);
}

.so-tti__placement--inbox {
  background: #d1fadf;
  color: #067647;
}

.so-tti__placement--spam,
.so-tti__placement--not_received {
  background: #fecdca;
  color: #b42318;
}

.so-tti__chart-wrap {
  position: relative;
  margin-top: 28px;
  max-width: 960px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--so3-line);
  border-radius: 16px;
}

.so-tti__chart-head h2 {
  margin: 0 0 4px;
  font-family: var(--so3-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--so3-white);
}

.so-tti__chart {
  margin-top: 14px;
  min-height: 200px;
}

.so-tti__chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.so-tti__chart-svg--bars {
  overflow: visible;
}

.so-tti__bar:hover {
  opacity: 0.85;
}

.so-tti__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.so-tti__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.so-tti__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.so-tti__error {
  position: relative;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #fecdca;
}

.so3-textlink {
  color: var(--so3-purple);
  text-decoration: none;
  font-weight: 700;
}

.so3-textlink:hover {
  color: #c55de0;
}
