:root {
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color: #142a2c;
  background: #f2f5f2;
  line-height: 1.5;
  --ink-muted: #476060;
  --accent: #0b6159;
  --line: #d6e2dd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #0e8173; outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.top { background: #103b39; color: #f1f5ee; }
.brand { display: flex; align-items: center; gap: .85rem; min-height: 68px; }
.brand a { text-decoration: none; color: inherit; font-size: 1.15rem; font-weight: 750; letter-spacing: .03em; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #cae9d7; color: #103b39; font-weight: 800; }
.brand-description { color: #d1e2db; padding-inline-start: .9rem; border-inline-start: 1px solid #64827b; font-size: .88rem; }
.intro { margin-block: 3rem 2rem; }
h1 { margin: 0; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.055em; line-height: 1.1; }
.intro p { margin: .8rem 0 0; color: var(--ink-muted); font-size: 1.05rem; }
.layout { display: grid; grid-template-columns: minmax(255px, 315px) minmax(0, 1fr); gap: 1.35rem; align-items: start; padding-block-end: 3rem; }
.catalog, .workspace { border: 1px solid var(--line); border-radius: 15px; background: white; overflow: clip; }
.catalog { min-height: 244px; }
.catalog-head { padding: 1.2rem; border-bottom: 1px solid var(--line); }
label { display: block; font-weight: 650; margin-bottom: .5rem; }
input { width: 100%; padding: .65rem .8rem; border: 1px solid #a7bdb6; border-radius: 8px; color: inherit; background: #fbfdfb; }
.catalog-status { color: var(--ink-muted); font-size: .9rem; margin: .85rem 1.2rem; }
.catalog-retry { margin: 0 1.2rem 1rem; }
.catalog-entry { display: block; text-align: left; border: 0; background: white; color: inherit; width: 100%; padding: .85rem 1.2rem; border-top: 1px solid var(--line); }
.catalog-entry:hover, .catalog-entry[aria-current="true"] { background: #e8f3ed; }
.catalog-entry:focus-visible { outline-offset: -3px; }
.catalog-entry strong, .catalog-entry span, .catalog-entry small { display: block; }
.catalog-entry strong { color: var(--accent); }
.catalog-entry small { color: var(--ink-muted); margin-top: .25rem; }
.workspace { min-height: 370px; }
.empty { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.2rem; }
.empty-symbol { background: #e7f1ec; color: var(--accent); border-radius: 14px; font-size: 2.1rem; line-height: 1; padding: .55rem .8rem; }
.empty h2 { margin: .95rem 0 .3rem; }
.empty p { margin: 0; color: var(--ink-muted); max-width: 32rem; }
.report-head { padding: 1.6rem clamp(1rem, 4vw, 2rem) 1.3rem; }
.report-head h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.2; margin: .4rem 0; letter-spacing: -.035em; }
.code, .report-meta { color: var(--ink-muted); }
.report-meta { margin: .7rem 0 0; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; border-block: 1px solid var(--line); background: #fafcf9; padding-inline: 1rem; }
.tabs button { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; padding: .7rem .8rem .5rem; background: transparent; color: var(--ink-muted); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.panel { padding: 1.4rem clamp(1rem, 4vw, 2rem) 2rem; overflow-wrap: anywhere; }
.panel h3 { margin-top: 0; }
.statement { border-inline-start: 4px solid var(--accent); padding: .75rem 1rem; background: #e8f3ed; margin: 0 0 1rem; }
.secondary { background: white; border: 1px solid #adc5bb; border-radius: 7px; color: var(--accent); padding: .5rem .75rem; font-weight: 650; }
.secondary:hover { background: #e8f3ed; }
.document > :first-child { margin-top: 1.4rem; }
.document h2, .document h3 { line-height: 1.2; margin-block: 1.6rem .5rem; }
.document p { white-space: pre-line; }
.scroll-table { overflow: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 440px; text-align: left; }
th, td { border: 1px solid var(--line); padding: .5rem .65rem; vertical-align: top; }
th { background: #eef5f0; }
.record { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; margin-block: .7rem; }
.record summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.record p { margin: .5rem 0; }
pre { padding: .65rem; background: #eef5f0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .83rem; }
.muted { color: var(--ink-muted); }
@media (max-width: 740px) {
  .wrap { width: min(100% - 1.5rem, 1240px); }
  .layout { grid-template-columns: 1fr; }
  .intro { margin-block: 2rem 1.4rem; }
  .brand-description { font-size: .8rem; }
  .catalog { min-height: 0; }
}
@media print {
  body { background: white; }
  .top, .intro, .catalog, .tabs, .secondary { display: none !important; }
  .layout, .wrap { display: block; width: 100%; }
  .workspace { border: 0; }
  tr { break-inside: avoid; }
}
