.tool-art {
  --art-type: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  width: 100%;
  aspect-ratio: 2.45 / 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  text-align: left;
  user-select: none;
}

.tool-art .art-window {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid;
  border-radius: 5px;
  overflow: hidden;
  font: 500 2.3cqi/1.45 var(--art-type);
  letter-spacing: 0;
}

.tool-art .art-titlebar {
  display: flex;
  align-items: center;
  column-gap: 0.75em;
  height: 2.8em;
  padding: 0 1.45em;
  border-bottom: 1px solid;
  font-size: 0.94em;
  font-weight: 600;
}

.tool-art pre {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  line-height: 1.55;
  white-space: pre;
  overflow: visible;
}

.tool-art--yaml {
  background-color: var(--mist);
}

.tool-art--yaml .art-window {
  top: 10%;
  left: 8.5%;
  width: 83%;
  border-color: #849db9;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 1cqi 1.15cqi 0 #112d4e20;
}

.tool-art--yaml .art-titlebar {
  background: #ecf0f6;
  border-color: var(--rule);
}

.tool-art--yaml .art-filemark {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.55em;
  background: var(--accent);
  color: var(--paper);
  border-radius: 2px;
  font-size: 0.83em;
}

.tool-art .art-configuration {
  display: grid;
  grid-template-columns: 42% 58%;
}

.tool-art .art-inputs {
  padding: 1.05em 1.2em 1.25em;
  border-right: 1px solid var(--rule);
}

.tool-art .art-label,
.tool-art .art-filename {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
}

.tool-art .art-field {
  display: block;
  margin: 0.26em 0 0.7em;
  padding: 0.3em 0.5em;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 2px;
  white-space: nowrap;
}

.tool-art .art-yaml-output {
  padding: 0.9em 1.3em;
  background: #edf1f7;
}

.tool-art .art-filename {
  margin-bottom: 0.4em;
  color: var(--ink);
}

.tool-art .art-yaml-output pre {
  font-size: 0.92em;
}

.tool-art--yaml .art-comment { color: var(--muted); }
.tool-art--yaml .art-key { color: #355f92; }

.tool-art--json {
  background-color: #a5bad3;
}

.tool-art--json .art-window {
  top: 10%;
  left: 12%;
  width: 76%;
  background: var(--ink);
  border-color: #29496f;
  color: var(--paper);
  box-shadow: 1cqi 1.15cqi 0 #112d4e24;
}

.tool-art--json .art-titlebar {
  background: #1e4066;
  border-color: #536e8e;
  color: var(--paper);
}

.tool-art .art-braces {
  color: #c1dcff;
  font-weight: 700;
}

.tool-art .art-json-output {
  display: flex;
  align-items: flex-start;
  gap: 1.4em;
  padding: 0.7em 1.05em 0.8em;
  font-size: 0.96em;
}

.tool-art .art-gutter {
  padding-right: 0.9em;
  border-right: 1px solid #496787;
  line-height: 1.55;
  color: #a3b7d0;
  text-align: right;
}

.tool-art--json .art-key { color: #a9d4ff; }
.tool-art--json .art-string { color: var(--mist); }
.tool-art--json .art-number { color: #c9c4f5; }
