.six-diagram {
  width: min(100%, 28rem);
  max-width: 100%;
  margin: 16px 0;
}

.six-diagram figcaption {
  margin-bottom: 4px;
  color: #193c32;
  font-weight: 650;
}

.six-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fcfdf9;
  border: 1px solid #cedbd0;
  border-radius: 7px;
  font: 600 16px system-ui, sans-serif;
  fill: #163b30;
}

.six-diagram :is(.sd-line, .sd-frame, .sd-dimension, .sd-dashed, .sd-accent, .sd-accent-dashed, .sd-rotation) {
  fill: none;
  stroke: #285543;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.six-diagram .sd-dimension { stroke-width: 1.2; }
.six-diagram .sd-dashed { stroke-dasharray: 5 4; }
.six-diagram :is(.sd-accent, .sd-accent-dashed) { stroke: #88501e; stroke-width: 2.1; }
.six-diagram .sd-accent-dashed { stroke-dasharray: 9 3; }
.six-diagram .sd-rotation { stroke: #ab4243; stroke-width: 2.5; }

.six-diagram :is(.sd-shape, .sd-tile, .sd-side, .sd-top) {
  fill: #e0eee3;
  stroke: #285543;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.six-diagram .sd-side { fill: #c0dbc9; }
.six-diagram .sd-top { fill: #f2f7ef; }
.six-diagram .sd-box { fill: #f0f5ee; stroke: #a4b9ac; }
.six-diagram .sd-ingredient { font-size: 15px; }
.six-diagram .sd-grid { fill: none; stroke: #a4b9ac; stroke-dasharray: 2 2; }
.six-diagram .sd-red { fill: #ab4243; }
.six-diagram .sd-blue { fill: #226184; }
.six-diagram .sd-length { dominant-baseline: central; }
