/* PSXFusion™ — institutional branding (presentation only) */

.psx-brand-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(27, 58, 92, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 3px rgba(16, 42, 67, 0.06);
  cursor: default;
}
.psx-brand-badge__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.psx-brand-badge__name {
  font-size: 13px;
  font-weight: 700;
  color: #1b3a5c;
  letter-spacing: -0.01em;
}

.psx-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.psx-module-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  background: #f8fafc;
}
.psx-module-chip--active {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.psx-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.psx-dot--on { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }

.psx-engine-card {
  background: #fff;
  border: 1px solid #e8f0f8;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.04);
}
.psx-engine-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.psx-engine-card__head h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1b3a5c;
  margin: 0;
}
.psx-engine-card__version {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
}
.psx-engine-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.psx-engine-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.psx-engine-list li:last-child { border-bottom: none; }
.psx-engine-list__name { color: #475569; }
.psx-engine-list__state { color: #1b3a5c; font-weight: 600; font-size: 11px; }
.psx-engine-card__foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}
.psx-engine-card__foot strong { color: #1b3a5c; font-size: 11px; }

.psx-topbar-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.psx-topbar-status__item {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.psx-topbar-status__brand { color: #1b3a5c; }

.psx-pred-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e8f0f8;
  background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
  margin-bottom: 16px;
}
.psx-pred-banner__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin: 0; }
.psx-pred-banner__brand { font-size: 14px; font-weight: 700; color: #1b3a5c; margin: 2px 0 0; }
.psx-pred-banner__modules-label { font-size: 10px; font-weight: 600; color: #64748b; margin: 0 0 6px; }

.psx-analysis-strip {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e8f0f8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(16, 42, 67, 0.04);
}
.psx-analysis-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.psx-analysis-strip__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.psx-analysis-strip__brand {
  font-size: 10px;
  font-weight: 700;
  color: #1b3a5c;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}
.psx-pipeline-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}
.psx-pipeline-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
}
.psx-pipeline-node em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #1b3a5c;
  letter-spacing: 0.04em;
}
.psx-pipeline-node small {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 1px;
}
.psx-pipeline-connector {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, #cbd5e1, #1b3a5c);
  margin: 0 2px;
  flex-shrink: 0;
}
.psx-pred-banner--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  margin: 0;
}
.psx-pred-banner--inline strong { font-size: 12px; color: #1b3a5c; }
.psx-pred-banner__sep { color: #cbd5e1; }
.psx-module-chips--inline { gap: 4px; }

/* Dashboard creative background */
.dashboard-main {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(42, 82, 152, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.dashboard-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 28 L20 22 L40 26 L60 14 L80 18 L100 8 L120 12' fill='none' stroke='%231B3A5C' stroke-width='1' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 120px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 85%);
}
.dashboard-grid-tight {
  gap: 16px !important;
  grid-template-columns: 1.35fr 1fr 0.9fr !important;
  margin-bottom: 16px !important;
}
.psx-engine-panel {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.psx-engine-panel .psx-engine-card {
  height: 100%;
}
.psx-engine-panel .psx-engine-list li {
  padding: 5px 0;
  font-size: 11px;
}
.psx-engine-panel .psx-engine-list__name {
  font-size: 10px;
  max-width: 62%;
}

.psx-analysis-pipeline {
  background: #fff;
  border: 1px solid #e8f0f8;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.psx-analysis-pipeline__title {
  font-size: 13px;
  font-weight: 700;
  color: #1b3a5c;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.psx-analysis-pipeline__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.psx-module-chips--detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; }

.psx-pipe-step { display: flex; flex-direction: column; align-items: center; }
.psx-pipe-node {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8f0f8;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(16, 42, 67, 0.04);
}
.psx-pipe-node strong { display: block; font-size: 12px; color: #1b3a5c; }
.psx-pipe-node span { display: block; font-size: 10px; color: #64748b; margin-top: 2px; }
.psx-pipe-arrow { color: #94a3b8; font-size: 14px; line-height: 1; padding: 4px 0; }

.psx-arch-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.psx-portfolio-engines {
  margin-top: 12px;
}
.psx-portfolio-engines__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.psx-sce-badge .psx-brand-badge {
  background: rgba(255, 255, 255, 0.95);
}

.psx-footer-brand {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}
.psx-footer-brand strong { color: #1b3a5c; font-weight: 700; }
.psx-footer-brand__label { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer.psx-footer-upgrade {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #e8f0f8;
  background: #fafbfc;
}
.psx-landing-powered {
  width: 100%;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.psx-landing-powered .psx-footer-brand {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}
.psx-footer-extra { display: block; font-size: 11px; color: #94a3b8; margin-top: 4px; }

@media (max-width: 1100px) {
  .dashboard-grid-tight {
    grid-template-columns: 1fr 1fr !important;
  }
  .psx-engine-panel {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .psx-topbar-status { display: none; }
  .psx-pred-banner { flex-direction: column; align-items: flex-start; }
  .dashboard-grid-tight { grid-template-columns: 1fr !important; }
}
