.tg-analytics-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.tg-analytics-nav a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  background: #fff;
  color: #53637d;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.tg-analytics-nav a[aria-current] {
  background: var(--blue-soft);
  border-color: #c6d4f9;
  color: #2748b0;
}
.tg-report-filters {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.tg-report-filter-row {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tg-report-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
}
.tg-report-filters input, .tg-report-filters select {
  width: 100%;
  min-width: 0;
}
.tg-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tg-report-coverage {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #52647b;
  font-size: 12px;
  margin: 14px 0;
}
.tg-report-coverage.warn {
  color: #874d0a;
}
.tg-report-coverage .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.tg-report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.tg-report-metric {
  padding: 14px;
  min-height: 120px;
}
.tg-report-metric.attention {
  border-color: #efd6b6;
  background: #fff9f0;
}
.tg-report-metric h2 {
  font-size: 12px;
  margin: 0 0 10px;
  color: #506078;
}
.tg-report-metric > strong {
  display: block;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 28px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.tg-report-metric-note {
  margin-top: 6px;
  color: #56677d;
  font-size: 11px;
}
.tg-report-metric-note button {
  padding-left: 0;
  min-height: 28px;
}
.tg-report-section, .tg-report-method {
  margin: 0 0 16px;
  min-width: 0;
}
.tg-attention-body {
  padding: 0 18px 18px;
}
.tg-attention-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}
.tg-attention-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
}
.tg-attention-filters select {
  width: 100%;
  min-width: 0;
}
.tg-attention-list {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tg-attention-list li {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tg-attention-list header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.tg-attention-list p {
  margin: 8px 0;
  white-space: pre-wrap;
}
.tg-attention-status {
  padding: 3px 8px;
  background: #eef2f7;
  border-radius: 6px;
  color: #374965;
  font-size: 11px;
}
.tg-attention-status.waiting {
  background: #fff1dc;
  color: #7c450a;
}
.tg-attention-meta, .tg-attention-counts, .tg-attention-empty {
  margin: 8px 0;
  color: #53647a;
  font-size: 12px;
}
@media (max-width: 620px) {
  .tg-attention-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-attention-list { grid-template-columns: 1fr; }
}
.tg-report-section-head, .tg-report-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.tg-report-section-head h2 {
  margin: 0;
  font-size: 16px;
}
.tg-report-section-head span, .tg-report-section-head p, .tg-report-pagination span {
  color: #57677e;
  font-size: 12px;
}
.tg-report-section-head p {
  margin: 5px 0 0;
}
.tg-report-table-scroll, .tg-report-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.tg-report-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tg-report-table th, .tg-report-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
}
.tg-report-table thead th {
  background: #f6f8fc;
  color: #4c5e78;
  font-size: 12px;
}
.tg-report-table th:first-child {
  width: 38%;
  min-width: 150px;
  padding-left: 18px;
}
.tg-report-table small {
  display: block;
  margin: 5px 0 0;
  font-size: 11px;
  color: #627389;
  font-weight: 400;
}
.tg-report-table a {
  color: #294eb9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tg-report-message-count {
  border: 0;
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--blue-soft);
  color: #294eb9;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tg-report-source-list {
  margin: 0 18px;
  padding-left: 24px;
  font-size: 13px;
}
.tg-report-source-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.tg-report-source-list header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.tg-report-source-list time {
  color: #57677e;
  font-size: 12px;
}
.tg-report-source-list p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.tg-report-waiting, .tg-report-answered {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tg-report-waiting {
  color: #804706;
  background: #fff0db;
}
.tg-report-answered {
  color: #435d56;
  background: #eef6f3;
}
.tg-report-chart {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0 18px 15px;
  margin: 0;
}
.tg-report-chart li {
  display: grid;
  grid-template-rows: 70px auto auto;
  justify-items: center;
  gap: 4px;
  flex: 1 0 40px;
  font-size: 11px;
  color: #53657e;
  white-space: nowrap;
}
.tg-report-bar-track {
  display: flex;
  align-items: flex-end;
  width: min(70%, 54px);
  height: 100%;
  border-bottom: 1px solid var(--line);
}
.tg-report-bar-track > span {
  display: block;
  height: var(--bar-height);
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: #6885e1;
}
.tg-report-bar-count {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.tg-report-method {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
}
.tg-report-method summary { cursor: pointer; font-weight: 650; }
.tg-report-method dt { font-weight: 650; }
.tg-report-method dd { margin: 2px 0 10px; color: #53647b; }
@media (max-width: 1100px) {
  .tg-report-metrics { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
}
@media (max-width: 760px) {
  .tg-report-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tg-report-metric { min-height: 95px; }
}
@media (max-width: 400px) {
  .tg-report-filter-row { grid-template-columns: minmax(0, 1fr); }
  .tg-report-actions { width: 100%; }
}

.tg-org-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tg-org-filters > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tg-org-filters label {
  color: #435570;
  font-size: 12px;
  font-weight: 650;
}
.tg-org-filters select, .tg-org-editor textarea, .tg-org-editor select {
  width: 100%;
  min-width: 0;
}
.tg-org-editor [hidden] { display: none; }
.tg-org-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0 6px;
}
.tg-org-tags > span {
  overflow-wrap: anywhere;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef1fa;
  color: #394d75;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.tg-org-tags > .tg-org-department-tag {
  background: #e7f3ee;
  color: #215b49;
}
.tg-org-department-tags > strong { font-size: 12px; }
.tg-org-person-department { color: #536582; font-size: 11px; }
.channel-list-item .tg-org-card-label {
  display: block;
  color: #4e6382;
  overflow-wrap: anywhere;
}
.tg-org-panel {
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  background: #fafbfe;
  color: #334360;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tg-org-purpose {
  margin: 0 0 8px;
  white-space: pre-line;
}
.tg-org-self { margin: 5px 0; color: #415b82; font-weight: 650; }
.tg-org-summary { margin: 4px 0; }
.tg-org-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 4px;
}
.tg-org-summary dt { flex: 0 1 100px; font-weight: 650; }
.tg-org-summary dd { flex: 1 1 135px; min-width: 0; margin: 0; }
.tg-org-roles { margin-top: 8px; }
.tg-org-roles summary { cursor: pointer; color: #3d55a9; font-weight: 650; }
.tg-org-fieldset {
  min-width: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
.tg-org-fieldset legend { padding: 0 4px; font-size: 13px; font-weight: 650; }
.tg-org-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  max-height: 130px;
  overflow-y: auto;
}
.tg-org-departments label { max-width: 100%; font-size: 13px; overflow-wrap: anywhere; }
.tg-org-chooser, .tg-org-participant {
  display: grid;
  align-items: center;
  gap: 8px;
  margin: 8px 0 3px;
}
.tg-org-chooser { grid-template-columns: minmax(0, 1fr) auto; }
.tg-org-participant { grid-template-columns: minmax(0, 1fr) minmax(0, 132px) auto; }
.tg-org-participant strong { font-size: 13px; overflow-wrap: anywhere; }
.tg-org-participant-name small { display: block; overflow-wrap: anywhere; }
.tg-voice-transcript { margin: 8px 0 0; padding: 8px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; }
.tg-voice-transcript summary { font-weight: 650; cursor: pointer; }
.tg-voice-transcript p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

@media (max-width: 540px) {
  .tg-org-filters { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tg-org-panel { padding: 11px 13px; }
  .tg-org-participant { grid-template-columns: minmax(0, 1fr) minmax(0, 105px) auto; }
}
