/* ---------- como começa (start-scene.js): os cartões no desenho do AssetCard do produto ---------- */
.start3 { position: relative; height: 520vh; background: #fff; color: var(--text); }
.sc-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.sc-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: center; width: 100%; }
.start3 .eyebrow { color: var(--brand); }
.start3 .h2 { color: var(--ink); }
.start3 .lead { color: #475569; }
.sc-steps { position: relative; min-height: 350px; margin-top: 4px; }
.sc-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.sc-step.is-on { opacity: 1; transform: none; }
.sc-when { display: inline-block; margin-bottom: 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.sc-dots { display: flex; gap: 8px; margin-top: 18px; }
.sc-dots span { width: 34px; height: 3px; border-radius: 2px; background: #cbd5e1; transition: background .4s; }
.sc-dots span.is-on { background: var(--brand); }
.sc-stage { position: relative; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; font-family: Inter, 'Nunito Sans', sans-serif; }
.sc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: box-shadow .4s, border-color .4s; }
.sc-card.is-learning { border-color: #ddd6fe; }
.sc-photo { position: relative; height: 128px; background: #f1f5f9; overflow: hidden; }
.sc-photo > img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
.sc-card.is-off .sc-photo > img { filter: grayscale(1) brightness(1.05) contrast(.85); }
.sc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.25), transparent); }
.sc-heart { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #94a3b8; }
.sc-pill { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(15,23,42,.1); font-size: 11px; }
.sc-ring { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sc-ring.slate { background: #94a3b8; } .sc-ring.violet { background: #7c3aed; } .sc-ring.green { background: #22c55e; }
.sc-pill b.slate { color: #64748b; } .sc-pill b.violet { color: #7c3aed; } .sc-pill b.green { color: #16a34a; }
.sc-sensor { position: absolute; right: 10px; bottom: 6px; width: 30px; height: 46px; opacity: 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.sc-sensor img { width: 100%; height: 100%; object-fit: contain; }
.sc-body { display: flex; flex-direction: column; padding: 12px 12px 0; }
.sc-name { font-size: 12.5px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-name span { font-weight: 400; color: hsl(215.4 16.3% 46.9%); }
.sc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.sc-row small { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(100,116,139,.6); }
.sc-dot { width: 12px; height: 12px; border-radius: 50%; background: #e2e8f0; transition: background .4s; }
.sc-dot.green { background: #22c55e; } .sc-dot.violet { background: #8b5cf6; }
.sc-bar { height: 3px; margin-top: 8px; border-radius: 2px; background: #f1f5f9; overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; background: #8b5cf6; }
.sc-card:not(.is-learning) .sc-bar i { background: #22c55e; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 10px -12px 0; padding: 8px 12px; border-top: 1px solid #f1f5f9; }
.sc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.sc-chip.on { background: #f0f9ff; color: #0369a1; } .sc-chip.off { background: #f1f5f9; color: #94a3b8; }
.sc-foot em { font-style: normal; font-size: 11px; color: hsl(215.4 16.3% 46.9%); white-space: nowrap; }
.sc-toast { position: absolute; right: 0; top: -64px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -20px rgba(15,23,42,.35); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.sc-toast.is-on { opacity: 1; transform: none; }
.sc-toast span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,163,74,.1); color: #16a34a; }
.sc-toast b { display: block; color: #0f172a; font-weight: 700; } .sc-toast small { color: #64748b; }
@media (max-width: 900px) {
  .start3 { height: auto; }
  .sc-sticky { position: relative; height: auto; padding: 90px 0; }
  .sc-layout { grid-template-columns: 1fr; gap: 32px; }
  .sc-steps { min-height: 0; display: grid; gap: 22px; }
  .sc-step { position: relative; opacity: 1; transform: none; }
  .sc-dots, .sc-toast { display: none; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .sc-foot em { display: none; } .sc-name span { display: none; } }
.sc-sticky { padding-top: 96px; box-sizing: border-box; }
@media (max-height: 800px) { .sc-photo { height: 104px; } .sc-grid { gap: 10px; } }

/* ---------- a árvore de ativos (o TreeView do produto): cartão com a busca no topo, linhas de 36 px,
   guias verticais em slate-200, chevron fora da pílula, ícone redondo de 20 px ---------- */
.start3 { height: 640vh; }
.sc-stage { min-height: 520px; }
.sc-tree { position: absolute; inset: 0 auto auto 0; width: min(440px, 100%); border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 30px 60px -30px rgba(15,23,42,.25); overflow: hidden; font-family: Inter, 'Nunito Sans', sans-serif; transform-origin: 30% 30%; }
.st-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-bottom: 1px solid #e2e8f0; font-size: 14px; color: #94a3b8; }
.st-search { color: #94a3b8; }
.st-body { padding: 6px 0 8px; }
.st-row { position: relative; display: flex; align-items: center; height: 36px; padding-right: 8px; }
.st-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: #e2e8f0; }
.st-tick { position: absolute; top: 50%; border-top: 1px solid #e2e8f0; }
.st-chev { width: 16px; display: flex; align-items: center; justify-content: center; flex: none; color: #94a3b8; }
.st-pill { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 28px; padding: 0 8px 0 4px; border-radius: 6px; }
.st-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st-ic.blue { background: rgba(59,130,246,.1); color: #2563eb; }
.st-ic.slate { background: rgba(100,116,139,.1); color: #64748b; }
.st-name { font-size: 14px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tag, .st-name .sc-tag { font-weight: 400; color: #94a3b8; }
.sc-name .sc-tag { display: inline; }
@media (max-width: 900px) {
  .start3 { height: auto; }
  .sc-tree { display: none; }
  .sc-stage { min-height: 0; }
  .sc-name span.sc-tag { display: inline; }
}

/* ---------- a janela da tela de Ativos (AssetsLayout + TreeView + DetailAssets), rodada 2 de 10/10 ---------- */
.start3 { height: 760vh; }
.sc-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.5fr); gap: 48px; }
.sc-tree { display: none; }
.sc-stage { min-height: 0; }
.sc-win { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 4px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 40px 80px -40px rgba(15,23,42,.3); font-family: Inter, 'Nunito Sans', sans-serif; opacity: 0; }
.sw-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sb-tabs, .sb-mode { display: inline-flex; align-items: center; height: 34px; padding: 3px; border-radius: 4px; background: #f1f5f9; gap: 2px; }
.sb-tab, .sb-mode span { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; border-radius: 3px; font-size: 12px; font-weight: 500; color: #64748b; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.sb-tab.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px rgba(0,0,0,.05); }
.sw-body { position: relative; height: 470px; }
.sc-treeview { display: flex; gap: 10px; height: 100%; }
.sv-tree { width: 40%; min-width: 0; display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.sv-tree .st-head { height: 42px; gap: 8px; font-size: 13px; }
.sv-tree .st-head span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-tree .st-head em { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 4px; font-style: normal; font-size: 11.5px; font-weight: 500; color: #475569; flex: none; }
.sv-tree .st-body { flex: 1; overflow: hidden; padding: 4px 0; }
.sv-tree .st-row { animation: stIn .35s ease both; }
@keyframes stIn { from { opacity: 0; transform: translateX(-8px); } }
.st-name { font-size: 13px; text-transform: uppercase; }
.st-pill { transition: background .2s; }
.st-pill.is-sel { background: rgba(219,234,254,.7); }
.st-pill.is-sel .st-name { color: #1d4ed8; font-weight: 500; }
.sv-detail { flex: 1; min-width: 0; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.sd-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 24px; }
.sd-empty span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(100,116,139,.1); color: #94a3b8; margin-bottom: 8px; }
.sd-empty b { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.sd-empty small { font-size: 12px; color: #64748b; max-width: 260px; }
.sd { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; height: 100%; box-sizing: border-box; }
.sd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #64748b; }
.sd-crumb { display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; }
.sd-crumb.is-last { color: #0f172a; font-weight: 500; }
.sd-crumb-ic { color: #2563eb; }
.sd-crumb-sep { color: #cbd5e1; }
.sd-top { display: flex; gap: 14px; }
.sd-photo { position: relative; width: 44%; flex: none; min-height: 170px; border-radius: 4px; overflow: hidden; background: #f1f5f9; }
.sd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.05) contrast(.85); }
.sd-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.3), transparent 60%); }
.sd-photo .sc-pill { left: 8px; bottom: 8px; }
.sd-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-name { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.sd-name b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.sd-edit { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 11.5px; font-weight: 500; color: #475569; flex: none; }
.sd-info { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f5f9; font-size: 12px; }
.sd-info:first-of-type { border-top: 0; }
.sd-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sd-badge.slate { background: rgba(100,116,139,.1); color: #475569; } .sd-badge.blue { background: rgba(59,130,246,.1); color: #2563eb; } .sd-badge.indigo { background: rgba(99,102,241,.1); color: #4f46e5; }
.sd-info-l { flex: 1; font-weight: 500; color: #334155; }
.sd-info-v { font-weight: 500; color: #0f172a; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.sd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sd-kpi { border: 1px solid #e2e8f0; border-radius: 4px; padding: 10px 12px; }
.sd-kpi p { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
.sd-kpi p .sky { color: #0ea5e9; } .sd-kpi p .emerald { color: #10b981; } .sd-kpi p .indigo { color: #6366f1; }
.sd-kpi b { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.sd-kpi b small { font-size: 12px; font-weight: 400; color: #64748b; }
.sd-kpi b em { font-size: 13px; font-weight: 400; font-style: italic; color: rgba(100,116,139,.6); }
.sd-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 13px; font-weight: 500; color: #334155; }
.sw-body .sc-grid { position: absolute; inset: 0; align-content: start; }
.sc-cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 24px; height: 24px; margin: -3px 0 0 -3px; opacity: 0; pointer-events: none; transition: opacity .2s; filter: drop-shadow(0 4px 6px rgba(15,23,42,.35)); }
.sc-cursor svg { width: 100%; height: 100%; }
.sc-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,102,255,.25); transform: scale(0); transition: transform .15s; }
.sc-cursor.is-down::after { transform: scale(1); }
.sc-toast { top: -58px; }
@media (max-height: 820px) { .sw-body { height: 420px; } .sc-photo { height: 96px; } .sd-photo { min-height: 140px; } }
@media (max-width: 900px) {
  .start3 { height: auto; }
  .sc-win { opacity: 1 !important; transform: none !important; padding: 10px; }
  .sw-bar { display: none; }
  .sw-body { height: auto; }
  .sw-body .sc-grid { position: static; }
  .sc-treeview { display: none !important; }
  .sc-cursor { display: none; }
}
.sw-body { height: 506px; }
.sw-body .sc-grid { grid-auto-rows: max-content; }
.sw-body .sc-photo { flex: none; }
.sc-steps { min-height: 400px; }
@media (max-height: 820px) { .sw-body { height: 470px; } .sv-tree .st-row { height: 33px; } }
.sc-toast { top: -70px; }

/* ---------- rodada 3 (10/10): o clique no ativo recolhe a árvore e o detalhe ocupa a janela inteira ---------- */
.sv-tree { transition: width .5s cubic-bezier(.22,1,.36,1), opacity .3s, margin .5s cubic-bezier(.22,1,.36,1), border-width .5s; flex: none; }
.sc-treeview.is-full .sv-tree { width: 0; opacity: 0; margin-right: -10px; border-width: 0; }
.st-ic.green { background: rgba(34,197,94,.12); color: #16a34a; }
.sd { gap: 12px; padding: 16px 18px; }
.sd-photo.is-live img { filter: none; }
.sd-photo { width: 300px; min-height: 196px; }
.sd-photo .sc-heart { left: 10px; right: auto; top: 10px; }
.sd-name b { font-size: 17px; }
.sd-badge.cyan { background: rgba(6,182,212,.1); color: #0891b2; }
.sd-id .sd-btn { margin-top: auto; }
.sd-sec { display: flex; flex-direction: column; gap: 6px; }
.sd-h { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #94a3b8; }
.sd-h span { color: #cbd5e1; }
.sd-point { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.sd-pt-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,165,233,.1); color: #0284c7; flex: none; }
.sd-point > div { flex: 1; min-width: 0; }
.sd-point b { display: block; font-size: 13.5px; font-weight: 500; color: #0f172a; }
.sd-point small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; color: #64748b; }
.sd-point small i { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.sd-orange { color: #f97316; }
.sd-ok { padding: 2px 10px; border-radius: 999px; background: #22c55e; color: #fff; font-size: 10.5px; font-weight: 600; flex: none; }
.sd-reads { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.sd-dots { display: flex; gap: 6px; }
.sd-dot { width: 15px; height: 15px; border-radius: 50%; background: #22c55e; }
@media (max-height: 820px) { .sd-photo { min-height: 160px; width: 260px; } .sd { gap: 9px; } }
/* a árvore não pisca: só a linha nova entra deslizando */
.sv-tree .st-row { animation: none; }
.sv-tree .st-row.is-new { animation: stIn .35s ease both; }
/* o detalhe usa a altura toda da janela: a foto e a ficha crescem, as leituras ficam no pé */
.sv-detail { display: flex; }
.sv-detail .sd { flex: 1; height: auto; min-height: 100%; }
.sd-top { flex: 1; min-height: 0; }
.sd-photo { min-height: 0; height: auto; align-self: stretch; }
.sd-id { justify-content: flex-start; }
.sd-reads { margin-top: auto; }
/* a ficha ao lado da foto ocupa a altura dela: as linhas se repartem por igual entre o nome e o botão (sem buraco) */
.sd-id { justify-content: space-between; }
.sd-id .sd-info { flex: 1; min-height: 40px; }
.sd-id .sd-btn { margin-top: 8px; }
/* no celular o nome do cartão quebra em até duas linhas (a tag não fica cortada fora do cartão) */
@media (max-width: 900px) { .sc-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
