:root {
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --paper: #f3f0e8;
  --paper-2: #ebe6da;
  --panel: #fffcf6;
  --line: #c8c0b0;
  --teal: #0d6b6b;
  --teal-deep: #094f4f;
  --amber: #c45c26;
  --ok: #2f6b3a;
  --err: #9b2c2c;
  --running: #1d4f91;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
  --radius: 10px;
  --font: "IBM Plex Sans", "Noto Sans TC", system-ui, sans-serif;
  --display: "Source Serif 4", "Noto Serif TC", Georgia, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

body {
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 107, 107, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f4ec 0%, #ebe6da 100%);
  background-attachment: fixed;
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  line-height: 1;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 0.15rem;
}

.brand h1 {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.top-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
}

.top-status.is-running {
  border-color: var(--running);
  color: var(--running);
}

.top-status.is-done {
  border-color: var(--ok);
  color: var(--ok);
}

.top-status.is-error {
  border-color: var(--err);
  color: var(--err);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 1rem;
  border-bottom: 1px solid transparent;
}

.tab {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.65rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem 3rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: rise 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel.is-active {
    animation: none;
  }
  .tab,
  .btn,
  .stage-block {
    transition: none;
  }
}

.layout-pipeline {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .layout-pipeline {
    grid-template-columns: 1fr;
  }
  .top,
  .tabs,
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
}

.rail h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
}

.rail .mt {
  margin-top: 1.35rem;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recipe-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.recipe-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9a3412;
  background: #fff4ec;
  border: 1px solid #e7b896;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.recipe-hint[hidden] {
  display: none;
}

.recipe-btn {
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s, background 0.2s;
}

.recipe-btn:hover {
  border-color: var(--teal);
  background: #fff;
}

.recipe-btn.is-active {
  border-color: var(--teal);
  background: #e6f4f1;
  box-shadow: inset 3px 0 0 var(--teal);
}

.recipe-btn strong {
  display: block;
  font-size: 0.92rem;
  color: var(--teal-deep);
}

.recipe-btn span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  font-size: 0.86rem;
}

.stats dt {
  color: var(--ink-soft);
}

.stats dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.log {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  background: #1a2332;
  color: #e8efe9;
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.75rem;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.board-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.run-caution {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #c45c26;
  border-radius: var(--radius);
  background: #fff4ec;
  color: #5c2e12;
  font-size: 0.92rem;
  line-height: 1.45;
}

.run-caution strong {
  font-weight: 700;
  color: #9a3412;
}

.stage-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stage-block.is-selected {
  border-color: var(--teal);
}

.stage-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.stage-head input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
  cursor: pointer;
}

.stage-id {
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal-deep);
  margin-right: 0.35rem;
}

.stage-title {
  font-weight: 600;
}

.stage-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.chev {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.stage-body {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px dashed var(--line);
}

.stage-block.is-open .stage-body {
  display: block;
}

.stage-block.is-open .chev {
  transform: rotate(180deg);
}

.warn {
  font-size: 0.82rem;
  color: var(--amber);
  margin: 0.75rem 0 0.25rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.field input[type="checkbox"] {
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.board-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  position: sticky;
  bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* Gallery */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.seg-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.5rem 0.85rem;
  color: var(--ink-soft);
}

.seg-btn.is-active {
  background: var(--teal);
  color: #fff;
}

#galleryFilter {
  flex: 1;
  min-width: 160px;
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.g-cat-chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.g-cat-chip em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--paper-2);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  color: var(--ink-soft);
}

.g-cat-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.g-cat-chip.is-active em {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.g-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.g-section-head {
  margin-bottom: 0.65rem;
}

.g-section-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
}

.g-section-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 52rem;
  line-height: 1.45;
}

.g-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.g-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 230px;
  contain: layout style;
}

.g-item:hover {
  border-color: var(--teal);
}

.g-thumb {
  position: relative;
  background: #f4f1ea;
  min-height: 148px;
}

.g-thumb img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: #fff;
}

.g-layout {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(26, 35, 50, 0.82);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.g-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.55rem 0.65rem 0.7rem;
  flex: 1;
}

.g-item figcaption strong {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.g-item .g-cap {
  font-size: 0.74rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-item .g-fname {
  font-size: 0.65rem;
  color: #8a94a3;
  word-break: break-all;
  margin-top: auto;
}

.gd-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gd-title-block strong {
  font-size: 0.95rem;
  word-break: break-word;
}

.gd-cat-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
}

.gd-cat-badge[hidden] {
  display: none !important;
}

.gd-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.gd-caption[hidden] {
  display: none !important;
}

.gd-bar #gdExport {
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Gallery detail: image left / table right */
.gallery-detail {
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: visible;
}

.gallery-detail[hidden] {
  display: none !important;
}

.gd-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  flex-wrap: wrap;
}

.gd-bar strong {
  font-size: 0.92rem;
  word-break: break-all;
  flex: unset;
  min-width: 0;
}

.gd-split {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.2fr);
  height: min(70vh, 760px);
  min-height: 420px;
}

@media (max-width: 900px) {
  .gd-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .gd-image-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 40vh;
  }

  .gd-table-pane {
    height: min(55vh, 520px);
  }
}

.gd-image-pane {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.65rem 0.75rem 0.85rem;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: hidden;
  min-height: 0;
}

.gd-view-toggle {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.gd-view-toggle[hidden] {
  display: none !important;
}

.gd-view-toggle .seg-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}

.gd-chart-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gd-chart-wrap[hidden],
.gd-image-pane img[hidden] {
  display: none !important;
}

.gd-chart {
  flex: 1;
  min-height: 280px;
  width: 100%;
}

.gd-chart-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.gd-image-pane img {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  align-self: center;
}

.gd-table-wrap tr.is-linked {
  cursor: pointer;
}

.gd-table-wrap tr.is-linked:hover {
  background: rgba(13, 148, 136, 0.08);
}

.gd-table-wrap tr.is-selected {
  background: rgba(232, 93, 4, 0.14);
  outline: 1px solid rgba(232, 93, 4, 0.45);
}

.gd-table-wrap-half tr.is-linked {
  cursor: pointer;
}

.gd-table-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--panel);
}

.gd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.gd-tab {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--ink-soft);
}

.gd-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.gd-meta {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  word-break: break-all;
  flex-shrink: 0;
  line-height: 1.4;
}

.gd-tabs-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.2rem 0.15rem;
}

.gd-table-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  padding: 0 0.55rem 0.55rem;
  overflow: hidden;
}

.gd-table-split[hidden] {
  display: none !important;
}

.gd-half {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  overflow: hidden;
}

.gd-half h4 {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.gd-side-desc {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  max-height: 4.5em;
  overflow: auto;
}

.gd-table-wrap-half {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem;
}

@media (max-width: 1100px) {
  .gd-table-split {
    grid-template-columns: 1fr;
  }
}

.gd-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem 2rem;
}

.gd-table-wrap table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

.gd-table-wrap th,
.gd-table-wrap td {
  border: 1px solid var(--line);
  padding: 0.28rem 0.45rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-table-wrap th {
  position: sticky;
  top: 0;
  background: var(--paper-2);
  font-weight: 600;
  z-index: 1;
}

.gd-table-wrap tr:last-child td {
  border-bottom-width: 2px;
}

.gd-empty {
  color: var(--ink-soft);
  padding: 1.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Reports */
.reports-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 1.25rem;
  min-height: 60vh;
}

@media (max-width: 800px) {
  .reports-layout {
    grid-template-columns: 1fr;
  }
}

.report-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: min(75vh, 860px);
  overflow: auto;
  padding-right: 0.25rem;
}

.report-cat-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
}

.report-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-link {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.report-link strong {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.report-link span {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.35;
}

.report-link.is-active {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: #fff;
}

.report-link.is-active strong {
  color: var(--teal-deep);
}

.report-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.report-body .muted {
  color: var(--ink-soft);
}

.report-body h1,
.report-body h2,
.report-body h3 {
  font-family: var(--display);
  color: var(--teal-deep);
}

.report-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin: 0.75rem 0;
}

.report-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.report-body th,
.report-body td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
}

.report-body pre {
  background: #1a2332;
  color: #e8efe9;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.8rem;
}

.report-body pre.mermaid {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1rem 0.75rem;
  margin: 1rem 0;
  text-align: center;
  min-height: 120px;
}

.report-body pre.mermaid svg {
  max-width: 100%;
  height: auto;
}

.foot {
  max-width: 1400px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.empty {
  color: var(--ink-soft);
  padding: 2rem 0;
  text-align: center;
}
