/* Яндекс Игры: чеклист черновика, шпаргалка SDK */

.tool-stage--yg-draft-checklist,
.tool-stage--yg-sdk-cheatsheet,
.tool-stage--yg-revenue-estimator {
  width: min(960px, 100%);
}

.yg-draft-checklist-tool-root .card,
.yg-sdk-cheatsheet-tool-root .card,
.yg-revenue-estimator-tool-root .card {
  box-shadow: none;
}

/* —— Общая шапка —— */
.yg-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.yg-tool-header > div:first-child {
  min-width: 0;
}

.yg-tool-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.yg-tool-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.yg-tool-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 0;
}

.yg-tool-doc {
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.yg-tool-doc a {
  color: var(--accent-hover);
  text-decoration: none;
}

.yg-tool-doc a:hover {
  text-decoration: underline;
}

.yg-tool-status {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  border-radius: 0;
  background: rgba(240, 240, 240, 0.03);
  border: 1px solid var(--border);
}

.yg-tool-status--ok,
.yg-checklist-status.yg-tool-status--ok {
  color: var(--accent-hover);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.yg-tool-progress {
  height: 8px;
  border-radius: 0;
  background: rgba(240, 240, 240, 0.06);
  overflow: hidden;
}

.yg-tool-progress__bar {
  height: 100%;
  width: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-hover), rgba(108, 182, 255, 0.45));
  transition: width 0.4s ease;
  box-shadow: none;
}

.yg-tool-progress__text {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* —— Чеклист —— */
.yg-checklist-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yg-checklist-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    rgba(108, 182, 255, 0.08) 0%,
    rgba(5, 5, 5, 0.2) 55%
  );
}

.yg-checklist-hero__ring {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0;
  border: 3px solid var(--accent-border);
  background: rgba(5, 5, 5, 0.25);
  box-shadow: none;
}

.yg-checklist-hero__pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.yg-checklist-hero__meta {
  flex: 1;
  min-width: 0;
}

.yg-checklist__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.yg-checklist__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 0;
  background: rgba(5, 5, 5, 0.2);
  border: 1px solid var(--border);
}

.yg-checklist__pill {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition:
    color var(--dur-fast),
    background var(--dur-fast),
    border-color var(--dur-fast);
}

.yg-checklist__pill:hover {
  color: var(--text);
  background: rgba(240, 240, 240, 0.05);
}

.yg-checklist__pill.is-active {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.yg-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.yg-checklist__section {
  padding: 0.6rem 0.65rem 0.65rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.14);
  border-left: 3px solid var(--border);
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}

.yg-checklist__section.is-complete {
  border-left-color: var(--accent-hover);
  background: rgba(108, 182, 255, 0.04);
}

.yg-checklist__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.yg-checklist__section-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.yg-checklist__section-count {
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
  background: var(--accent-soft);
  border-radius: 0;
  border: 1px solid var(--accent-border);
}

.yg-checklist__section-hint {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.yg-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.yg-checklist__row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.4rem 0.45rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    opacity var(--dur-fast);
}

.yg-checklist__row:hover {
  background: rgba(240, 240, 240, 0.04);
  border-color: rgba(128, 128, 128, 0.06);
}

.yg-checklist__row.is-done {
  opacity: 0.72;
  background: rgba(108, 182, 255, 0.05);
  border-color: rgba(108, 182, 255, 0.12);
}

.yg-checklist__row.is-done .yg-checklist__label {
  text-decoration: line-through;
  text-decoration-color: rgba(240, 240, 240, 0.25);
}

.yg-checklist__row input {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-hover);
}

.yg-checklist__row-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.yg-checklist__req {
  color: #e94142;
  font-weight: 700;
  margin-right: 0.12rem;
}

.yg-checklist__label {
  font-size: 0.75rem;
  line-height: 1.4;
}

.yg-checklist__item-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.yg-checklist__tool-link {
  align-self: flex-start;
  margin-top: 0.15rem;
}

/* —— Шпаргалка —— */
.yg-cheat-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.yg-cheat__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.35rem 0;
  margin: -0.35rem 0 0.15rem;
  background: linear-gradient(180deg, var(--bg-elevated) 70%, transparent);
}

.yg-cheat-search {
  flex: 1 1 14rem;
  min-width: 0;
}

.yg-cheat__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--border);
}

.yg-cheat__nav[hidden] {
  display: none !important;
}

.yg-cheat__nav-link {
  padding: 0.22rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.15);
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast),
    background var(--dur-fast);
}

.yg-cheat__nav-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.yg-cheat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yg-cheat__section {
  scroll-margin-top: 5rem;
  padding: 0.55rem 0 0;
}

.yg-cheat__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.yg-cheat__section-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent-hover);
}

.yg-cheat__doc {
  font-size: 0.68rem;
  color: var(--accent-hover);
  text-decoration: none;
  white-space: nowrap;
}

.yg-cheat__doc:hover {
  text-decoration: underline;
}

.yg-cheat__card {
  margin-bottom: 0.55rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.2);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.yg-cheat__card:hover {
  border-color: rgba(108, 182, 255, 0.35);
  box-shadow: none;
}

.yg-cheat__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.yg-cheat__card-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.yg-cheat__card-hint {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.yg-cheat__code {
  margin: 0;
  padding: 0.6rem 0.65rem;
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-x: auto;
  border-radius: 0;
  background: rgba(5, 5, 5, 0.4);
  border: 1px solid rgba(128, 128, 128, 0.06);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

@media (max-width: 640px) {
  .yg-checklist-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .yg-checklist-hero__ring {
    margin: 0 auto;
  }

  .yg-cheat__toolbar {
    position: static;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yg-tool-progress__bar {
    transition: none;
  }
}

/* —— Калькулятор дохода —— */
.tool-stage--yg-revenue-estimator .card {
  border-color: rgba(128, 128, 128, 0.07);
  background:
    linear-gradient(165deg, rgba(240, 240, 240, 0.04) 0%, transparent 42%),
    var(--depth-surface-gradient-tools, rgba(5, 5, 5, 0.92));
}

.yg-rev-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.yg-rev-field[hidden] {
  display: none;
}

.yg-rev-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.yg-rev-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
  padding: 0.45rem;
  border-radius: 0;
  border: 1px solid rgba(128, 128, 128, 0.08);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(240, 240, 240, 0.02) 100%);
  box-shadow: none;
}

.yg-rev-input {
  max-width: 16rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.yg-rev-input--url {
  max-width: none;
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.yg-rev-input--url:focus {
  outline: none;
  box-shadow: none;
}

.yg-rev-load {
  flex-shrink: 0;
  min-width: 7.5rem;
  box-shadow: none;
}

.yg-rev-status {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.yg-rev-status--loading {
  color: var(--accent-hover);
  border-color: rgba(108, 182, 255, 0.2);
  background: rgba(108, 182, 255, 0.06);
}

.yg-rev-status--error {
  color: #e94142;
  border-color: rgba(108, 182, 255, 0.25);
  background: rgba(108, 182, 255, 0.08);
}

.yg-rev-empty {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  border: 1px dashed rgba(128, 128, 128, 0.1);
  color: var(--text-faint);
}

.yg-rev-game {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0;
  border: 1px solid rgba(108, 182, 255, 0.14);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(108, 182, 255, 0.07), transparent 55%),
    rgba(240, 240, 240, 0.03);
  box-shadow: none;
}

.yg-rev-game__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.yg-rev-game__dev {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.yg-rev-game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.yg-rev-game__pill {
  padding: 0.22rem 0.55rem;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  border-radius: 0;
  border: 1px solid rgba(128, 128, 128, 0.1);
  color: var(--text-muted);
  background: rgba(5, 5, 5, 0.22);
}

.yg-rev-game__pill:first-child {
  border-color: rgba(108, 182, 255, 0.25);
  color: #d4d4d4;
}

.yg-rev-game__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.yg-rev-game__link {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.yg-rev-game__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.yg-rev-chart-wrap {
  margin-bottom: 1rem;
}

.yg-rev-chart-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.yg-rev-chart-title::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 0;
  background: rgba(108, 182, 255, 0.85);
  box-shadow: none;
}

.yg-rev-chart-box {
  position: relative;
  height: 240px;
  border-radius: 0;
  border: 1px solid rgba(108, 182, 255, 0.12);
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(108, 182, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.18) 100%);
  box-shadow: none;
  overflow: visible;
}

.yg-rev-chart {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.yg-rev-chart-tooltip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #d4d4d4;
  pointer-events: none;
  border-radius: 0;
  border: 1px solid rgba(108, 182, 255, 0.45);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.yg-rev-chart-tooltip__date {
  font-size: 0.68rem;
  color: rgba(240, 240, 240, 0.55);
}

.yg-rev-chart-tooltip__ratings {
  font-weight: 600;
}

.yg-rev-chart-tooltip__revenue {
  color: #94a3b8;
  font-weight: 600;
}

.yg-rev-formula {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  border-radius: 0;
  border: 1px solid rgba(108, 182, 255, 0.14);
  border-left: 3px solid rgba(108, 182, 255, 0.55);
  background:
    linear-gradient(90deg, rgba(108, 182, 255, 0.06), transparent 55%),
    rgba(240, 240, 240, 0.02);
}

.yg-rev-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: yg-rev-fade-in 0.4s ease-out;
}

@keyframes yg-rev-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yg-rev-results {
    animation: none;
  }
}

.yg-rev-results-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.yg-rev-results-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.yg-rev-scenario-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4d4d4;
  border-radius: 0;
  border: 1px solid rgba(108, 182, 255, 0.35);
  background: rgba(108, 182, 255, 0.12);
}

.yg-rev-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.yg-rev-stat {
  position: relative;
  padding: 0.95rem 1rem;
  border-radius: 0;
  border: 1px solid rgba(128, 128, 128, 0.08);
  background: rgba(240, 240, 240, 0.025);
  overflow: hidden;
}

.yg-rev-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(240, 240, 240, 0.04), transparent 48%);
}

.yg-rev-stat--primary {
  border-color: rgba(108, 182, 255, 0.2);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(108, 182, 255, 0.1), transparent 55%),
    rgba(240, 240, 240, 0.03);
  box-shadow: none;
}

.yg-rev-stat--meta {
  border-style: dashed;
  border-color: rgba(128, 128, 128, 0.1);
}

.yg-rev-stat__label {
  position: relative;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.yg-rev-stat__value {
  position: relative;
  margin: 0.4rem 0 0;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brand-tld, #94a3b8);
  text-shadow: none;
}

.yg-rev-stat--meta .yg-rev-stat__value {
  color: var(--text);
  text-shadow: none;
}

.yg-rev-stat__hint {
  position: relative;
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.yg-rev-benchmark {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-faint);
  border-radius: 0;
  background: rgba(5, 5, 5, 0.15);
  border: 1px solid rgba(128, 128, 128, 0.05);
}

.yg-rev-ranges-panel {
  padding: 1rem 1.05rem;
  border-color: rgba(108, 182, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(108, 182, 255, 0.05), transparent 55%),
    rgba(240, 240, 240, 0.02);
}

.yg-rev-ranges__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.yg-rev-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.06);
  font-size: 0.8rem;
}

.yg-rev-range:first-of-type {
  border-top: none;
  padding-top: 0;
}

.yg-rev-range__label {
  color: var(--text-muted);
  font-weight: 500;
}

.yg-rev-range__vals {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.yg-rev-range__low {
  color: var(--text-faint);
}

.yg-rev-range__mid {
  color: #d4d4d4;
  font-weight: 700;
}

.yg-rev-range__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(128, 128, 128, 0.06);
}

.yg-rev-scenario-chip {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid rgba(128, 128, 128, 0.12);
  color: var(--text-muted);
  background: rgba(5, 5, 5, 0.2);
}

.yg-rev-scenario-chip--mid {
  border-color: rgba(108, 182, 255, 0.25);
  color: #d4d4d4;
  background: rgba(108, 182, 255, 0.08);
}

.yg-rev-scenario-arrow {
  font-size: 0.65rem;
  color: var(--text-faint);
}

.yg-rev-scenario-note {
  font-size: 0.65rem;
  color: var(--text-faint);
}

.yg-rev-assumption {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-faint);
}

.yg-rev-assumptions-title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.yg-rev-assumptions {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.yg-rev-assumptions li + li {
  margin-top: 0.35rem;
}

.tool-backdrop--yg-revenue-estimator {
  background:
    radial-gradient(ellipse 75% 55% at 12% -5%, rgba(108, 182, 255, 0.11), transparent 58%),
    radial-gradient(ellipse 65% 50% at 92% 15%, rgba(108, 182, 255, 0.08), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(5, 5, 5, 0.35), transparent 70%);
}

.yg-rev-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(128, 128, 128, 0.12);
  width: fit-content;
}

.yg-rev-tab {
  padding: 0.42rem 0.95rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: transparent;
  border: none;
  cursor: pointer;
}

.yg-rev-tab.is-active {
  color: var(--text-primary);
  background: rgba(108, 182, 255, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent-hover);
}

.yg-rev-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.yg-rev-chart-modes {
  display: flex;
  gap: 0;
  border: 1px solid rgba(128, 128, 128, 0.12);
}

.yg-rev-mode {
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  background: transparent;
  border: none;
  cursor: pointer;
}

.yg-rev-mode.is-active {
  color: #6ee7c9;
  background: rgba(110, 231, 201, 0.08);
}

.yg-rev-warn {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #f0b872;
  border: 1px solid rgba(240, 184, 114, 0.25);
  background: rgba(240, 184, 114, 0.07);
}

.yg-rev-stat--good .yg-rev-stat__value {
  color: #6ee7c9;
}

.yg-rev-stat--bad .yg-rev-stat__value {
  color: #e94142;
}

.yg-rev-input--sm {
  max-width: 9rem;
  font-size: 0.85rem;
}

.yg-rev-assume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.yg-rev-assume-grid .yg-rev-field {
  margin-bottom: 0;
}

.yg-rev-goal-out {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6ee7c9;
  border: 1px solid rgba(110, 231, 201, 0.22);
  background: rgba(110, 231, 201, 0.06);
}

.yg-rev-manual-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(128, 128, 128, 0.1);
}

.yg-rev-manual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.yg-rev-manual-table th {
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  white-space: nowrap;
}

.yg-rev-manual-table td {
  padding: 0.42rem 0.6rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.06);
  color: var(--text-muted);
}

.yg-rev-manual-table tr:last-child td {
  border-bottom: none;
}

.yg-rev-history-del {
  padding: 0 0.45rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.yg-rev-history-del:hover {
  color: #e94142;
  border-color: rgba(233, 65, 66, 0.3);
}

.yg-rev-export {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: transparent;
  border: 1px solid rgba(108, 182, 255, 0.3);
  cursor: pointer;
}

.yg-rev-export:hover {
  background: rgba(108, 182, 255, 0.1);
}

@media (max-width: 720px) {
  .yg-rev-stats {
    grid-template-columns: 1fr;
  }

  .yg-rev-stat--primary + .yg-rev-stat--primary {
    margin-top: 0;
  }

  .yg-rev-assume-grid {
    grid-template-columns: 1fr;
  }

  .yg-rev-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
