:root {
  --ink: #111827;
  --muted: #657084;
  --canvas: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --line: #e3e7ef;
  --primary: #5b52f0;
  --primary-dark: #4438d7;
  --primary-soft: #eeedff;
  --cyan: #1cb8c4;
  --green: #178660;
  --amber: #ad690c;
  --red: #bd3f4b;
  --shadow-sm: 0 2px 8px rgba(18, 27, 51, 0.05);
  --shadow-lg: 0 28px 80px rgba(30, 38, 80, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(91, 82, 240, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(28, 184, 196, 0.08), transparent 25rem),
    var(--canvas);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 251, 253, 0.78);
  border-bottom: 1px solid rgba(220, 225, 236, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
}

.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.brand:hover { color: var(--ink); }
.brand-accent { color: var(--primary); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7f75ff 60%, var(--cyan));
  box-shadow: 0 8px 20px rgba(91, 82, 240, 0.28);
  font-weight: 900;
}

.site-header nav { display: flex; align-items: center; gap: 23px; font-size: 13px; font-weight: 650; }
.site-header nav > a:not(.button) { color: #455065; }
.site-header nav > a:not(.button):hover { color: var(--primary); }
.inline { display: inline; }
.link-button { border: 0; background: none; color: #596479; padding: 0; font: inherit; cursor: pointer; }
.user-chip { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #20283a; font-size: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 58px 24px 96px; }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 78px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; }
.eyebrow i { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 5px rgba(28, 184, 196, 0.12); }
.hero h1, .page-heading h1 { margin: 16px 0 22px; font-weight: 770; letter-spacing: -0.06em; line-height: 1.02; }
.hero h1 { max-width: 670px; font-size: clamp(52px, 6vw, 78px); }
.hero h1 span { color: transparent; background: linear-gradient(100deg, var(--primary), #8a4ee7 55%, var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.lede { max-width: 630px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.actions { display: flex; gap: 12px; margin-top: 32px; }
.actions.compact { margin-top: 0; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 11px 18px;
  color: #fff !important;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(91, 82, 240, 0.2);
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--primary-dark); box-shadow: 0 11px 28px rgba(91, 82, 240, 0.28); }
.button.secondary { color: #30394b !important; border-color: var(--line); background: rgba(255,255,255,.75); box-shadow: var(--shadow-sm); }
.button.small { padding: 7px 14px; box-shadow: none; }
.button.full { width: 100%; }

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(214, 219, 232, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
}
.preview-bar { height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 17px; color: #7b8496; background: #fafbfe; border-bottom: 1px solid var(--line); font-size: 11px; }
.preview-bar > span:nth-child(2) { flex: 1; font-family: ui-monospace, monospace; }
.preview-bar b { padding: 3px 9px; color: var(--green); background: #e5f7ef; border-radius: 999px; font-size: 10px; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d7dce7; }
.preview-paper { display: flex; align-items: center; gap: 13px; padding: 22px 21px 17px; }
.preview-paper > span { display: grid; place-items: center; width: 43px; height: 43px; color: var(--primary); background: var(--primary-soft); border-radius: 11px; font-size: 11px; font-weight: 850; }
.preview-paper div { display: grid; }
.preview-paper b { letter-spacing: -0.02em; }
.preview-paper small { color: var(--muted); }
.preview-label { margin: 0 20px 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfe; }
.preview-label > small { color: #7c8597; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 800; }
.preview-label div { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.preview-label div span { color: var(--green); font-size: 10px; font-weight: 700; }
.preview-label p { margin: 10px 0 0; padding: 10px 12px; color: #566174; background: #f2f4f8; border-radius: 8px; font: 11px/1.55 ui-monospace, monospace; }
.preview-footer { display: flex; gap: 20px; padding: 16px 20px; color: #717b8e; background: #f8f9fc; border-top: 1px solid var(--line); font-size: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.7); box-shadow: var(--shadow-sm); }
.feature-grid article > span { color: var(--primary); font: 750 11px ui-monospace, monospace; }
.feature-grid h2 { margin: 12px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.feature-grid p, .page-heading p { margin: 0; color: var(--muted); }

footer { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 25px 24px 36px; color: var(--muted); font-size: 12px; }
footer span:first-child { color: var(--ink); font-weight: 800; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 8px 0 32px; }
.page-heading h1 { font-size: 46px; }
.panel { border: 1px solid rgba(219, 224, 234, .95); border-radius: 16px; padding: 27px; background: var(--surface); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.panel + .panel { margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.meta-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); }
.meta-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.meta-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.inline-form { display: grid; gap: 7px; min-width: 210px; margin-bottom: 8px; }
details { margin-top: 8px; }
summary { color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 700; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 13px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
td small { display: block; color: var(--muted); }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; color: #596276; background: #eef0f4; font-size: 11px; font-weight: 800; }
.status.completed { color: var(--green); background: #e4f6ee; }
.status.failed { color: var(--red); background: #fae7e8; }
.status.running { color: var(--amber); background: #fff2dc; }
.status.queued { color: var(--primary); background: var(--primary-soft); }
.status.large { padding: 7px 13px; font-size: 12px; }
.empty { padding: 70px 20px; text-align: center; }

.form-layout { display: grid; gap: 20px; }
.form-section { position: relative; }
.form-section h2 { margin: 0 0 25px 46px; letter-spacing: -.02em; }
.section-number { position: absolute; top: 28px; left: 28px; color: var(--primary); font: 800 11px ui-monospace, monospace; }
.form-section label, .auth-card label { display: grid; gap: 7px; margin: 17px 0; color: #384256; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #d7dce7; border-radius: 9px; padding: 11px 12px; color: var(--ink); background: #fff; font: inherit; transition: border-color 140ms, box-shadow 140ms; }
textarea { resize: vertical; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,82,240,.11); }
textarea[data-valid="true"] { border-color: var(--green); }
textarea[data-valid="false"] { border-color: var(--red); }
label small { color: var(--muted); font-weight: 450; }
.source-grid, .result-grid, .metadata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source-grid { grid-template-columns: 2fr 1fr; }
.upload-box { align-content: center; min-height: 180px; padding: 20px; border: 1px dashed #b8c0cf; border-radius: 11px; background: #fafbfe; }
.upload-box.has-file { border-color: var(--primary); background: var(--primary-soft); }
.upload-primary { justify-items: center; text-align: center; cursor: pointer; }
.upload-primary .upload-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 21px; }
.upload-primary strong { color: var(--ink); font-size: 14px; }
.upload-primary input[type="file"] { max-width: 440px; margin-top: 7px; }
.taxonomy-upload { min-height: 150px; justify-items: center; text-align: center; cursor: pointer; }
.taxonomy-upload .upload-icon { display: grid; place-items: center; min-width: 42px; height: 42px; margin-bottom: 4px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font: 800 12px ui-monospace, monospace; }
.taxonomy-upload strong { color: var(--ink); font-size: 14px; }
.taxonomy-upload input[type="file"] { max-width: 440px; margin-top: 7px; }
.divider { display: flex; align-items: center; gap: 13px; margin: 22px 0; color: #9299a8; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.submit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.errorlist { margin: 0; padding-left: 18px; color: var(--red); }
.message { margin-bottom: 20px; border: 1px solid #bfe7d5; border-radius: 10px; padding: 13px 16px; color: var(--green); background: #eaf8f1; }
.message.error { color: #8e3039; border-color: #f1c7cb; background: #fcebec; }
.retry-form { margin-top: 12px; }
.check-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.check-list input { width: auto; }

.auth-card { max-width: 440px; margin: 50px auto; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 12px 0 6px; font-size: 38px; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); }
.oauth-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #252b37; border-radius: 9px; padding: 11px; color: #fff; background: #171b24; font: inherit; font-weight: 750; cursor: pointer; }
.oauth-button:hover { background: #252b37; }
.oauth-button.disabled { opacity: .48; cursor: not-allowed; }
.oauth-button.gitlab { margin-top: 10px; border-color: #d95026; background: #fc6d26; }
.oauth-button.gitlab:hover { background: #df5520; }
.github-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #171b24; background: #fff; font-size: 8px; font-weight: 900; }
.gitlab-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #b93616; background: #fff; font-size: 8px; font-weight: 900; }
.provider-note { margin: 8px 0 0; text-align: center; font-size: 10px; }
.provider-note code { display: inline; }
.metadata-grid { margin: 18px 0; }
.metadata-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); }
.metadata-grid small { display: block; color: var(--muted); }
code { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.result-grid h2 { margin-top: 0; }
pre { max-height: 570px; overflow: auto; padding: 17px; border-radius: 10px; color: #dce4f0; background: #141927; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.processing { display: flex; align-items: center; gap: 17px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Schema-driven taxonomy workbench */
.schema-workbench { min-width: 0; }
.editor-status { border-radius: 999px; padding: 5px 10px; color: var(--green); background: #e5f7ef; font-size: 10px; font-weight: 800; }
.tab-list { display: flex; gap: 5px; margin-bottom: 24px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f3f5f9; }
.tab-button { flex: 0 1 auto; border: 0; border-radius: 8px; padding: 9px 14px; color: #596479; background: transparent; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.tab-button.active { color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.editor-alert { margin-bottom: 18px; border: 1px solid #bfe7d5; border-radius: 10px; padding: 12px 14px; color: var(--green); background: #eaf8f1; }
.editor-alert.error { color: var(--red); border-color: #f1c7cb; background: #fcebec; }
.schema-basics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(130px, 1fr); gap: 16px; }
.schema-basics label, .compact-label { display: grid; gap: 6px; color: #384256; font-size: 11px; font-weight: 750; }
.field-label { display: block; }
.tree-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 13px; }
.tree-toolbar div { display: grid; }
.tree-toolbar small { color: var(--muted); }
.schema-tree { display: grid; gap: 12px; }
.schema-node { margin-left: calc((var(--schema-depth) - 1) * 13px); overflow: hidden; border: 1px solid #dfe3eb; border-left: 3px solid color-mix(in srgb, var(--primary) calc(80% - var(--schema-depth) * 6%), var(--cyan)); border-radius: 12px; background: rgba(255,255,255,.84); box-shadow: 0 1px 4px rgba(20,28,47,.04); }
.schema-node-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8f9fc; }
.node-identity { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; }
.node-identity input { padding: 7px 9px; font-weight: 760; }
.depth-badge { flex: none; min-width: 47px; color: var(--primary); font: 750 9px ui-monospace, monospace; text-transform: uppercase; }
.node-actions { display: flex; gap: 4px; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; color: #505b70; background: #fff; cursor: pointer; font: 750 14px system-ui; }
.icon-button:hover:not(:disabled) { color: var(--primary); border-color: #c7c2ff; background: var(--primary-soft); }
.icon-button:disabled { opacity: .35; cursor: default; }
.schema-node-body { display: grid; gap: 13px; padding: 14px; }
.node-grid { display: grid; grid-template-columns: 1.3fr 1.2fr auto minmax(80px,.6fr); gap: 12px; align-items: end; }
.checkbox-label { display: flex; align-items: center; gap: 7px; min-height: 43px; color: #384256; font-size: 11px; font-weight: 750; }
.checkbox-label input { width: auto; }
.schema-node textarea { font-family: inherit; }
.option-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 12px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.option-preview { grid-column: 2; }
.option-preview-list, .choice-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.option-summary { color: var(--muted); }
.child-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-top: 11px; border-top: 1px dashed var(--line); }
.child-toolbar strong { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.schema-children { display: grid; gap: 10px; padding: 0 10px 11px; }
.compact-empty { padding: 30px 15px; color: var(--muted); }
.taxonomy-import-panel { max-width: 650px; margin: 12px auto; padding: 46px; border: 1px dashed #b8c0cf; border-radius: 14px; text-align: center; background: #fafbfe; }
.taxonomy-import-panel .upload-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 13px; color: var(--primary); background: var(--primary-soft); font: 800 11px ui-monospace, monospace; }
.taxonomy-import-panel h3 { margin: 0; }
.taxonomy-import-panel p { color: var(--muted); }
.advanced-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* Human-readable taxonomy and classification views */
.version-browser { min-width: 310px; }
.taxonomy-viewer { display: grid; gap: 10px; min-width: min(650px, 75vw); margin-top: 15px; }
.viewer-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.viewer-intro h3 { margin: 0; }
.viewer-intro small { color: var(--muted); }
.taxonomy-node-card { border: 1px solid var(--line); border-radius: 11px; padding: 14px; background: #fff; }
.taxonomy-node-heading { display: flex; justify-content: space-between; gap: 13px; }
.taxonomy-node-heading h4 { margin: 0; font-size: 14px; }
.taxonomy-node-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.node-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.schema-badge { height: fit-content; border-radius: 999px; padding: 3px 7px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 800; text-transform: capitalize; }
.schema-badge.subtle { color: #596276; background: #eef0f4; }
.schema-badge.required { color: var(--amber); background: #fff2dc; }
.taxonomy-node-children { display: grid; gap: 8px; margin-top: 11px; padding: 10px 0 0 12px; border-top: 1px dashed var(--line); }
.choice-browser { margin-top: 10px; }
.choice-browser input { padding: 8px 10px; }
.value-chip { display: inline-flex; align-items: center; max-width: 100%; border-radius: 999px; padding: 5px 9px; color: #394357; background: #edf0f6; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; }
.value-chip.boolean { color: var(--green); background: #e5f7ef; }
.value-chip.muted, .missing-value { color: var(--muted); background: #f1f3f7; font-weight: 550; }
.classification-result, .evidence-panel { margin-top: 20px; }
[data-annotation-view] { display: grid; gap: 13px; }
.annotation-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(255,255,255,.72); }
.annotation-card-header h3 { margin: 0; font-size: 15px; }
.annotation-card-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.annotation-value { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.annotation-children { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.annotation-children .annotation-card { padding: 13px; background: #fafbfe; }
[data-evidence-view] { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 11px; }
.evidence-record { border: 1px solid var(--line); border-radius: 11px; padding: 14px; background: #fff; }
.evidence-record.compact { margin-top: 12px; border-left: 3px solid var(--cyan); background: #f8fbfc; }
.evidence-header { display: flex; justify-content: space-between; gap: 10px; }
.evidence-header strong { font-size: 11px; }
.confidence { border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.confidence.high { color: var(--green); background: #e5f7ef; }
.confidence.medium { color: var(--amber); background: #fff2dc; }
.confidence.low { color: var(--red); background: #fcebec; }
.evidence-record blockquote { margin: 10px 0; border-left: 3px solid #cad0db; padding: 8px 10px; color: #4d586b; background: #f6f7fa; font-size: 11px; }
.evidence-record p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.correction-workbench { margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fafbfe; }
.correction-fields, .correction-children { display: grid; gap: 12px; }
.correction-field { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #fff; }
.correction-field legend { padding: 0 6px; font-size: 12px; font-weight: 800; }
.field-help { display: block; margin-bottom: 9px; color: var(--muted); }
.correction-children { margin-top: 12px; padding-left: 10px; border-left: 2px solid var(--primary-soft); }
.correction-choice-control { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(220px,1.2fr); gap: 10px; }
.correction-choice-control select { min-height: 90px; }
.correction-repeat-list { display: grid; gap: 10px; margin-bottom: 10px; }
.correction-repeat-entry { border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: #fafbfe; }
.correction-repeat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.annotation-repeat { grid-column: 1 / -1; border: 1px dashed #ccd2de; border-radius: 9px; padding: 10px; }
.annotation-repeat > h4 { margin: 0 0 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 0.82fr; gap: 38px; }
  .hero h1 { font-size: clamp(46px, 6vw, 62px); }
  .preview-label { margin-inline: 14px; }
  .preview-footer { gap: 10px; flex-wrap: wrap; }
}

@media (max-width: 780px) {
  .site-header { padding: 0 18px; }
  .site-header nav > a:not(.button) { display: none; }
  .container { padding: 38px 18px 70px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 30px 0 50px; }
  .hero h1 { font-size: clamp(42px, 11vw, 54px); }
  .product-preview { transform: none; }
  .feature-grid, .source-grid, .result-grid, .metadata-grid, .meta-grid, .check-list ul { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; gap: 18px; }
  .page-heading h1 { font-size: 37px; }
  footer { flex-direction: column; gap: 5px; }
  .node-grid, .schema-basics, .option-editor, .correction-choice-control { grid-template-columns: 1fr; }
  .option-preview { grid-column: auto; }
  .taxonomy-viewer { min-width: min(560px, 82vw); }
}

@media (max-width: 520px) {
  .site-header { height: 62px; }
  .site-header nav { gap: 10px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .container { padding: 30px 14px 60px; }
  .hero { min-height: auto; padding-top: 18px; }
  .hero h1 { font-size: 39px; }
  .lede { font-size: 16px; }
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
  .product-preview { border-radius: 14px; }
  .preview-paper { padding-inline: 14px; }
  .feature-grid article, .panel { padding: 20px; }
  .page-heading { flex-direction: column; }
  .page-heading h1 { font-size: 33px; }
  .auth-card { margin: 20px auto; padding: 24px 20px; }
  .tab-list { overflow-x: auto; }
  .tab-button { white-space: nowrap; }
  .schema-node { margin-left: 0; }
  .schema-node-header, .taxonomy-node-heading, .viewer-intro, .tree-toolbar { align-items: flex-start; flex-direction: column; }
  .node-actions { width: 100%; justify-content: flex-end; }
  .taxonomy-import-panel { padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
