.local-app .tag-main {
  max-width: 1080px;
  font-size: 1rem;
}

.tag-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1rem;
  align-items: start;
}

.tag-tools-grid .panel {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.tag-stack {
  display: grid;
  gap: 1rem;
}

.tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.local-app .tag-check {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tag-help, .tag-status {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tag-help {
  color: var(--muted);
}

.tag-compatibility:not([hidden]) {
  margin-bottom: 1rem;
}

.tag-status {
  margin: 1rem 0 0;
}

.tag-stack .tag-status {
  margin: 0;
}

.tag-status:empty {
  margin: 0;
}

.tag-status[data-error="true"] {
  color: var(--pink);
}

.tag-preview {
  display: grid;
  min-height: 15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}

.tag-preview canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: white;
  image-rendering: pixelated;
}

.tag-preview [hidden] {
  display: none;
}

.tag-records {
  padding-inline-start: 1.5rem;
  margin-bottom: 0;
}

.tag-records li {
  margin-bottom: 1rem;
}

.tag-records pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .7rem;
  max-height: 14rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tag-main .app-footer {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}

.tag-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
