/* единый смысловой слой типографики и дорогой поверхности для graph/analysis */

#screen-analysis,
#screen-chart,
#screen-notes {
  --text-card-max: 920px;
}

#screen-analysis .analysis-empty,
#screen-analysis .analysis-ai-text,
#screen-analysis .analysis-glossary-item span,
#screen-chart .analysis-empty,
#screen-chart .analysis-ai-text,
#screen-chart .chart-details-body,
#screen-chart .chart-help-note,
#screen-chart .chart-detail-line,
#screen-chart .chart-detail-empty,
#screen-notes .notes-entry-text,
#screen-notes .notes-recent-text {
  font-size: 15px;
  line-height: 1.76;
  letter-spacing: 0.01em;
  color: #2d2417;
}

#screen-analysis .analysis-top-card,
#screen-analysis .analysis-counts-card,
#screen-analysis .analysis-period-card,
#screen-analysis .analysis-ai-card,
#screen-chart .analysis-ai-card,
#screen-chart .chart-details-card,
#screen-notes .notes-recent-card,
#screen-notes .notes-entry {
  max-width: var(--text-card-max);
}

#screen-analysis .analysis-top-card,
#screen-analysis .analysis-ai-card,
#screen-chart .analysis-ai-card,
#screen-chart .chart-details-card,
#screen-notes .notes-recent-card,
#screen-notes .notes-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202,166,75,.16);
  background:
    radial-gradient(circle at top right, rgba(202,166,75,.10), transparent 26%),
    linear-gradient(180deg, rgba(255,250,241,.98) 0%, rgba(247,238,216,.94) 100%);
  box-shadow: 0 12px 30px rgba(56, 39, 10, 0.08);
}

#screen-analysis .analysis-top-card::before,
#screen-analysis .analysis-ai-card::before,
#screen-chart .analysis-ai-card::before,
#screen-chart .chart-details-card::before,
#screen-notes .notes-recent-card::before,
#screen-notes .notes-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d7b86a 0%, #9a7428 48%, #0f6b52 100%);
  opacity: .95;
}

#screen-analysis .analysis-list-title,
#screen-chart .chart-details-title,
#screen-analysis .analysis-ai-title,
#screen-chart .analysis-ai-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f2e12;
}

#screen-analysis .analysis-list-title {
  padding: 18px 20px 10px 24px;
}

#screen-analysis .analysis-list {
  padding: 0 20px 18px 24px;
}

#screen-analysis .analysis-top-card .analysis-empty {
  color: #2b2112 !important;
  font-size: 15px !important;
  line-height: 1.82 !important;
}

#screen-analysis .analysis-period-row,
#screen-analysis .analysis-counts-row {
  min-height: 54px;
  padding: 15px 18px;
}

#screen-analysis .analysis-period-row span,
#screen-analysis .analysis-counts-row span {
  color: #5c4a26;
  font-weight: 600;
}

#screen-analysis .analysis-period-row strong,
#screen-analysis .analysis-counts-row strong {
  color: #23180c;
  font-weight: 900;
}

#screen-analysis .analysis-ai-title,
#screen-chart .analysis-ai-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: #2b2112;
}

#screen-analysis .analysis-ai-text,
#screen-chart .analysis-ai-text {
  color: #2b2112;
  white-space: pre-wrap;
}

#screen-analysis .analysis-glossary-item {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,252,246,0.9);
  border: 1px solid rgba(202,166,75,.16);
  box-shadow: 0 8px 18px rgba(56, 39, 10, 0.05);
}

#screen-analysis .analysis-glossary-item strong {
  font-size: 13px;
  line-height: 1.35;
  color: #3f2e12;
  font-weight: 900;
}

#screen-analysis .analysis-glossary-item span {
  margin-top: 2px;
  color: #5b4b29;
}

#screen-notes .notes-recent-title,
#screen-notes .notes-entry-title {
  color: #23180c;
}

#screen-notes .notes-recent-date,
#screen-notes .notes-entry-date {
  color: #8a6928;
}

#screen-notes .notes-recent-text,
#screen-notes .notes-entry-text {
  color: #332716;
}

@media (min-width: 901px) {
  #screen-analysis .analysis-top-card,
  #screen-chart .chart-details-card,
  #screen-analysis .analysis-ai-card,
  #screen-chart .analysis-ai-card,
  #screen-notes .notes-recent-card,
  #screen-notes .notes-entry {
    border-radius: 20px;
  }

  #screen-analysis .analysis-top-card .analysis-empty,
  #screen-chart .chart-details-body,
  #screen-notes .notes-recent-text,
  #screen-notes .notes-entry-text {
    font-size: 16px !important;
    line-height: 1.82 !important;
  }
}

@media (max-width: 900px) {
  #screen-analysis,
  #screen-chart,
  #screen-notes {
    --text-card-max: 100%;
  }
}

@media (max-width: 640px) {
  #screen-analysis .analysis-list-title,
  #screen-chart .chart-details-title,
  #screen-analysis .analysis-ai-title,
  #screen-chart .analysis-ai-title {
    font-size: 13px;
  }

  #screen-analysis .analysis-list-title {
    padding: 15px 14px 8px 18px;
  }

  #screen-analysis .analysis-list {
    padding: 0 14px 14px 18px;
  }

  #screen-analysis .analysis-top-card .analysis-empty,
  #screen-analysis .analysis-ai-text,
  #screen-chart .chart-details-body,
  #screen-chart .chart-help-note,
  #screen-chart .chart-detail-line,
  #screen-chart .chart-detail-empty,
  #screen-notes .notes-entry-text,
  #screen-notes .notes-recent-text {
    font-size: 14px !important;
    line-height: 1.72 !important;
  }

  #screen-analysis .analysis-period-row,
  #screen-analysis .analysis-counts-row {
    min-height: 48px;
    padding: 13px 14px;
  }

  #screen-chart .chart-details-card,
  #screen-notes .notes-recent-card,
  #screen-notes .notes-entry {
    border-radius: 18px;
  }

  #screen-analysis .analysis-ai-title,
  #screen-chart .analysis-ai-title {
    font-size: 15px;
  }
}
