.uml-figure {
  container-type: inline-size;
  box-sizing: border-box;
  margin: 1.5rem 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid #cec5b6;
  border-radius: 5px;
  overflow: hidden;
  background: #fcfaf6;
  color: #24201c;
  text-align: start;
}
.uml-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .35rem;
  padding: 1.25rem clamp(1rem, 4%, 2rem) .85rem;
}
.uml-kind {
  color: #8b3830;
  font: 600 .75rem/1.5 var(--mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.uml-title {
  font: 400 clamp(1.5rem, 3.3vw, 2.2rem)/1.14 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
}
.uml-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #998e80 #eee9df;
}
.uml-scroll:focus-visible { outline: 2px solid #a63d32; outline-offset: -3px; }
.uml-scroll svg {
  display: block;
  width: 100%;
  max-width: 880px;
  min-width: 655px;
  height: auto;
  margin: auto;
}
.uml-view-trust-records .uml-scroll svg { min-width: 760px; }
.uml-figure .uml-scroll-hint { display: none; }
.uml-node rect, .uml-participant rect {
  fill: #fff;
  stroke: #8f8174;
  stroke-width: 1.25;
}
.uml-reference rect { fill: #f8edd9; stroke: #967b4e; }
.uml-instance rect { fill: #fff8ec; stroke: #987c52; }
.uml-qualifier {
  font: 500 12px/1 var(--sans, sans-serif);
  fill: #66584c;
}
.uml-name, .uml-participant-name {
  font: 600 16px/1 var(--sans, sans-serif);
  fill: #2a241f;
}
.uml-instance text { text-decoration: underline; }
.uml-relation, .uml-message-label {
  font: 550 14px/1 var(--sans, sans-serif);
  fill: #67382e;
  stroke: #fcfaf6;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.uml-edge { fill: none; stroke: #813c32; stroke-width: 1.6; stroke-linejoin: round; }
.uml-participant rect { fill: #f8edd9; }
.uml-lifeline { fill: none; stroke: #a69a8c; stroke-width: 1.4; stroke-dasharray: 3 5; }
.uml-reply { stroke-dasharray: 7 4; }
.uml-figure .uml-legend, .uml-figure .uml-scroll-hint {
  margin: 0;
  padding: .65rem clamp(1rem, 4%, 2rem) 1rem;
  color: #5e5145;
  font: 400 .92rem/1.5 var(--sans, sans-serif);
}
.uml-text {
  border-top: 1px solid #dcd2c5;
  padding: .8rem clamp(1rem, 4%, 2rem);
  background: #f6f2eb;
  font: 400 .96rem/1.55 var(--sans, sans-serif);
}
.uml-text summary { cursor: pointer; color: #6e322a; font-weight: 600; }
.uml-text summary:focus-visible { outline: 2px solid #a63d32; outline-offset: 3px; }
.uml-text ul { margin: .8rem 0 0; padding-left: 1.3em; list-style: disc; }
.uml-text li { margin: .35rem 0; }
.uml-text code { overflow-wrap: anywhere; font: .88em var(--mono, monospace); }
@container (max-width: 654px) {
  .uml-figure .uml-scroll-hint { display: block; padding-top: 0; padding-bottom: .6rem; }
}
@container (max-width: 759px) {
  .uml-view-trust-records .uml-scroll-hint { display: block; padding-top: 0; padding-bottom: .6rem; }
}
@media print {
  .uml-figure { break-inside: avoid; }
  .uml-scroll { overflow: visible; }
  .uml-figure .uml-scroll svg { min-width: 0; }
  .uml-figure .uml-scroll-hint { display: none; }
}
