/* ════════════════════════════════════════════════════════════════════════════
   Kit Zheus para o MiraAds — as ESTRUTURAS dos apps do Zheus AI (design/x8-app-shells.css,
   x8-moodboard.css, x8-dr-app.css), com as mesmas medidas, aplicadas às áreas do Mira:
     .zh-rail*    cápsula de navegação (trilho do Zheus AI)
     .zh-head*    cabeçalho da página: caminho "Marca / Área", abas em pílula, ações
     .zh-stage*   palco de abertura de uma área: desenho, título em CAIXA ALTA, frase, ação
     .zh-steps    etapas "1 —— 2 —— 3"
     .zh-fan / .zh-frame / .zh-scene-*   o leque de molduras e as cenas pintadas (os desenhos)
     .zh-metric / .zh-panel / .zh-app-card   peças de painel
   Componentes React em zheus/kit/. Movimento: curvas da casa, entradas desenhadas (nunca só fade).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Cápsula de navegação ─────────────────────────────────────────────────── */
.zh-rail-wrap { position: fixed; top: 0; left: 0; bottom: 0; width: 104px; z-index: 60; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.zh-rail-wrap > * { pointer-events: auto; }
.zh-rail-brand { display: grid; place-items: center; width: 63px; height: 56px; margin-top: 10px; border-radius: 18px; transition: background .3s var(--ease-ui); }
.zh-rail-brand:hover { background: #ffffff08; }
.zh-rail-brand img { width: 50px; height: 40px; object-fit: contain; filter: grayscale(1) brightness(1.55) contrast(1.05); }
.zh-rail { position: relative; isolation: isolate; margin: auto 0; display: flex; flex-direction: column; gap: 7px; width: 63px; padding: 9px; border-radius: 40px; border: 1px solid #ffffff1f; background: #0b0c0e8c; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 1px 0 #ffffff14, inset 0 -1px 0 #ffffff08, 0 24px 60px -24px #000; animation: zh-rail-in 1.2s var(--ease-expo) both; }
@keyframes zh-rail-in { from { opacity: 0; transform: translateX(-18px); filter: blur(8px); } }
.zh-rail-glow { border-radius: inherit; }
.zh-rail-link { position: relative; z-index: 1; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: #8b9399; transition: color .3s var(--ease-ui), background-color .3s var(--ease-ui), box-shadow .3s var(--ease-ui); }
.zh-rail-link:hover { color: #eeeef0; }
.zh-rail-link[aria-current="page"] { background: linear-gradient(180deg, #f6f8fa, #c3ccd3); color: #0b0c0e; box-shadow: inset 0 1px 0 #fff, 0 10px 22px -10px #000; }
.zh-rail-link svg, .zh-rail-foot svg { stroke-width: 1.5; }
.zh-rail-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 14px; }
.zh-rail-foot > div:first-child { padding: 0 !important; }
.zh-rail-foot .integration-trigger-btn { width: 40px !important; height: 40px !important; border-radius: 50% !important; border: 1px solid #ffffff14 !important; background: #0b0c0e8c !important; color: #8b9399 !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.zh-rail-foot .integration-trigger-btn:hover { color: #eeeef0 !important; border-color: #ffffff30 !important; }
.zh-rail-account { position: relative; display: grid; place-items: center; width: 54px; height: 54px; }
.zh-rail-account > div { border-top: 0 !important; padding: 0 !important; }
.zh-rail-account .user-trigger-btn { padding: 5px !important; border-radius: 50% !important; border: 0 !important; background: transparent !important; }
.zh-rail-ring { position: absolute; inset: 0; width: 54px; height: 54px; pointer-events: none; }
.zh-rail-ring-track { fill: none; stroke: #ffffff14; stroke-width: 1.5; }
.zh-rail-ring-fill { fill: none; stroke: #c0d3de; stroke-width: 1.5; stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease-casa); }
.zh-rail-ring[data-state="unlimited"] .zh-rail-ring-fill { stroke: #e2e5e8; opacity: .55; }
.zh-rail-ring[data-state="warn"] .zh-rail-ring-fill { stroke: #e6cb94; }
.zh-rail-ring[data-state="full"] .zh-rail-ring-fill { stroke: #e9b1a8; }
.zh-tip { z-index: 99999; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--x8-float-border); background: var(--x8-float-bg); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 18px 55px #000b; color: #eeeef0; font-size: 12px; animation: zh-tip-in .35s var(--ease-expo) both; }
@keyframes zh-tip-in { from { opacity: 0; transform: translateX(-6px); filter: blur(4px); } }
@media (max-height: 640px) { .zh-rail { gap: 3px; padding: 7px; } .zh-rail-link { height: 38px; } .zh-rail-brand { height: 44px; margin-top: 4px; } }

/* ── Cabeçalho da página ─────────────────────────────────────────────────── */
.zh-head { position: relative; z-index: 5; flex: none; display: grid; gap: 14px; padding: 18px 28px 12px 4px; }
.zh-head-row { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.zh-crumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: #7d858c; font-size: 13px; white-space: nowrap; }
.zh-crumb a { color: inherit; text-decoration: none; transition: color .2s; }
.zh-crumb a:hover { color: #eeeef0; }
.zh-crumb i { font-style: normal; color: #4b5257; }
.zh-crumb strong { color: #eeeef0; font-weight: 400; }
.zh-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.zh-head-right > div:has(> div > .integration-trigger-btn), .zh-conn > div { padding: 0 !important; }
.zh-conn .integration-trigger-btn { height: 36px !important; max-width: 230px; padding: 0 12px 0 13px !important; border-radius: 999px !important; border: 1px solid #ffffff1c !important; background: #ffffff03 !important; color: #bfc7ce !important; font-size: 12.5px !important; font-weight: 400 !important; }
.zh-conn .integration-trigger-btn:hover { background: #ffffff08 !important; border-color: #ffffff3a !important; color: #eeeef0 !important; }
.zh-new { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 13px; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.zh-new svg { width: 14px; height: 14px; }
.zh-head-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.zh-head-text { min-width: 0; }
.zh-eyebrow { display: block; font-family: var(--x8-label-font); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--z-ice); margin-bottom: 9px; }
.zh-head-text h1 { margin: 0; color: #eeeef0; font-size: 28px; font-weight: 400; line-height: 1.12; letter-spacing: -.04em; }
.zh-head-text p { max-width: 620px; margin: 8px 0 0; color: var(--x8-muted); font-size: 13.5px; line-height: 1.6; }
.zh-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* abas em pílula (x8-st-tabs) */
.zh-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.zh-tabs > :is(a, button) { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 30px; background: transparent; color: #92979c; font-size: 13px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.zh-tabs > :is(a, button):hover { color: #e6ebef; }
.zh-tabs > :is(a, button):is([aria-current="page"], [aria-pressed="true"]) { border-color: #ffffff21; background: #ffffff0b; color: #fff; }
.zh-tabs small { color: #a9b1b8; font-size: 11px; font-variant-numeric: tabular-nums; }

/* ── Etapas ──────────────────────────────────────────────────────────────── */
.zh-steps { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 0 18px; color: #7d858c; font-size: 13px; }
.zh-steps > span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.zh-steps > span > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ffffff2e; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; transition: background-color .4s var(--ease-ui), color .4s var(--ease-ui); }
.zh-steps > span[data-state="current"] { color: #eeeef0; }
.zh-steps > span[data-state="current"] > b { border-color: #fff; background: #f2f4f6; color: #0b0c0e; }
.zh-steps > span[data-state="done"] > b { border-color: #ffffff59; color: #eeeef0; }
.zh-steps > i { width: 44px; height: 1px; background: #ffffff1f; }

/* ── Palco ───────────────────────────────────────────────────────────────── */
.zh-stage { position: relative; flex: 1; min-height: min(64vh, 620px); display: grid; place-items: center; align-content: center; gap: 0; padding: 12px 28px 40px 4px; overflow: hidden auto; text-align: center; }
/* cartão do app (E1/E3): desenho, nome em caixa alta, frase, ação larga, dica */
.zh-stage-card { width: min(452px, 100%); padding: 12px 12px 20px; border-radius: var(--x8-radius-card); border: 1px solid #ffffff14; background: #ffffff07; box-shadow: inset 0 1px 0 #ffffff0d, 0 30px 70px -40px #000; animation: zh-card-in 1s var(--ease-expo) both; }
@keyframes zh-card-in { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(10px); } }
.zh-stage-media { position: relative; height: clamp(190px, 30vh, 268px); overflow: hidden; border-radius: calc(var(--x8-radius-card) - 12px); background: #0b0d10; isolation: isolate; }
.zh-stage-card h2, .zh-stage-open h2 { margin: 20px 0 9px; color: #f2f4f6; font-weight: 500; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.zh-stage-card h2 { font-size: clamp(24px, 2.4vw, 30px); }
.zh-stage-card p { max-width: 340px; margin: 0 auto 18px; color: var(--x8-muted); font-size: 13.5px; line-height: 1.55; }
.zh-stage-card > small, .zh-stage-open > small { display: block; margin-top: 11px; color: #6f777e; font-size: 11px; }
/* ação larga do cartão (x8-st-upload) */
.zh-solid { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px; border: 0; border-radius: 13px; background: linear-gradient(180deg, #ffffff, #dfe5ea); color: #14181c !important; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: 0 8px 26px -10px #000, inset 0 1px 0 #fff; transition: transform .3s var(--ease-ui), box-shadow .3s var(--ease-ui); }
.zh-solid:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px -12px #000, inset 0 1px 0 #fff; }
.zh-solid:disabled { opacity: .55; cursor: not-allowed; }
.zh-solid svg { width: 17px; height: 17px; color: #14181c !important; }
/* abertura de coleção (E6): leque em cima, título enorme, frase, pílula de metal */
.zh-stage-open { width: min(880px, 100%); display: grid; justify-items: center; }
.zh-stage-open h2 { margin: 26px 0 12px; font-size: clamp(34px, 4.6vw, 56px); line-height: .98; }
.zh-stage-open p { max-width: 520px; margin: 0 0 24px; color: var(--x8-muted); font-size: 15px; line-height: 1.55; }
.zh-stage-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.zh-stage-below { width: 100%; margin-top: 30px; text-align: left; }
.zh-cta { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.zh-cta svg { width: 16px; height: 16px; }

/* entrada desenhada de texto e blocos: sai do desfoque em expo, com atraso em cascata (--i) */
.zh-rise { animation: zh-rise 1.1s var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 90ms + var(--d, 240ms)); }
@keyframes zh-rise { from { opacity: 0; transform: translateY(14px); filter: blur(10px); } }

/* ── O leque de molduras (x8-moodboard) e as cenas pintadas ─────────────────── */
.zh-fan { position: relative; width: min(560px, 92%); height: clamp(170px, 26vh, 214px); margin: 6px auto 0; perspective: 900px; --px: 0; --py: 0; }
.zh-frame { position: absolute; top: var(--t, 50%); left: var(--l, 50%); width: 31%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid #ffffff2b; background: #0d1114; box-shadow: 0 30px 60px -28px #000, inset 0 1px 0 #ffffff1f; transform: translate(calc(-50% + var(--px) * var(--k, 4px)), calc(-50% + var(--py) * var(--k, 4px))) rotate(var(--r, 0deg)); animation: zh-deal 1.3s var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); isolation: isolate; will-change: transform; }
@keyframes zh-deal { from { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -30%) rotate(0deg) scale(.84); filter: blur(12px); } }
.zh-frame[data-shape="lens"] { width: 33%; aspect-ratio: 1; border-radius: 50%; border-color: #ffffff40; z-index: 3; }
.zh-frame[data-shape="wide"] { aspect-ratio: 5 / 4; width: 36%; }
.zh-frame[data-shape="tall"] { aspect-ratio: 9 / 15; width: 24%; }
.zh-frame > .zh-scene { position: absolute; inset: 0; }
.zh-frame::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: linear-gradient(140deg, #ffffff14, transparent 34%); pointer-events: none; }
/* cenas: pintura em degradê, na paleta do material (azul de fim de tarde + luz quente). Só desenho, nenhuma mídia de terceiros. */
.zh-scene { background-color: #0d1318; }
.zh-scene-dusk { background: radial-gradient(circle at 24% 36%, #d9b48c 0 5%, #d9b48c33 5.5% 13%, transparent 22%), linear-gradient(180deg, #1c2c3a 0%, #2c4558 52%, #0b0f14 52.4%, #121a22 100%); }
.zh-scene-dusk::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(98deg, transparent 20%, #ffffff12 21%, transparent 24%), linear-gradient(180deg, #0b0f14, #161f29); }
.zh-scene-figure { background: radial-gradient(circle at 50% 36%, #06090c 0 12.5%, transparent 13%), radial-gradient(42% 60% at 50% 104%, #06090c 0 99%, transparent 100%), radial-gradient(70% 60% at 28% 22%, #c79a6b66, transparent 60%), linear-gradient(180deg, #243746, #1a2a38 60%, #0e151c); }
.zh-scene-columns { background: repeating-linear-gradient(90deg, transparent 0 21%, #4d87ad 21% 23.2%, transparent 23.2% 26%), linear-gradient(180deg, #7f6a55 0 14%, #1c2f3f 14.5%, #162635 100%); }
.zh-scene-columns::after { content: ""; position: absolute; inset: 14% auto 0 12%; width: 20%; background: linear-gradient(180deg, #c4a17d55, transparent 70%); }
.zh-scene-eclipse { background: radial-gradient(circle at 66% 96%, #05070a 0 39%, #c9a17a 39.4% 40.6%, transparent 41.4%), radial-gradient(circle at 56% 32%, #f3caa0 0, #b98452 13%, #6b4a2f55 30%, transparent 52%), #17120e; }
.zh-scene-tide { background: radial-gradient(120% 60% at 50% 118%, #0a1016 0 60%, transparent 60.5%), radial-gradient(90% 50% at 70% 100%, #2f566e 0 60%, transparent 61%), linear-gradient(180deg, #14212c, #29465a 70%, #3a6079); }
.zh-scene-ember { background: radial-gradient(60% 50% at 30% 70%, #d19a66aa, transparent 62%), radial-gradient(50% 60% at 78% 24%, #36566c, transparent 66%), #10161b; }
.zh-scene-grid { background: linear-gradient(#ffffff0f 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, #ffffff0f 1px, transparent 1px) 0 0 / 18px 100%, radial-gradient(70% 70% at 50% 40%, #213545, #0c1116); }
/* detalhes de anúncio sobre a cena */
.zh-ad-top { position: absolute; z-index: 2; inset: 9% 9% auto; display: flex; align-items: center; gap: 6%; }
.zh-ad-top i { width: 13%; aspect-ratio: 1; border-radius: 50%; background: #ffffffd9; }
.zh-ad-top b { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffffffb3 0 46%, transparent 46% 54%, #ffffff40 54%); }
.zh-ad-cta { position: absolute; z-index: 2; inset: auto 8% 7%; display: flex; align-items: center; justify-content: space-between; height: 15%; padding: 0 8%; border-radius: 999px; background: #0b0c0ecc; border: 1px solid #ffffff2e; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zh-ad-cta::before { content: ""; width: 44%; height: 3px; border-radius: 3px; background: #ffffffcc; }
.zh-ad-cta::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: rotate(45deg); }
.zh-ad-bars { position: absolute; z-index: 2; inset: 6% 8% auto; display: flex; gap: 4%; }
.zh-ad-bars i { flex: 1; height: 2.5px; border-radius: 3px; background: #ffffff4d; }
.zh-ad-bars i:first-child { background: #fff; }
.zh-ad-play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 24%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff59; background: #0b0c0e99; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zh-ad-play::after { content: ""; margin-left: 12%; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.zh-ad-tag { position: absolute; z-index: 2; left: 8%; bottom: 8%; padding: 3px 8px; border-radius: 999px; background: #0b0c0ed9; border: 1px solid #ffffff2e; color: #eef1f3; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* a mira: retícula de traço fino sobre a lente */
.zh-reticle { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; color: #ffffffd9; }
.zh-reticle * { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.zh-reticle .zh-spin { transform-origin: 50% 50%; animation: zh-spin 38s linear infinite; }
.zh-reticle .zh-spin-r { transform-origin: 50% 50%; animation: zh-spin 52s linear infinite reverse; }
@keyframes zh-spin { to { transform: rotate(360deg); } }

/* ── Desenhos de traço (instrumentos): score, fila, equipe, ligação, nomenclatura ── */
.zh-draw { position: absolute; inset: 0; width: 100%; height: 100%; color: #c9d2d9; }
.zh-draw .ln { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.zh-draw .ln-hi { fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.zh-draw .ln-dim { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .2; }
.zh-draw .dot { fill: #fff; }
.zh-draw .plate { fill: #0b0c0ed9; stroke: #ffffff33; stroke-width: 1; vector-effect: non-scaling-stroke; }
.zh-draw text { fill: #dfe5ea; font-family: var(--x8-label-font); font-size: 9px; letter-spacing: .12em; }
.zh-draw .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zh-trace 2.4s var(--ease-casa) .5s forwards; }
@keyframes zh-trace { to { stroke-dashoffset: 0; } }
.zh-draw .pulse { animation: zh-pulse 3.2s var(--ease-gelo) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes zh-pulse { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
.zh-draw .travel { offset-rotate: 0deg; animation: zh-travel 4.6s var(--ease-gelo) infinite; }
@keyframes zh-travel { from { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.zh-media-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, #2b455a66, transparent 70%), radial-gradient(40% 40% at 78% 82%, #b98a5c33, transparent 70%); }
/* fila de execução: faixas com brilho correndo (x8-gc-sheen) */
.zh-lanes { position: absolute; inset: 14% 10%; display: grid; gap: 9%; align-content: center; }
.zh-lane { position: relative; height: 22px; overflow: hidden; border-radius: 999px; border: 1px solid #ffffff1f; background: #ffffff08; }
.zh-lane > i { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, #ffffff14, #ffffff40); transform-origin: left; animation: zh-lane 1.6s var(--ease-casa) both; animation-delay: calc(var(--i, 0) * 140ms + 400ms); }
@keyframes zh-lane { from { transform: scaleX(0); } }
.zh-lane[data-run]::after { content: ""; position: absolute; inset: -40% -30%; background: linear-gradient(105deg, transparent 42%, #ffffff40 50%, transparent 58%); transform: translateX(-60%); animation: zh-sheen 2.6s cubic-bezier(.45, 0, .2, 1) infinite; mix-blend-mode: screen; }
@keyframes zh-sheen { to { transform: translateX(60%); } }
.zh-lane > b { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #dfe5ea; font-family: var(--x8-label-font); font-size: 8.5px; font-weight: 400; letter-spacing: .14em; }
/* peças de nome (nomenclatura) */
.zh-tokens { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; }
.zh-tokens > div { display: flex; gap: 6px; }
.zh-tokens span { padding: 6px 10px; border-radius: 9px; border: 1px solid #ffffff24; background: #0b0c0ecc; color: #dfe5ea; font-family: var(--x8-label-font); font-size: 10px; letter-spacing: .08em; animation: zh-rise 1s var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
.zh-tokens span[data-on] { border-color: #ffffff66; background: #f2f4f6; color: #0b0c0e; }
.zh-tokens p { margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px dashed #ffffff33; color: #9aa2a8; font-family: var(--x8-label-font); font-size: 10px; letter-spacing: .08em; }

/* ── Peças de painel ─────────────────────────────────────────────────────── */
.zh-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--x8-card-gap); }
.zh-metric { position: relative; padding: 16px 18px 15px; border-radius: 18px; border: 1px solid #ffffff14; background: linear-gradient(160deg, #ffffff0b, #ffffff03 58%, #ffffff06); box-shadow: inset 0 1px 0 #ffffff0d; text-align: left; min-width: 0; }
.zh-metric > span { display: block; font-family: var(--x8-label-font); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--x8-dim); }
.zh-metric > b { display: block; margin: 14px 0 8px; color: #eeeef0; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.zh-metric > b small { margin-left: 4px; color: var(--x8-dim); font-size: 18px; letter-spacing: -.02em; }
.zh-metric > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--x8-muted); font-size: 12px; min-height: 20px; }
.zh-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid #ffffff1c; background: #ffffff06; color: #c9d0d5; font-size: 11px; white-space: nowrap; }
.zh-pill[data-tone="ok"] { color: #a9d6bd; border-color: #a9d6bd3d; }
.zh-pill[data-tone="warn"] { color: #e6cb94; border-color: #e6cb943d; }
.zh-pill[data-tone="bad"] { color: #e9b1a8; border-color: #e9b1a83d; }
.zh-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.zh-panel { padding: 16px 18px; border-radius: 18px; border: 1px solid #ffffff14; background: linear-gradient(160deg, #ffffff0b, #ffffff03 58%, #ffffff06); box-shadow: inset 0 1px 0 #ffffff0d; min-width: 0; text-align: left; }
.zh-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.zh-panel-head h3 { margin: 0; color: #eeeef0; font-size: 15px; font-weight: 500; letter-spacing: -.025em; }
.zh-section-label { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; font-family: var(--x8-label-font); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--x8-dim); }
.zh-section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #ffffff14, transparent); }

/* cartão de área (x8-app-card): o desenho ocupa a superfície, rótulo em cima, base escura, título e seta */
.zh-apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 168px; gap: var(--x8-card-gap); }
.zh-app-card { position: relative; grid-column: span 3; overflow: hidden; isolation: isolate; border-radius: var(--x8-radius-card); border: 1px solid #dce6ee26; background: #090b0d; color: #fff; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .3s var(--ease-ui); }
.zh-app-card[data-span="6"] { grid-column: span 6; }
.zh-app-card[data-span="4"] { grid-column: span 4; }
.zh-app-card[data-rows="2"] { grid-row: span 2; }
.zh-app-card:hover { border-color: #d9e4ed75; }
.zh-app-card:focus-visible { outline: 2px solid var(--x8-focus); outline-offset: 3px; }
.zh-app-art { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease-casa); }
.zh-app-card:hover .zh-app-art { transform: scale(1.04); }
.zh-app-card::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 0; background: linear-gradient(to top, #000000e0, #00000080 46%, transparent); pointer-events: none; }
.zh-app-kicker { position: absolute; z-index: 1; top: 14px; left: 16px; font-family: var(--x8-label-font); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #ffffffb3; }
.zh-app-foot { position: absolute; z-index: 1; left: 16px; right: 14px; bottom: 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.zh-app-foot strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.zh-app-foot span { display: block; margin-top: 3px; color: #ffffffa6; font-size: 12px; line-height: 1.4; }
.zh-app-arrow { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ffffff2e; background: #0b0c0e99; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s var(--ease-ui), transform .3s var(--ease-ui); }
.zh-app-card:hover .zh-app-arrow { background: #f2f4f6; color: #0b0c0e; transform: translateX(2px); }
.zh-app-arrow svg { display: block; width: 13px; height: 13px; }
.zh-app-card .zh-fan { position: absolute; inset: 9% 0 auto; margin: 0 auto; width: min(88%, 430px); height: 58%; }
.zh-app-card .zh-frame { border-radius: clamp(9px, 1.4vw, 18px); }
@media (max-width: 1100px) { .zh-apps { grid-template-columns: repeat(6, minmax(0, 1fr)); } .zh-app-card, .zh-app-card[data-span="4"] { grid-column: span 3; } .zh-app-card[data-span="6"] { grid-column: span 6; } }
@media (max-width: 640px) { .zh-apps { grid-template-columns: 1fr; } .zh-app-card, .zh-app-card[data-span] { grid-column: auto; } .zh-head { padding: 14px 16px 10px; } .zh-stage { padding: 8px 16px 32px; } }

/* letras gigantes em contorno ao fundo (a Home do Zheus) */
.zh-ghost { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
.zh-ghost span { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-family: var(--x8-font); font-weight: 500; font-size: clamp(260px, 44vw, 720px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px #ffffff0d; white-space: nowrap; animation: zh-ghost 2.4s var(--ease-casa) both; }
@keyframes zh-ghost { from { opacity: 0; letter-spacing: .04em; filter: blur(8px); } }

/* conteúdo rolável padrão de uma página */
.zh-page { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; position: relative; }
.zh-scroll { flex: 1; min-height: 0; overflow: hidden auto; padding: 4px 28px 48px 4px; }
.zh-wrap { width: min(1180px, 100%); margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .zh-rail, .zh-stage-card, .zh-rise, .zh-frame, .zh-tip, .zh-ghost span, .zh-lane > i, .zh-tokens span { animation: none !important; }
  .zh-reticle .zh-spin, .zh-reticle .zh-spin-r, .zh-lane[data-run]::after, .zh-draw .pulse, .zh-draw .travel { animation: none !important; }
  .zh-draw .trace { animation: none !important; stroke-dashoffset: 0; }
}

/* a caixa de prompt dentro do palco */
.zh-stage-below .empty-input-wrapper, .zh-stage-card .empty-input-wrapper { margin: 0 auto; max-width: 720px; padding: 0; }
.zh-stage-below .prompt-wrap { max-width: 720px !important; }
.zh-stage-card .prompt-wrap { max-width: 100% !important; }

/* busca em pílula no cabeçalho */
.zh-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; width: clamp(160px, 22vw, 280px); padding: 0 13px; border-radius: 999px; border: 1px solid #ffffff1c; background: #ffffff03; color: #7d858c; transition: border-color .3s var(--ease-ui), background-color .3s var(--ease-ui); }
.zh-search:focus-within { border-color: #d7e2ec66; background: #ffffff08; color: #eeeef0; }
.zh-search svg { flex: none; width: 14px; height: 14px; }
.zh-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #eeeef0; font: inherit; font-size: 13px; }
.zh-search input::placeholder { color: #646b71; }
.zh-count { display: inline-flex; align-items: center; height: 36px; padding: 0 4px; color: var(--x8-dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zh-count b { margin-right: 5px; color: #eeeef0; font-weight: 500; }

/* áreas de envio (catálogo): a mesma lâmina de vidro da caixa de prompt */
.creator-container[data-x8-glass] { border-radius: 18px !important; background: #00000026 !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #ffffff29 !important; box-shadow: inset 0 1px 1px #ffffff29, inset 0 -1px 2px #ffffff12, 0 14px 50px -32px #000c !important; }
.creator-container[data-x8-glass][data-focused="true"], .creator-container[data-x8-glass].drag-over { border-color: #d7e2ec77 !important; }
.creator-container[data-x8-glass].no-catalog { opacity: .78; }
.zh-stage-below .creator-input-centered { width: min(720px, 100%); margin: 0 auto; }
