.ga-template-table :is(td, th) {
  padding: calc(12px * var(--ga-density)) calc(14px * var(--ga-density));
  vertical-align: middle;
}
.ga-template-table td:first-child {
  min-width: 200px;
}
.ga-template-event-meta {
  display: grid;
  justify-items: start;
  gap: calc(3px * var(--ga-density));
  margin-top: calc(4px * var(--ga-density));
}
.ga-template-event-meta small { margin-top: 0; }
.ga-template-event-meta code {
  max-width: 100%;
  padding: 0 calc(5px * var(--ga-density));
  border: 1px solid var(--ga-border);
  border-radius: calc(var(--ga-radius) * .5);
  background: var(--ga-surface);
}
.ga-template-channels {
  display: flex;
  flex-wrap: wrap;
  gap: calc(5px * var(--ga-density));
}
.ga-template-channel,
.ga-template-status {
  display: inline-flex;
  align-items: center;
  gap: calc(5px * var(--ga-density));
  padding: calc(4px * var(--ga-density)) calc(7px * var(--ga-density));
  border: 1px solid var(--ga-border);
  border-radius: calc(var(--ga-radius) * .8);
  background: var(--ga-surface);
  font-size: var(--ga-type-caption-size);
  line-height: var(--ga-type-caption-line);
}
.ga-template-channel svg,
.ga-template-open svg {
  width: calc(var(--ga-icon-size) * .8);
  height: calc(var(--ga-icon-size) * .8);
}
.ga-template-channel svg,
.ga-template-open { color: var(--ga-brandHover); }
.ga-template-status { color: var(--ga-muted); }
.ga-template-status[data-status="verified"] { color: var(--ga-success); }
.ga-template-status[data-status="review"] { color: var(--ga-warning); }
.ga-template-status[data-status="invalid"] { color: var(--ga-danger); }
.ga-template-status i {
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ga-template-open { white-space: nowrap; }
@media (max-width: 850px) {
  .ga-template-table tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: calc(6px * var(--ga-density)) calc(14px * var(--ga-density));
  }
  .ga-template-table td { padding: calc(4px * var(--ga-density)) 0; }
  .ga-template-table td:first-child { grid-column: 1 / -1; }
  .ga-template-table td:first-child::before,
  .ga-template-table td:last-child::before { display: none; }
  .ga-template-table td:last-child { text-align: end; }
}

.ga-notification-templates .ga-template-filters .gads-field {
  flex: 1 1 135px;
  min-width: min(100%, 135px);
}
.ga-notification-templates .ga-template-filters .gai-search { flex-basis: 240px; }
.ga-notification-templates .gads-badge { margin: 0 4px 4px 0; }
.ga-notification-templates .gads-badge.warning {
  color: var(--ga-theme-warning);
  border-color: currentColor;
}
.ga-template-detail { margin-bottom: calc(20px * var(--ga-density)); }
.ga-template-detail > header > a { float: right; }
.ga-template-variant { margin-top: calc(16px * var(--ga-density)); }
.ga-template-variant h3 { margin: 0 0 6px; }
.ga-template-variant h4 { margin: 12px 0 6px; }
.ga-template-variant pre {
  margin: 0 0 12px;
  padding: calc(12px * var(--ga-density));
  background: var(--ga-soft);
  color: var(--ga-ink);
  border: 1px solid var(--ga-border);
  border-radius: var(--ga-radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.ga-template-variant dl { display: grid; gap: 8px; }
.ga-template-variant dl > div { display: flex; gap: 8px; flex-wrap: wrap; }
.ga-template-variant dd { margin: 0; }
.ga-template-variant small { color: var(--ga-muted); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ga-template-detail > header > a { float: none; margin-bottom: 12px; }
}
