/* ==========================================================================
   ASYSTEL COSMOS WIZARD, MACHINE CONSTELLATION MAP & LIVE DASHBOARD
   ========================================================================== */

:root {
  --asy-cosmos-bg: #030914;
  --asy-cosmos-deep: #061224;
  --asy-cyan: #22b8cf;
  --asy-cyan-bright: #38d9f5;
  --asy-blue: #1f6feb;
  --asy-emerald: #10b981;
  --asy-amber: #f59e0b;
  --asy-red: #ef4444;
  --asy-gold: #ffe082;
  --asy-ink: #102a3a;
  --asy-muted: #526878;
}

/* Lock scroll on body when full-screen overlay is active on Home */
body.asy-cosmos-open {
  overflow: hidden !important;
}

/* Dimming transition on the underlying page during the 3-second darkening */
body.asy-cosmos-darkening > header,
body.asy-cosmos-darkening > main,
body.asy-cosmos-darkening > footer {
  transition: filter 3s cubic-bezier(0.22, 1, 0.36, 1), transform 3s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.08) saturate(0.6);
}

/* ==========================================================================
   1. FULL-VIEWPORT OVERLAY & 3-SECOND DARKENING LAYER
   ========================================================================== */
.asy-cosmos-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #e2f1f8;
}

.asy-cosmos-overlay.is-mounted {
  display: block;
}

/* Layer 1: Pitch-dark night veil that fades in over ~3.0 seconds */
.asy-cosmos-dark-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 18%, #0b213f 0%, #050f20 52%, #02060d 100%);
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.asy-cosmos-overlay.is-darkened .asy-cosmos-dark-veil {
  opacity: 1;
}

/* Layer 2: Constellation of lights + Moving glimmers (appears with a gentle fade-in) */
.asy-cosmos-sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2.2s ease-out;
}

.asy-cosmos-overlay.is-sky-visible .asy-cosmos-sky {
  opacity: 1;
}

.asy-constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Moving Glimmers & Soft Nebula Flares */
.asy-glimmers-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.asy-nebula-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.34;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  pointer-events: none;
}

.asy-nebula-flare.flare-cyan {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 184, 207, 0.55) 0%, rgba(34, 184, 207, 0) 70%);
}

.asy-nebula-flare.flare-blue {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.5) 0%, rgba(31, 111, 235, 0) 70%);
}

.asy-nebula-flare.flare-gold {
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(255, 218, 130, 0.38) 0%, rgba(255, 218, 130, 0) 70%);
}

.asy-mobile-glimmer {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--glimmer-size, 9px);
  height: var(--glimmer-size, 9px);
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--glimmer-alpha, 0.85);
  background: #fff9e2;
  box-shadow:
    0 0 8px 2px rgba(255, 249, 226, 0.95),
    0 0 22px 8px rgba(255, 218, 139, 0.52),
    0 0 48px 16px rgba(56, 217, 245, 0.34);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.asy-mobile-glimmer.glimmer-cyan {
  background: #e0fbff;
  box-shadow:
    0 0 8px 2px rgba(224, 251, 255, 0.95),
    0 0 24px 9px rgba(56, 217, 245, 0.65),
    0 0 54px 18px rgba(31, 111, 235, 0.38);
}

/* ==========================================================================
   2. WIZARD STAGE & TOP BAR (APPEARS AFTER CONSTELLATION)
   ========================================================================== */
.asy-cosmos-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 20px clamp(14px, 3vw, 36px) 64px;
  max-width: 1240px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.asy-cosmos-overlay.is-wizard-visible .asy-cosmos-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Top Navigation / Control Bar inside the Cosmos Experience */
.asy-cosmos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 22px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(7, 20, 38, 0.72);
  border: 1px solid rgba(56, 217, 245, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.asy-cosmos-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asy-cosmos-brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--asy-blue), var(--asy-cyan));
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 0 20px rgba(34, 184, 207, 0.45);
}

.asy-cosmos-brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.asy-cosmos-brand-text span {
  display: block;
  font-size: 0.8rem;
  color: #96bfd6;
}

.asy-cosmos-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.asy-cosmos-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid rgba(148, 210, 235, 0.3);
  background: rgba(15, 36, 62, 0.7);
  color: #e6f4fb;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none !important;
}

.asy-cosmos-top-btn:hover {
  background: rgba(34, 184, 207, 0.22);
  border-color: var(--asy-cyan-bright);
  color: #ffffff;
  transform: translateY(-1px);
}

.asy-cosmos-top-btn.btn-close-cosmos {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.asy-cosmos-top-btn.btn-close-cosmos:hover {
  background: rgba(239, 68, 68, 0.32);
  border-color: #f87171;
  color: #ffffff;
}

/* ==========================================================================
   3. STEPPER BAR (5 STEPS: AZIENDA -> DOMANDE -> MACCHINE -> MAPPA -> DASHBOARD)
   ========================================================================== */
.asy-cosmos-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.asy-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 23, 43, 0.74);
  border: 1.5px solid rgba(94, 158, 190, 0.24);
  color: #d6ebf7;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.asy-step-pill:hover {
  border-color: rgba(56, 217, 245, 0.65);
  transform: translateY(-2px);
}

.asy-step-pill.active {
  border-color: var(--asy-cyan-bright);
  background: linear-gradient(135deg, rgba(16, 56, 88, 0.9) 0%, rgba(9, 28, 52, 0.9) 100%);
  box-shadow: 0 0 24px rgba(34, 184, 207, 0.32);
}

.asy-step-pill.done {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(8, 38, 44, 0.78);
}

.asy-step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe8f7;
  font-weight: 850;
  font-size: 0.88rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.asy-step-pill.active .asy-step-num {
  background: linear-gradient(135deg, var(--asy-blue), var(--asy-cyan));
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 217, 245, 0.6);
}

.asy-step-pill.done .asy-step-num {
  background: var(--asy-emerald);
  color: #fff;
}

.asy-step-text {
  min-width: 0;
}

.asy-step-text strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asy-step-text span {
  display: block;
  font-size: 0.74rem;
  color: #8ab4cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. WIZARD PANELS & QUESTIONS (GLASSMORPHIC DARK OVER CONSTELLATION)
   ========================================================================== */
.asy-wizard-step {
  display: none;
  animation: asyStepEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.asy-wizard-step.active {
  display: block;
}

@keyframes asyStepEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.asy-glass-panel {
  background: rgba(7, 20, 38, 0.76);
  border: 1.5px solid rgba(56, 217, 245, 0.26);
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 36px);
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.asy-panel-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(125, 190, 224, 0.18);
}

.asy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--asy-cyan-bright);
  margin: 0 0 8px;
}

.asy-panel-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 850;
  color: #ffffff;
  line-height: 1.2;
}

.asy-panel-header p {
  margin: 0;
  font-size: 0.98rem;
  color: #a9cbe0;
  line-height: 1.55;
}

.asy-question-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed rgba(125, 190, 224, 0.2);
}

.asy-question-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
}

.asy-question-title .q-badge {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(34, 184, 207, 0.2);
  border: 1px solid rgba(56, 217, 245, 0.45);
  color: var(--asy-cyan-bright);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Sector Cards (Step 1A) */
.asy-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.asy-sector-card {
  position: relative;
  border: 1.5px solid rgba(125, 190, 224, 0.24);
  border-radius: 16px;
  padding: 22px 18px;
  background: rgba(11, 30, 55, 0.68);
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.asy-sector-card:hover {
  border-color: rgba(56, 217, 245, 0.7);
  transform: translateY(-4px);
  background: rgba(15, 40, 72, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.asy-sector-card.selected {
  border-color: var(--asy-cyan-bright);
  background: linear-gradient(180deg, rgba(20, 68, 102, 0.88) 0%, rgba(10, 32, 58, 0.92) 100%);
  box-shadow:
    0 0 28px rgba(34, 184, 207, 0.32),
    inset 0 0 18px rgba(56, 217, 245, 0.12);
}

.asy-sector-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(34, 184, 207, 0.16);
  color: var(--asy-cyan-bright);
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.asy-sector-card.selected .asy-sector-icon {
  background: linear-gradient(135deg, var(--asy-blue), var(--asy-cyan));
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 217, 245, 0.55);
}

.asy-sector-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(148, 210, 235, 0.35);
  display: inline-grid;
  place-items: center;
  color: transparent;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.asy-sector-card.selected .asy-sector-check {
  background: var(--asy-emerald);
  border-color: var(--asy-emerald);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.asy-sector-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
}

.asy-sector-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #a7c8de;
  margin: 0 0 14px;
}

.asy-sector-unit-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(34, 184, 207, 0.16);
  border: 1px solid rgba(56, 217, 245, 0.3);
  color: #7ce8f8;
  font-size: 0.74rem;
  font-weight: 750;
}

/* Sub-question Option Cards (3-column grid for Company Size, Integration, Goal) */
.asy-options-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.asy-option-card {
  position: relative;
  border: 1.5px solid rgba(125, 190, 224, 0.22);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(11, 30, 55, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.asy-option-card:hover {
  border-color: rgba(56, 217, 245, 0.6);
  transform: translateY(-2px);
  background: rgba(15, 40, 72, 0.78);
}

.asy-option-card.selected {
  border-color: var(--asy-cyan-bright);
  background: linear-gradient(135deg, rgba(20, 68, 102, 0.86) 0%, rgba(10, 32, 58, 0.9) 100%);
  box-shadow: 0 0 22px rgba(34, 184, 207, 0.26);
}

.asy-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 184, 207, 0.15);
  color: var(--asy-cyan-bright);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.asy-option-card.selected .asy-option-icon {
  background: var(--asy-cyan);
  color: #ffffff;
}

.asy-option-body h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.asy-option-body p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #9ec2da;
}

/* Step 2 Mode Cards (OEE vs OEE + Consumi & SEC) */
.asy-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.asy-mode-card {
  border: 1.5px solid rgba(125, 190, 224, 0.24);
  border-radius: 18px;
  padding: 24px 22px;
  background: rgba(11, 30, 55, 0.68);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.asy-mode-card:hover {
  border-color: rgba(56, 217, 245, 0.7);
  transform: translateY(-2px);
}

.asy-mode-card.selected {
  border-color: var(--asy-cyan-bright);
  background: linear-gradient(135deg, rgba(20, 68, 102, 0.9) 0%, rgba(10, 32, 58, 0.92) 100%);
  box-shadow: 0 0 28px rgba(34, 184, 207, 0.3);
}

.asy-mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 184, 207, 0.16);
  color: var(--asy-cyan-bright);
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.asy-mode-card.selected .asy-mode-icon {
  background: linear-gradient(135deg, var(--asy-blue), var(--asy-cyan));
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 217, 245, 0.5);
}

.asy-mode-body h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
}

.asy-mode-body p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #a8cbe0;
}

.asy-mode-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asy-mini-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 750;
  background: rgba(34, 184, 207, 0.16);
  border: 1px solid rgba(56, 217, 245, 0.3);
  color: #8ce9f8;
}

.asy-mini-badge.energy {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

/* Step 3: Selectable & Customizable Machines */
.asy-machines-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.asy-machine-item {
  border: 1.5px solid rgba(125, 190, 224, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(9, 25, 46, 0.65);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.asy-machine-item.active {
  border-color: var(--asy-cyan-bright);
  background: rgba(14, 42, 74, 0.84);
  box-shadow: 0 8px 26px rgba(34, 184, 207, 0.2);
}

.asy-machine-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.asy-machine-title {
  flex: 1;
  min-width: 0;
}

.asy-machine-edit-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--asy-cyan-bright);
  margin-bottom: 5px;
}

.asy-machine-name-input {
  width: 100%;
  font-size: 1.02rem;
  color: #ffffff;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1.5px solid rgba(125, 190, 224, 0.35);
  background: rgba(6, 18, 34, 0.85);
  margin-bottom: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.asy-machine-name-input:focus {
  border-color: var(--asy-cyan-bright);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 217, 245, 0.25);
}

.asy-machine-title p {
  margin: 0;
  font-size: 0.84rem;
  color: #9ec0d6;
  line-height: 1.45;
}

.asy-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 18, 34, 0.85);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(125, 190, 224, 0.3);
  flex-shrink: 0;
}

.asy-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: rgba(34, 184, 207, 0.2);
  color: #ffffff;
  font-weight: 850;
  font-size: 1rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.asy-qty-btn:hover {
  background: var(--asy-cyan);
  transform: scale(1.06);
}

.asy-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 850;
  font-size: 1.05rem;
  color: #ffffff;
}

.asy-machine-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(125, 190, 224, 0.2);
}

.asy-signals-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.asy-signal-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfe0f2;
  font-weight: 650;
}

.asy-energy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 750;
  color: #cbd5e1;
  cursor: pointer;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 210, 235, 0.25);
  transition: all 0.15s;
}

.asy-energy-toggle.has-energy {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

.asy-custom-machine-bar {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(12, 36, 64, 0.75);
  border: 1px dashed rgba(56, 217, 245, 0.45);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.asy-custom-machine-bar input[type="text"] {
  flex: 1 1 240px;
  height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(125, 190, 224, 0.4);
  background: rgba(6, 18, 34, 0.9);
  color: #ffffff;
  font-size: 0.95rem;
}

/* Wizard Prev / Next Navigation Buttons */
.asy-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(125, 190, 224, 0.2);
}

.asy-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 99px;
  border: 1.5px solid rgba(148, 210, 235, 0.35);
  background: rgba(12, 32, 56, 0.75);
  color: #e2f1f8;
  font-weight: 750;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.2s;
}

.asy-btn-prev:hover {
  border-color: var(--asy-cyan-bright);
  background: rgba(34, 184, 207, 0.2);
  color: #ffffff;
}

.asy-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, var(--asy-blue) 0%, var(--asy-cyan) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(34, 184, 207, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.asy-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(56, 217, 245, 0.58);
}

/* ==========================================================================
   5. STEP 4: INTERACTIVE MACHINE MAP — SEQUENTIAL ILLUMINATION & DATA STREAM
   ========================================================================== */
.asy-map-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(6, 24, 46, 0.9);
  border: 1.5px solid rgba(56, 217, 245, 0.35);
  margin-bottom: 20px;
}

.asy-map-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asy-map-pulse-beacon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--asy-amber);
  box-shadow: 0 0 12px var(--asy-amber);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.asy-map-pulse-beacon.is-complete {
  background: var(--asy-emerald);
  box-shadow: 0 0 16px var(--asy-emerald);
}

.asy-map-status-text strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
}

.asy-map-status-text span {
  display: block;
  font-size: 0.82rem;
  color: #93c2db;
}

.asy-map-progress-wrap {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 8px;
}

.asy-map-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--asy-blue), var(--asy-cyan-bright), var(--asy-emerald));
  transition: width 0.45s ease;
}

/* Main Synoptic Plant Arena */
.asy-plant-map-arena {
  position: relative;
  min-height: 500px;
  border-radius: 20px;
  padding: 28px 24px;
  background:
    radial-gradient(circle at 78% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 25% 50%, rgba(34, 184, 207, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4, 14, 28, 0.92) 0%, rgba(7, 22, 42, 0.92) 100%);
  border: 1.5px solid rgba(56, 217, 245, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 36px;
  align-items: center;
}

/* Subtle technical blueprint grid overlay */
.asy-plant-map-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 217, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 217, 245, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* SVG Network Layer connecting Machines -> Central Dashboard Hub */
.asy-map-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.asy-map-link-base {
  fill: none;
  stroke: rgba(148, 210, 235, 0.14);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.asy-map-link-glow {
  fill: none;
  stroke: url(#asyMapGradCyan);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(56, 217, 245, 0.8));
  transition: opacity 0.45s ease;
}

.asy-map-link-glow.is-active {
  opacity: 0.9;
}

/* Grid of Chosen Machine Nodes on the Left/Center */
.asy-map-machines-zone {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.asy-map-mnode {
  position: relative;
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(8, 20, 38, 0.82);
  border: 1.5px solid rgba(125, 165, 190, 0.2);
  opacity: 0.42;
  filter: grayscale(0.65);
  transform: scale(0.97);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease;
}

/* Illuminated State: Machine lights up and transmits data! */
.asy-map-mnode.is-lit {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1);
  background: linear-gradient(145deg, rgba(14, 46, 78, 0.95) 0%, rgba(8, 28, 52, 0.95) 100%);
  border-color: var(--asy-cyan-bright);
  box-shadow:
    0 0 24px rgba(56, 217, 245, 0.45),
    0 0 50px rgba(16, 185, 129, 0.22),
    inset 0 0 16px rgba(56, 217, 245, 0.16);
}

.asy-map-mnode.just-lit-burst {
  animation: asyNodeLightBurst 0.85s ease-out;
}

@keyframes asyNodeLightBurst {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 217, 245, 0.9), 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 38px 14px rgba(56, 217, 245, 0.55), 0 0 65px 24px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 24px rgba(56, 217, 245, 0.45), 0 0 50px rgba(16, 185, 129, 0.22);
  }
}

.asy-mnode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.asy-mnode-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.08);
  color: #9ec2da;
}

.asy-map-mnode.is-lit .asy-mnode-id {
  background: rgba(56, 217, 245, 0.22);
  color: #7ce8f8;
}

.asy-mnode-led {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.asy-map-mnode.is-lit .asy-mnode-led {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.asy-mnode-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.asy-mnode-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(4, 12, 24, 0.72);
  border: 1px solid rgba(125, 190, 224, 0.16);
  font-size: 0.72rem;
}

.asy-mnode-telemetry div span {
  display: block;
  color: #7fa6bf;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.asy-mnode-telemetry div strong {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
  transition: color 0.3s;
}

.asy-map-mnode.is-lit .asy-mnode-telemetry div strong {
  color: #ffffff;
}

.asy-map-mnode.is-lit .asy-mnode-telemetry div strong.val-oee {
  color: #34d399;
}

.asy-map-mnode.is-lit .asy-mnode-telemetry div strong.val-kw {
  color: #fbbf24;
}

/* Central Destination Node: HUB ASYTRACK -> DASHBOARD */
.asy-map-hub-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.asy-dashboard-hub-card {
  width: 100%;
  border-radius: 20px;
  padding: 24px 20px;
  background: linear-gradient(160deg, rgba(10, 38, 66, 0.95) 0%, rgba(5, 18, 36, 0.96) 100%);
  border: 2px solid rgba(56, 217, 245, 0.45);
  box-shadow:
    0 0 36px rgba(34, 184, 207, 0.28),
    inset 0 0 24px rgba(34, 184, 207, 0.12);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.asy-dashboard-hub-card.hub-pulse-hit {
  border-color: #34d399;
  box-shadow:
    0 0 46px rgba(16, 185, 129, 0.55),
    0 0 80px rgba(56, 217, 245, 0.38);
  transform: scale(1.02);
}

.asy-hub-core-ring {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--asy-cyan) 0%, var(--asy-blue) 70%);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.75rem;
  box-shadow:
    0 0 25px rgba(56, 217, 245, 0.7),
    0 0 50px rgba(31, 111, 235, 0.45);
  position: relative;
}

.asy-hub-core-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 217, 245, 0.55);
  animation: asyHubSpin 12s linear infinite;
}

@keyframes asyHubSpin {
  to { transform: rotate(360deg); }
}

.asy-dashboard-hub-card h3 {
  margin: 0 0 4px;
  font-size: 1.16rem;
  font-weight: 850;
  color: #ffffff;
}

.asy-dashboard-hub-card p {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: #99c4de;
}

.asy-hub-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
  margin-bottom: 16px;
}

.asy-hub-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 14, 28, 0.8);
  border: 1px solid rgba(56, 217, 245, 0.22);
}

.asy-hub-stat span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #88b5d0;
}

.asy-hub-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 850;
  color: #ffffff;
  margin-top: 2px;
}

/* Live Feed Log under the Map */
.asy-map-live-log {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 12, 24, 0.85);
  border: 1px solid rgba(56, 217, 245, 0.22);
  max-height: 115px;
  overflow-y: auto;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #a5d8ff;
}

.asy-map-log-item {
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.asy-map-log-item:last-child {
  border-bottom: none;
  color: #6ee7b7;
  font-weight: 700;
}

/* ==========================================================================
   6. STEP 5: LIVE DASHBOARD (WITH SEMAFORIC GAUGES & QUOTE FORM)
   ========================================================================== */
.asy-dashboard-arrival-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.9) 0%, rgba(11, 45, 72, 0.9) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  color: #ecfdf5;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.22);
}

.asy-dashboard-light-box {
  background: #ffffff;
  color: var(--asy-ink);
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 36px);
  margin-bottom: 28px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(56, 217, 245, 0.45);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .asy-cosmos-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .asy-sector-grid,
  .asy-options-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asy-plant-map-arena {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .asy-cosmos-stepper,
  .asy-sector-grid,
  .asy-options-grid-3,
  .asy-mode-grid,
  .asy-machines-list,
  .asy-map-machines-zone {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .asy-cosmos-dark-veil,
  .asy-cosmos-sky,
  .asy-cosmos-stage,
  .asy-map-mnode {
    transition-duration: 0.1s !important;
    transform: none !important;
  }
  .asy-mobile-glimmer,
  .asy-nebula-flare,
  .asy-hub-core-ring::after {
    animation: none !important;
  }
}

/* ==========================================================================
   7. SHARED DASHBOARD & QUOTE STYLES (SO DASHBOARD WORKS IN OVERLAY ON HOME)
   ========================================================================== */
.asy-cosmos-overlay .cfg-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid #e6eff3;
}
.asy-cosmos-overlay .cfg-dash-title-box h2 {
  color: var(--asy-ink);
  margin: 6px 0 4px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 850;
}
.asy-cosmos-overlay .cfg-dash-title-box p {
  color: var(--asy-muted);
  margin: 0;
  font-size: 0.94rem;
}
.asy-cosmos-overlay .cfg-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 99px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.asy-cosmos-overlay .cfg-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.asy-cosmos-overlay .cfg-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.asy-cosmos-overlay .cfg-sim-btn {
  background: #f0f7f9;
  color: var(--asy-ink);
  border: 1.5px solid #bfd6de;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.asy-cosmos-overlay .cfg-sim-btn:hover {
  background: #e1f2f5;
  border-color: #087e8b;
  color: #065a64;
}
.asy-cosmos-overlay .cfg-gauge-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f8fbfc;
  border: 1px solid #e1ecf0;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--asy-ink);
}
.asy-cosmos-overlay .cfg-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.asy-cosmos-overlay .cfg-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  color: var(--asy-ink);
}
.asy-cosmos-overlay .cfg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.asy-cosmos-overlay .cfg-dot.green { background: #10b981; }
.asy-cosmos-overlay .cfg-dot.yellow { background: #f59e0b; }
.asy-cosmos-overlay .cfg-dot.red { background: #ef4444; }

.asy-cosmos-overlay .cfg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.asy-cosmos-overlay .cfg-kpi-card {
  background: #f9fbfd;
  border: 1.5px solid #dce8ee;
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(18, 47, 64, 0.04);
}
.asy-cosmos-overlay .cfg-kpi-card.highlight-oee {
  background: linear-gradient(180deg, #f2fbf9 0%, #ffffff 100%);
  border-color: #99e2d0;
}
.asy-cosmos-overlay .cfg-kpi-card.highlight-sec {
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  border-color: #f7d98c;
}
.asy-cosmos-overlay .cfg-kpi-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #476273;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.asy-cosmos-overlay .cfg-gauge-box {
  width: 100%;
  max-width: 190px;
  margin: 0 auto 4px;
}
.asy-cosmos-overlay .cfg-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}
.asy-cosmos-overlay .cfg-kpi-value {
  font-size: 1.52rem;
  font-weight: 850;
  color: var(--asy-ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.asy-cosmos-overlay .cfg-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.asy-cosmos-overlay .cfg-zone-badge.zone-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.asy-cosmos-overlay .cfg-zone-badge.zone-yellow {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.asy-cosmos-overlay .cfg-zone-badge.zone-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.asy-cosmos-overlay .cfg-kpi-sub {
  font-size: 0.8rem;
  color: var(--asy-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}
.asy-cosmos-overlay .cfg-oee-mini-bars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e2edf2;
  font-size: 0.74rem;
  color: #4b6677;
}
.asy-cosmos-overlay .cfg-oee-mini-bars strong {
  display: block;
  color: var(--asy-ink);
  font-size: 0.88rem;
}

.asy-cosmos-overlay .cfg-dash-machines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.asy-cosmos-overlay .cfg-dash-mcard {
  background: #ffffff;
  border: 1.5px solid #d5e4eb;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(18, 47, 64, 0.05);
}
.asy-cosmos-overlay .cfg-mcard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebf2f5;
}
.asy-cosmos-overlay .cfg-mcard-id {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: #e6f6f8;
  color: #065a64;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.asy-cosmos-overlay .cfg-mcard-head h4 {
  color: var(--asy-ink);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.3;
  font-weight: 800;
}
.asy-cosmos-overlay .cfg-status-badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  white-space: nowrap;
}
.asy-cosmos-overlay .cfg-mcard-gauge-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8fbfc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5eff3;
}
.asy-cosmos-overlay .cfg-mmetric {
  margin-bottom: 6px;
}
.asy-cosmos-overlay .cfg-mmetric:last-child {
  margin-bottom: 0;
}
.asy-cosmos-overlay .cfg-mmetric span {
  display: block;
  font-size: 0.68rem;
  color: #5a7384;
  text-transform: uppercase;
  font-weight: 750;
}
.asy-cosmos-overlay .cfg-mmetric strong {
  font-size: 1.02rem;
  color: var(--asy-ink);
  font-weight: 850;
}
.asy-cosmos-overlay .cfg-mcard-apq {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #466070;
  padding: 7px 10px;
  background: #f3f8fa;
  border-radius: 8px;
  font-weight: 650;
}
.asy-cosmos-overlay .cfg-mcard-signals {
  font-size: 0.76rem;
  color: var(--asy-muted);
  line-height: 1.45;
}
.asy-cosmos-overlay .cfg-mcard-signals strong {
  color: var(--asy-ink);
}

.asy-cosmos-overlay .cfg-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.asy-cosmos-overlay .cfg-chart-box {
  background: #f9fbfd;
  border: 1.5px solid #dce8ee;
  border-radius: 16px;
  padding: 20px;
}
.asy-cosmos-overlay .cfg-chart-box h3 {
  color: var(--asy-ink);
  font-size: 1.02rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}
.asy-cosmos-overlay .cfg-chart-box p.chart-sub {
  color: var(--asy-muted);
  font-size: 0.82rem;
  margin: 0 0 16px;
}
.asy-cosmos-overlay .cfg-bar-row {
  margin-bottom: 12px;
}
.asy-cosmos-overlay .cfg-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--asy-ink);
  margin-bottom: 4px;
  font-weight: 650;
}
.asy-cosmos-overlay .cfg-bar-track {
  height: 11px;
  border-radius: 99px;
  background: #e2edf2;
  overflow: hidden;
}
.asy-cosmos-overlay .cfg-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.asy-cosmos-overlay .cfg-bar-fill.bar-green { background: linear-gradient(90deg, #10b981, #059669); }
.asy-cosmos-overlay .cfg-bar-fill.bar-yellow { background: linear-gradient(90deg, #f59e0b, #d97706); }
.asy-cosmos-overlay .cfg-bar-fill.bar-red { background: linear-gradient(90deg, #ef4444, #dc2626); }

.asy-cosmos-overlay .cfg-arch-strip {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #eef8fa;
  border: 1.5px solid #b5dfe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.asy-cosmos-overlay .cfg-arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.asy-cosmos-overlay .cfg-arch-pill {
  background: #ffffff;
  border: 1px solid #c2e0e6;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--asy-ink);
  font-size: 0.84rem;
  font-weight: 750;
}
.asy-cosmos-overlay .cfg-arch-pill span {
  color: #087e8b;
  font-weight: 850;
  margin-right: 4px;
}

.asy-cosmos-overlay .cfg-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 26px;
  align-items: flex-start;
}
.asy-cosmos-overlay .cfg-summary-box {
  background: rgba(11, 32, 58, 0.8);
  border: 1.5px solid rgba(56, 217, 245, 0.35);
  border-radius: 16px;
  padding: 22px;
  color: #e2f1f8;
}
.asy-cosmos-overlay .cfg-summary-box h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  color: #ffffff;
  font-weight: 800;
}
.asy-cosmos-overlay .cfg-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.asy-cosmos-overlay .cfg-summary-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 210, 235, 0.18);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.asy-cosmos-overlay .cfg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.asy-cosmos-overlay .cfg-form-group {
  margin-bottom: 14px;
}
.asy-cosmos-overlay .cfg-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 750;
  color: #d6ebf7;
  margin-bottom: 5px;
}
.asy-cosmos-overlay .cfg-form-group input,
.asy-cosmos-overlay .cfg-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(125, 190, 224, 0.38);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(5, 16, 32, 0.88);
}
.asy-cosmos-overlay .cfg-form-group input:focus,
.asy-cosmos-overlay .cfg-form-group textarea:focus {
  border-color: var(--asy-cyan-bright);
  outline: 3px solid rgba(56, 217, 245, 0.22);
}

@media (max-width: 991px) {
  .asy-cosmos-overlay .cfg-kpi-grid,
  .asy-cosmos-overlay .cfg-dash-machines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asy-cosmos-overlay .cfg-charts-row,
  .asy-cosmos-overlay .cfg-quote-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .asy-cosmos-overlay .cfg-kpi-grid,
  .asy-cosmos-overlay .cfg-dash-machines-grid,
  .asy-cosmos-overlay .cfg-form-grid,
  .asy-cosmos-overlay .cfg-mcard-gauge-row {
    grid-template-columns: 1fr;
  }
}
