#tab-inputs.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
    overflow: hidden;
  }
  
  .input-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    overflow: hidden;
  }
  
  /* Project input compact row */
  .input-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.4fr) minmax(180px, 0.45fr) minmax(180px, 0.45fr);
    align-items: end;
    gap: 24px;
  }
  
  .full-width {
    grid-column: auto;
  }
  
  .field-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .field-block label {
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 700;
  }
  
  .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }
  
  .file-name {
    color: #94a3b8;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .input-with-unit input {
    width: 150px;
    background: #020617;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }
  
  .input-with-unit span {
    color: #94a3b8;
    font-size: 13px;
  }
  
  /* Wave timeline */
  .wave-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  
  .wave-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-color: #0284c7 #020617;
    scrollbar-width: thin;
  }
  
  .wave-scroll::-webkit-scrollbar {
    height: 8px;
  }
  
  .wave-scroll::-webkit-scrollbar-track {
    background: #020617;
    border-radius: 999px;
  }
  
  .wave-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0369a1, #0ea5e9);
    border-radius: 999px;
    border: 2px solid #020617;
  }
  
  .wave-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
  }
  
  .wave-canvas {
    width: max-content;
    min-width: 100%;
  }
  
  .week-scale {
    display: grid;
    gap: 0;
    color: #93c5fd;
    font-size: 12px;
    padding: 0 8px 8px;
  }
  
  .week-scale span {
    text-align: center;
    min-width: 20px;
  }
  
  .wave-timeline {
    position: relative;
    min-height: 330px;
    width: 100%;
    border: 1px solid #334155;
    border-radius: 16px;
    background:
      linear-gradient(to right, rgba(59, 130, 246, 0.12) 1px, transparent 1px),
      #020617;
    overflow: hidden;
  }
  
  .wave-row {
    position: relative;
    height: 68px;
  }
  
  .wave-row-label {
    position: absolute;
    left: 12px;
    top: 8px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    color: #bfdbfe;
  }
  
  .wave-bar {
    position: absolute;
    top: 30px;
    height: 30px;
    border: 1px solid #38bdf8;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.18);
  }
  
  .segmented-wave-bar {
    padding: 0;
    overflow: hidden;
    display: flex;
    background: transparent !important;
  }
  
  .wave-segment {
    height: 100%;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  
  .wave-segment:last-child {
    border-right: 0;
  }
  
  /* fallback if JS inline color is missing */
  .phase-preparation { background: #0f766e; }
  .phase-workshop { background: #0369a1; }
  .phase-design { background: #1d4ed8; }
  .phase-implementation { background: #4338ca; }
  .phase-sit { background: #7c3aed; }
  .phase-uat { background: #be185d; }
  .phase-hypercare { background: #15803d; }
  
  /* Wave phase grid */
  .wave-input-panel {
    border-top: 1px solid #1e293b;
    margin-top: 8px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
    overflow-x: auto;
  }
  
  .wave-phase-grid {
    display: grid;
    grid-template-columns: 90px 72px 72px repeat(7, 72px);
    column-gap: 6px;
    row-gap: 8px;
  }
  
  .wave-phase-grid .phase-duration-box:first-of-type {
    margin-left: 14px;
  }

  .wave-phase-grid > div:nth-child(4) {
    margin-left: 14px;
  }
  .wave-phase-header {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }
  
  .wave-grid-label {
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 700;
  }
  
  .wave-phase-grid input {
    width: 100%;
    padding: 8px;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #020617;
    color: #f8fafc;
    font-weight: 700;
    text-align: center;
  }
  
  .phase-duration-box {
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.9);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
  }
  
  /* Additional inputs */
  .assumptions-card textarea,
#projectNotes {
  margin-top: 14px;
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
  background: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: #0ea5e9 #020617;
}

#projectNotes::-webkit-scrollbar {
  width: 8px;
}

#projectNotes::-webkit-scrollbar-track {
  background: #020617;
  border-radius: 10px;
}

#projectNotes::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #0f766e);
  border-radius: 10px;
}

#projectNotes::-webkit-scrollbar-button,
#projectNotes::-webkit-resizer {
  display: none;
}
  
  /* Object panel */
  .object-panel {
    height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 6px;
  }
  .object-panel::-webkit-scrollbar {
    width: 8px;
  }
  
  .object-panel::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .object-panel::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
  }
  
  .object-panel::-webkit-scrollbar-thumb:hover {
    background: #475569;
  }
  .object-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .object-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  
  .object-row:last-child {
    border-bottom: 0;
  }
  
  .object-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #38bdf8;
  }
  
  .object-name {
    color: #e2e8f0;
    font-size: 14px;
  }
  
  .object-wave {
    background: #020617;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 9px;
    padding: 8px;
  }
  
  .object-wave:disabled {
    opacity: 0.35;
  }
  
  .action-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #tab-basic.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
  }
  @media (max-width: 1100px) {
    #tab-basic.active {
      grid-template-columns: 1fr;
    }
  
    .input-grid {
      grid-template-columns: 1fr;
    }
  
    .full-width {
      grid-column: 1 / -1;
    }
  
    .upload-box {
      flex-wrap: wrap;
    }
  
    .object-panel {
      grid-row: auto;
    }
  }

  /* option list layout */

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e2e8f0;
  cursor: pointer;
}

/* hide default input */

.option-item input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #334155;
  background: #020617;
  display: grid;
  place-content: center;
  cursor: pointer;
}

/* checkbox */

.option-item input[type="checkbox"] {
  border-radius: 4px;
}

.option-item input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  background: #38bdf8;
  transition: transform 0.15s ease;
}

.option-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* radio */

.option-item input[type="radio"] {
  border-radius: 50%;
}

.option-item input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.option-item input[type="radio"]:checked::before {
  transform: scale(1);
}

/* hover */

.option-item:hover input {
  border-color: #38bdf8;
}

#tab-basic.active {
  height: calc(100vh - 120px);
  overflow: hidden;
}

.input-layout {
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 6px;
}

.input-layout::-webkit-scrollbar {
  width: 8px;
}

.input-layout::-webkit-scrollbar-track {
  background: transparent;
}

.input-layout::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

.input-layout::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.rfp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.rfp-modal.hidden {
  display: none !important;
}

.rfp-modal-card {
  width: min(460px, 92vw);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #1e3a5f;
  background: linear-gradient(180deg, #0f172a, #020617);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.rfp-modal-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.rfp-modal-card p {
  margin: 0 0 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.rfp-modal-card span {
  color: #38bdf8;
  font-weight: 700;
}

.rfp-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: 4px solid #1e293b;
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: rfpSpin 0.9s linear infinite;
}

@keyframes rfpSpin {
  to {
    transform: rotate(360deg);
  }
}

.project-picker {
  display: flex;
  gap: 10px;
}

#projectSelect {
  width: 220px;
  background: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 9px;
}
.saving-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saving-overlay.hidden {
  display: none;
}

.saving-box {
  width: 280px;
  padding: 24px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #f8fafc;
}

.saving-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 4px solid #334155;
  border-top-color: #22d3ee;
  border-radius: 50%;
  animation: savingSpin 0.8s linear infinite;
}

.saving-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.saving-text {
  font-size: 13px;
  color: #94a3b8;
}

@keyframes savingSpin {
  to {
    transform: rotate(360deg);
  }
}