/* единый авторитет по кнопкам и текстовым карточкам */

#screen-chart .range-picker-row,
#screen-chart .date-picker-row,
#screen-analysis .range-picker-row,
#screen-analysis .date-picker-row,
#screen-analysis .analysis-date-label,
#screen-notes .notes-date-row,
#screen-notes .range-picker-row,
#screen-notes .date-picker-row,
#screen-notes .notes-current-date,
#screen-notes .notes-current-date-line,
#screen-notes .notes-current-date-divider,
#screen-notes .notes-current-date-row,
#screen-chart .chart-landing-summary-line,
#screen-chart .chart-landing-forecast-line {
  display: none !important;
}

#screen-chart .chart-controls,
#screen-analysis .analysis-period-btns,
#screen-notes .notes-range-row,
.growin-fixed-button-row {
  display: grid !important;
  gap: 8px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  overflow: visible !important;
}

#screen-chart .chart-controls,
#screen-analysis .analysis-period-btns,
#screen-notes .notes-range-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#screen-chart .chart-btn,
#screen-analysis .analysis-period-btn,
#screen-notes .notes-range-btn,
.growin-fixed-period-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

#screen-chart .chart-btn *,
#screen-analysis .analysis-period-btn *,
#screen-notes .notes-range-btn * {
  text-align: center !important;
}

#screen-notes .notes-ai-actions,
#screen-notes .analysis-ai-actions,
#screen-analysis .analysis-ai-actions,
.growin-ai-actions-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin: 8px 0 16px !important;
}

#screen-notes .notes-ai-actions button,
#screen-notes .analysis-ai-actions button,
#screen-analysis .analysis-ai-actions button,
.growin-ai-actions-row button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

#screen-analysis #analysis-body {
  display: grid !important;
  gap: 14px !important;
}

#screen-analysis .analysis-counts-card.growin-analysis-counts-ready {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#screen-analysis .analysis-counts-card.growin-analysis-counts-ready::before {
  content: none !important;
}

#screen-analysis .analysis-counts-card.growin-analysis-counts-ready .analysis-counts-row {
  min-height: 84px !important;
  border: 1px solid rgba(202,166,75,.16) !important;
  border-radius: 16px !important;
  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%) !important;
  box-shadow: 0 10px 22px rgba(56,39,10,.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 11px 13px !important;
  overflow: hidden !important;
}

#screen-analysis .analysis-counts-card.growin-analysis-counts-ready .analysis-counts-row span {
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  font-weight: 900 !important;
  color: #8a6928 !important;
}

#screen-analysis .analysis-counts-card.growin-analysis-counts-ready .analysis-counts-row strong {
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-align: left !important;
  font-size: 17px !important;
  line-height: 1.12 !important;
  color: #23180c !important;
}

#screen-chart .growin-chart-note-head {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 900;
  color: #8a6928;
}

#screen-chart .growin-chart-note-body {
  display: block;
  white-space: pre-wrap;
  color: #23180c;
  line-height: 1.56;
}

#screen-chart .chart-summary-grid,
#screen-chart .chart-stats-grid,
#screen-chart .chart-detail-metrics-grid,
#screen-chart .chart-detail-metrics-grid.compact,
#screen-analysis .analysis-glossary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 640px) {
  #screen-chart .chart-controls,
  #screen-analysis .analysis-period-btns,
  #screen-notes .notes-range-row,
  .growin-fixed-button-row {
    gap: 6px !important;
  }

  #screen-chart .chart-btn,
  #screen-analysis .analysis-period-btn,
  #screen-notes .notes-range-btn,
  .growin-fixed-period-btn {
    min-height: 40px !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  #screen-notes .notes-ai-actions,
  #screen-notes .analysis-ai-actions,
  #screen-analysis .analysis-ai-actions,
  .growin-ai-actions-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #screen-analysis .analysis-counts-card.growin-analysis-counts-ready {
    gap: 8px !important;
  }

  #screen-analysis .analysis-counts-card.growin-analysis-counts-ready .analysis-counts-row {
    min-height: 76px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  #screen-analysis .analysis-counts-card.growin-analysis-counts-ready .analysis-counts-row strong {
    font-size: 15px !important;
  }
}
