:root {
  --page: #f4f8fc;
  --card: #fff;
  --text: #18324b;
  --soft: #526c85;
  --border: #d9e4ef;
  --blue: #6da8f5;
  --blue-dark: #0b4f8f;
  --blue-soft: #eaf3ff;
  --green: #127c4b;
  --green-soft: #eaf8f1;
  --orange: #93600d;
  --orange-soft: #fff6e8;
  --red: #a93737;
  --red-soft: #fff1f1;
  --muted: #f6f9fc;
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-dark); }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button:disabled { opacity: .55; }
.app-shell { max-width: 1600px; margin: 0 auto; padding: 16px 24px; }
.brand-header { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 20px; min-height: 82px; padding: 12px 20px; border: 2px solid #15965b; border-radius: 20px; background: linear-gradient(115deg, #fff 10%, #f2fbf6 42%, #eaf3ff 76%, #fff); box-shadow: 0 10px 28px rgb(21 150 91 / 9%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-dark); font-size: 27px; font-weight: 800; letter-spacing: -.8px; width: fit-content; }
.brand-logo { display: block; width: 80px; max-width: 100%; height: auto; object-fit: contain; flex-shrink: 0; }
.app-heading { text-align: center; display: grid; gap: 3px; }
.app-heading strong { color: var(--blue-dark); font-size: 24px; letter-spacing: -.5px; }
.app-heading > span { color: var(--soft); font-size: 13px; }
.header-status { justify-content: end; display: flex; gap: 7px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--border); background: var(--muted); color: var(--soft); font-size: 12px; line-height: 1.35; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.badge.green { color: var(--green); border-color: #bfe7d2; background: var(--green-soft); }
.badge.blue { color: var(--blue-dark); border-color: #cfe1fa; background: var(--blue-soft); }
.badge.orange { color: var(--orange); border-color: #edd6b2; background: var(--orange-soft); }
.badge.red { color: var(--red); border-color: #f0caca; background: var(--red-soft); }
.nav-bar { margin: 10px 0 22px; padding: 7px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 13px; background: var(--card); }
.nav-item { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; color: var(--soft); text-decoration: none; font-size: 14px; }
.nav-item.active, .nav-item:hover { color: var(--blue-dark); background: var(--blue-soft); border-color: #cfe1fa; }
.nav-item.active { font-weight: 700; }
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-note { margin-left: auto; padding-right: 12px; font-size: 13px; color: var(--soft); }
main { max-width: 1460px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 3px; color: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: 1.15px; }
h1 { margin: 2px 0 4px; color: var(--blue-dark); font-size: 31px; line-height: 1.2; letter-spacing: -.6px; }
h2 { margin: 0; font-size: 20px; line-height: 1.25; color: var(--blue-dark); letter-spacing: -.25px; }
.intro { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.notice { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 11px 16px; background: var(--orange-soft); border: 1px solid #eedbbb; border-radius: 12px; color: #79520f; }
.notice strong { font-size: 14px; margin-right: 9px; }
.notice span:not(.notice-icon) { font-size: 13px; }
.notice-icon { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #ad7b29; border-radius: 50%; font-size: 13px; font-weight: 700; }
.workspace-grid { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.45fr); align-items: start; gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 23px; min-width: 0; box-shadow: 0 8px 24px rgb(15 48 77 / 4%); }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.result-column { display: grid; gap: 20px; min-width: 0; }
.step-heading { display: flex; align-items: center; gap: 12px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; height: 34px; width: 34px; border: 1px solid #cfe1fa; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-size: 16px; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; color: var(--text); font-size: 14px; font-weight: 700; margin: 0 0 7px; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--text); font-size: 15px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #73879b; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(90 155 239 / 12%); }
textarea { display: block; resize: vertical; min-height: 118px; line-height: 1.55; }
.required { color: var(--blue-dark); }
.catalog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-fields label { margin-bottom: 0; }
.catalog-fields select { display: block; margin-top: 7px; background: var(--muted); }
.snapshot-label { margin-top: 14px; }
.snapshot-details { margin-top: 8px; font-size: 12px; color: var(--soft); }
.snapshot-details code { display: block; margin-top: 6px; }
.field-help { color: var(--soft); font-size: 13px; font-weight: 400; margin: 6px 0 0; line-height: 1.45; }
.catalog-note { margin: 7px 0 21px; display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: #15965b; }
.description-help { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
#description-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.article-details { border-top: 1px solid #e6edf4; margin-top: 16px; padding-top: 12px; }
.article-details summary { color: var(--blue-dark); font-size: 14px; font-weight: 700; }
.article-details[open] summary { margin-bottom: 14px; }
.article-details summary span { color: var(--soft); font-size: 12px; font-weight: 400; margin-left: 6px; }
.article-details input { margin-bottom: 0; }
.article-details .field-help { margin-bottom: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 15px; min-height: 40px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--blue-dark); font-size: 14px; font-weight: 700; transition: background .15s, border-color .15s; text-decoration: none; }
.button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); }
.button.primary { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.button.primary:hover:not(:disabled) { background: #083f72; }
.button.green { background: var(--green-soft); color: var(--green); border-color: #bfe7d2; }
.button.green:hover:not(:disabled) { background: #d9f0e4; border-color: #84c9a6; }
.button.subtle { background: var(--blue-soft); color: var(--blue-dark); border-color: #cfe1fa; }
.button.text-button { background: transparent; border-color: transparent; font-weight: 400; padding: 8px; }
.input-actions { display: flex; gap: 4px; margin-top: 16px; }
.input-actions .primary { flex: 1; }
.endpoint-label { display: flex; gap: 9px; align-items: center; margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #edf2f7; color: var(--soft); font-size: 12px; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.method { font-size: 10px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 2px 5px; }
.empty-state { display: flex; align-items: center; gap: 15px; padding: 18px; background: var(--muted); border: 1px dashed var(--border); border-radius: 11px; margin-bottom: 18px; min-height: 94px; }
.empty-state strong { color: var(--soft); font-size: 15px; font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--soft); margin: 4px 0 0; }
.empty-symbol { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 9px; border: 1px solid var(--border); font-size: 24px; color: #85a0bb; background: #fff; flex-shrink: 0; }
.class-proposal { padding: 16px 18px; border: 1px solid #cfe1fa; border-radius: 11px; background: #f4f8ff; margin-bottom: 18px; }
.class-proposal strong { display: block; color: var(--blue-dark); margin: 7px 0 5px; font-size: 17px; line-height: 1.35; }
.class-proposal code { color: var(--soft); font-size: 12px; }
.selection-info { display: grid; gap: 3px; margin-top: 11px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 0; font-weight: 400; }
input[type="checkbox"] { accent-color: var(--blue-dark); width: 15px; height: 15px; }
.selection-info .field-help { margin-top: 0; font-size: 12px; }
.enrichment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.enrichment-actions p { margin: 0; max-width: 340px; }
.enrichment-actions button { white-space: nowrap; flex-shrink: 0; }
.empty-state.compact { min-height: 80px; margin-bottom: 0; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { font-size: 12px; font-weight: 700; background: var(--muted); color: var(--soft); white-space: nowrap; }
td, th { padding: 11px 12px; border-bottom: 1px solid var(--border); }
td { vertical-align: top; }
td code { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfe; }
.operation-status { min-height: 22px; margin: 14px 3px; color: var(--soft); font-size: 13px; }
.error-panel { padding: 15px 19px; margin-bottom: 18px; border: 1px solid #f0caca; border-radius: 12px; background: var(--red-soft); }
.error-panel h2 { color: var(--red); font-size: 16px; }
.error-panel p { margin-bottom: 0; font-size: 14px; }
.json-card { padding-bottom: 16px; }
.json-card .card-heading { margin-bottom: 14px; }
.json-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.json-tabs button { padding: 10px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--soft); font-size: 14px; }
.json-tabs button[aria-selected="true"] { color: var(--blue-dark); border-color: var(--blue-dark); font-weight: 700; }
pre { white-space: pre; overflow: auto; max-height: 330px; min-height: 98px; margin: 0 0 12px; padding: 18px; border: 1px solid #e6edf4; border-top: 0; border-radius: 0 0 10px 10px; background: #f8fbfe; color: #254c70; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 12px; margin: 23px 3px 4px; color: var(--soft); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 20px; padding: 8px 14px; background: #fff; z-index: 10; }
.skip-link:focus { top: 4px; }
@media (max-width: 1100px) {
  .app-shell { padding: 16px; }
  .brand-header { grid-template-columns: 1fr 1fr; }
  .app-heading { text-align: right; }
  .header-status { grid-column: 1 / -1; justify-content: center; }
  .workspace-grid { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.2fr); gap: 16px; }
  .card { padding: 18px; }
  .enrichment-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .card-heading { flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .app-shell { padding: 12px; }
  .brand-header { padding: 14px; gap: 12px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand .brand-logo { width: 64px; }
  .app-heading strong { font-size: 19px; }
  .app-heading > span { display: none; }
  .header-status { justify-content: flex-start; }
  .nav-note { display: none; }
  .nav-bar { margin-bottom: 21px; }
  .nav-item { padding: 7px 9px; font-size: 13px; }
  .page-heading { align-items: start; flex-direction: column; gap: 13px; }
  h1 { font-size: 28px; }
  .notice { align-items: start; padding: 12px; }
  .notice strong, .notice span:not(.notice-icon) { display: block; }
  footer { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
