/* Harness: camada de produto sobre a família Reveno (family.css). Só tokens. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }

html { scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rvf code, .rvf pre { font-family: var(--rv-font-mono); }
.rvf p code { padding: .1rem .35rem; border-radius: var(--rv-radius-sm); background: color-mix(in srgb, var(--rvf-text) 8%, transparent); font-size: max(.9em, 12px); }
.rvf-section--paper p code { background: color-mix(in srgb, var(--rvf-ink) 7%, transparent); }

/* ---------- Demo: cabeçalho da página ---------- */
.hx-demo-hero { padding-bottom: 2rem; }
.hx-demo-h1 { max-width: 20ch; font-size: clamp(2.6rem, 4.6vw, 4.6rem); }

/* ---------- IDE ---------- */
.hx-ide-wrap { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hx-ide { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(820px, calc(100svh - 7rem)); min-height: 640px; }
.hx-ide-bar { flex-wrap: wrap; justify-content: flex-start; }
.hx-ide-bar .rvf-window-title { margin-right: .25rem; }
.hx-role { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem) var(--rv-font-sans); letter-spacing: 0; }
.hx-role select { min-height: 32px; padding: .2rem .5rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: var(--rvf-canvas); color: var(--rvf-text); font: 500 var(--rv-type-12, .75rem) var(--rv-font-sans); }
.hx-icon-btn, .hx-link-btn { min-height: 32px; padding: .2rem .65rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: transparent; color: var(--rvf-text-2); font: 500 var(--rv-type-12, .75rem) var(--rv-font-sans); cursor: pointer; }
.hx-icon-btn:hover, .hx-link-btn:hover { border-color: var(--rvf-brand); color: var(--rvf-text); }
.hx-ide-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 21rem; grid-template-rows: minmax(0, 1fr) 13rem; grid-template-areas: "explorer editor agent" "explorer dock agent"; min-height: 0; }
.hx-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hx-explorer { grid-area: explorer; border-right: 1px solid var(--rvf-line); }
.hx-editor { grid-area: editor; }
.hx-agent { grid-area: agent; border-left: 1px solid var(--rvf-line); overflow-y: auto; }
.hx-dock { grid-area: dock; border-top: 1px solid var(--rvf-line); }
.hx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--rvf-line); }
.hx-panel-head h2 { margin: 0; color: var(--rvf-text); font: 600 var(--rv-type-12, .75rem)/1.4 var(--rv-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hx-mono-note { color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem)/1.5 var(--rv-font-mono); overflow-wrap: anywhere; }

.hx-tree { flex: 1; overflow-y: auto; margin: 0; padding: .5rem 0; list-style: none; }
.hx-tree ul { margin: 0 0 .35rem; padding: 0; list-style: none; }
.hx-folder { display: block; padding: .35rem 1rem; color: var(--rvf-text-3); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-file { display: flex; align-items: center; gap: .35rem; width: 100%; min-height: 30px; padding: .2rem 1rem .2rem 1.75rem; border: 0; background: transparent; color: var(--rvf-text-2); font: 400 var(--rv-type-12, .75rem)/1.3 var(--rv-font-mono); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.hx-file:hover { background: color-mix(in srgb, var(--rvf-text) 5%, transparent); color: var(--rvf-text); }
.hx-file[aria-current="true"] { background: color-mix(in srgb, var(--rvf-brand) 12%, transparent); color: var(--rvf-text); box-shadow: inset 2px 0 0 var(--rvf-brand); }
.hx-file small { color: var(--rvf-brand); font-size: var(--rv-type-12, .75rem); }

.hx-tabs { display: flex; gap: 0; min-height: 38px; overflow-x: auto; border-bottom: 1px solid var(--rvf-line); }
.hx-tab { display: inline-flex; align-items: stretch; border-right: 1px solid var(--rvf-line); }
.hx-tab-btn, .hx-dock-tabs button { min-height: 38px; padding: .3rem .85rem; border: 0; background: transparent; color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem) var(--rv-font-mono); white-space: nowrap; cursor: pointer; }
.hx-tab-btn[aria-current="true"], .hx-dock-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--rvf-text) 5%, transparent); color: var(--rvf-text); box-shadow: inset 0 -2px 0 var(--rvf-brand); }
.hx-tab-close { width: 28px; border: 0; background: transparent; color: var(--rvf-text-3); cursor: pointer; }
.hx-tab-close:hover { color: var(--rvf-text); }
.hx-editor-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; }
.hx-code { flex: 1; min-height: 0; margin: 0; padding: 1rem 1.25rem; overflow: auto; color: var(--rvf-text-2); font: 400 var(--rv-type-14, .875rem)/1.7 var(--rv-font-mono); white-space: pre-wrap; tab-size: 2; }
.hx-code--edit { width: 100%; resize: none; border: 0; background: transparent; color: var(--rvf-text); }
.hx-code--edit:focus-visible { outline: 2px solid var(--rvf-brand); outline-offset: -2px; }
.hx-validation { padding: .65rem 1.25rem; border-top: 1px solid var(--rvf-line); font-size: var(--rv-type-12, .75rem); }
.hx-validation[data-ok="true"] { color: var(--rv-color-status-success); }
.hx-validation[data-ok="false"] { color: var(--rvf-brand); }
.hx-validation ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.hx-file-tag { margin: 0; padding: .5rem 1.25rem; border-bottom: 1px solid var(--rvf-line); color: var(--rvf-brand); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hx-table-wrap { overflow: auto; }
.hx-table { width: 100%; border-collapse: collapse; font: 400 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-table caption { padding: .6rem 1rem; color: var(--rvf-text-3); text-align: left; }
.hx-table th, .hx-table td { padding: .45rem .8rem; border-bottom: 1px solid var(--rvf-line); color: var(--rvf-text-2); text-align: left; white-space: nowrap; }
.hx-table th { color: var(--rvf-text-3); font-weight: 600; }

.hx-tasks { display: grid; gap: .5rem; margin: 0; padding: .75rem; list-style: none; }
.hx-task { display: grid; gap: .35rem; padding: .85rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); }
.hx-task strong { color: var(--rvf-text); font-size: var(--rv-type-14, .875rem); line-height: 1.35; }
.hx-task small { color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); line-height: 1.45; }
.hx-run { justify-self: start; min-height: 36px; margin-top: .25rem; padding: .4rem .85rem; font-size: var(--rv-type-14, .875rem); }
.hx-run:disabled { opacity: .6; cursor: progress; }
.hx-plan { padding: 0 .75rem .75rem; }
.hx-plan h3 { margin: .5rem 0 .75rem; color: var(--rvf-text); font-size: var(--rv-type-14, .875rem); font-weight: 600; }
.hx-steps { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.hx-steps li { position: relative; padding: .75rem .75rem .75rem 1rem; border-radius: var(--rv-radius-sm); background: color-mix(in srgb, var(--rvf-text) 4%, transparent); }
.hx-steps li::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--rvf-line); content: ''; }
.hx-steps li[data-veredito="permitido"]::before, .hx-steps li[data-veredito="simulado"]::before { background: var(--rv-color-status-success); }
.hx-steps li[data-veredito="aguardando"]::before { background: var(--rv-color-status-warning); }
.hx-steps li[data-veredito="bloqueado"]::before, .hx-steps li[data-veredito="negado"]::before { background: var(--rvf-brand); }
.hx-step-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hx-step-top code { color: var(--rvf-text); font-size: var(--rv-type-12, .75rem); }
.hx-chip { padding: .1rem .5rem; border-radius: var(--rv-radius-pill); background: color-mix(in srgb, var(--rvf-text) 8%, transparent); color: var(--rvf-text-2); font: 600 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); white-space: nowrap; }
li[data-veredito="permitido"] .hx-chip, li[data-veredito="simulado"] .hx-chip { color: var(--rv-color-status-success); }
li[data-veredito="aguardando"] .hx-chip { color: var(--rv-color-status-warning); }
li[data-veredito="bloqueado"] .hx-chip, li[data-veredito="negado"] .hx-chip { color: var(--rvf-brand); }
.hx-step-target { margin: .35rem 0 0; color: var(--rvf-text-3); font: 400 var(--rv-type-12, .75rem)/1.45 var(--rv-font-mono); overflow-wrap: anywhere; }
.hx-step-why { margin: .4rem 0 .2rem; color: var(--rvf-text-2); font-size: var(--rv-type-12, .75rem); line-height: 1.5; }

.hx-dock-tabs button { display: inline-flex; align-items: center; gap: .4rem; }
.hx-count { min-width: 18px; padding: 0 .35rem; border-radius: var(--rv-radius-pill); background: var(--rvf-brand); color: var(--rvf-canvas); font: 700 var(--rv-type-12, .75rem)/18px var(--rv-font-mono); text-align: center; }
.hx-dock-body { flex: 1; min-height: 0; overflow: auto; }
.hx-dock-body > div { height: 100%; }
.hx-terminal { height: 100%; margin: 0; padding: .75rem 1rem; overflow: auto; color: var(--rvf-text-3); font: 400 var(--rv-type-12, .75rem)/1.65 var(--rv-font-mono); white-space: pre-wrap; }
.hx-empty { margin: 0; padding: .9rem 1rem; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); list-style: none; }
.hx-approval { display: grid; gap: .25rem; padding: .75rem 1rem; border-bottom: 1px solid var(--rvf-line); }
.hx-approval strong { color: var(--rvf-text); font: 500 var(--rv-type-14, .875rem)/1.4 var(--rv-font-mono); }
.hx-approval small { color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); }
.hx-approval-actions { display: flex; gap: .5rem; margin-top: .35rem; }
.rvf-btn.hx-small { min-height: 34px; padding: .35rem .8rem; font-size: var(--rv-type-14, .875rem); }
.rvf-btn:disabled { opacity: .45; cursor: not-allowed; }
.hx-segregation { margin: 0; padding: .65rem 1rem; border-bottom: 1px solid var(--rvf-line); color: var(--rv-color-status-warning); font-size: var(--rv-type-12, .75rem); }
.hx-receipt-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0; }
.hx-verify { min-height: 1.25rem; margin: .5rem 1rem 0; font-size: var(--rv-type-12, .75rem); }
.hx-verify[data-ok="true"] { color: var(--rv-color-status-success); }
.hx-verify[data-ok="false"] { color: var(--rvf-brand); }
.hx-receipts { margin: .35rem 0 0; padding: 0; list-style: none; }
.hx-receipts li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .4rem 1rem; border-bottom: 1px solid var(--rvf-line); color: var(--rvf-text-2); font-size: var(--rv-type-12, .75rem); }
.hx-receipts code { color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); }

.hx-status { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .5rem 1rem; border-top: 1px solid var(--rvf-line); color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem)/1.5 var(--rv-font-mono); }
.hx-status span { display: inline-flex; align-items: center; gap: .4rem; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rv-color-status-success); }
.hx-dot--off { background: var(--rvf-text-3); }
.hx-ide-note { max-width: 64rem; margin: 1rem 0 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-ide-note a { color: var(--rvf-text-2); text-decoration: underline; text-underline-offset: .2em; }

.hx-dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100svh - 2rem)); padding: 0; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); background: var(--rvf-surface); color: var(--rvf-text); }
.hx-dialog::backdrop { background: color-mix(in srgb, var(--rvf-canvas) 70%, transparent); }
.hx-dialog-inner { display: grid; grid-template-rows: auto auto minmax(0, 1fr); max-height: inherit; }
.hx-search { display: grid; gap: .4rem; padding: .85rem 1rem; color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); }
.hx-search input { min-height: 42px; padding: .5rem .75rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: var(--rvf-canvas); color: var(--rvf-text); font: 400 var(--rv-type-14, .875rem) var(--rv-font-sans); }
.hx-catalog { margin: 0; padding: 0 0 .5rem; overflow-y: auto; list-style: none; }
.hx-catalog li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding: .6rem 1rem; border-top: 1px solid var(--rvf-line); }
.hx-catalog strong { font-size: var(--rv-type-14, .875rem); }
.hx-catalog small { grid-column: 1; color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); }
.hx-catalog button { grid-row: 1 / span 2; grid-column: 2; }

.hx-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rvf-ink); }
.hx-pillars span { color: var(--rvf-accent-paper); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-pillars h3 { margin: .6rem 0; color: var(--rvf-ink); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.hx-pillars p { margin: 0; font-size: var(--rv-type-16, 1rem); line-height: 1.65; }

@media (max-width: 1100px) {
  .hx-ide { height: auto; min-height: 0; }
  .hx-ide-body { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "agent" "editor" "dock" "explorer"; }
  .hx-explorer, .hx-agent { border: 0; border-top: 1px solid var(--rvf-line); }
  .hx-agent { overflow: visible; }
  .hx-editor-body { max-height: 30rem; }
  .hx-code, .hx-code--edit { min-height: 20rem; }
  .hx-dock-body { height: 16rem; }
  .hx-tree { max-height: 16rem; }
  .hx-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hx-role { width: 100%; margin-left: 0; }
  .hx-pillars { grid-template-columns: 1fr; }
}

/* ---------- Home ---------- */
.hx-preview { margin: 0; }
.hx-preview-body { display: grid; grid-template-columns: 11rem minmax(0, 1fr); min-height: 19rem; }
.hx-preview-files { display: grid; align-content: start; gap: .15rem; padding: .9rem .75rem; border-right: 1px solid var(--rvf-line); color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem)/1.7 var(--rv-font-mono); }
.hx-preview-files .is-sub { padding-left: .9rem; color: var(--rvf-text-2); }
.hx-preview-files .is-on { color: var(--rvf-text); box-shadow: inset 2px 0 0 var(--rvf-brand); }
.hx-preview-plan { padding: 1rem 1.1rem; }
.hx-preview-task { margin: 0 0 .85rem; color: var(--rvf-text); font-size: var(--rv-type-14, .875rem); font-weight: 600; }
.hx-preview-plan ol { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.hx-preview-plan li { position: relative; display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .75rem .6rem .95rem; border-radius: var(--rv-radius-sm); background: color-mix(in srgb, var(--rvf-text) 4%, transparent); font-size: var(--rv-type-12, .75rem); }
.hx-preview-plan li::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 3px 0 0 3px; content: ''; }
.hx-preview-plan li[data-veredito="permitido"]::before, .hx-preview-plan li[data-veredito="simulado"]::before { background: var(--rv-color-status-success); }
.hx-preview-plan li[data-veredito="aguardando"]::before { background: var(--rv-color-status-warning); }
.hx-preview-plan li code { color: var(--rvf-text); font-size: var(--rv-type-12, .75rem); }
.hx-preview-plan li span { color: var(--rvf-text-3); font: 600 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); }
.hx-preview-plan li[data-veredito="aguardando"] span { color: var(--rv-color-status-warning); }
.hx-preview-plan li[data-veredito="simulado"] span, .hx-preview-plan li[data-veredito="permitido"] span { color: var(--rv-color-status-success); }
.hx-preview-receipt { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 1rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--rvf-line); color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-preview-cap { padding: .6rem 1rem; border-top: 1px solid var(--rvf-line); color: var(--rvf-text-3); font-size: var(--rv-type-12, .75rem); }

.hx-works { border-block: 1px solid var(--rvf-line); }
.hx-works-row { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: center; padding-block: 1.25rem; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.5; }
.hx-works-row strong { display: block; color: var(--rvf-text); font-size: var(--rv-type-14, .875rem); font-weight: 600; }
.hx-works-row a:hover strong { color: var(--rvf-brand); }
.hx-works-label { color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .1em; }

.hx-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hx-lede-paper, .hx-lede { max-width: 38ch; margin: 1.25rem 0 0; font-size: var(--rv-type-18, 1.125rem); line-height: 1.7; }
.hx-lede { color: var(--rvf-text-2); }
.hx-risks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rvf-ink); }
.hx-risks li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rvf-paper-line); }
.hx-risks strong { color: var(--rvf-ink); font-size: var(--rv-type-18, 1.125rem); font-weight: 500; }
.hx-risks span { max-width: 22ch; color: var(--rvf-accent-paper); font: 500 var(--rv-type-12, .75rem)/1.5 var(--rv-font-mono); text-align: right; }

.hx-pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hx-pillar-grid article { display: grid; align-content: start; gap: .6rem; padding: 1.4rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); background: color-mix(in srgb, var(--rvf-surface) 60%, transparent); }
.hx-pillar-n { color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-pillar-grid h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.hx-pillar-grid p { margin: 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-snippet { margin: .5rem 0 0; padding: .75rem .85rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: var(--rvf-canvas); color: var(--rvf-text-2); font: 400 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); white-space: pre-wrap; }

.hx-fit > p { margin: 0 0 1.5rem; font-size: var(--rv-type-18, 1.125rem); line-height: 1.7; }
.hx-fit-list { margin: 0; border-top: 1px solid var(--rvf-ink); }
.hx-fit-list > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rvf-paper-line); }
.hx-fit-list dt { color: var(--rvf-ink); font-weight: 600; }
.hx-fit-list dd { margin: 0; color: var(--rvf-ink-soft); }

.hx-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hx-roadmap > div { padding: 1.4rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); }
.hx-roadmap .rvf-badge { margin: 0; }
.hx-roadmap ul { display: grid; gap: .6rem; margin: 1.1rem 0 0; padding-left: 1.1rem; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); line-height: 1.55; }
.hx-inline-link { display: inline-block; margin-top: 1rem; color: var(--rvf-brand); font-size: var(--rv-type-14, .875rem); font-weight: 600; }

.hx-faq details { border-bottom: 1px solid var(--rvf-paper-line); }
.hx-faq details:first-child { border-top: 1px solid var(--rvf-ink); }
.hx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 0; color: var(--rvf-ink); font-size: var(--rv-type-18, 1.125rem); font-weight: 500; list-style: none; cursor: pointer; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { color: var(--rvf-accent-paper); font: 400 22px/1 var(--rv-font-sans); content: '+'; }
.hx-faq details[open] summary::after { content: '−'; }
.hx-faq p { margin: 0 0 1.1rem; max-width: 60ch; font-size: var(--rv-type-16, 1rem); line-height: 1.7; }

.hx-entry { position: relative; overflow: hidden; padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid var(--rvf-line); }
.entry-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hx-entry-copy { position: relative; max-width: 46rem; }
.hx-entry-copy > p:not(.rvf-eyebrow):not(.hx-entry-cap) { max-width: 52ch; margin: 1.25rem 0 0; color: var(--rvf-text-2); font-size: var(--rv-type-18, 1.125rem); line-height: 1.7; }
.hx-entry-cap { margin: 1.5rem 0 0; color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Como funciona ---------- */
.hx-doc-hero { padding-bottom: 3rem; }
.hx-doc-h1 { max-width: 18ch; font-size: clamp(2.6rem, 4.8vw, 4.8rem); }
.hx-order { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rvf-line); }
.hx-order li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--rvf-line); }
.hx-order li > span { color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-order h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 600; }
.hx-order p { margin: 0; color: var(--rvf-text-3); font-size: var(--rv-type-16, 1rem); }
.hx-order code { color: var(--rvf-text-2); font-size: var(--rv-type-12, .75rem); }
.hx-codes { overflow-x: auto; }
.hx-codes:focus-visible { outline: 2px solid var(--rvf-brand); outline-offset: 4px; }
.hx-codes table { width: 100%; border-collapse: collapse; font-size: var(--rv-type-16, 1rem); }
.hx-codes th, .hx-codes td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--rvf-paper-line); text-align: left; vertical-align: top; }
.hx-codes th { color: var(--rvf-ink-soft); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hx-codes thead tr { border-bottom: 1px solid var(--rvf-ink); }
.hx-codes code { color: var(--rvf-ink); font-size: var(--rv-type-14, .875rem); }
.hx-verifier { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hx-verifier-form { display: grid; gap: .6rem; }
.hx-verifier-form label { color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); font-weight: 500; }
.hx-verifier-form textarea { width: 100%; min-height: 18rem; padding: .9rem 1rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: var(--rvf-surface); color: var(--rvf-text); font: 400 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); resize: vertical; }
.hx-verifier-form .rvf-actions { margin-top: .25rem; }
.hx-verify-out { min-height: 1.5rem; margin: 0; font-size: var(--rv-type-14, .875rem); }
.hx-verify-out[data-ok="true"] { color: var(--rv-color-status-success); }
.hx-verify-out[data-ok="false"] { color: var(--rvf-brand); }

/* ---------- 404 ---------- */
.hx-404 { display: grid; align-content: center; gap: 1.25rem; min-height: 72vh; padding-top: 7rem; }

@media (max-width: 1100px) { .hx-pillar-grid { grid-template-columns: 1fr 1fr; } .hx-roadmap { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hx-split, .hx-verifier { grid-template-columns: 1fr; } .hx-works-row { grid-template-columns: 1fr; gap: .9rem; } }
@media (max-width: 600px) {
  .hx-preview-body { grid-template-columns: 1fr; }
  .hx-preview-files { display: none; }
  .hx-pillar-grid { grid-template-columns: 1fr; }
  .hx-risks li { flex-direction: column; gap: .3rem; } .hx-risks span { text-align: left; }
  .hx-fit-list > div { grid-template-columns: 1fr; gap: .3rem; }
  .hx-order li { grid-template-columns: 2.25rem minmax(0, 1fr); } .hx-order code { grid-column: 2; }
}

/* Console do runtime (acesso antecipado): mesma janela da demo, três painéis. */
.hx-console { height: auto; min-height: 0; grid-template-rows: auto auto; }
.hx-console [hidden] { display: none !important; }
.hx-console-saude { margin: 1rem 0 0; }
.hx-console-entrar { display: grid; gap: .6rem; max-width: 30rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
.hx-console-entrar h2 { margin: 0; color: var(--rvf-text); font: 600 var(--rv-type-18, 1.125rem)/1.3 var(--rv-font-sans); }
.hx-console-entrar p { margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); line-height: 1.55; }
.hx-console-entrar code { font-family: var(--rv-font-mono); }
.hx-console label { color: var(--rvf-text-2); font: 600 var(--rv-type-12, .75rem)/1.4 var(--rv-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hx-console input, .hx-console select, .hx-console textarea { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); background: var(--rvf-canvas); color: var(--rvf-text); font: 400 var(--rv-type-14, .875rem)/1.5 var(--rv-font-sans); }
.hx-console textarea { resize: vertical; }
.hx-console input:focus-visible, .hx-console select:focus-visible, .hx-console textarea:focus-visible { outline: 2px solid var(--rvf-brand); outline-offset: 1px; }
.hx-console-corpo { display: grid; grid-template-columns: 22rem minmax(0, 18rem) minmax(0, 1fr); min-height: 34rem; }
.hx-console-corpo > .hx-panel + .hx-panel { border-left: 1px solid var(--rvf-line); }
.hx-console-corpo--sem-pedir { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
.hx-console-corpo--sem-pedir > .hx-console-lista { border-left: 0; }
.hx-console-pedir form { display: grid; gap: .5rem; padding: 1rem; }
.hx-console-pedir form > p { margin: 0; }
.hx-console-erro { margin: 0; color: var(--rvf-brand); font-size: var(--rv-type-14, .875rem); line-height: 1.5; }
.hx-console-lista #console-liberacao { margin: 0; padding: .75rem 1rem 0; }
.hx-console-execs { display: grid; gap: 0; margin: 0; padding: 0; overflow: auto; list-style: none; }
.hx-console-exec { border-bottom: 1px solid var(--rvf-line); }
.hx-console-exec-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .5rem; width: 100%; min-height: 44px; padding: .7rem 1rem; border: 0; background: transparent; color: var(--rvf-text); text-align: left; cursor: pointer; }
.hx-console-exec-btn:hover, .hx-console-exec-btn:focus-visible { background: color-mix(in srgb, var(--rvf-text) 5%, transparent); }
.hx-console-exec-btn strong { font: 500 var(--rv-type-14, .875rem)/1.4 var(--rv-font-sans); overflow-wrap: anywhere; }
.hx-console-exec-btn .hx-count { justify-self: start; }
.hx-console-exec-btn small { grid-column: 1 / -1; color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem)/1.5 var(--rv-font-mono); }
.hx-chip[data-estado="concluida"] { color: var(--rv-color-status-success); }
.hx-chip[data-estado="aguardando_aprovacao"] { color: var(--rv-color-status-warning); }
.hx-chip[data-estado="negada"], .hx-chip[data-estado="falhou"], .hx-chip[data-estado="cancelada"] { color: var(--rvf-brand); }
#console-detalhe { display: grid; gap: .6rem; padding: 1rem; overflow: auto; }
#console-detalhe h3 { margin: .4rem 0 0; color: var(--rvf-text); font: 600 var(--rv-type-12, .75rem)/1.4 var(--rv-font-mono); letter-spacing: .06em; text-transform: uppercase; }
#console-detalhe p { margin: 0; }
.hx-console-estado { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); }
.hx-console-texto { height: auto; max-height: 22rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-sm); color: var(--rvf-text-2); }
.hx-console .hx-approval { padding: .75rem 0; border-bottom: 0; }
.hx-console-recibo { display: grid; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--rvf-line); }
@media (max-width: 1100px) {
  .hx-console-corpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hx-console-detalhe { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--rvf-line); }
}
@media (max-width: 700px) {
  .hx-console-corpo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hx-console-corpo > .hx-panel + .hx-panel { border-left: 0; border-top: 1px solid var(--rvf-line); }
}


/* Lapidação de 30/10/2026. */
/* "O problema": a consequência vira uma coluna própria, alinhada à esquerda,
   em vez de um bloco estreito encostado à direita. */
.hx-risks li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); align-items: baseline; gap: .4rem 2rem; }
.hx-risks span { max-width: none; text-align: left; }
@media (max-width: 760px) { .hx-risks li { grid-template-columns: 1fr; } }
.hx-login-help { margin: .9rem 0 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-login-help a { margin-left: .25rem; }

/* ---------- TECH-050: diagrama da decisão (SVG gerado no build) ---------- */
.hx-dg { margin: 0; }
.hx-dg svg { display: block; width: 100%; height: auto; overflow: visible; }
.hx-dg .hx-dg-tall { display: none; max-width: 26rem; margin-inline: auto; }
@media (max-width: 999px) { .hx-dg .hx-dg-wide { display: none; } .hx-dg .hx-dg-tall { display: block; } }
.hx-dg-box { fill: color-mix(in srgb, var(--rvf-surface) 85%, transparent); stroke: var(--rvf-line); stroke-width: 1.25; }
.hx-dg-node--policy .hx-dg-box { stroke: var(--rvf-accent); stroke-width: 1.5; }
.hx-dg-node--ok .hx-dg-box { stroke: color-mix(in srgb, var(--rv-color-status-success) 70%, transparent); }
.hx-dg-node--ask .hx-dg-box { stroke: color-mix(in srgb, var(--rv-color-status-warning) 75%, transparent); }
.hx-dg-node--deny .hx-dg-box { stroke: color-mix(in srgb, var(--rvf-brand) 75%, transparent); }
.hx-dg-node--fail .hx-dg-box { fill: transparent; stroke: var(--rvf-brand); stroke-dasharray: 6 5; }
.hx-dg-node--receipt .hx-dg-box { stroke: var(--rvf-text-3); }
.hx-dg-t { fill: var(--rvf-text); font: 600 16px var(--rv-font-sans); }
.hx-dg-s { fill: var(--rvf-text-2); font: 400 14px var(--rv-font-sans); }
.hx-dg-c { fill: var(--rvf-text-2); font: 500 14px var(--rv-font-mono); }
.hx-dg-node--ok .hx-dg-t { fill: var(--rv-color-status-success); }
.hx-dg-node--ask .hx-dg-t { fill: var(--rv-color-status-warning); }
.hx-dg-node--deny .hx-dg-t, .hx-dg-node--fail .hx-dg-t { fill: var(--rvf-brand); }
.hx-dg-dot { fill: var(--rvf-accent); }
.hx-dg-line { fill: none; stroke: var(--rvf-text-3); stroke-width: 1.5; }
.hx-dg-line--fail { stroke: var(--rvf-brand); stroke-dasharray: 5 5; }
.hx-dg-head { fill: var(--rvf-text-3); }
.hx-dg-cap { margin: 1.25rem 0 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
/* Movimento discreto, uma vez: as caixas entram na ordem da decisão (pedido,
   política, saídas, recibo). Só opacidade e transform, 8 px no máximo, e só
   sem preferência por menos movimento. */
@media (prefers-reduced-motion: no-preference) {
  .hx-dg-node { transform-box: fill-box; animation: hx-dg-in var(--rv-motion-reveal, 320ms) var(--rv-ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
  .hx-dg-line { animation: hx-dg-fade var(--rv-motion-reveal, 320ms) var(--rv-ease-out, cubic-bezier(.16, 1, .3, 1)) 120ms both; }
  .hx-dg-node--policy { animation-delay: 80ms; }
  .hx-dg-node--ok, .hx-dg-node--ask, .hx-dg-node--deny { animation-delay: 160ms; }
  .hx-dg-node--fail { animation-delay: 200ms; }
  .hx-dg-node--receipt { animation-delay: 240ms; }
  .hx-toc a { transition: border-color var(--rv-motion-fast, 120ms) var(--rv-ease-standard, cubic-bezier(.4, 0, .2, 1)), color var(--rv-motion-fast, 120ms) var(--rv-ease-standard, cubic-bezier(.4, 0, .2, 1)); }
  @keyframes hx-dg-in { from { opacity: 0; transform: translateY(var(--rv-motion-distance, 8px)); } }
  @keyframes hx-dg-fade { from { opacity: 0; } }
}
.hx-failclosed { display: grid; gap: .75rem; max-width: 52rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--rvf-line); }
.hx-failclosed h3 { margin: 0; color: var(--rvf-text); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.hx-failclosed p { margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-16, 1rem); line-height: 1.7; }
.hx-failclosed--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: none; }
.hx-failclosed--grid > div { display: grid; align-content: start; gap: .6rem; }
.hx-failclosed a:not(.hx-inline-link) { color: var(--rvf-brand); text-decoration: underline; text-underline-offset: .2em; }
.hx-failclosed-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.hx-faq p a { color: var(--rvf-accent-paper); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- TECH-050: página de confiança ---------- */
.hx-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.hx-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .8rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-pill); color: var(--rvf-text-2); font: 500 var(--rv-type-14, .875rem) var(--rv-font-mono); }
.hx-toc a:hover, .hx-toc a:focus-visible { border-color: var(--rvf-brand); color: var(--rvf-text); }
.hx-arch { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.hx-layers { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hx-layers li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; padding: 1.2rem 1.25rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); background: color-mix(in srgb, var(--rvf-surface) 55%, transparent); }
/* Cada camada recua um pouco: de fora para dentro, como num corte. */
.hx-layers li + li { margin-top: .6rem; }
.hx-layers li:nth-child(2) { margin-left: .75rem; } .hx-layers li:nth-child(3) { margin-left: 1.5rem; } .hx-layers li:nth-child(4) { margin-left: 2.25rem; } .hx-layers li:nth-child(5) { margin-left: 3rem; border-color: color-mix(in srgb, var(--rvf-accent) 55%, transparent); }
.hx-layer-n { color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem)/1.9 var(--rv-font-mono); }
.hx-layers h3 { margin: 0 0 .3rem; color: var(--rvf-text); font-size: 1.1rem; font-weight: 600; }
.hx-layers p { margin: 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-arch-card { display: grid; gap: .8rem; padding: 1.5rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); }
.hx-arch-card h3 { margin: 0; color: var(--rvf-text); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.hx-arch-card ul { display: grid; gap: .6rem; margin: 0; padding-left: 1.1rem; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hx-limits-h { margin: 0 0 1rem; }
.hx-limits-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rvf-ink); }
.hx-limits-list li { padding: 1rem 0; border-bottom: 1px solid var(--rvf-paper-line); color: var(--rvf-ink-soft); font-size: var(--rv-type-16, 1rem); line-height: 1.65; }
.hx-limits-list strong { display: block; margin-bottom: .2rem; color: var(--rvf-ink); font-weight: 600; }
.hx-limits-list code, .hx-advisory code, .hx-disclosure-list code { padding: .05rem .3rem; border-radius: var(--rv-radius-sm); background: color-mix(in srgb, var(--rvf-ink) 7%, transparent); font-size: var(--rv-type-14, .875rem); }
.hx-keys { overflow-x: auto; }
.hx-keys:focus-visible, .hx-snippet--code:focus-visible { outline: 2px solid var(--rvf-brand); outline-offset: 4px; }
.hx-keys table { width: 100%; border-collapse: collapse; font-size: var(--rv-type-14, .875rem); }
.hx-keys th, .hx-keys td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--rvf-line); color: var(--rvf-text-2); text-align: left; vertical-align: top; }
.hx-keys th { color: var(--rvf-text-3); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hx-keys code { color: var(--rvf-text); font-size: var(--rv-type-14, .875rem); }
.hx-keys .hx-fp { overflow-wrap: anywhere; color: var(--rvf-text-2); }
.hx-keys-note { max-width: 70ch; margin: 1rem 0 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.65; }
.hx-keys-note a, .hx-verify-code a { color: var(--rvf-brand); text-decoration: underline; text-underline-offset: .2em; }
.hx-verify-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
.hx-vsteps { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.hx-vsteps li { position: relative; padding: 0 0 1.25rem 2.5rem; counter-increment: passo; }
.hx-vsteps li::before { position: absolute; left: 0; top: .1rem; color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); content: counter(passo, decimal-leading-zero); }
.hx-vsteps h3 { margin: 0 0 .3rem; color: var(--rvf-text); font-size: 1.05rem; font-weight: 600; }
.hx-vsteps p { margin: 0; color: var(--rvf-text-3); font-size: var(--rv-type-14, .875rem); line-height: 1.6; }
.hx-vsteps code { overflow-wrap: anywhere; }
.hx-verify-code-h { margin: 0 0 .6rem; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); }
.hx-snippet--code { max-height: 26rem; margin: 0; overflow: auto; white-space: pre; font-variant-ligatures: none; font-size: var(--rv-type-12, .75rem); }
.hx-status-copy { display: grid; gap: 1rem; }
.hx-status-copy p { margin: 0; max-width: 56ch; font-size: var(--rv-type-18, 1.125rem); line-height: 1.7; }
.rvf-section--line .hx-status-copy p { color: var(--rvf-text-2); }
.hx-disclosure { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hx-disclosure-contact { display: grid; gap: .6rem; padding: 1.5rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); }
.hx-disclosure-contact p { margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-14, .875rem); }
.hx-mail { color: var(--rvf-brand); font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.hx-disclosure-list { margin: 0; border-top: 1px solid var(--rvf-line); }
.hx-disclosure-list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rvf-line); }
.hx-disclosure-list dt { color: var(--rvf-text); font-weight: 600; }
.hx-disclosure-list dd { margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-16, 1rem); line-height: 1.65; }
.hx-disclosure-list code { background: color-mix(in srgb, var(--rvf-text) 8%, transparent); }
.hx-advisory { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rvf-ink); }
.hx-advisory-id { margin: 0; color: var(--rvf-accent-paper); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); letter-spacing: .1em; }
.hx-advisory h3 { margin: .5rem 0 1.25rem; color: var(--rvf-ink); font-size: 1.35rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.hx-advisory-meta { margin: 0; }
.hx-advisory-meta > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rvf-paper-line); font-size: var(--rv-type-14, .875rem); }
.hx-advisory-meta dt { color: var(--rvf-ink-soft); font: 600 var(--rv-type-12, .75rem)/1.9 var(--rv-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hx-advisory-meta dd { margin: 0; color: var(--rvf-ink); }
.hx-advisory-body { display: grid; gap: 1.25rem; }
.hx-advisory h4 { margin: 0 0 .35rem; color: var(--rvf-ink); font-size: 1rem; font-weight: 600; }
.hx-advisory-body p { margin: 0; max-width: 64ch; font-size: var(--rv-type-16, 1rem); line-height: 1.7; }
@media (max-width: 900px) {
  .hx-arch, .hx-limits, .hx-verify-grid, .hx-disclosure, .hx-advisory, .hx-failclosed--grid { grid-template-columns: minmax(0, 1fr); }
  .hx-layers li:nth-child(n) { margin-left: 0; }
}
@media (max-width: 600px) {
  .hx-disclosure-list > div, .hx-advisory-meta > div { grid-template-columns: 1fr; gap: .25rem; }
  .hx-layers li { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: 1rem; }
  /* Tabela de chaves vira lista empilhada: cada célula com o rótulo da coluna. */
  .hx-keys thead { display: none; }
  .hx-keys tr, .hx-keys td { display: block; }
  .hx-keys tr { padding: .75rem 0; border-bottom: 1px solid var(--rvf-line); }
  .hx-keys td { padding: .2rem 0; border: 0; }
  .hx-keys td::before { display: block; color: var(--rvf-text-3); font: 600 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
}

/* TECH-050: números tabulares em recibo, hash, chave e versão. */
.hx-fp, .hx-keys td, .hx-receipts, .hx-preview-receipt, .hx-advisory-meta dd, .hx-order code, .hx-codes code { font-variant-numeric: tabular-nums lining-nums; }
/* Controle com estado e prova (padrão de central de confiança). */
.hx-control { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-top: .5rem; color: var(--rvf-ink-soft); font-size: var(--rv-type-14, .875rem); }
.hx-control-state { display: inline-flex; align-items: center; gap: .35rem; color: var(--rv-profile-evidence-signal); font: 600 var(--rv-type-12, .75rem)/1.4 var(--rv-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hx-control-state::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }

/* ---------- TECH-051: figuras numeradas, escopo, "No ar" datado e entrada ----------
   Usa as camadas opcionais da família (motion.css, data.css, editorial.css):
   .rvl-caption, .rvl-credit, .rvl-ref e .rvl-notes na legenda e nas notas,
   .rvd-metric nos limites do workspace e .rvm-reveal na entrada dos blocos. */
.hx-fig { margin: 0; }
.hx-dg-cap, .hx-fig-cap, .hx-preview-cap { display: grid; gap: .35rem; }
.hx-fig-cap { margin: 1rem 0 0; }
.hx-fig-num { margin-right: .25rem; color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem)/1.4 var(--rv-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.rvf-section--paper .hx-fig-num { color: var(--rvf-accent-paper); }
.hx-fig-title { color: var(--rvl-text); font-weight: 600; }
.hx-fig-src { font-variant-numeric: tabular-nums lining-nums; }
.hx-fig-src a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.hx-order + .hx-fig-cap, .hx-codes + .hx-fig-cap { margin-top: 1.25rem; }
.hx-layers + .hx-fig-cap { margin-top: 1rem; }

.hx-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hx-scope-col { display: grid; grid-template-rows: auto 1fr auto; padding: 1.4rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); background: color-mix(in srgb, var(--rvf-surface) 55%, transparent); }
.hx-scope-h { margin: 0; }
.hx-scope-col ul { display: grid; align-content: start; gap: .7rem; margin: 1.1rem 0 0; padding-left: 1.1rem; color: var(--rvf-text-2); font-size: var(--rv-type-16, 1rem); line-height: 1.55; }
.hx-scope-col .hx-inline-link { margin-top: 1.25rem; }

.hx-notes { max-width: 72ch; margin-top: var(--rv-space-3, .75rem); }
.rvl-notes-title { margin-top: 2.25rem; }
.hx-notes + .rvf-actions { margin-top: 1.5rem; }
.hx-pillar-grid h3 .rvl-ref { margin-left: .2rem; }

.hx-shipped { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rvf-line); }
.hx-ship { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rvf-line); }
.hx-ship-time { padding-top: .2rem; color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums lining-nums; }
.hx-ship h3 { margin: 0 0 .35rem; color: var(--rvf-text); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.hx-ship p { max-width: 68ch; margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-16, 1rem); line-height: 1.6; }
.hx-ship p code { font-size: max(.9em, 12px); }
.hx-ship .hx-ship-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: .6rem; color: var(--rvf-text-3); font: 500 var(--rv-type-12, .75rem)/1.6 var(--rv-font-mono); font-variant-numeric: tabular-nums lining-nums; }
.hx-ship .hx-ship-meta code { padding: 0; background: none; color: var(--rvf-text-2); font-size: var(--rv-type-12, .75rem); }
.hx-ship-meta a { color: var(--rvf-brand); text-decoration: underline; text-underline-offset: .2em; }
.hx-roadmap--next { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }

.hx-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.hx-path li { display: grid; align-content: start; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--rvf-line); }
.hx-path-n { color: var(--rvf-accent); font: 600 var(--rv-type-12, .75rem) var(--rv-font-mono); }
.hx-path h3 { margin: 0; color: var(--rvf-text); font-size: 1.1rem; font-weight: 600; }
.hx-path p { margin: 0; color: var(--rvf-text-2); font-size: var(--rv-type-16, 1rem); line-height: 1.6; }
.hx-limits-fig { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.5rem; border: 1px solid var(--rvf-line); border-radius: var(--rv-radius-md); }
.hx-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-metrics .rvd-note { margin: 0; }
.hx-metrics .hx-metric-word { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hx-limits-fig + .rvf-actions { margin-top: 1.75rem; }

@media (max-width: 1100px) { .hx-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hx-scope, .hx-roadmap--next { grid-template-columns: minmax(0, 1fr); } .hx-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hx-path, .hx-metrics { grid-template-columns: minmax(0, 1fr); }
  .hx-ship { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .hx-limits-fig { padding: 1.1rem; }
}
