/* ==========================================================================
   Haki — documentação
   ========================================================================== */

:root {
  --bg: #fbfbfa;
  --bg-soft: #f3f3f1;
  --sidebar-bg: #f6f6f4;
  --surface: #ffffff;
  --border: #e4e3df;
  --border-strong: #cfcdc7;
  --text: #1c1b19;
  --text-soft: #3d3c38;
  --muted: #6f6d67;
  --accent: #dc2f23;
  --accent-soft: rgba(220, 47, 35, 0.08);
  --accent-text: #c4281d;
  --code-bg: #f3f3f1;
  --code-border: #e4e3df;
  --code-text: #18181b;
  --inline-code-bg: #efeeeb;
  --inline-code-text: #18181b;
  --note: #2563eb;
  --warn: #b45309;
  --tip: #15803d;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);

  --t-comment: #8a8a93;
  --t-string: #15803d;
  --t-keyword: #c2410c;
  --t-var: #a16207;
  --t-class: #1d4ed8;
  --t-number: #7c3aed;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 286px;
  --toc-w: 268px;
  --content-max: 780px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161615;
    --bg-soft: #1c1c1b;
    --sidebar-bg: #161615;
    --surface: #1f1f1e;
    --border: #2b2b29;
    --border-strong: #3a3a37;
    --text: #ededeb;
    --text-soft: #c9c8c3;
    --muted: #8f8e88;
    --accent: #f05545;
    --accent-soft: rgba(240, 85, 69, 0.12);
    --accent-text: #ff7466;
    --code-bg: #0f0f0e;
    --code-border: #262624;
    --code-text: #e6e5e1;
    --inline-code-bg: #252523;
    --inline-code-text: #e6e5e1;
    --note: #60a5fa;
    --warn: #f0b04a;
    --tip: #4ade80;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --t-comment: #6f6f78;
    --t-string: #a5d6a7;
    --t-keyword: #ff8f73;
    --t-var: #f2c97d;
    --t-class: #8ab4ff;
    --t-number: #c9a6ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161615;
  --bg-soft: #1c1c1b;
  --sidebar-bg: #161615;
  --surface: #1f1f1e;
  --border: #2b2b29;
  --border-strong: #3a3a37;
  --text: #ededeb;
  --text-soft: #c9c8c3;
  --muted: #8f8e88;
  --accent: #f05545;
  --accent-soft: rgba(240, 85, 69, 0.12);
  --accent-text: #ff7466;
  --code-bg: #0f0f0e;
  --code-border: #262624;
  --code-text: #e6e5e1;
  --inline-code-bg: #252523;
  --inline-code-text: #e6e5e1;
  --note: #60a5fa;
  --warn: #f0b04a;
  --tip: #4ade80;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --t-comment: #6f6f78;
  --t-string: #a5d6a7;
  --t-keyword: #ff8f73;
  --t-var: #f2c97d;
  --t-class: #8ab4ff;
  --t-number: #c9a6ff;
  color-scheme: dark;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

kbd {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  min-height: 100vh;
}

body.sidebar-collapsed .layout {
  grid-template-columns: 0 minmax(0, 1fr) var(--toc-w);
}

body.sidebar-collapsed .sidebar {
  visibility: hidden;
}

/* ---------- barra lateral ---------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-top {
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.project-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.project-text strong {
  font-size: 14px;
  font-weight: 600;
}

.project-text small {
  font-size: 12px;
  color: var(--muted);
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 8px 0 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.search-trigger:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.search-trigger span {
  flex: 1;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.nav-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-group + .nav-group {
  margin-top: 20px;
}

.nav-group-title {
  margin: 0 0 6px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 500;
  background: var(--accent-soft);
}

.nav-list-icons a {
  padding: 5px 8px;
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}

.nav-icon svg {
  width: 14px;
  height: 14px;
}

.nav-list a[aria-current="page"] .nav-icon {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: transparent;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.theme-switch {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.theme-switch button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--text);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.sidebar-expand {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-expand:hover {
  color: var(--text);
}

body.sidebar-collapsed .sidebar-expand {
  display: grid;
}

.mobile-bar {
  display: none;
}

/* ---------- conteúdo ---------- */

.content {
  min-width: 0;
  width: 100%;
  max-width: calc(var(--content-max) + 160px);
  margin: 0 auto;
  padding: 56px 80px 96px;
}

.doc-page[hidden] {
  display: none;
}

.doc-page h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-desc {
  margin: 0 0 40px !important;
  font-size: 17px !important;
  color: var(--muted) !important;
}

.doc-page h2 {
  margin: 56px 0 16px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.doc-page h3 {
  margin: 36px 0 12px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
}

.page-desc + h2 {
  margin-top: 0;
}

.doc-page :is(h2, h3) a.anchor {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.12s;
}

.doc-page :is(h2, h3):hover a.anchor {
  opacity: 1;
}

.doc-page p,
.doc-page li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.doc-page p {
  margin: 0 0 18px;
}

.doc-page ul,
.doc-page ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.doc-page li + li {
  margin-top: 4px;
}

.doc-page strong {
  color: var(--text);
  font-weight: 600;
}

.doc-page p a,
.doc-page li a,
.doc-page td a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.12s;
}

.doc-page p a:hover,
.doc-page li a:hover,
.doc-page td a:hover {
  text-decoration-color: var(--accent);
}

.lead {
  font-size: 17px !important;
}

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
  padding: 2px 5px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow-wrap: anywhere;
}

/* ---------- blocos de código ---------- */

.code {
  position: relative;
  margin: 0 0 24px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: hidden;
}

.code-title {
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--code-border);
  background: var(--surface);
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.code code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--code-text);
  white-space: pre;
  font-variant-ligatures: none;
}

.copy-button {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 3px 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
}

.code:hover .copy-button,
.copy-button:focus-visible {
  opacity: 1;
}

.copy-button:hover {
  color: var(--text);
}

.t-comment { color: var(--t-comment); font-style: italic; }
.t-string { color: var(--t-string); }
.t-keyword { color: var(--t-keyword); }
.t-var { color: var(--t-var); }
.t-class { color: var(--t-class); }
.t-number { color: var(--t-number); }
.t-tag { color: var(--t-keyword); }
.t-flag { color: var(--t-class); }
.t-key { color: var(--t-class); }

/* ---------- avisos ---------- */

.callout {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--note);
  background: var(--bg-soft);
  border-radius: 8px;
}

.callout p {
  margin: 0;
  font-size: 15px;
}

.callout p + p {
  margin-top: 8px;
}

.callout-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--note);
}

.callout.warn {
  border-left-color: var(--warn);
}

.callout.warn .callout-label {
  color: var(--warn);
}

.callout.tip {
  border-left-color: var(--tip);
}

.callout.tip .callout-label {
  color: var(--tip);
}

/* ---------- tabelas ---------- */

.table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-soft);
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- árvore de pastas ---------- */

.tree {
  margin: 0 0 24px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-soft);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
}

.tree .dir {
  color: var(--text);
  font-weight: 600;
}

.tree .note {
  color: var(--muted);
}

/* ---------- passos ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
  margin-left: 0 !important;
  border-left: 1px solid var(--border);
}

.steps > li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 24px 15px !important;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.steps > li > strong:first-child {
  display: block;
  margin-bottom: 6px;
  padding-top: 3px;
}

/* ---------- anterior / próximo ---------- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
}

.pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.pager a:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.pager small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.pager span {
  font-size: 15px;
  font-weight: 500;
}

.pager .next {
  grid-column: 2;
  text-align: right;
}

/* ---------- "nesta página" ---------- */

.toc {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 56px 24px 40px 8px;
  scrollbar-width: thin;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc li a {
  display: block;
  padding: 5px 0 5px 16px;
  margin-left: -1px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid transparent;
  transition: color 0.12s;
}

.toc li.depth-3 a {
  padding-left: 30px;
}

.toc li a:hover {
  color: var(--text);
}

.toc li a.is-active {
  color: var(--accent-text);
  border-left-color: var(--accent);
}

.toc-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.toc-edit:hover {
  color: var(--text);
}

/* ---------- busca ---------- */

.search-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(540px, calc(100vh - 120px));
  margin: 96px auto auto;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.search-field input {
  flex: 1;
  height: 52px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 440px;
  overflow-y: auto;
}

.search-results a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.search-results a small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.search-results a span {
  font-size: 15px;
}

.search-results a.is-selected {
  background: var(--accent-soft);
}

.search-results a.is-selected span {
  color: var(--accent-text);
}

.search-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}

/* ---------- rodapé ---------- */

.footer-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- diagramas ---------- */

.diagram {
  margin: 0 0 28px;
  padding: 22px 18px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.diagram .d-box { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.diagram .d-box-strong { stroke: var(--text); }
.diagram .d-note { fill: var(--bg); stroke: var(--border); stroke-dasharray: 4 3; }
.diagram .d-text { fill: var(--text); font-family: var(--font-sans); font-size: 15px; }
.diagram .d-small { font-size: 13px; }
.diagram .d-bold { font-weight: 600; }
.diagram .d-muted { fill: var(--muted); font-family: var(--font-sans); font-size: 12.5px; }
.diagram .d-section { fill: var(--text); font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.diagram .d-code { fill: var(--text-soft); font-family: var(--font-mono); font-size: 13px; }
.diagram .d-line { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.diagram .d-lifeline { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.diagram .d-arrow { fill: var(--muted); }
.diagram .d-line-err { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.diagram .d-arrow-err { fill: var(--accent); }
.diagram .d-err { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.diagram .d-err-text { fill: var(--accent-text); font-family: var(--font-sans); font-size: 13px; font-weight: 500; }

/* ---------- responsivo ---------- */

@media (max-width: 1280px) {
  .layout,
  body.sidebar-collapsed .layout {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  body.sidebar-collapsed .layout {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .content {
    padding: 48px 56px 88px;
  }
}

@media (max-width: 960px) {
  .layout,
  body.sidebar-collapsed .layout {
    display: block;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px 0 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .mobile-bar .brand {
    padding: 0;
  }

  .mobile-actions {
    display: flex;
    gap: 2px;
  }

  .sidebar,
  body.sidebar-collapsed .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 35;
    width: min(320px, 88vw);
    height: auto;
    visibility: visible;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar .brand,
  #sidebar-collapse,
  .sidebar-expand,
  body.sidebar-collapsed .sidebar-expand {
    display: none;
  }

  body.nav-open .sidebar {
    transform: none;
    box-shadow: var(--shadow);
  }

  html {
    scroll-padding-top: 72px;
  }

  .content {
    padding: 32px 16px 64px;
  }

  .doc-page h1 {
    font-size: 28px;
  }

  .page-desc {
    margin-bottom: 28px !important;
    font-size: 16px !important;
  }

  .doc-page h2 {
    font-size: 22px;
    margin-top: 44px;
  }

  .doc-page h3 {
    font-size: 18px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 15.5px;
  }

  .code code {
    font-size: 13px;
  }

  .copy-button {
    opacity: 1;
  }

  .code:not(:has(.code-title)) pre {
    padding-top: 38px;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager .next {
    grid-column: 1;
  }

  .diagram {
    padding: 14px 8px 10px;
    overflow-x: auto;
  }

  .diagram svg {
    min-width: 560px;
  }
}
