/* AFERO HUB · approved panel surface. Local assets, no motion library. */
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Hub Inter';
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Hub Unbounded';
  src: url('assets/fonts/Unbounded-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

body.hub {
  --hub-bg: #050805;
  --hub-panel: #0b120d;
  --hub-raised: #0e1911;
  --hub-paper: #f4f8f3;
  --hub-forest: #103a20;
  --hub-green: #83f79a;
  --hub-green-soft: #b2ffc0;
  --hub-muted: #a1afa3;
  --hub-line: rgba(198, 255, 211, .13);
  --hub-hair: rgba(5, 8, 5, .14);
  --hub-font: 'Hub Inter', Arial, sans-serif;
  --hub-display: 'Satoshi', Arial, sans-serif;
  --hub-number: 'Hub Unbounded', Arial, sans-serif;
  --hub-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--hub-panel);
  color: var(--hub-paper);
}
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) {
  font: 400 14px/1.5 var(--hub-font);
}
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) * { box-sizing: border-box; }
body.hub [hidden] { display: none !important; }
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) :is(button, input, select, a) { font: inherit; }
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) button { cursor: pointer; }
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) svg { width: 18px; height: 18px; flex: none; }
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) ::selection {
  color: var(--hub-bg);
  background: var(--hub-green-soft);
}
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) :is(button, a) { text-underline-offset: 4px; }
body.hub :is(.hub-top, .hub-panel, .hub-footer, .hub-xray) :is(button, input, select):disabled {
  opacity: .55;
  cursor: not-allowed;
  scale: 1;
}
body.hub .hub-wrap { width: calc(100% - 48px); max-width: 1440px; margin-inline: auto; }

/* The same floating navigation stays in place before and after import. */
body.hub .hub-top {
  position: relative;
  z-index: 30;
  padding: 24px 0 0;
  background: radial-gradient(ellipse at 5% 0%, rgba(131,247,154,.46), transparent 46%), var(--hub-paper);
  color: var(--hub-forest);
}
body.hub .hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  min-height: 74px;
  padding: 13px 18px;
  background: var(--hub-paper);
  border: 1px solid rgba(16,58,32,.15);
  border-radius: 12px;
}
body.hub .hub-brand { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 44px; text-decoration: none; color: inherit; }
body.hub .hub-mark { width: 36px; height: 36px; object-fit: contain; flex: none; }
body.hub .hub-brand-name { display: block; font: 800 16px/1.2 var(--hub-number); letter-spacing: -.04em; }
body.hub .hub-brand-name span { font-weight: 500; }
body.hub .hub-brand-desc { display: block; font-size: 12px; line-height: 1.35; margin-top: 3px; }
body.hub .hub-tabs { position: relative; isolation: isolate; display: flex; align-items: center; gap: 4px; }
body.hub .hub-tabs .tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 11px 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--hub-forest);
  font: 600 12px/1.4 var(--hub-font);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
body.hub .hub-tabs .tab::after { content: none; }
body.hub .hub-tabs .tab.on { background: var(--hub-forest); color: var(--hub-paper); }
body.hub .hub-tabs.has-indicator .tab.on { background: transparent; }
body.hub .hub-navigation { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
body.hub .hub-navigation .hub-guide-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 15px; border-radius: 7px; color: var(--hub-forest); text-decoration: none; font: 600 12px/1.4 var(--hub-font); white-space: nowrap; }
body.hub .hub-guide-tab[aria-current=page] { background: var(--hub-forest); color: var(--hub-paper); }
@media (max-width: 610px) {
  body.hub .hub-navigation { width: 100%; padding-top: 10px; border-top: 1px solid rgba(16,58,32,.12); }
  body.hub .hub-navigation .hub-tabs { flex: 1; width: auto; min-width: 0; padding-top: 0; border-top: 0; }
  body.hub .hub-navigation .tab { padding-inline: 7px; }
  body.hub .hub-guide-tab { padding-inline: 11px; }
}
body.hub .hub-tab-indicator {
  position: absolute;
  z-index: 0;
  border-radius: 7px;
  background: var(--hub-forest);
  pointer-events: none;
  transform-origin: left center;
}
body.hub .hub-account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body.hub .hub-account .btn {
  flex: none;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(16,58,32,.2);
  border-radius: 7px;
  background: transparent;
  color: var(--hub-forest);
  font: 600 12px/1.4 var(--hub-font);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  transform: none;
}
body.hub .hub-account .btn.hot { border-color: var(--hub-forest); background: var(--hub-forest); color: var(--hub-paper); }

/* First run: the capture workflow stays optional, import is prominent. */
body.hub #view-painel.hub-panel { width: 100%; max-width: none; padding: 0; margin: 0; background: var(--hub-panel); }
body.hub #view-painel.hub-panel:not(.on) { display: none; }
body.hub #view-painel.hub-panel.on { display: block; }
body.hub .hub-entry {
  position: relative;
  color: var(--hub-forest);
  background: radial-gradient(ellipse at 85% 85%, rgba(131,247,154,.62), transparent 46%), radial-gradient(ellipse at 3% 15%, rgba(178,255,192,.75), transparent 51%), var(--hub-paper);
}
body.hub .hub-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; padding-block: 53px 64px; }
body.hub .hub-hero h1 { margin: 0; max-width: 630px; font: 600 56px/1.08 var(--hub-display); letter-spacing: -.035em; text-wrap: balance; }
body.hub .hub-lead { max-width: 500px; margin: 22px 0 0; font-size: 17px; line-height: 1.5; }
body.hub .hub-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 0;
  margin-top: 23px;
  border: 0;
  border-bottom: 1px solid rgba(16,58,32,.35);
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
body.hub .hub-logo-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 310px; }
body.hub .hub-logo-stage::before, body.hub .hub-logo-stage::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(16,58,32,.13);
  border-radius: 50%;
  pointer-events: none;
}
body.hub .hub-logo-stage::before { width: 248px; height: 248px; top: 8px; }
body.hub .hub-logo-stage::after { width: 310px; height: 310px; top: -23px; border-color: rgba(16,58,32,.09); }
body.hub .hub-scan-ring { position: absolute; width: 248px; height: 248px; top: 8px; border: 1px solid transparent; border-top-color: var(--hub-forest); border-right-color: rgba(16,58,32,.3); border-radius: 50%; opacity: 0; pointer-events: none; }
body.hub .hub-target { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; padding: 4px 0 12px; border: 0; background: transparent; color: inherit; }
body.hub .hub-logo { width: min(100%, 285px); height: auto; pointer-events: none; }
body.hub .hub-target-label { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; min-height: 44px; border: 1px solid rgba(16,58,32,.25); border-radius: 7px; background: var(--hub-paper); font-size: 13px; font-weight: 600; }
body.hub .hub-target-note { font-size: 12px; }
body.hub .hub-target:focus-visible .hub-target-label { background: var(--hub-forest); color: var(--hub-paper); }
body.hub .hub-import { position: relative; overflow: clip; background: var(--hub-panel); color: var(--hub-paper); padding: 36px 0 30px; }
body.hub .hub-entry + .hub-import { overflow: visible; }
body.hub .hub-entry + .hub-import::before { position: absolute; content: ''; left: 0; width: 100%; height: 46px; top: -24px; background: var(--hub-panel); border-radius: 50% 50% 0 0; pointer-events: none; }
body.hub .hub-import-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px; }
body.hub .hub-import h2 { margin: 0; font: 600 35px/1.14 var(--hub-display); letter-spacing: -.035em; text-wrap: balance; }
body.hub .hub-import-grid > div > p { margin: 13px 0 0; max-width: 350px; color: var(--hub-muted); font-size: 14px; }
body.hub .hub-upload {
  display: grid;
  justify-items: center;
  gap: 11px;
  width: 100%;
  padding: 27px 22px;
  border: 1px solid var(--hub-line);
  border-top: 2px solid var(--hub-green);
  border-radius: 9px;
  background: var(--hub-raised);
  color: var(--hub-paper);
  transition: border-color .18s;
}
body.hub .hub-upload:focus-visible, body.hub .hub-upload.is-dragging, body.hub .hub-upload.drag { border-color: var(--hub-green); background: var(--hub-raised); }
body.hub .hub-upload > svg { width: 24px; height: 24px; color: var(--hub-green); }
body.hub .hub-upload strong { font: 600 18px/1.3 var(--hub-display); }
body.hub .hub-upload small { color: var(--hub-muted); font-size: 12px; text-align: center; }
body.hub .hub-upload-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 20px; border-radius: 7px; background: var(--hub-green); color: var(--hub-bg); font-size: 13px; font-weight: 600; }
body.hub #importStatus { margin: 9px 0 0; min-height: 20px; font: 400 12px/1.5 var(--hub-font); color: var(--hub-green-soft); overflow-wrap: anywhere; }
body.hub #importStatus:empty { display: none; }
body.hub .hub-guide { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hub-line); }
body.hub .hub-guide > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 44px; list-style: none; color: var(--hub-paper); cursor: pointer; }
body.hub .hub-guide > summary::-webkit-details-marker { display: none; }
body.hub .hub-guide > summary strong { display: block; font-weight: 600; }
body.hub .hub-guide > summary small { display: block; margin-top: 3px; font-size: 12px; color: var(--hub-muted); }
body.hub .hub-guide > summary svg { transition: transform .2s; }
body.hub .hub-guide[open] > summary svg { transform: rotate(180deg); }
body.hub .hub-steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); list-style: none; padding: 0; margin: 25px 0 0; }
body.hub .hub-steps > li { padding: 0 18px; border-left: 1px solid var(--hub-line); min-width: 0; }
body.hub .hub-steps > li:first-child { padding-left: 0; border: 0; }
body.hub .hub-steps > li:last-child { padding-right: 0; }
body.hub .hub-step-number { display: block; color: var(--hub-green); font: 600 12px/1.4 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub .hub-steps strong { display: block; margin: 12px 0 7px; font: 600 16px/1.3 var(--hub-display); }
body.hub .hub-steps p { margin: 0; color: var(--hub-muted); font-size: 12px; }
body.hub .hub-steps a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hub-paper); text-decoration: underline; }

/* Loaded data: four columns, image first, neutral evidence on each card. */
body.hub .hub-catalog { padding: 28px 0 36px; background: var(--hub-panel); color: var(--hub-paper); }
body.hub .hub-catalog-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 24px; }
body.hub .hub-catalog-head h2 { margin: 0 0 10px; font: 600 36px/1.1 var(--hub-display); letter-spacing: -.035em; }
body.hub .hub-catalog-head p { margin: 0; color: var(--hub-muted); font-size: 13px; max-width: 65ch; }
body.hub .hub-base-label { max-width: 420px; color: var(--hub-muted); font-size: 12px; overflow-wrap: anywhere; }
body.hub .hub-workspace-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
body.hub .hub-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; color: var(--hub-muted); font-size: 12px; }
body.hub .hub-workspace-bar select { min-height: 44px; min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid var(--hub-line); border-radius: 7px; background: var(--hub-raised); color: var(--hub-paper); color-scheme: dark; }
body.hub .hub-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--hub-line); margin-bottom: 24px; padding: 18px 0; }
body.hub #catalogoSec .hub-stats .stat { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; min-width: 0; min-height: 0; margin: 0; padding: 0 20px; border: 0; border-left: 1px solid var(--hub-line); border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
body.hub #catalogoSec .hub-stats .stat:first-child { padding-left: 0; border-left: 0; }
body.hub #catalogoSec .hub-stats .stat::before, body.hub #catalogoSec .hub-stats .stat::after { content: none; }
body.hub #catalogoSec .stat-n { color: var(--hub-paper); font: 600 28px/1.2 var(--hub-font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
body.hub #catalogoSec .stat-l { margin-top: 7px; color: var(--hub-muted); font: 500 12px/1.5 var(--hub-font); text-transform: none; letter-spacing: 0; }
body.hub .hub-bench { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; color: var(--hub-muted); font-size: 12px; }
body.hub .hub-bench:empty { display: none; }
body.hub .hub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
body.hub .hub-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: min(100%,240px); padding: 0 14px; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-raised); color: var(--hub-muted); transition: border-color .18s; }
body.hub .hub-search:focus-within { border-color: var(--hub-green-soft); }
body.hub .hub-search input { width: 100%; min-width: 0; padding: 12px 0; min-height: 44px; border: 0; outline: none; background: transparent; color: var(--hub-paper); font-size: 16px; caret-color: var(--hub-green); }
body.hub .hub-search input::placeholder { color: var(--hub-muted); opacity: 1; }
body.hub .hub-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hub-line); border-radius: 7px; background: var(--hub-raised); color: var(--hub-paper); font-size: 12px; font-weight: 600; text-decoration: none; }
body.hub .hub-button[aria-pressed=true] { background: var(--hub-paper); border-color: var(--hub-paper); color: var(--hub-forest); }
body.hub #catalogoSec .toggle { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--hub-line); border-radius: 8px; background: transparent; }
body.hub #catalogoSec .tbtn { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--hub-muted); font: 600 12px/1.4 var(--hub-font); text-transform: none; letter-spacing: 0; transform: none; }
body.hub #catalogoSec .tbtn.on { color: var(--hub-bg); background: var(--hub-paper); }
body.hub .catalog-controls { display: grid; gap: 12px; margin-bottom: 20px; color: var(--hub-paper); font-size: 13px; }
body.hub .catalog-command { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.hub .catalog-command .hub-search { flex: 1 1 240px; }
body.hub .catalog-scope { display: inline-flex; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 8px; }
body.hub .catalog-scope-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-right: 1px solid var(--hub-line); border-bottom: 2px solid transparent; background: transparent; color: var(--hub-muted); font: 600 13px/1 var(--hub-font); cursor: pointer; }
body.hub .catalog-scope-tab:last-child { border-right: 0; }
body.hub .catalog-scope-tab[aria-pressed="true"] { background: var(--hub-raised); color: var(--hub-paper); border-bottom-color: var(--hub-green); }
body.hub .catalog-count { color: var(--hub-muted); font: 600 12px/1 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub .catalog-count:empty { display: none; }
body.hub #catalogoSec #fSort { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-panel); color: var(--hub-paper); font: 500 13px/1 var(--hub-font); }
body.hub .catalog-facets { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hub-line); }
body.hub .catalog-facet { position: relative; }
body.hub .catalog-facet-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--hub-line); border-radius: 8px; background: transparent; color: var(--hub-paper); font: 500 13px/1 var(--hub-font); cursor: pointer; }
body.hub .catalog-facet-button.is-active { border-color: var(--hub-green); }
body.hub .catalog-facet-value { color: var(--hub-green-soft); font-variant-numeric: tabular-nums; }
body.hub .catalog-facet-button i { width: 7px; height: 7px; margin-bottom: 3px; border-right: 1.5px solid var(--hub-muted); border-bottom: 1.5px solid var(--hub-muted); transform: rotate(45deg); }
body.hub .catalog-facet-button[aria-expanded="true"] i { margin: 3px 0 0; transform: rotate(225deg); }
body.hub :is(.catalog-scope-tab,.catalog-facet-button,.catalog-token,.catalog-link,.catalog-filters-mobile):focus-visible { outline: 2px solid var(--hub-green); outline-offset: 2px; }
body.hub .catalog-popover { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max(280px, 100%); max-height: min(440px, 60vh); overflow: auto; padding: 12px; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-raised); }
body.hub :is(.catalog-popover,.catalog-sheet) fieldset { min-width: 0; margin: 0 0 10px; padding: 0; border: 0; }
body.hub :is(.catalog-popover,.catalog-sheet) legend { margin-bottom: 6px; color: var(--hub-muted); font: 600 12px/1.4 'Hub Outfit', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
body.hub .catalog-option { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 4px 10px; min-height: 40px; padding: 4px 2px; cursor: pointer; font-size: 14px; }
body.hub .catalog-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--hub-green); }
body.hub .catalog-option .catalog-count { font-size: 12px; }
body.hub .catalog-density { grid-column: 2 / 4; height: 2px; background: var(--hub-line); }
body.hub .catalog-density b { display: block; height: 2px; background: var(--hub-muted); }
body.hub .catalog-popover-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hub-line); }
body.hub .catalog-link { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--hub-muted); font: 500 13px/1 var(--hub-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.hub .catalog-active { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
body.hub .catalog-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
body.hub .catalog-token { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-panel); color: var(--hub-paper); font: 500 12px/1 var(--hub-font); cursor: pointer; }
body.hub .catalog-token i { color: var(--hub-muted); font-style: normal; }
body.hub .catalog-result { margin: 0 0 0 auto; color: var(--hub-muted); font-size: 13px; text-align: right; }
body.hub .catalog-result strong { color: var(--hub-paper); font: 700 20px/1 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub .catalog-result span { display: block; margin-top: 4px; font-size: 12px; }
body.hub .catalog-filters-mobile { display: none; }
body.hub .catalog-empty, body.hub .catalog-note { color: var(--hub-muted); font-size: 12px; }
body.hub .catalog-niche-table .catalog-num { font: 600 15px/1.4 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub .catalog-small-sample { display: block; margin-top: 4px; color: var(--hub-muted); font: 600 11px/1.3 'Hub Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
body.hub .hub-offer-context { flex-wrap: wrap; }
body.hub .hub-offer-why { flex-basis: 100%; font-size: 12px; }
body.hub #xray .xr-profile { margin: 16px 0; padding: 12px 0; border-block: 1px solid var(--hub-line); }
body.hub #xray .xr-profile h3 { margin: 0 0 8px; color: var(--xr-muted); font: 600 12px/1.4 'Hub Outfit', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
body.hub #xray .xr-profile ul { margin: 0; padding-left: 18px; }
body.hub .catalog-sheet { width: min(100vw, 520px); max-width: 100vw; max-height: 85vh; margin: auto auto 0; padding: 0; border: 1px solid var(--hub-line); border-radius: 12px 12px 0 0; background: var(--hub-raised); color: var(--hub-paper); }
body.hub .catalog-sheet::backdrop { background: rgba(5,8,5,.6); }
body.hub :is(.catalog-sheet-head,.catalog-sheet-foot) { position: sticky; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--hub-raised); }
body.hub .catalog-sheet-head { top: 0; border-bottom: 1px solid var(--hub-line); }
body.hub .catalog-sheet-head h3 { margin: 0; font: 600 16px/1.2 var(--hub-display); }
body.hub .catalog-sheet-foot { bottom: 0; border-top: 1px solid var(--hub-line); }
body.hub #catalogSheetBody { padding: 12px 16px; }
@media (max-width: 610px) {
  body.hub .catalog-scope { display: flex; width: 100%; }
  body.hub .catalog-scope-tab { flex: 1; justify-content: center; }
  body.hub .catalog-command .hub-search { flex-basis: 100%; }
  body.hub .catalog-facets { display: none; }
  body.hub .catalog-filters-mobile { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 0 14px; border: 1px solid var(--hub-line); border-radius: 8px; background: transparent; color: var(--hub-paper); font: 600 13px/1 var(--hub-font); }
  body.hub .catalog-tokens { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.hub .catalog-tokens::-webkit-scrollbar { display: none; }
  body.hub :is(.catalog-option,.catalog-facet-button,.catalog-token,.catalog-link) { min-height: 44px; }
}
body.hub .hub-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(5,auto); gap: 16px; }
body.hub .hub-offer { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 0; min-width: 0; margin: 0; border: 1px solid rgba(5,8,5,.13); border-top: 2px solid var(--hub-green); border-radius: 12px; background: var(--hub-paper); color: var(--hub-bg); overflow: hidden; box-shadow: none; transition: border-color .2s; }
body.hub .hub-offer-identity { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 12px; }
body.hub .hub-tier { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
body.hub .hub-tier-letter { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 5px; background: rgba(5,8,5,.06); color: var(--hub-bg); font: 600 18px/1 var(--hub-number); letter-spacing: -.03em; }
body.hub .hub-capture-label { display: inline-flex; align-items: center; gap: 5px; color: rgba(16,58,32,.75); font-size: 12px; }
body.hub .hub-adlib { padding: 3px 8px; border-radius: 999px; background: rgba(5,8,5,.06); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.hub .hub-adlib::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.hub .hub-adlib[data-adlib="escalando"] { background: rgba(214,84,32,.12); color: #a63d12; }
body.hub .hub-adlib[data-adlib="constante"] { background: rgba(16,58,32,.10); color: #103a20; }
body.hub .hub-offer-visual { display: flex; flex-direction: column; min-width: 0; padding: 0 8px; }
body.hub .hub-shot { position: relative; aspect-ratio: 1.6; overflow: hidden; border: 1px solid rgba(5,8,5,.08); border-radius: 6px; background: var(--hub-raised); }
body.hub .hub-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; scale: 1; transition: scale .3s var(--hub-ease); }
body.hub .hub-shot .noshot { display: grid; place-items: center; height: 100%; padding: 16px; color: var(--hub-muted); font: 400 12px/1.5 var(--hub-font); text-transform: none; text-align: center; }
body.hub .hub-offer-title { margin: 17px 8px 0; color: var(--hub-bg); font: 600 20px/1.25 var(--hub-display); letter-spacing: -.025em; overflow-wrap: anywhere; }
body.hub .hub-offer-context { display: flex; align-items: flex-start; gap: 7px; padding: 10px 16px 17px; color: rgba(16,58,32,.78); font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
body.hub .hub-offer-context > span { min-width: 0; }
body.hub .hub-offer-context svg { width: 15px; height: 15px; margin-top: 1px; }
body.hub .hub-offer-evidence { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 12px; align-items: start; margin: 0 16px 12px; padding: 16px 0 0; border-top: 1px solid var(--hub-hair); border-radius: 0; background: transparent; color: var(--hub-bg); }
body.hub .hub-score-group { display: grid; gap: 8px; align-content: start; }
body.hub .hub-score-group label { font-size: 12px; color: rgba(5,8,5,.7); }
body.hub .hub-score { font: 600 32px/1 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--hub-bg); }
body.hub .hub-signals { display: grid; gap: 10px; min-width: 0; margin: 0; }
body.hub .hub-signals div { display: grid; gap: 1px; }
body.hub .hub-signals dt { font-size: 12px; color: rgba(5,8,5,.7); }
body.hub .hub-signals dd { margin: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
body.hub .hub-offer-actions { display: flex; align-items: center; gap: 7px; padding: 8px 12px 13px; }
body.hub .hub-inspect { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 6px; background: var(--hub-forest); color: var(--hub-paper); font: 600 12px/1.4 var(--hub-font); white-space: nowrap; }
body.hub .hub-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(16,58,32,.2); border-radius: 6px; background: transparent; color: var(--hub-forest); }
body.hub .hub-icon-button[aria-pressed=true] { background: var(--hub-forest); border-color: var(--hub-forest); color: var(--hub-paper); }
body.hub .hub-icon-button[aria-pressed=true] svg { fill: currentColor; }
body.hub .hub-offer:focus-within { border-color: var(--hub-green); }
/* O card é claro: o anel em currentColor some no Inspecionar, que recebe o foco de volta ao fechar o Raio-X. */
body.hub .hub-offer :is(button, a):focus-visible { outline-color: var(--hub-forest); }
body.hub .hub-offer:focus-within .hub-shot img { scale: 1.025; }
body.hub .hub-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; color: var(--hub-muted); font-size: 12px; }
body.hub .hub-pagination button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--hub-line); border-radius: 7px; background: var(--hub-raised); color: var(--hub-paper); font-size: 12px; }
body.hub .hub-grid > .empty { grid-column: 1 / -1; padding: 40px 20px; background: transparent; border: 1px dashed var(--hub-line); border-radius: 12px; color: var(--hub-muted); font: 400 14px/1.6 var(--hub-font); }
body.hub #tableWrap.hub-table-wrap { display: none; overflow-x: auto; max-width: 100%; border: 1px solid var(--hub-line); border-radius: 8px; background: var(--hub-panel); }
body.hub #tableWrap.hub-table-wrap.on { display: block; }
body.hub #tableWrap.hub-table-wrap,
body.hub .hub-comparison-scroll { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
body.hub .hub-scroll-hint { display: none; }
body.hub .modal { grid-template-columns: minmax(0,1fr); }
body.hub .modal .modal-card { min-width: 0; max-width: 100%; }
body.hub .modal-body ul { list-style: disc; padding-left: 20px; }
body.hub .modal-body li { display: list-item; }
body.hub .modal-body li::before { content: none; }
body.hub .modal-body :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
body.hub #tableWrap table { width: 100%; border-collapse: collapse; color: var(--hub-paper); font: 400 13px/1.5 var(--hub-font); }
body.hub #tableWrap th { padding: 14px; color: var(--hub-muted); border-bottom: 1px solid var(--hub-line); background: var(--hub-raised); font: 500 12px/1.5 var(--hub-font); text-transform: none; letter-spacing: 0; text-align: left; }
body.hub #tableWrap td { padding: 14px; border-bottom: 1px solid var(--hub-line); color: var(--hub-paper); }
body.hub #tableWrap .t-name { font-family: var(--hub-display); color: var(--hub-paper); }
body.hub #tableWrap :is(.t-name small,.t-act,.t-tier) { color: var(--hub-muted); font-family: var(--hub-font); }
body.hub #tableWrap .t-score { color: var(--hub-paper); font: 600 18px/1.3 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub #tableWrap tr:hover { background: var(--hub-raised); }

/* Footer stays informative, with native links and independent groups. */
body.hub .hub-footer { background: var(--hub-bg); color: var(--hub-muted); border-top: 1px solid var(--hub-line); padding: 25px 0; }
body.hub .hub-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
body.hub .hub-footer h3 { margin: 0 0 12px; color: var(--hub-paper); font: 600 17px/1.3 var(--hub-display); }
body.hub .hub-footer p { max-width: 350px; margin: 0 0 10px; font-size: 12px; }
body.hub .hub-footer :is(button,a) { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--hub-paper); font-size: 12px; text-align: left; text-decoration: none; }
body.hub .hub-footer :is(button,a):focus-visible { text-decoration: underline; }
body.hub #footStamp { margin-top: 10px; color: var(--hub-muted); font-size: 12px; overflow-wrap: anywhere; }

/* ── Raio-X · dossiê botânico ─────────────────────────────────────────
   Camada única do drawer. Superfícies em níveis: sf0 no cabeçalho e no
   rodapé e sf1 no corpo contínuo. O verde fica no CTA da
   etapa, no tier e nos sinais detectados. Só a moldura se move ao abrir. */
body.hub #scrim { background: rgba(5,8,5,.72); backdrop-filter: none; -webkit-backdrop-filter: none; transition: opacity .18s linear, visibility 0s linear .18s; }
body.hub #scrim.on { transition: opacity .18s linear, visibility 0s; }
body.hub #xray.hub-xray {
  --xr-sf0: var(--hub-bg);
  --xr-sf1: var(--hub-panel);
  --xr-sf2: var(--hub-raised);
  --xr-sf3: #15241b;
  --xr-line: var(--hub-line);
  --xr-line-strong: rgba(198,255,211,.26);
  --xr-ink: var(--hub-paper);
  --xr-muted: var(--hub-muted);
  --xr-amber: #f2a900;
  --xr-warn: #ffb3a3;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(600px,100vw);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--xr-sf1);
  color: var(--xr-ink);
  border-left: 1px solid var(--xr-line);
  box-shadow: none;
  color-scheme: dark;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(24px);
  transition: transform .18s var(--hub-ease), opacity .16s linear, visibility 0s linear .18s;
}
body.hub #xray.hub-xray.on { visibility: visible; pointer-events: auto; opacity: 1; transform: none; transition: transform .22s var(--hub-ease), opacity .14s linear, visibility 0s; }
body.hub #xray :is(button, a, summary):focus-visible { outline: 2px solid var(--hub-green-soft); outline-offset: 3px; }
body.hub #xray .xr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Cabeçalho: decidir (favoritar, compartilhar, descartar), navegar e fechar. */
body.hub #xray .xr-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  grid-template-areas: "kicker tools nav close" "title title title title";
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 14px 24px 18px;
  background: radial-gradient(120% 150% at 0% 0%, rgba(131,247,154,.085), transparent 55%), var(--xr-sf0);
  border-bottom: 1px solid var(--xr-line);
}
body.hub #xray .xr-kicker { grid-area: kicker; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
body.hub #xray .xr-kind { color: var(--xr-muted); font: 600 12px/1.35 var(--hub-font); letter-spacing: .08em; text-transform: uppercase; }
body.hub #xray .xr-pos { color: var(--xr-muted); font: 500 12px/1.35 var(--hub-font); font-variant-numeric: tabular-nums; }
body.hub #xray .xr-pos:empty { display: none; }
body.hub #xray .xr-title { grid-area: title; margin: 2px 0 0; color: var(--xr-ink); font: 600 26px/1.18 var(--hub-display); letter-spacing: -.03em; text-transform: none; overflow-wrap: anywhere; text-wrap: balance; }
body.hub #xray .xr-actions-util { grid-area: tools; display: flex; gap: 6px; padding-right: 10px; border-right: 1px solid var(--xr-line); }
body.hub #xray .xr-nav-group { grid-area: nav; display: flex; gap: 6px; margin: 0; }
body.hub #xray .xr-close { grid-area: close; margin: 0; }
body.hub #xray :is(.xr-icon-btn,.xr-nav-btn,.xr-close) {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--xr-line);
  border-radius: 8px;
  background: transparent;
  color: var(--xr-ink);
  box-shadow: none;
  transform: none;
  transition: background-color .16s, border-color .16s, color .16s, scale .12s var(--hub-ease);
}
body.hub #xray :is(.xr-icon-btn,.xr-close) svg { width: 18px; height: 18px; }
body.hub #xray .xr-nav-btn svg { width: 16px; height: 16px; }
body.hub #xray .xr-close { background: var(--xr-sf2); }
body.hub #xray .xr-icon-btn[aria-pressed=true] { border-color: rgba(131,247,154,.55); background: rgba(131,247,154,.1); color: var(--hub-green-soft); }
body.hub #xray .xr-icon-btn[aria-pressed=true] svg { fill: currentColor; }
body.hub #xray :is(.xr-icon-btn,.xr-nav-btn,.xr-close):not(:disabled):active { scale: .96; }

/* Corpo: leitura técnica primeiro, captura como evidência seguinte. */
body.hub #xray .xr-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0; scrollbar-width: thin; scrollbar-color: rgba(198,255,211,.3) transparent; }
body.hub #xray .xr-eyebrow { margin: 0 0 16px; color: var(--xr-muted); font: 600 12px/1.5 var(--hub-font); letter-spacing: .08em; text-transform: uppercase; }
body.hub #xray .xr-label { display: block; margin: 0; color: var(--xr-muted); font: 500 13px/1.5 var(--hub-font); letter-spacing: 0; text-transform: none; }
body.hub #xray .xr-nota { margin: 0; color: var(--xr-muted); font: 400 14px/1.75 var(--hub-font); }
body.hub #xray .xr-lead { margin: 0; color: var(--xr-ink); font: 400 15px/1.55 var(--hub-font); }
body.hub #xray .xr-block { margin: 0 0 36px; color: var(--xr-ink); }

body.hub #xray .xr-summary {
  --xr-tier: var(--xr-line-strong);
  display: grid;
  gap: 32px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--xr-ink);
}
body.hub #xray [data-tier=S] { --xr-tier: var(--hub-green); }
body.hub #xray [data-tier=A] { --xr-tier: var(--xr-amber); }
body.hub #xray [data-tier=B] { --xr-tier: var(--xr-muted); }
body.hub #xray [data-tier=C] { --xr-tier: rgba(244,248,243,.42); }
body.hub #xray .xr-score-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
body.hub #xray .xr-score { display: grid; gap: 12px; }
body.hub #xray .xr-score .hub-score { color: var(--xr-ink); font: 700 52px/1 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub #xray .xr-priority { display: grid; justify-items: end; gap: 12px; text-align: right; }
body.hub #xray .xr-tier-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border: 1px solid var(--xr-line-strong); border-radius: 999px; background: transparent; color: var(--xr-ink); font: 600 13px/1.3 var(--hub-font); white-space: nowrap; }
body.hub #xray .xr-tier-pill:is([data-tier=S],[data-tier=A]) { border-color: var(--xr-tier); background: var(--xr-tier); color: var(--hub-bg); }
body.hub #xray .xr-tier-pill[data-tier=B] { border-color: rgba(161,175,163,.5); background: rgba(161,175,163,.14); }
body.hub #xray .xr-ruler { margin: 0; }
body.hub #xray .xr-ruler-track { position: relative; display: flex; }
body.hub #xray .xr-band { flex: 1 1 0; min-width: 0; color: var(--xr-muted); font: 500 11px/1.3 var(--hub-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.hub #xray .xr-band i { display: block; height: 6px; margin: 0 3px 6px 0; border-radius: 2px; background: rgba(244,248,243,.1); }
body.hub #xray .xr-band[data-band=S] i { margin-right: 0; }
body.hub #xray .xr-band b { color: var(--xr-ink); font-weight: 600; }
body.hub #xray .xr-band.is-on { color: var(--xr-ink); }
body.hub #xray .xr-band.is-on i { background: var(--xr-tier); }
body.hub #xray .xr-ruler-mark { position: absolute; top: -4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--xr-ink); box-shadow: 0 0 0 2px var(--xr-sf2); }
body.hub #xray .xr-score-note { font-size: 14px; }
body.hub #xray .xr-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--xr-line); }
body.hub #xray .xr-meta div { min-width: 0; }
body.hub #xray :is(.xr-meta,.xr-facts) dt { color: var(--xr-muted); font: 500 13px/1.5 var(--hub-font); }
body.hub #xray .xr-meta dd { margin: 8px 0 0; color: var(--xr-ink); font: 600 15px/1.5 var(--hub-font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.hub #xray .xr-evidence { display: grid; gap: 20px; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--xr-line); }
body.hub #xray .xr-signals { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
body.hub #xray .xr-sig { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 12px 5px 9px; border: 1px solid rgba(131,247,154,.34); border-radius: 999px; background: rgba(131,247,154,.07); color: var(--xr-ink); font: 600 12.5px/1.3 var(--hub-font); }
body.hub #xray .xr-sig svg { width: 14px; height: 14px; color: var(--hub-green); }
body.hub #xray :is(.xr-sig-off,.xr-sig-none) { margin: 0; color: var(--xr-muted); font: 400 14px/1.75 var(--hub-font); }
body.hub #xray .xr-sig-off span { color: var(--xr-ink); font-weight: 600; }

body.hub #xray .xr-shot-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
body.hub #xray .xr-shot-bar .xr-eyebrow { margin: 0; }
body.hub #xray .xr-shot-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 10px; border: 0; background: transparent; color: var(--xr-ink); font: 600 12px/1.4 var(--hub-font); text-decoration: underline; text-decoration-color: rgba(244,248,243,.35); text-underline-offset: 4px; }
body.hub #xray .xr-shot-toggle svg { width: 16px; height: 16px; transition: rotate .2s var(--hub-ease); }
body.hub #xray .xr-shot-toggle[aria-expanded=true] svg { rotate: 180deg; }
body.hub #xray .xr-shot-frame { position: relative; height: 180px; overflow: hidden; border: 1px solid var(--xr-line); border-radius: 8px; background: var(--xr-sf0); }
body.hub #xray .xr-shot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
body.hub #xray .xr-shot-frame::after { position: absolute; inset: auto 0 0; height: 44px; content: ''; background: linear-gradient(rgba(5,8,5,0), rgba(5,8,5,.7)); pointer-events: none; }
body.hub #xray .xr-shot-frame.is-open { height: auto; aspect-ratio: 1.6; }
body.hub #xray .xr-shot-frame.is-open img { object-fit: contain; }
body.hub #xray .xr-shot-frame.is-open::after { content: none; }
body.hub #xray .xr-shot.is-empty .noshot { position: static; inset: auto; display: block; height: auto; margin: 0; padding: 14px 16px; border: 1px dashed var(--xr-line-strong); border-radius: 8px; background: transparent; color: var(--xr-muted); font: 400 13px/1.5 var(--hub-font); letter-spacing: 0; text-transform: none; text-align: left; }
body.hub #xray .xr-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 0; }
body.hub #xray .xr-facts div { min-width: 0; }
body.hub #xray .xr-facts dd { margin: 8px 0 0; color: var(--xr-ink); font: 500 14px/1.7 var(--hub-font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.hub #xray time[title] { text-decoration: underline dotted rgba(244,248,243,.32); text-underline-offset: 4px; }
body.hub #xray #xrHistoryContent { display: grid; gap: 20px; }
body.hub #xray #xrHistoryContent > p { margin: 0; color: var(--xr-muted); font: 400 13px/1.55 var(--hub-font); }
body.hub #xray .xr-history { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
body.hub #xray .xr-history li { display: grid; grid-template-columns: minmax(0,1fr) minmax(48px,120px) auto; align-items: center; gap: 12px; color: var(--xr-ink); font: 500 13px/1.4 var(--hub-font); font-variant-numeric: tabular-nums; }
body.hub #xray .xr-history i { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--hub-green) var(--xr-w,0%), rgba(244,248,243,.1) var(--xr-w,0%)); }
body.hub #xray .xr-history b { font: 600 14px/1 var(--hub-number); letter-spacing: -.03em; }

/* Orientação para a remodelação: superfície floresta, separada dos dados observados. */
body.hub #xray .xr-guide-kicker { margin: 28px 0 10px; }
body.hub #xray .xr-guide { margin: 0; padding: 0 16px; border: 1px solid rgba(131,247,154,.18); border-radius: 12px; background: rgba(16,58,32,.28); }
body.hub #xray .xr-guide[open] { padding-bottom: 16px; }
body.hub #xray .xr-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; list-style: none; color: var(--xr-ink); font: 600 16px/1.35 var(--hub-display); letter-spacing: -.015em; cursor: pointer; }
body.hub #xray .xr-guide > summary::-webkit-details-marker { display: none; }
body.hub #xray .xr-guide > summary::after { flex: none; width: 8px; height: 8px; margin: 0 4px 4px 0; content: ''; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--hub-ease); }
body.hub #xray .xr-guide[open] > summary::after { margin-bottom: -2px; transform: rotate(225deg); }
body.hub #xray .xr-guide > .xr-nota { margin-bottom: 12px; }
body.hub #xray .script-box { margin: 0 0 12px; padding: 16px; border: 1px solid var(--xr-line); border-radius: 8px; background: var(--xr-sf0); color: var(--xr-ink); box-shadow: none; white-space: pre-wrap; font: 400 13px/1.65 var(--hub-font); max-height: none; overflow: visible; overflow-wrap: anywhere; }
@font-face { font-family: 'Hub Outfit'; src: url('assets/fonts/Outfit-600.ttf') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }
body.hub #xray .xr-analysis-start { display: grid; gap: 28px; min-width: 0; }
body.hub #xray .xr-analysis-start .project-field { gap: 12px; }
body.hub #xray .xr-analysis-start .project-field > span { color: var(--xr-muted); font: 600 13px/1.5 'Hub Outfit',sans-serif; text-transform: uppercase; }
body.hub #xray .xr-analysis-start :is(textarea,select) { min-width: 0; min-height: 52px; padding: 12px 14px; line-height: 1.6; color: var(--xr-ink); border-color: var(--xr-line); background: var(--xr-sf0); }
body.hub #xray .xr-analysis-start textarea { min-height: 128px; }
body.hub #xray .xr-analysis-start select option { color: var(--xr-ink); background: var(--xr-sf0); }
body.hub #xray .xr-imported-evidence { display: grid; gap: 20px; }
body.hub #xray .xr-evidence-details > summary { padding: 10px 0; cursor: pointer; color: var(--xr-ink); font: 600 13px/1.4 var(--hub-font); }
body.hub #xray .xr-evidence-facts { margin: 8px 0; }
body.hub #xray .xr-evidence-facts > div { padding: 24px 0; border-top: 1px solid var(--xr-line); }
body.hub #xray .xr-evidence-facts dt { color: var(--xr-muted); font: 600 12px/1.4 var(--hub-font); }
body.hub #xray .xr-evidence-facts dd { margin: 12px 0 0; color: var(--xr-ink); font: 400 14px/1.75 var(--hub-font); overflow-wrap: anywhere; }
body.hub #xray .xr-evidence-facts blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--hub-green); }
body.hub #xray .xr-evidence-facts a { color: var(--hub-green); }
body.hub #projectModal { --project-muted: #45614e; }
body.hub #projectModal .modal-card { color: var(--hub-forest); background: var(--hub-paper); }
body.hub #projectModal .modal-head { color: var(--hub-forest); background: var(--hub-paper); }
body.hub #projectModal .xr-kind { color: var(--project-muted); font: 600 12px/1.5 'Hub Outfit',sans-serif; }
body.hub #projectModal .xr-title { color: var(--hub-forest); font: 700 22px/1.3 var(--hub-display); }
body.hub #projectModal .modal-body { color: var(--hub-forest); font: 400 16px/1.6 var(--hub-font); }
body.hub #projectModal .project-offer small { color: var(--project-muted); font: 600 12px/1.5 'Hub Outfit',sans-serif; }
body.hub #projectModal .project-offer b { color: var(--hub-forest); font: 600 18px/1.45 var(--hub-display); }
body.hub #projectModal .project-help { margin: 0; color: var(--project-muted); font: 400 15px/1.6 var(--hub-font); }
body.hub #projectModal .project-field > span { color: var(--project-muted); font: 600 12px/1.5 'Hub Outfit',sans-serif; text-transform: uppercase; }
body.hub #projectModal .project-field :is(input,select,textarea) { min-height: 46px; padding: 12px; color: var(--hub-forest); background: #fff; border-color: rgba(16,58,32,.4); font: 400 16px/1.5 var(--hub-font); }
body.hub #projectModal .project-field textarea { min-height: 96px; }
body.hub #projectModal .project-field :is(input,textarea)::placeholder { color: var(--project-muted); opacity: 1; }
body.hub #projectModal .project-context-details > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--hub-forest); font: 500 16px/1.5 var(--hub-font); }
body.hub #projectModal .project-context-details[open] > summary { margin-bottom: 12px; }
body.hub #projectModal .project-form { gap: 18px; }
body.hub #projectModal .project-check { min-height: 44px; align-items: flex-start; gap: 12px; cursor: pointer; }
body.hub #projectModal .project-check span { color: var(--hub-forest); font: 400 15px/1.6 var(--hub-font); letter-spacing: 0; text-transform: none; }
body.hub #projectModal .project-check input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; display: grid; place-content: center; width: 24px; height: 24px; min-height: 24px; padding: 0; margin: 2px 0 0; border: 2px solid var(--hub-forest); border-radius: 4px; background: #fff; cursor: pointer; }
body.hub #projectModal .project-check input::after { content: ''; width: 6px; height: 11px; border: solid var(--hub-paper); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); visibility: hidden; }
body.hub #projectModal .project-check input:checked { background: var(--hub-forest); }
body.hub #projectModal .project-check input:checked::after { visibility: visible; }
body.hub #projectModal .btn { min-height: 46px; color: var(--hub-forest); background: var(--hub-paper); border: 1px solid rgba(16,58,32,.5); font: 600 15px/1.5 var(--hub-font); text-transform: none; letter-spacing: 0; }
body.hub #projectModal .btn.hot { color: var(--hub-paper); background: var(--hub-forest); border-color: var(--hub-forest); }
body.hub #projectModal .btn:disabled { opacity: 1; color: var(--project-muted); background: #e4ebe3; cursor: not-allowed; }
body.hub #projectModal :is(button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--hub-forest); outline-offset: 3px; }
body.hub #projectModal :is(.project-error,.project-result,.hub-own-review) { font: 400 15px/1.6 var(--hub-font); }
body.hub #projectModal .project-error { color: #9b2921; }
body.hub #projectModal .hub-own-review { color: var(--hub-forest); }
body.hub #projectModal .hub-own-review h3 { font-size: 18px; }
body.hub #projectModal .project-result { color: var(--hub-forest); }
body.hub #projectModal .project-actions { flex-wrap: wrap; }
body.hub #projectModal .project-actions .btn { flex: 1 1 160px; }
@media (forced-colors: active) {
  body.hub #projectModal .project-check input { appearance: auto; -webkit-appearance: auto; }
  body.hub #projectModal .project-check input::after { display: none; }
}
@media (max-width: 610px) {
  body.hub #projectModal .project-form-grid { grid-template-columns: minmax(0,1fr); }
}
body.hub #xray .script-box b { color: var(--xr-ink); font-family: var(--hub-display); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Rodapé por etapa: conferir (página e Ad Library), depois criar (Copy → Página). */
body.hub #xray .xr-foot { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; flex: none; padding: 12px 24px max(12px,env(safe-area-inset-bottom)); background: var(--xr-sf0); border-top: 1px solid var(--xr-line); }
body.hub #xray :is(.xr-actions-main,.xr-actions-create) { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
body.hub #xray .btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--xr-line-strong);
  border-radius: 8px;
  background: var(--xr-sf2);
  color: var(--xr-ink);
  box-shadow: none;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transform: none;
  font: 600 13px/1.25 var(--hub-font);
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .2s, filter .2s, transform .2s var(--hub-ease), scale .12s var(--hub-ease);
}
body.hub #xray .btn svg { width: 16px; height: 16px; }
body.hub #xray .btn.hot { border-color: rgba(244,248,243,.4); }
body.hub #xray .btn.xr-quiet { flex: 0 1 auto; border-color: var(--xr-line); background: transparent; color: var(--xr-ink); }
body.hub #xray .btn.xr-cta,
body.hub #xray .btn:where(#xrPages.is-next-step) { border-color: rgba(178,255,192,.55); background: linear-gradient(115deg,#a0ffad,#54db77 55%,#2aa952); color: #061009; font-weight: 800; box-shadow: 0 0 0 1px rgba(83,239,120,.12), 0 8px 24px -14px rgba(83,239,120,.7); }
/* Com a Página liberada como próximo passo, ela assume o verde e a conferência vira secundária. */
body.hub #xray :where(.xr-foot:has(#xrPages.is-next-step)) .btn.xr-cta { border-color: rgba(244,248,243,.4); background: var(--xr-sf2); color: var(--xr-ink); font-weight: 600; box-shadow: none; }
body.hub #xray .btn:disabled { opacity: 1; border-style: dashed; border-color: var(--xr-line-strong); background: transparent; color: var(--xr-muted); cursor: not-allowed; }
body.hub #xray .btn:not(:disabled):active { scale: .97; transform: none; }
body.hub #xray .btn.is-copied { border-color: rgba(131,247,154,.6) !important; color: var(--hub-green-soft) !important; background: rgba(131,247,154,.12) !important; }
@media (prefers-reduced-motion: no-preference) {
  body.hub #xray .btn.is-copied svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: xrCheck .32s var(--hub-ease) forwards; }
}
@keyframes xrCheck { to { stroke-dashoffset: 0; } }
body.hub #xray .xr-flow-note { margin: 0; color: var(--xr-muted); font: 400 12px/1.4 var(--hub-font); }
@media (hover: hover) and (pointer: fine) {
  body.hub #xray :is(.xr-icon-btn,.xr-nav-btn,.xr-close):not(:disabled):hover { border-color: var(--xr-line-strong); background: var(--xr-sf3); }
  body.hub #xray .xr-discard:hover { border-color: rgba(255,179,163,.55); background: rgba(255,120,90,.08); color: var(--xr-warn); }
  body.hub #xray .btn:not(:disabled):hover { border-color: rgba(244,248,243,.55); background-color: var(--xr-sf3); }
  body.hub #xray .xr-shot-toggle:hover { text-decoration-color: currentColor; }
  body.hub #xray .xr-guide > summary:hover { color: var(--hub-green-soft); }
}
@media (max-width: 610px) {
  body.hub #xray.hub-xray { width: 100%; max-width: 100vw; border-left: 0; }
  body.hub #xray .xr-head { grid-template-columns: auto minmax(0,1fr) auto auto; grid-template-areas: "tools . nav close" "kicker kicker kicker kicker" "title title title title"; gap: 6px; padding: 10px 16px 14px; }
  body.hub #xray .xr-kicker { margin-top: 4px; }
  body.hub #xray .xr-title { font-size: 21px; }
  body.hub #xray .xr-actions-util { padding-right: 0; border-right: 0; }
  body.hub #xray .xr-score .hub-score { font-size: 44px; }
  body.hub #xray .xr-shot-frame { height: 150px; }
  body.hub #xray .xr-foot { padding: 10px 16px max(10px,env(safe-area-inset-bottom)); }
  body.hub #xray .btn { padding-inline: 12px; font-size: 12.5px; }
  body.hub #xray .xr-wide { display: none; }
}
/* Zoom 200% ou janela baixa: cabeçalho e rodapé encolhem para o corpo continuar legível. */
@media (max-height: 480px) {
  body.hub #xray .xr-head { padding-block: 8px 10px; row-gap: 4px; }
  body.hub #xray .xr-title { font-size: 20px; }
  body.hub #xray .xr-foot { gap: 6px; padding-block: 8px max(8px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  body.hub #scrim, body.hub #xray.hub-xray, body.hub #xray.hub-xray.on { transform: none; transition: none !important; }
  body.hub #xray .btn:hover { transform: none !important; }
}

/* The existing four questions keep their structure and receive contrast. */
body.hub #onboardingModal {
  --txt-0: var(--hub-paper);
  --txt-1: rgba(244,248,243,.82);
  --txt-2: var(--hub-muted);
  --font-label: var(--hub-font);
  --ob-surface: var(--hub-panel);
  --ob-surface-top: var(--hub-panel);
  --ob-raise-1: var(--hub-raised);
  --ob-raise-2: var(--hub-raised);
  --ob-selected: var(--hub-raised);
  --ob-raise-3: rgba(244,248,243,.08);
  --ob-line: var(--hub-line);
  --ob-line-strong: rgba(244,248,243,.4);
  --ob-accent: var(--hub-green);
  --ob-accent-ink: var(--hub-bg);
  --ob-accent-soft: rgba(131,247,154,.08);
  --ob-accent-line: rgba(131,247,154,.55);
  --ob-accent-wash: rgba(131,247,154,.12);
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
  background: rgba(5,8,5,.88);
  color: var(--hub-paper);
  font-family: var(--hub-font);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}
body.hub #onboardingModal.on { visibility: visible; opacity: 1; pointer-events: auto; }
body.hub #onboardingModal .onboarding-modal-card { width: min(720px,100%); max-height: min(90dvh,820px); background: var(--hub-panel); border: 1px solid var(--hub-line); border-radius: 24px; box-shadow: none; }
body.hub #onboardingModal .ob-title { color: var(--hub-paper); font: 600 32px/1.15 var(--hub-display); letter-spacing: -.035em; }
body.hub #onboardingModal :is(.ob-desc,.ob-diagnostic) { color: rgba(244,248,243,.82); font: 400 14px/1.5 var(--hub-font); }
body.hub #onboardingModal :is(.ob-step-indicator,.ob-convergence-l,.ob-counter-hint) { color: var(--hub-paper); font-family: var(--hub-font); }
body.hub #onboardingModal .ob-convergence-n { color: var(--hub-paper); font-family: var(--hub-number); }
body.hub #onboardingModal .ob-close { width: 44px; height: 44px; flex: none; border: 1px solid var(--hub-line); color: var(--hub-paper); }
body.hub #onboardingModal .ob-body { min-height: 0; padding: 28px 28px 24px; scrollbar-width: auto; scrollbar-color: rgba(244,248,243,.35) var(--hub-panel); }
body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card) { background: var(--hub-raised); color: var(--hub-paper); border-color: var(--hub-line); transition: border-color .18s, scale .12s var(--hub-ease); }
body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card).is-selected { background: var(--hub-raised); border-color: var(--hub-green); }
body.hub #onboardingModal .ob-card-choice h3 { color: var(--hub-paper); font: 600 16px/1.3 var(--hub-display); }
body.hub #onboardingModal .ob-card-choice p { color: rgba(244,248,243,.82); font: 400 13px/1.5 var(--hub-font); }
body.hub #onboardingModal :is(.ob-card-badge,.ob-card-badge.hot,.ob-niche-card span.ob-niche-tag) { background: var(--hub-paper); color: var(--hub-bg); font: 600 11px/1.4 var(--hub-font); letter-spacing: .02em; }
body.hub #onboardingModal .ob-niche-card strong { color: var(--hub-paper); font: 600 14px/1.3 var(--hub-font); }
body.hub #onboardingModal .ob-niche-card.is-empty .ob-niche-tag { color: var(--hub-paper); background: rgba(244,248,243,.08); }
body.hub #onboardingModal .ob-profile-chip { color: var(--hub-paper); font-family: var(--hub-font); }
body.hub #onboardingModal .ob-actions { position: static; bottom: auto; padding: 18px 0 4px; background: var(--hub-panel); border-color: var(--hub-line); }
body.hub #onboardingModal .ob-actions .btn { min-height: 48px; border-radius: 8px; color: var(--hub-paper); background: transparent; border-color: rgba(244,248,243,.3); font: 600 12px/1.5 var(--hub-font); letter-spacing: 0; text-transform: none; box-shadow: none; transform: none; }
body.hub #onboardingModal .ob-actions .btn.hot { background: var(--hub-paper); color: var(--hub-forest); border-color: var(--hub-paper); }
body.hub #onboardingModal .ob-actions .btn:disabled { opacity: .55; }
body.hub #onboardingModal .ob-step.on { animation: none; }
body.hub #onboardingModal.is-required .onboarding-modal-card::after { color: var(--hub-muted); font-family: var(--hub-font); letter-spacing: 0; text-transform: none; }

/* Only transform/opacity move. No entrance animation or hover dependency. */
body.hub :is(.hub-button,.hub-icon-button,.hub-inspect,.hub-pagination button,.hub-target-label,.hub-upload-cta,.hub-account .btn) {
  transition: background-color .18s, color .18s, border-color .18s, scale .12s var(--hub-ease);
}
body.hub :is(.hub-button,.hub-icon-button,.hub-inspect,.hub-pagination button,.hub-account .btn):active,
body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card,.ob-actions .btn):active { scale: .97; }
body.hub .hub-target:active .hub-target-label, body.hub .hub-upload:active .hub-upload-cta { scale: .97; }
@supports (backdrop-filter: blur(12px)) {
  body.hub .hub-bar { background: rgba(244,248,243,.9); backdrop-filter: blur(12px); }
}
@supports not (grid-template-rows: subgrid) {
  body.hub .hub-offer { grid-row: auto; grid-template-rows: auto auto auto 1fr auto; }
}
@media (hover: hover) and (pointer: fine) {
  body.hub .hub-tabs .tab:not(.on):hover { background: rgba(16,58,32,.08); }
  body.hub .hub-target:hover .hub-target-label { background: var(--hub-forest); color: var(--hub-paper); }
  body.hub .hub-upload:hover { border-color: var(--hub-green); }
  body.hub .hub-offer:hover { transform: translateY(-2px); border-color: rgba(198,255,211,.32); box-shadow: 0 14px 32px -8px rgba(0,0,0,.65); }
  body.hub .hub-offer[data-tier="S"]:hover { border-top-color: var(--hub-green); box-shadow: 0 14px 32px -8px rgba(0,0,0,.65), 0 0 16px -4px rgba(131,247,154,.22); }
  body.hub .hub-offer:hover .hub-shot img { scale: 1.028; }
  body.hub .hub-inspect:hover { background: var(--hub-bg); }
  body.hub .hub-icon-button:not([aria-pressed=true]):hover { background: rgba(5,8,5,.05); border-color: var(--hub-forest); }
  body.hub .hub-button:hover, body.hub .hub-pagination button:hover { border-color: var(--hub-green); }
  body.hub .hub-footer :is(button,a):hover { text-decoration: underline; }
  body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card):hover { background: var(--hub-raised); border-color: rgba(244,248,243,.4); }
  body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card).is-selected:hover { border-color: var(--hub-green); }
}
@media (max-width: 1180px) {
  body.hub .hub-account { flex-basis: 100%; justify-content: flex-end; padding-top: 10px; border-top: 1px solid rgba(16,58,32,.12); }
  body.hub .hub-hero h1 { font-size: 48px; }
}
@media (max-width: 1007px) { body.hub .hub-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 800px) {
  body.hub .hub-bar { gap: 10px; padding: 12px; }
  body.hub .hub-tabs .tab { padding-inline: 10px; }
  body.hub .hub-brand-desc { max-width: 210px; }
  body.hub .hub-hero { grid-template-columns: 1.2fr 1fr; gap: 16px; padding-top: 42px; }
  body.hub .hub-hero h1 { font-size: 40px; }
  body.hub .hub-logo-stage::before, body.hub .hub-scan-ring { width: 205px; height: 205px; top: 35px; }
  body.hub .hub-logo-stage::after { width: 250px; height: 250px; top: 13px; }
  body.hub .hub-logo { width: 235px; }
  body.hub .hub-import-grid { gap: 24px; }
  body.hub .hub-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px 0; }
  body.hub .hub-steps > li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 787px) { body.hub .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 610px) {
  body.hub .hub-wrap { width: calc(100% - 36px); }
  body.hub .hub-top { padding-top: 18px; }
  body.hub .hub-bar { flex-wrap: wrap; gap: 12px; padding: 14px; }
  body.hub .hub-brand { width: 100%; }
  body.hub .hub-brand-desc { max-width: none; }
  body.hub .hub-tabs { width: 100%; justify-content: space-between; gap: 0; padding-top: 10px; border-top: 1px solid rgba(16,58,32,.12); }
  body.hub .hub-tabs .tab { flex: 1; padding-inline: 7px; }
  body.hub .hub-account { justify-content: flex-start; padding-top: 8px; flex-wrap: wrap; }
  body.hub .hub-hero { grid-template-columns: 1fr; padding-block: 36px 45px; gap: 8px; }
  body.hub .hub-hero h1 { font-size: 38px; max-width: 470px; }
  body.hub .hub-lead { font-size: 14px; margin-top: 17px; }
  body.hub .hub-link { margin-top: 15px; }
  body.hub .hub-logo-stage { min-height: 240px; padding-top: 10px; }
  body.hub .hub-logo { width: 205px; }
  body.hub .hub-logo-stage::before, body.hub .hub-scan-ring { width: 180px; height: 180px; top: 25px; }
  body.hub .hub-logo-stage::after { width: 218px; height: 218px; top: 6px; }
  body.hub .hub-target { gap: 10px; }
  body.hub .hub-target-note { display: none; }
  body.hub .hub-import { padding-top: 27px; }
  body.hub .hub-entry + .hub-import::before { height: 28px; top: -15px; }
  body.hub .hub-import-grid { grid-template-columns: 1fr; gap: 22px; }
  body.hub .hub-import h2 { font-size: 29px; }
  body.hub .hub-upload { padding: 23px 16px; }
  body.hub .hub-steps { grid-template-columns: 1fr; gap: 0; }
  body.hub .hub-steps > li, body.hub .hub-steps > li:nth-child(4) { display: grid; grid-template-columns: 35px 1fr; gap: 4px 10px; border: 0; border-top: 1px solid var(--hub-line); padding: 15px 0; }
  body.hub .hub-step-number { grid-row: span 3; padding-top: 3px; }
  body.hub .hub-steps strong { margin: 0; }
  body.hub .hub-catalog-head h2 { font-size: 30px; }
  body.hub .hub-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 0; }
  body.hub #catalogoSec .hub-stats .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  body.hub .hub-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  body.hub #onboardingModal .onboarding-modal-card { max-height: 94dvh; border-radius: 16px; }
  body.hub #onboardingModal .ob-header { padding: 14px 18px; }
  body.hub #onboardingModal .ob-header-right { gap: 10px; }
  body.hub #onboardingModal .ob-convergence { padding-right: 8px; }
  body.hub #onboardingModal .ob-body { padding: 22px 18px 18px; }
  body.hub #onboardingModal .ob-title { font-size: 27px; }
  body.hub #onboardingModal .ob-card-choice { padding-inline: 15px; }
  body.hub #onboardingModal .ob-actions { flex-direction: row; gap: 10px; }
  body.hub #onboardingModal .ob-actions .btn { padding-inline: 14px; width: auto; }
  body.hub #onboardingModal.is-required .onboarding-modal-card::after { padding-inline: 18px; }
}
@media (max-width: 547px) {
  body.hub .hub-grid { grid-template-columns: 1fr; }
  body.hub .hub-offer-title { font-size: 22px; }
  body.hub .hub-offer-evidence { grid-template-columns: 76px minmax(0,1fr); gap: 24px; }
  body.hub .hub-score { font-size: 36px; }
  body.hub .hub-offer-actions { padding-inline: 16px; }
  body.hub .hub-tools .toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.hub :is(.hub-top,.hub-panel,.hub-footer,.hub-xray,#onboardingModal) *,
  body.hub :is(.hub-top,.hub-panel,.hub-footer,.hub-xray,#onboardingModal) *::before,
  body.hub :is(.hub-top,.hub-panel,.hub-footer,.hub-xray,#onboardingModal) *::after { transition: none !important; animation: none !important; }
  body.hub :is(.hub-shot img,.hub-button,.hub-icon-button,.hub-inspect,.hub-pagination button,.hub-target-label,.hub-upload-cta,.hub-account .btn),
  body.hub #xray :is(.btn,.xr-icon-btn,.xr-close),
  body.hub #onboardingModal :is(.ob-card-choice,.ob-niche-card,.ob-actions .btn) { scale: 1 !important; }
  body.hub .hub-scan-ring { opacity: 0 !important; }
}
body.hub .hub-share-dialog { width: min(560px, calc(100vw - 32px)); padding: 24px; border: 1px solid rgba(16,58,32,.2); border-radius: 16px; background: #f4f8f3; color: #050805; font: 400 14px/1.6 var(--hub-font); }
/* O reset global zera a margem que centraliza os dialogs nativos. */
body.hub :is(.hub-share-dialog, .hub-review-dialog) { margin: auto; }
body.hub .hub-share-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
body.hub .hub-share-dialog::backdrop { background: rgba(5,8,5,.65); }
body.hub .hub-share-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body.hub .hub-share-dialog h2 { font: 600 24px/1.2 Satoshi, sans-serif; margin:0; }
body.hub .hub-share-dialog input { width:100%; min-width:0; padding:12px; margin:8px 0; border:1px solid rgba(16,58,32,.25); border-radius:6px; background:white; color:#050805; }
body.hub .hub-share-actions { display:flex; flex-wrap:wrap; gap:8px; }
body.hub :is(#view-comece,#view-agentes) { background:var(--hub-paper); color:var(--hub-forest); min-height:70vh; padding-bottom:48px; }
body.hub :is(#view-comece,#view-agentes) :is(.sec-title,.intro-lead,h2,h3) { font-family:var(--hub-display); }
/* Comece aqui: Manrope, Hanken Grotesk, Space Mono e Unbounded não são carregadas pelo Hub e caíam em
   fontes de sistema. A aba usa as famílias do Painel: Satoshi nos títulos, Hub Inter no texto e nos
   rótulos, Hub Unbounded nos números e a mono do sistema só em comando e nome de arquivo. */
body.hub #view-comece {
  --font-display: var(--hub-display);
  --font-body: var(--hub-font);
  --font-label: var(--hub-font);
  --font-mono: var(--hub-font);
  --font-brand: var(--hub-number);
  --hub-code: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  font-family: var(--hub-font);
}
body.hub #view-comece :is(.eyebrow,.gphase-lbl,.startcard-lbl,.oslbl,.gstep-tag,.spec-foot span) { font-family: var(--hub-font); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.hub #view-comece :is(.spec-idx,.gstep-num) { font-family: var(--hub-number); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.hub #view-comece .gstep-title { font-family: var(--hub-display); font-weight: 700; letter-spacing: -.02em; }
body.hub #view-comece .spec-foot b { font-family: var(--hub-display); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
body.hub #view-comece .tseg { font-family: var(--hub-font); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
body.hub #view-comece .tseg b { font-family: var(--hub-number); letter-spacing: -.03em; }
body.hub #view-comece :is(.code,.spec-file) { font-family: var(--hub-code); }
body.hub #view-comece .spec-file i { font-family: var(--hub-font); font-style: normal; font-weight: 700; letter-spacing: .04em; }
body.hub #view-comece :is(.agent-act,.startcard-cta) { font-family: var(--hub-font); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
/* Agentes usa o mesmo remapeamento local de Comece aqui: Satoshi nos títulos,
   Hub Inter em texto e rótulos, Hub Unbounded nos números e mono só em arquivos. */
body.hub #view-agentes {
  --font-display: var(--hub-display);
  --font-body: var(--hub-font);
  --font-label: var(--hub-font);
  --font-mono: var(--hub-font);
  --font-brand: var(--hub-number);
  --hub-code: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  font-family: var(--hub-font);
}
body.hub #view-agentes :is(.eyebrow,.agent-tag,.agent-specs i,.flowstep-owner) {
  font-family: var(--hub-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.hub #view-agentes :is(.sec-title,.agent-name,.flowstep-title) {
  font-family: var(--hub-display);
  font-weight: 700;
  letter-spacing: -.02em;
}
body.hub #view-agentes :is(.sec-desc,.agent-live,.agent-desc,.agent-specs > span,.agent-spec-value,.flowstep-desc) {
  font-family: var(--hub-font);
}
body.hub #view-agentes :is(.agent-live,.agent-specs > span,.agent-spec-value) { font-variant-numeric: tabular-nums; }
body.hub #view-agentes .agent-spec-value { display: inline; padding: 0; border: 0; color: inherit; font-size: inherit; line-height: inherit; }
body.hub #view-agentes .flowstep-node span {
  font-family: var(--hub-number);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
body.hub #view-agentes .agent-specs code { font-family: var(--hub-code); font-size: .95em; }
body.hub #view-agentes .agent-act { font-family: var(--hub-font); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.hub .hub-account .cloud-workspace { max-width:160px; width:auto; min-height:44px; padding:8px; color:#103a20; background:#f4f8f3; border:1px solid rgba(16,58,32,.2); border-radius:7px; font:400 12px/1.4 var(--hub-font); }
/* Camadas: o login abre de dentro do Raio-X (favoritar, compartilhar, criar projeto, descartar
   sem conta). Com z-index 100 ele ficava atrás do scrim (190) e do drawer (200): o clique parecia
   não fazer nada. Acima do modal de agente (210) e abaixo do toast (300). */
body.hub .cloud-modal { z-index: 250; }

/* Toast: nowrap + left 50% fazia mensagens longas saírem da tela no celular. */
@media (max-width: 520px) {
  body.hub #toast { width: max-content; max-width: calc(100vw - 32px); white-space: normal; text-align: center; line-height: 1.5; border-radius: 16px; }
}

/* Modal de compartilhar: superfície clara. O .hub-button do Painel é escuro, e só trocar a cor
   do texto deixava floresta sobre quase preto. Aqui os botões usam papel e floresta, com
   "Copiar link" como ação principal. */
body.hub .hub-share-dialog :is(button, a, input) { font-family: inherit; }
body.hub .hub-share-dialog label { display: block; margin-top: 16px; font-weight: 600; }
body.hub .hub-share-dialog #shareStatus { min-height: 1.6em; margin: 0 0 16px; color: var(--hub-forest); font-weight: 600; }
body.hub .hub-share-dialog .hub-button { background: var(--hub-paper); color: var(--hub-forest); border-color: rgba(16,58,32,.35); }
body.hub .hub-share-dialog #shareCopy { background: var(--hub-forest); border-color: var(--hub-forest); color: var(--hub-paper); }
body.hub .hub-share-dialog :is([data-share-close], #accountDialogClose) { min-width: 44px; padding: 0; font-size: 22px; line-height: 1; }
body.hub .hub-share-dialog :is(button, a, input):focus-visible { outline: 2px solid var(--hub-forest); outline-offset: 3px; }
@media (hover: hover) { body.hub .hub-share-dialog .hub-button:hover { border-color: var(--hub-forest); } }
body.hub .hub-icon-button[aria-pressed="true"] svg,body.hub #xrSave[aria-pressed="true"] svg { fill:currentColor; }
body.hub .hub-tab-indicator { transition: transform 240ms cubic-bezier(.22,.61,.36,1); }
@media(prefers-reduced-motion:reduce){body.hub .hub-tab-indicator {transition:none;}}

/* ── Refinamento de front-end · Raio-X sequencial, cópia, tiers e rail ── */

/* O body fixo preserva o offset anterior sem recortar o conteúdo deslocado. */
body.hub.hub-scroll-lock { height: auto !important; }

/* Visibilidade imediata ao abrir permite focar o formulário no mesmo evento.
   Ao fechar, o conteúdo já está inert e a superfície termina seu fade. */
body.hub #projectModal { transition: opacity .32s var(--hub-ease), visibility 0s .32s; }
body.hub #projectModal.on { transition-delay: 0s; }

/* Cópia confirmada no próprio botão. Nas superfícies claras o texto usa a floresta
   sobre um véu esmeralda; o Raio-X escuro tem a própria variante na camada do drawer. */
body.hub :is(.btn, .hub-button).is-copied {
  border-color: var(--hub-forest) !important;
  color: var(--hub-forest) !important;
  background: rgba(131, 247, 154, .35) !important;
  opacity: 1 !important;
  cursor: default !important;
  transition: background-color .2s var(--hub-ease), border-color .2s var(--hub-ease), color .2s var(--hub-ease);
}

/* Barra de acento por tier. Os cards são claros, então B e C usam neutros escuros. */
body.hub .hub-offer {
  position: relative;
  border-top: 2px solid var(--hub-hair);
  transition: transform .18s var(--hub-ease), border-color .18s var(--hub-ease), box-shadow .18s var(--hub-ease);
}
body.hub .hub-offer[data-tier="S"] { border-top-color: var(--hub-green); }
body.hub .hub-offer[data-tier="A"] { border-top-color: #f2a900; }
body.hub .hub-offer[data-tier="B"] { border-top-color: var(--hub-muted); }
body.hub .hub-offer[data-tier="C"] { border-top-color: var(--hub-hair); }
body.hub .hub-offer[data-tier="S"] .hub-tier-letter { background: var(--hub-green); color: var(--hub-bg); }
body.hub .hub-offer[data-tier="A"] .hub-tier-letter { background: #f2a900; color: var(--hub-bg); }


@media (prefers-reduced-motion: reduce) {
  body.hub .hub-offer:hover { transform: none; }
}

/* ── Raio-X v2 (15/10/2026): etapas, verde da marca e botões no padrão da LP ──
   Etapas 01 Leitura · 02 Página · 03 Ângulo no corpo e 04 Remodelar no rodapé.
   Títulos com a dualidade da LP: base clara, final em verde. Botões: no hover
   (mouse) ou no toque, viram o gradiente verde da LP. */
body.hub #xray.hub-xray::before { position: absolute; inset: 0 0 auto 0; z-index: 3; height: 2px; content: ''; background: linear-gradient(90deg, var(--hub-green), rgba(131,247,154,.18) 70%, transparent); pointer-events: none; }
body.hub #xray .xr-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); flex: none; gap: 4px; padding: 0 24px; background: var(--xr-sf0); border-bottom: 1px solid var(--xr-line); }
body.hub #xray .xr-step { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--xr-muted); font: 600 12px/1.2 var(--hub-font); letter-spacing: .06em; text-align: left; text-transform: uppercase; transition: color .2s var(--hub-ease), border-color .2s var(--hub-ease); }
body.hub #xray .xr-step b { font: 700 11px/1 var(--hub-number); font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .85; }
body.hub #xray .xr-step.is-done { color: var(--hub-green-soft); border-bottom-color: rgba(131,247,154,.28); }
body.hub #xray .xr-step[aria-current=step] { color: var(--hub-green); border-bottom-color: var(--hub-green); }
/* Cada etapa ocupa a largura do drawer; só o texto recebe recuo lateral. */
body.hub #xray .xr-stage { position: relative; min-width: 0; padding: 32px 24px 48px; scroll-margin-top: 0; }
body.hub #xray .xr-stage + .xr-stage { padding-top: 48px; border-top: 1px solid var(--xr-line); }
body.hub #xray .xr-stage-head { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; }
body.hub #xray .xr-stage[data-stage="1"] > .xr-summary + * { margin-top: 36px; }
body.hub #xray .xr-stage-n { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(131,247,154,.36); border-radius: 9px; background: rgba(131,247,154,.08); color: var(--hub-green); font: 700 12px/1 var(--hub-number); font-variant-numeric: tabular-nums; transition: background-color .25s var(--hub-ease), color .25s var(--hub-ease), box-shadow .25s var(--hub-ease); }
body.hub #xray .xr-stage.is-current .xr-stage-n { background: var(--hub-green); color: var(--hub-bg); box-shadow: 0 0 0 4px rgba(131,247,154,.12), 0 0 24px rgba(131,247,154,.28); }
body.hub #xray .xr-stage-title { margin: 0; color: var(--xr-ink); font: 700 20px/1.2 var(--hub-display); letter-spacing: -.025em; text-wrap: balance; }
body.hub #xray .xr-stage-title em { font-style: normal; color: var(--hub-green); }
/* O título da etapa já nomeia o bloco: os rótulos repetidos ficam só para leitores de tela. */
body.hub #xray .xr-stage[data-stage="1"] .xr-summary > h3.xr-eyebrow,
body.hub #xray .xr-stage[data-stage="3"] .xr-guide-kicker { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.hub #xray .xr-stage[data-stage="1"] .xr-block, body.hub #xray .xr-stage .xr-block:last-child { margin-bottom: 0; }
body.hub #xray .xr-summary[data-tier=S] .hub-score { color: var(--hub-green); text-shadow: 0 0 28px rgba(131,247,154,.35); }
body.hub #xray .xr-meta { gap: 16px; padding-top: 0; border-top: 0; }
body.hub #xray .xr-meta div { padding: 18px 16px; border: 1px solid var(--xr-line); border-radius: 10px; background: rgba(5,8,5,.35); }
body.hub #xray .xr-meta dt::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; content: ''; vertical-align: 1px; background: rgba(244,248,243,.28); }
body.hub #xray .xr-meta div[data-on="1"] { border-color: rgba(131,247,154,.32); background: rgba(16,58,32,.38); }
body.hub #xray .xr-meta div[data-on="1"] dt::before { background: var(--hub-green); box-shadow: 0 0 8px rgba(131,247,154,.8); }
body.hub #xray .xr-meta div[data-on="1"] dd { color: var(--hub-green-soft); }
body.hub #xray .xr-guide { border-color: rgba(131,247,154,.32); background: radial-gradient(120% 140% at 0% 0%, rgba(131,247,154,.1), transparent 60%), rgba(16,58,32,.32); }
body.hub #xray .xr-guide > summary { color: var(--hub-green-soft); }
body.hub #xray .xr-foot { transition: box-shadow .35s var(--hub-ease); }
body.hub #xray .xr-foot.is-cued { box-shadow: inset 0 2px 0 var(--hub-green), 0 -22px 44px -26px rgba(131,247,154,.55); }
body.hub #xray .btn { border-radius: 7px; transition: transform .2s var(--hub-ease), box-shadow .2s var(--hub-ease), background-color .2s, color .2s, border-color .2s, filter .2s; }
@media (hover: hover) and (pointer: fine) {
  body.hub #xray .xr-step:hover { color: var(--xr-ink); }
  body.hub #xray .xr-icon-btn:not(:disabled):hover { border-color: rgba(131,247,154,.5); color: var(--hub-green-soft); }
  body.hub #xray .btn:not(:disabled):hover { border-color: transparent; background: linear-gradient(115deg,#a0ffad,#54db77 55%,#2aa952); color: #061009; transform: translateY(-2px); box-shadow: 0 0 42px #53ef7866; }
}
@media (hover: none) {
  body.hub #xray .btn:not(:disabled):active { border-color: transparent; background: linear-gradient(115deg,#a0ffad,#54db77 55%,#2aa952); color: #061009; transform: translateY(-2px); box-shadow: 0 0 42px #53ef7866; }
}
@media (max-width: 610px) {
  body.hub #xray .xr-steps { padding: 0 12px; }
  body.hub #xray .xr-step { gap: 5px; min-height: 42px; font-size: 11px; letter-spacing: .03em; }
  body.hub #xray .xr-stage { padding: 28px 16px 40px; }
  body.hub #xray .xr-stage + .xr-stage { padding-top: 40px; }
  body.hub #xray .xr-stage-title { font-size: 18px; }
  body.hub #xray .xr-meta { grid-template-columns: minmax(0,1fr); }
  body.hub #xray .xr-meta div { padding: 20px; }
  body.hub #xray .xr-facts { grid-template-columns: minmax(0,1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.hub #xray :is(.xr-step,.xr-stage-n,.xr-foot,.btn) { transition: none; }
}
@media (max-width: 360px) {
  body.hub #xray .xr-step { min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 0; }
}

/* Decision surfaces reuse the Hub's evidence rows and restrained controls. */
body.hub .hub-decision-section { min-width: 0; margin: 24px 0; padding: 24px 0; border-block: 1px solid var(--hub-line); color: var(--hub-paper); }
body.hub .hub-decision-section h3 { margin: 0 0 12px; font: 700 23px/1.25 var(--hub-display); letter-spacing: -.02em; }
body.hub .hub-decision-section > p { max-width: 75ch; color: var(--hub-muted); }
body.hub .hub-decision-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
body.hub .hub-decision-heading :is(h2,h3) { margin: 0; }
body.hub .hub-radar-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start; padding: 20px 0; border-top: 1px solid var(--hub-line); }
body.hub .hub-radar-row h4 { margin: 0 0 10px; overflow-wrap: anywhere; font: 600 17px/1.4 var(--hub-display); }
body.hub .hub-radar-row ul { margin: 8px 0; padding-left: 20px; max-width: 75ch; }
body.hub .hub-radar-row li { margin: 5px 0; line-height: 1.6; }
body.hub .hub-radar-row summary { min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--hub-green-soft); }
body.hub .hub-offer-actions { flex-wrap: wrap; }
body.hub .hub-compare-toggle { flex: 1 0 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--hub-hair); border-radius: 7px; color: var(--hub-forest); background: transparent; font: 600 12px/1.4 var(--hub-font); cursor: pointer; }
body.hub .hub-compare-toggle[aria-pressed=true] { background: var(--hub-forest); border-color: var(--hub-forest); color: var(--hub-paper); }
body.hub #tbody .hub-compare-toggle { color: var(--hub-paper); border-color: var(--hub-line); margin-top: 8px; }
body.hub .hub-comparison-selection { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
body.hub .hub-comparison-selection button { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
body.hub .hub-comparison-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--hub-line); border-radius: 8px; scrollbar-color: var(--hub-muted) var(--hub-panel); }
body.hub .hub-comparison-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font: 400 13px/1.6 var(--hub-font); }
body.hub .hub-comparison-table :is(th,td) { vertical-align: top; text-align: left; padding: 16px; overflow-wrap: anywhere; border-bottom: 1px solid var(--hub-line); }
body.hub .hub-comparison-table th:first-child { width: 150px; }
body.hub .hub-comparison-table thead th { background: var(--hub-raised); font-weight: 600; }
body.hub .hub-comparison-table a { color: var(--hub-green-soft); }
body.hub .hub-comparison-table :is(p,ul) { margin: 8px 0; }
body.hub .hub-comparison-table ul { padding-left: 18px; }
body.hub .hub-comparison-table summary { padding: 10px 0; min-height: 44px; cursor: pointer; }
body.hub .hub-comparison-table blockquote { margin: 8px 0; padding-left: 12px; border-left: 1px solid var(--hub-green); }
/* The legacy page styles its generic table headers and cells independently. */
body.hub table.hub-comparison-table :is(th,td) { color: var(--hub-paper); background: var(--hub-panel); font: 400 14px/1.6 var(--hub-font); letter-spacing: 0; text-transform: none; }
body.hub table.hub-comparison-table thead th { color: var(--hub-paper); background: var(--hub-raised); font: 600 15px/1.5 var(--hub-display); }
body.hub table.hub-comparison-table tbody th { color: var(--hub-green-soft); font: 600 12px/1.6 'Hub Outfit',sans-serif; text-transform: uppercase; letter-spacing: .04em; }
body.hub table.hub-comparison-table :is(a,summary) { color: var(--hub-green-soft); font: 400 13px/1.6 var(--hub-font); letter-spacing: 0; text-transform: none; }
body.hub .hub-own-review { padding: 18px 0; border-block: 1px solid var(--line); font: 400 14px/1.65 var(--hub-font); }
body.hub .hub-own-review :is(h3,h4) { margin: 18px 0 8px; font-family: var(--hub-display); }
body.hub .hub-own-review h3:first-child { margin-top: 0; }
body.hub .hub-own-review ul { padding-left: 20px; }
body.hub .ob-product-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; margin: 24px 0; }
body.hub .ob-product-fields label > span { font: 600 12px/1.4 'Hub Outfit',sans-serif; text-transform: uppercase; }
body.hub .ob-product-fields select { width: 100%; min-height: 48px; padding: 12px; background: var(--hub-paper); color: var(--hub-forest); border: 1px solid var(--hub-hair); border-radius: 8px; font: 400 16px/1.5 var(--hub-font); color-scheme: light; }
body.hub #obTopOffers .hub-radar-row { grid-template-columns: minmax(0,1fr); border-color: var(--line); }
body.hub #obTopOffers .hub-radar-row summary { color: inherit; }
body.hub #obTopOffers .hub-button { color: var(--hub-forest); background: var(--hub-paper); border-color: var(--hub-hair); justify-self: start; }
body.hub .hub-review-dialog { box-sizing: border-box; width: min(960px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); color: var(--hub-paper); font: 400 14px/1.65 var(--hub-font); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--hub-muted) var(--hub-panel); }
body.hub .hub-review-dialog::backdrop { background: rgba(5,8,5,.78); }
body.hub .hub-review-dialog * { box-sizing: border-box; }
body.hub .hub-review-dialog :is(h2,h3) { font-family: var(--hub-display); letter-spacing: -.02em; }
body.hub .hub-review-dialog summary { padding: 12px 0; min-height: 44px; cursor: pointer; }
body.hub .hub-review-text { max-width: 100%; padding: 18px; margin: 12px 0 24px; background: var(--hub-raised); border: 1px solid var(--hub-line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.7 var(--hub-font); }
body.hub .hub-review-checks { border: 0; padding: 20px 0; margin: 0; }
body.hub .hub-review-checks legend { font: 600 12px/1.4 'Hub Outfit',sans-serif; text-transform: uppercase; }
body.hub .hub-review-checks label { display: flex; gap: 12px; align-items: start; padding: 12px 0; cursor: pointer; }
body.hub .hub-review-checks input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--hub-green); }
body.hub .hub-review-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--hub-line); }
body.hub #reviewApprove { background: var(--hub-green); border-color: var(--hub-green); color: var(--hub-forest); }
body.hub .hub-review-dialog :is(button,a,input,summary):focus-visible { outline: 2px solid var(--hub-green); outline-offset: 4px; }
body.hub .hub-review-dialog button:disabled { opacity: .55; cursor: not-allowed; }
body.hub #reviewPagePreview { display: block; width: 100%; height: 65dvh; border: 1px solid var(--hub-line); background: white; pointer-events: none; }
body.hub .local-project-notice { max-width: 65ch; font: 400 13px/1.6 var(--hub-font); }
@media (hover:hover) { body.hub .hub-review-dialog .hub-button:not(:disabled):hover { border-color: var(--hub-green); } }
@media (max-width: 610px) {
  body.hub .hub-radar-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body.hub .hub-radar-row .hub-button { justify-self: start; }
  body.hub .hub-review-dialog { padding: 18px; }
  body.hub .hub-review-actions > button { width: 100%; }
  body.hub .hub-review-text { padding: 12px; }
  body.hub .hub-decision-heading { align-items: start; }
}

@media (max-width: 960px) {
  body.hub .hub-scroll-hint { display: block; margin: 0; padding: 12px 16px; color: var(--hub-muted); font: 400 13px/1.5 var(--hub-font); }
}
@media (max-width: 767px), (pointer: coarse) {
  body.hub :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  body.hub .hub-account select,
  body.hub #xray .project-field :is(input,select,textarea),
  body.hub #projectModal .project-field :is(input,select,textarea) { font-size: 16px; }
}
/* Portão do /hub: sem login mostra só o acesso; conta sem compra vê só o aviso.
   Mesma linguagem da LP: fundo #050805, verde #83f79a, Satoshi nos títulos. */
body.hub[data-hub-gate] { background: #050805; }
body.hub[data-hub-gate] :is(.hub-top, main, .hub-footer, .skip-link) { display: none !important; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) {
  --gate-text: #f4f8f3; --gate-soft: #c9d6cd; --gate-muted: #8f9f93; --gate-line: rgba(198, 255, 211, .12); --gate-green: #83f79a;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, #0e391d99, transparent 70%),
    linear-gradient(#d7ffe008 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, #d7ffe008 1px, transparent 1px) 0 0 / 64px 64px,
    #050805;
  color: var(--gate-text);
  font: 400 14px/1.55 var(--hub-font);
}
body.hub .cloud-modal--gate { padding: 40px 16px; overflow-y: auto; place-items: start center; }
body.hub .hub-access-gate { display: grid; place-items: start center; min-height: 100vh; padding: 40px 16px; }
body.hub :is(.cloud-modal--gate .cloud-modal-card, .hub-access-card) {
  width: min(100%, 408px); max-height: none; margin-block: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--gate-text); overflow: visible;
}
body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 28px; color: var(--gate-text); text-decoration: none; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-brand img { width: 40px; height: 40px; object-fit: contain; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-brand span { font: 600 20px/1 var(--hub-display); letter-spacing: -.06em; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-brand b { color: var(--gate-green); font-weight: 600; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-panel {
  padding: 32px; border: 1px solid var(--gate-line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 30, 21, .92), rgba(8, 13, 9, .94) 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px rgba(0, 0, 0, .55), 0 0 80px rgba(53, 221, 91, .06);
}
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-kicker { margin: 0 0 10px; color: var(--gate-green); font: 700 11px/1 var(--hub-font); letter-spacing: .14em; }
body.hub :is(.cloud-modal--gate h2, .hub-access-card h1) { margin: 0; color: var(--gate-text); font: 600 28px/1.15 var(--hub-display); letter-spacing: -.045em; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-copy { margin: 10px 0 24px; color: var(--gate-muted); font: 400 14px/1.55 var(--hub-font); }
body.hub .cloud-modal--gate .cloud-field { gap: 8px; margin: 0 0 16px; color: var(--gate-soft); font: 600 13px/1.3 var(--hub-font); }
body.hub .cloud-modal--gate .cloud-field input {
  min-height: 46px; padding: 11px 14px; border: 1px solid rgba(198, 255, 211, .16); border-radius: 10px; background: #070c08; color: var(--gate-text); font: 400 15px/1.3 var(--hub-font);
  transition: border-color .15s, box-shadow .15s;
}
body.hub .cloud-modal--gate .cloud-field input:hover { border-color: rgba(198, 255, 211, .28); }
body.hub .cloud-modal--gate .cloud-field input:focus-visible { outline: none; border-color: var(--gate-green); box-shadow: 0 0 0 3px rgba(131, 247, 154, .18); }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-error { min-height: 0; margin: 0 0 12px; color: #ff9a8a; font: 400 13px/1.45 var(--hub-font); }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-error:empty { display: none; }
body.hub :is(#authModal.cloud-modal--gate, .hub-access-gate) .cloud-primary {
  min-height: 46px; margin-top: 4px; border: 0; border-radius: 10px; background: linear-gradient(115deg, #a0ffad, #54db77 55%, #2aa952); color: #061009; font: 700 14px/1 var(--hub-font);
  box-shadow: 0 0 28px rgba(83, 239, 120, .22); transition: box-shadow .2s, transform .2s;
}
body.hub :is(#authModal.cloud-modal--gate, .hub-access-gate) .cloud-primary:hover { box-shadow: 0 0 40px rgba(83, 239, 120, .4); transform: translateY(-1px); }
body.hub :is(#authModal.cloud-modal--gate, .hub-access-gate) .cloud-primary:disabled { opacity: .6; transform: none; cursor: wait; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-local {
  display: grid; place-items: center; min-height: 44px; margin-top: 10px; border: 1px solid rgba(198, 255, 211, .16); border-radius: 10px; background: transparent; color: var(--gate-text); font: 600 14px/1 var(--hub-font); text-align: center; text-decoration: none;
}
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-local:hover { border-color: rgba(131, 247, 154, .45); background: rgba(131, 247, 154, .05); }
body.hub .cloud-modal--gate .cloud-links { justify-content: center; margin-top: 14px; }
body.hub .cloud-modal--gate .cloud-links button { min-height: 36px; color: var(--gate-soft); font: 600 13px/1 var(--hub-font); }
body.hub .cloud-modal--gate .cloud-links button:hover { color: var(--gate-green); }
body.hub .cloud-modal--gate .cloud-links + .cloud-copy { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--gate-line); color: var(--gate-muted); font-size: 12px; text-align: center; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) .cloud-copy a { color: var(--gate-soft); text-decoration: underline; text-underline-offset: 3px; }
body.hub :is(.cloud-modal--gate, .hub-access-gate) :is(button, a, input):focus-visible { outline: 2px solid var(--gate-green); outline-offset: 3px; }
body.hub .cloud-gate-links { margin-top: 22px; text-align: center; color: var(--gate-muted); font: 400 13px/1.55 var(--hub-font); }
body.hub .cloud-gate-links p { margin: 0 0 6px; }
body.hub .cloud-gate-links a { color: var(--gate-green); font-weight: 600; text-decoration: none; }
body.hub .cloud-gate-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.hub .hub-access-email { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--gate-line); border-radius: 10px; background: #070c08; color: var(--gate-muted); font-size: 13px; }
body.hub .hub-access-email b { color: var(--gate-text); font-weight: 600; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 767px) {
  body.hub :is(.cloud-modal--gate, .hub-access-gate) { padding: 28px 16px; }
  body.hub :is(.cloud-modal--gate, .hub-access-gate) .gate-panel { padding: 26px 20px; }
  body.hub :is(.cloud-modal--gate h2, .hub-access-card h1) { font-size: 25px; }
}
/* Login em tela dividida no desktop: formulário à esquerda, o painel real à direita. */
body.hub .gate-showcase { display: none; }
@media (min-width: 1024px) {
  body.hub .cloud-modal--gate { grid-template-columns: minmax(460px, 1fr) minmax(0, 1.1fr); place-items: stretch; padding: 0; overflow: hidden; }
  body.hub .cloud-modal--gate .cloud-modal-card { align-self: center; justify-self: center; max-height: 100vh; overflow-y: auto; padding: 40px 0; }
  body.hub .cloud-modal--gate .gate-showcase[hidden] { display: none !important; }
  body.hub .cloud-modal--gate .gate-showcase {
    position: relative; display: flex; flex-direction: column; justify-content: center; gap: 36px; min-width: 0; padding: 56px 0 56px 56px; overflow: hidden;
    border-left: 1px solid var(--gate-line);
    background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(14, 57, 29, .55), transparent 70%), #070c08;
  }
  body.hub .gate-showcase-copy { max-width: 470px; padding-right: 56px; }
  body.hub .gate-showcase-kicker { margin: 0 0 12px; color: var(--gate-green); font: 700 11px/1 var(--hub-font); letter-spacing: .14em; text-transform: uppercase; }
  body.hub .gate-showcase-title { margin: 0; color: var(--gate-text); font: 600 clamp(28px, 2.6vw, 38px)/1.12 var(--hub-display); letter-spacing: -.05em; }
  body.hub .gate-showcase-text { margin: 14px 0 0; color: var(--gate-muted); font: 400 15px/1.6 var(--hub-font); }
  body.hub .gate-showcase-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
  body.hub .gate-showcase-list li { display: flex; align-items: center; gap: 10px; color: var(--gate-soft); font: 500 14px/1.4 var(--hub-font); }
  body.hub .gate-showcase-list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--gate-green); box-shadow: 0 0 10px rgba(131, 247, 154, .7); }
  body.hub .gate-showcase-shot { position: relative; width: 118%; border: 1px solid rgba(198, 255, 211, .16); border-right: 0; border-radius: 14px 0 0 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(131, 247, 154, .04); }
  body.hub .gate-showcase-shot::after { position: absolute; inset: auto 0 0; height: 38%; content: ""; background: linear-gradient(transparent, #070c08); }
  body.hub .gate-showcase-shot img { display: block; width: 100%; height: auto; }
}
