#gc-dash {
  box-sizing: border-box;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0e1a14;
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0;
  text-shadow: none;
  float: none;
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
  animation: none;
  transition: none;
}
#gc-dash *,
#gc-dash *::before,
#gc-dash *::after {
  box-sizing: border-box;
  border: 0 none;
  outline: 0 none;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  text-indent: 0;
  letter-spacing: normal;
  word-spacing: normal;
  float: none;
  list-style: none;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  min-width: 0;
  opacity: 1;
}
/* Чужие псевдоэлементы (Bootstrap clearfix у .row и подобные) не должны
   становиться ячейками наших гридов и ломать раскладку. */
#gc-dash *::before,
#gc-dash *::after {
  content: none;
  display: none;
}
#gc-dash svg {
  width: auto;
  height: auto;
  overflow: visible;
  fill: currentColor;
  vertical-align: middle;
}
#gc-dash table { border-collapse: collapse; border-spacing: 0; width: 100%; }
#gc-dash td, #gc-dash th { border: 0 none; padding: 0; text-align: left; vertical-align: middle; background: transparent; }
#gc-dash button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0 none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: inherit;
}
#gc-dash input, #gc-dash select, #gc-dash textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0 none;
  margin: 0;
}
#gc-dash a { color: inherit; text-decoration: none; background: transparent; }
#gc-dash img { max-width: 100%; height: auto; border: 0; }
#gc-dash p, #gc-dash h1, #gc-dash h2, #gc-dash h3, #gc-dash h4 { margin: 0; padding: 0; font-weight: inherit; }

/* ===== Токены ================================================= */
#gc-dash {
  --bg: #f4f7f5;
  --card: #ffffff;
  --ink: #0e1a14;
  --ink-2: #24382e;
  --muted: #61766b;
  --faint: #8a9d93;
  --line: #e3ebe6;
  --line-2: #eef3f0;
  --accent: #1d6a49;
  --accent-strong: #15523a;
  --accent-2: #38a06f;
  --accent-soft: #e6f2ec;
  --accent-tint: #f3f9f5;
  --warn: #a8721d;
  --bad: #ac3f2e;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-xs: 0 1px 2px rgba(14, 26, 20, 0.05);
  --shadow-sm: 0 1px 2px rgba(14, 26, 20, 0.04), 0 4px 12px -4px rgba(14, 26, 20, 0.06);
  --shadow: 0 1px 3px rgba(14, 26, 20, 0.05), 0 12px 28px -12px rgba(14, 26, 20, 0.14);
  --shadow-lg: 0 32px 72px -20px rgba(14, 26, 20, 0.34);
  --ring: 0 0 0 3px rgba(56, 160, 111, 0.18);
}

#gc-dash * { box-sizing: border-box; }
#gc-dash { margin: 0; padding: 0; }

#gc-dash {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

/* ===== Шапка ================================================= */
#gc-dash .top {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 340px at 12% -40%, var(--top-glow-1, rgba(94, 214, 160, 0.30)), transparent 62%),
    radial-gradient(700px 300px at 92% -20%, var(--top-glow-2, rgba(56, 160, 111, 0.22)), transparent 60%),
    linear-gradient(150deg, var(--top-1, #0b241a) 0%, var(--top-2, #123a29) 46%, var(--top-3, #1a5a3e) 100%);
  color: #fff;
  padding: 34px 0 58px;
  overflow: hidden;
}
#gc-dash .top::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  z-index: -1;
}
#gc-dash .top-in {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
#gc-dash .top h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -0.024em;
  line-height: 1.2;
}
#gc-dash .top .sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.005em;
}
#gc-dash .top .sub b { color: #fff; font-weight: 600; }
#gc-dash .top a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.16s ease;
}
#gc-dash .top a:hover { border-bottom-color: #fff; }

#gc-dash .stamp {
  text-align: right;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  letter-spacing: 0.01em;
}
#gc-dash .stamp b {
  display: block;
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ===== Контейнер ============================================= */
#gc-dash .wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== Навигация: плавающие пилюли поверх шапки ============== */
#gc-dash .tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  /* Панель должна наезжать на шапку — значит выше неё по слоям */
  position: relative;
  z-index: 3;
  margin: -34px 0 24px;
  padding: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}
#gc-dash .tabs::-webkit-scrollbar { display: none; }

#gc-dash .tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
#gc-dash .tab:hover { background: var(--accent-tint); color: var(--accent-strong); }
#gc-dash .tab:focus-visible { outline: 0; box-shadow: var(--ring); }
#gc-dash .tab[aria-selected='true'] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(29, 106, 73, 0.45);
}
#gc-dash .tab[aria-selected='true']:hover { background: var(--accent-strong); color: #fff; }
#gc-dash .tab .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  vertical-align: 1px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.16s ease, color 0.16s ease;
}
#gc-dash .tab[aria-selected='true'] .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ===== Сетка ================================================= */
#gc-dash .grid { display: grid; gap: 18px; margin-bottom: 18px; }
#gc-dash .cols-2 { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }

/* ===== Карточки ============================================== */
#gc-dash .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  min-width: 0;
}
#gc-dash .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 16px;
}
#gc-dash .card-head h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.012em;
  color: var(--ink);
}
#gc-dash .card h2 {
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}
#gc-dash .note { font-size: 12px; color: var(--faint); letter-spacing: 0.005em; }
#gc-dash .hint { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ===== KPI =================================================== */
#gc-dash .kpis {
  /* Сетка из 12 колонок, чтобы не оставалось «дыр» в последнем ряду.
     Шесть карточек (Senler) -> по 4 колонки, два полных ряда 3 + 3.
     Семь карточек (Обзор) -> 4 + 3: первые четыре по 3, остальные по 4. */
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
#gc-dash .kpis > .kpi {
  grid-column: span 4;
  min-width: 0;
  container-type: inline-size;
}
#gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi { grid-column: span 3; }
#gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi:nth-child(n + 5) { grid-column: span 4; }

#gc-dash .kpi {
  position: relative;
  padding: 18px 20px 16px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
#gc-dash .kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d6e6dd;
}
#gc-dash .kpi .label {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--faint);
  margin-bottom: 9px;
}
#gc-dash .kpi .value {
  font-size: 29px;
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
#gc-dash .kpi .hint {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.45;
}
#gc-dash .kpi.small .value { font-size: 23px; }

#gc-dash .kpi.accent {
  background: linear-gradient(158deg, var(--accent-tint), var(--accent-soft));
  border-color: var(--accent-soft);
}
#gc-dash .kpi.accent::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--accent-strong));
}
#gc-dash .kpi.accent .value { color: var(--accent-strong); }

/* Ужимаем крупные числа, если дашборд вставили в узкую колонку сайта */
@container (max-width: 210px) {
  #gc-dash .kpi .value { font-size: 22px; }
}
@container (max-width: 155px) {
  #gc-dash .kpi .value { font-size: 18px; }
}

/* ===== Сегментированные переключатели ======================== */
#gc-dash .seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
}
#gc-dash .seg button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash .seg button:hover { color: var(--accent-strong); }
#gc-dash .seg button:focus-visible { outline: 0; box-shadow: var(--ring); }
#gc-dash .seg button[aria-pressed='true'] {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: var(--shadow-xs);
}

/* ===== Графики ============================================== */
#gc-dash .chart { width: 100%; display: block; overflow: visible; }
#gc-dash .chart text {
  font-size: 10px;
  fill: var(--faint);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
#gc-dash .chart .axis { stroke: var(--line); stroke-width: 1; }
#gc-dash .chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
#gc-dash .chart .bar {
  fill: var(--accent);
  transition: fill 0.16s ease;
}
#gc-dash .chart .bar:hover { fill: var(--accent-2); }
#gc-dash .chart .bar.alt { fill: #a7cdb9; }
#gc-dash .chart .bar.alt:hover { fill: var(--accent-2); }

#gc-dash .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 16px;
}
#gc-dash .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: default;
}
#gc-dash .legend-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
#gc-dash .legend-item b {
  color: var(--ink);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

/* ===== Горизонтальные полоски ================================ */
#gc-dash .bars-list { display: flex; flex-direction: column; gap: 15px; }
#gc-dash .bars-list .bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}
#gc-dash .bars-list .lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 7px;
}
#gc-dash .bars-list .lab b {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  flex: none;
}
#gc-dash .bars-list .track {
  height: 8px;
  background: var(--line-2);
  border-radius: 99px;
  overflow: hidden;
}
#gc-dash .bars-list .fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ===== Фильтры ============================================== */
#gc-dash .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
#gc-dash .search {
  position: relative;
  flex: 1 1 250px;
  min-width: 190px;
}
#gc-dash .search input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 10px 13px 10px 37px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash .search input::placeholder { color: var(--faint); }
#gc-dash .search input:focus {
  border-color: var(--accent-2);
  box-shadow: var(--ring);
}
#gc-dash .search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--faint);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
#gc-dash select {
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash select:focus { border-color: var(--accent-2); box-shadow: var(--ring); }
#gc-dash .count-note {
  font-size: 12.5px;
  color: var(--faint);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

/* ===== Таблицы ============================================== */
#gc-dash .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
#gc-dash table { width: 100%; border-collapse: collapse; font-size: 13px; }
#gc-dash thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}
#gc-dash thead th:hover { color: var(--accent-strong); background: var(--accent-tint); }
#gc-dash thead th.num { text-align: right; }
#gc-dash thead th .arrow { color: var(--accent-2); margin-left: 5px; font-size: 9px; }
#gc-dash tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-2);
  transition: background-color 0.12s ease;
}
#gc-dash tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
#gc-dash tbody td.title { max-width: 380px; white-space: normal; color: var(--ink); font-weight: 500; }
#gc-dash tbody tr { cursor: pointer; }
#gc-dash tbody tr:hover td { background: var(--accent-tint); }
#gc-dash tbody tr:last-child td { border-bottom: 0; }

/* ===== Пилюли и проценты ==================================== */
#gc-dash .pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.005em;
}
#gc-dash .pill.grey { background: #f0f4f2; color: var(--muted); }
#gc-dash .pill.warn { background: #fbf3e6; color: var(--warn); }
#gc-dash .pill.bad { background: #fbeeeb; color: var(--bad); }

#gc-dash .rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
#gc-dash .rate .track {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
  flex: none;
}
#gc-dash .rate .fill { height: 100%; background: var(--accent); border-radius: 99px; }

#gc-dash .up { color: var(--accent-2); font-weight: 650; }
#gc-dash .down { color: var(--bad); font-weight: 650; }

/* ===== Кнопки ============================================== */
#gc-dash .more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash .more:hover {
  background: var(--accent-tint);
  border-color: #cfe3d8;
  box-shadow: var(--shadow-xs);
}
#gc-dash .more:focus-visible { outline: 0; box-shadow: var(--ring); }

/* ===== Сравнение рассылок =================================== */
#gc-dash .compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  margin: 0 0 14px;
  background: linear-gradient(150deg, #f6fbf8, #edf6f1);
  border: 1px solid #dbeae1;
  border-radius: var(--radius);
  flex-wrap: wrap;
}
#gc-dash .compare-toolbar .hint { color: var(--muted); font-size: 12px; }
#gc-dash .compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 620 !important;
  font-size: 13px;
  box-shadow: 0 2px 8px -2px rgba(29, 106, 73, 0.4);
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash .compare-btn:hover:not(:disabled) {
  background: var(--accent-strong) !important;
  box-shadow: 0 4px 14px -3px rgba(29, 106, 73, 0.5);
}
#gc-dash .compare-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
#gc-dash .compare-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
#gc-dash .compare-cell { width: 40px; text-align: center !important; }
#gc-dash .compare-table th:first-child { min-width: 180px; }
#gc-dash .compare-table td,
#gc-dash .compare-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
#gc-dash .compare-table th {
  background: #f8faf9;
  color: var(--faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}
#gc-dash .compare-table td:first-child { font-weight: 600; color: var(--muted); }
#gc-dash .compare-table .winner {
  background: #edf7f1;
  color: var(--accent-strong);
  font-weight: 700;
}
#gc-dash .compare-note { font-size: 12px; color: var(--faint); margin-top: 12px; line-height: 1.55; }

/* ===== Аналитика времени ==================================== */
#gc-dash .time-insight-note {
  padding: 13px 16px;
  border-radius: 12px;
  background: #fffbf1;
  border: 1px solid #f2e4c5;
  color: #7a5a1c;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
#gc-dash .time-table { width: 100%; border-collapse: collapse; }
#gc-dash .time-table th,
#gc-dash .time-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#gc-dash .time-table th:first-child,
#gc-dash .time-table td:first-child { text-align: left; font-variant-numeric: normal; }
#gc-dash .time-table th {
  font-size: 10.5px;
  color: var(--faint);
  background: #f8faf9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  position: sticky;
  top: 0;
  z-index: 1;
}
#gc-dash .time-table tbody tr:hover td { background: var(--accent-tint); }
#gc-dash .time-table .best {
  color: var(--accent-strong);
  background: #edf7f1;
  font-weight: 700;
}
#gc-dash .time-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#gc-dash .time-period-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  background: linear-gradient(165deg, #fbfdfc, #f5f9f7);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
#gc-dash .time-period-item:hover { border-color: #d6e6dd; box-shadow: var(--shadow-xs); }
#gc-dash .time-period-item b {
  display: block;
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
#gc-dash .time-period-item span { font-size: 12px; color: var(--muted); }
#gc-dash .time-period-item .hint { margin-top: 6px; font-size: 11.5px; }

/* ===== Модальное окно ====================================== */
#gc-dash .modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 16, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#gc-dash .modal[hidden] { display: none; }
#gc-dash .sheet {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(780px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 26px 28px 28px;
  animation: gc-sheet-in 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes gc-sheet-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
#gc-dash .sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
#gc-dash .sheet h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.018em;
  line-height: 1.32;
}
#gc-dash .sheet .meta {
  color: var(--faint);
  font-size: 12.5px;
  margin: 7px 0 20px;
  line-height: 1.5;
}
#gc-dash .close {
  appearance: none;
  border: 0;
  background: #f2f6f4;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  flex: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
#gc-dash .close:hover { background: #e6eee9; color: var(--ink); }
#gc-dash .close:focus-visible { outline: 0; box-shadow: var(--ring); }

#gc-dash .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
#gc-dash .stat {
  background: #f7faf8;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 11px 13px;
}
#gc-dash .stat .k {
  font-size: 10.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  margin-bottom: 4px;
}
#gc-dash .stat .v {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ===== Подвал ============================================== */
#gc-dash footer {
  max-width: 1380px;
  margin: 24px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  line-height: 1.6;
}
#gc-dash footer b { color: var(--ink-2); font-weight: 620; font-variant-numeric: tabular-nums; }

/* Ссылка на разработчика: в подвале и в карточке «О выгрузке».
   Подчёркиваем только её, чтобы не отвлекать от цифр, и подсвечиваем
   фирменным цветом проекта при наведении. */
#gc-dash .dev-link {
  color: var(--accent-strong);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
#gc-dash .dev-link:hover,
#gc-dash .dev-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#gc-dash footer .dev-link { color: var(--muted); }
#gc-dash footer .dev-link:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* ===== Предупреждения ====================================== */
#gc-dash .alert {
  border: 1px solid #f2e4c5;
  background: #fffbf1;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  color: #7a5a1c;
  line-height: 1.55;
  margin-bottom: 16px;
}
#gc-dash .alert.bad {
  border-color: #f4d6d0;
  background: #fdf4f2;
  color: #8a3427;
}

/* ===== Пустые состояния ===================================== */
#gc-dash .empty {
  padding: 38px 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

/* ===== Адаптив ============================================= */
@media (max-width: 820px) {
  #gc-dash .kpis > .kpi,
  #gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi,
  #gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi:nth-child(n + 5) { grid-column: span 6; }
  #gc-dash .kpis > .kpi:last-child:nth-child(odd) { grid-column: span 12; }
}
@media (max-width: 640px) {
  #gc-dash .wrap,
  #gc-dash .top-in { padding-left: 16px; padding-right: 16px; }
  #gc-dash footer { padding-left: 16px; padding-right: 16px; }
  #gc-dash .top { padding: 26px 0 46px; }
  #gc-dash .top h1 { font-size: 20px; }
  #gc-dash .top-in { flex-direction: column; align-items: flex-start; }
  #gc-dash .stamp { text-align: left; }
  #gc-dash .tabs { margin-top: -28px; margin-bottom: 20px; }
  #gc-dash .kpi .value { font-size: 24px; }
  #gc-dash .cols-2 { grid-template-columns: 1fr; }
  #gc-dash .time-period-grid { grid-template-columns: 1fr; }
  #gc-dash .filters .count-note { margin-left: 0; width: 100%; }
  #gc-dash .card { padding: 16px; }
}
@media (max-width: 520px) {
  #gc-dash .kpis > .kpi,
  #gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi,
  #gc-dash .kpis:has(> .kpi:nth-child(7)) > .kpi:nth-child(n + 5) { grid-column: span 12; }
}

/* ===== Аккуратные анимации ================================= */
@media (prefers-reduced-motion: reduce) {
  #gc-dash *,
  #gc-dash *::before,
  #gc-dash *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
