*{box-sizing:border-box}
:root{
  --bg:#0f1115;--panel:#151923;--muted:#8892a6;--txt:#e6ecff;--accent:#7aa2f7;
  --ok:#46d27a;--warn:#ffd166;--block:#ef476f;--chip:#1b2130;
}
html,body{height:100%}
body{margin:0;background:linear-gradient(180deg,#0d0f14,#0b0d12);color:var(--txt);font:14px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto}
#app{display:flex;height:100vh;overflow:hidden}
.sidebar{width:240px;background:linear-gradient(180deg,#0b0e13,#0a0c10);border-right:1px solid #1d2230;padding:16px;display:flex;flex-direction:column}
.brand{font-weight:800;letter-spacing:.3px;margin-bottom:12px}
.presenterToggle{margin-bottom:12px}
nav button{width:100%;padding:10px 12px;margin:2px 0;background:transparent;border:1px solid #1e2433;border-radius:8px;color:var(--muted);text-align:left;cursor:pointer;transition:.2s}
nav button.active,nav button:hover{border-color:#2a3146;color:#c7d2ff;background:#121826}
.footnote{margin-top:auto;color:var(--muted);font-size:12px;opacity:.9}
main{flex:1;display:flex;flex-direction:column}
header.controls{border-bottom:1px solid #1d2230;padding:12px 16px;background:#0e121a}
.chips{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.chip{background:var(--chip);border:1px solid #1c2232;border-radius:12px;padding:8px 10px;display:flex;gap:8px;align-items:center}
.chip label{color:var(--muted);font-size:12px}
.primary,.secondary{padding:10px 14px;border-radius:10px;border:1px solid #2a3146;background:#121826;color:#c7d2ff;cursor:pointer}
.primary{background:linear-gradient(180deg,#1a2034,#151a2a)}
.view{display:none;padding:16px;overflow:auto}
.view.active{display:block}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.three{grid-template-columns:1fr 1fr 1fr}
.card{background:var(--panel);border:1px solid #1d2230;border-radius:14px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.card h3{margin:0 0 12px 0}
.readiness{font-size:28px;font-weight:700;margin-bottom:10px}
.missingPills{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.pill{border:1px solid #2a3146;background:#121826;border-radius:999px;padding:6px 10px;color:#cbd5ff}
.heatmap{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:8px}
.heat{height:22px;border-radius:6px;border:1px solid #30384f}
.heat.ok{background:rgba(70,210,122,.18);border-color:rgba(70,210,122,.4)}
.heat.warn{background:rgba(255,209,102,.16);border-color:rgba(255,209,102,.45)}
.heat.fail{background:rgba(239,71,111,.14);border-color:rgba(239,71,111,.5)}
.story{margin:8px 0 12px 18px}
.soWhat{margin-top:8px;padding:10px 12px;border-radius:10px;border:1px dashed #2b3350;color:#d6dcff;background:#101422}
.actions{margin-top:8px}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kpi{background:#101423;border:1px solid #242b41;border-radius:10px;padding:10px}
.kpi .val{font-size:24px;font-weight:800}
.dial{font-size:40px;font-weight:800}
.journal{max-height:340px;overflow:auto;border:1px solid #232a40;border-radius:10px;background:#0f1422;padding:10px}
.journal .line{padding:6px 4px;border-bottom:1px solid #1a2033}
.journal .tag{font-size:11px;border-radius:6px;padding:2px 6px;margin-right:6px}
.tag.info{background:#1b2236;color:#9fb0ff;border:1px solid #293355}
.tag.guard{background:rgba(255,209,102,.2);color:#ffd166;border:1px solid rgba(255,209,102,.5)}
.tag.block{background:rgba(239,71,111,.15);color:#ef476f;border:1px solid rgba(239,71,111,.5)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #27304a;padding:6px 8px;text-align:left}
.legend .badge{display:inline-block;border-radius:6px;padding:2px 8px;margin-right:6px;border:1px solid #2b3350}
.badge.ok{background:rgba(70,210,122,.14);color:#46d27a;border-color:rgba(70,210,122,.5)}
.badge.warn{background:rgba(255,209,102,.14);color:#ffd166;border-color:rgba(255,209,102,.5)}
.badge.block{background:rgba(239,71,111,.14);color:#ef476f;border-color:rgba(239,71,111,.5)}
.logos{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.logo{height:52px;border:1px solid #27304a;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#0f1422;color:#9fb0ff}
.gallery{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.agent{border:1px solid #27304a;border-radius:12px;padding:10px;background:#0f1422}
.agent.disabled{opacity:.45}
.agent .name{font-weight:700}
.agent .status{font-size:12px;color:var(--muted)}
.ascmodel{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.entity{border:1px solid #27304a;border-radius:10px;padding:10px;background:#0f1422}
.entity .title{font-weight:800}
.badge.ok,.badge.warn,.badge.block{font-size:12px}
.timeline{min-height:200px;border:1px dashed #2a3146;border-radius:12px;padding:10px}
.inbox .item{border-bottom:1px solid #27304a;padding:8px 4px}
.code{background:#0e1322;border:1px solid #222b45;border-radius:10px;padding:10px;white-space:pre-wrap}
.muted{color:var(--muted)}
footer{border-top:1px solid #1d2230;padding:8px 16px;color:#8b96b4;background:#0e121a}
.strike{opacity:.7;text-decoration:line-through}

/* New styles for assets catalog and lifecycle */
.catalog{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px;
}
.asset-card{
  background:#0f1422;
  border:1px solid #27304a;
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.asset-card .title{font-weight:700;font-size:16px;color:#d6dcff}
.asset-card .meta{font-size:12px;color:var(--muted)}
.asset-card .kpi-list{font-size:12px;color:#c7d2ff;display:flex;flex-direction:column;gap:2px;margin-top:4px}
.asset-card .actions{margin-top:auto;display:flex;gap:6px}
.asset-card .actions button{flex:1;border-radius:8px;padding:6px 8px;border:1px solid #2a3146;background:#121826;color:#c7d2ff;cursor:pointer;font-size:12px}
.asset-card .actions button:hover{background:#151a2a}
.asset-card .badge-container{display:flex;gap:4px;margin-top:4px}
.asset-card .badge-container .badge{font-size:10px;padding:2px 6px;border-radius:6px;border:1px solid #27304a}

/* Stepper */
.stepper{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}
.step{
  flex:1;
  min-width:120px;
  background:#0f1422;
  border:1px solid #27304a;
  border-radius:12px;
  padding:10px;
  text-align:center;
}
.step.active{border-color:var(--accent);color:var(--accent)}
.step .num{font-weight:800;font-size:16px;margin-bottom:4px}
.step .label{font-size:12px;color:var(--muted)}

/* Wizard */
.wizard{display:flex;flex-direction:column;gap:12px}
.wizard .wizard-step{border:1px solid #27304a;border-radius:12px;padding:12px;background:#0f1422}
.wizard .wizard-step h4{margin:0 0 6px 0;font-size:14px}
.wizard .wizard-step select,.wizard .wizard-step input[type="checkbox"]{background:#121826;border:1px solid #2a3146;border-radius:6px;padding:6px;color:#c7d2ff;width:100%}
.wizard .wizard-step .map-entities{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.wizard .wizard-step .map-entities .entity-map{background:#101423;border:1px solid #242b41;border-radius:8px;padding:6px 8px;font-size:12px;color:#cbd5ff}
.wizard .wizard-step button{margin-top:8px;padding:8px 12px;border-radius:8px;border:1px solid #2a3146;background:#121826;color:#c7d2ff;cursor:pointer}
.wizard .wizard-step button:hover{background:#151a2a}

/* Deployment */
.deployment{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#c7d2ff}
.deployment .plan-item{padding:6px;border:1px solid #27304a;border-radius:8px;background:#0f1422}
.deployment .plan-item strong{color:#d6dcff}
.deployment button{margin-top:8px;padding:10px 14px;border-radius:10px;border:1px solid #2a3146;background:#121826;color:#c7d2ff;cursor:pointer;font-size:14px}
.deployment button:hover{background:#151a2a}
.deployment .status{font-size:12px;color:var(--muted);margin-top:6px}

/* Provenance */
.provenance-container{border:1px dashed #2a3146;border-radius:12px;padding:10px;margin-bottom:12px;background:#0f1422}
.provenance-details{font-size:12px;color:#c7d2ff;display:flex;flex-direction:column;gap:4px}
