:root {
  --audstudio-bg: #08172f;
  --audstudio-panel: rgba(13, 33, 68, 0.82);
  --audstudio-panel-strong: linear-gradient(180deg, rgba(20, 52, 105, 0.96) 0%, rgba(10, 27, 61, 0.98) 100%);
  --audstudio-border: rgba(127, 176, 255, 0.18);
  --audstudio-border-strong: rgba(127, 176, 255, 0.34);
  --audstudio-text: #eef4ff;
  --audstudio-muted: rgba(224, 235, 255, 0.78);
  --audstudio-accent: #8bc3ff;
  --audstudio-accent-strong: #4fa3ff;
  --audstudio-success: #7ce0bd;
  --audstudio-shadow: 0 24px 64px rgba(2, 9, 24, 0.34);
  --audstudio-database-accent: #7ce0bd;
  --audstudio-database-border: rgba(124, 224, 189, 0.34);
  --audstudio-database-bg: linear-gradient(180deg, rgba(13, 58, 68, 0.95) 0%, rgba(8, 31, 47, 0.98) 100%);
  --audstudio-portal-accent: #8bc3ff;
  --audstudio-portal-border: rgba(139, 195, 255, 0.34);
  --audstudio-portal-bg: linear-gradient(180deg, rgba(20, 52, 105, 0.96) 0%, rgba(10, 27, 61, 0.98) 100%);
}

.audstudio-shell {
  position: relative;
  padding: 12px 0 28px;
}

.audstudio-shell::before,
.audstudio-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.audstudio-shell::before {
  top: 10px;
  right: 3%;
  width: 220px;
  height: 220px;
  background: rgba(64, 144, 255, 0.22);
}

.audstudio-shell::after {
  top: 180px;
  left: 2%;
  width: 180px;
  height: 180px;
  background: rgba(125, 220, 189, 0.14);
}

.audstudio-shell > * {
  position: relative;
  z-index: 1;
}

.audstudio-hero,
.audstudio-panel,
.audstudio-stat-card,
.audstudio-step-nav,
.audstudio-kpi-strip,
.audstudio-action-card {
  border: 1px solid var(--audstudio-border);
  box-shadow: var(--audstudio-shadow);
}

.audstudio-hero {
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(117, 188, 255, 0.22), transparent 32%),
    radial-gradient(circle at bottom left, rgba(122, 218, 188, 0.16), transparent 28%),
    linear-gradient(135deg, #173d79 0%, #0c2149 52%, #08172f 100%);
  color: var(--audstudio-text);
}

.audstudio-object-hero-database {
  background:
    radial-gradient(circle at top right, rgba(124, 224, 189, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(112, 201, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #104654 0%, #0b2936 52%, #08172f 100%);
}

.audstudio-hero-body {
  padding: 28px 30px;
}

.audstudio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--audstudio-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.audstudio-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  margin-bottom: 12px;
  max-width: 760px;
}

.audstudio-subtitle {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--audstudio-muted);
  margin-bottom: 0;
}

.audstudio-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 19, 43, 0.48);
}

.audstudio-step-link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 176, 255, 0.12);
  color: var(--audstudio-text);
}

.audstudio-step-link:hover {
  color: var(--audstudio-text);
  border-color: var(--audstudio-border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.audstudio-step-link.is-active {
  background: linear-gradient(180deg, rgba(41, 88, 171, 0.92) 0%, rgba(24, 54, 108, 0.96) 100%);
  border-color: rgba(148, 194, 255, 0.42);
}

.audstudio-step-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 232, 255, 0.66);
  margin-bottom: 6px;
}

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

.audstudio-step-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--audstudio-muted);
}

.audstudio-panel {
  height: 100%;
  border-radius: 22px;
  background: var(--audstudio-panel-strong);
  color: var(--audstudio-text);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.audstudio-panel:focus-within {
  z-index: 2000;
}

.audstudio-object-card-database {
  background: var(--audstudio-database-bg);
  border-color: var(--audstudio-database-border);
}

.audstudio-object-card-portal {
  background: var(--audstudio-portal-bg);
  border-color: var(--audstudio-portal-border);
}

.audstudio-object-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.audstudio-object-kicker-database {
  background: rgba(124, 224, 189, 0.12);
  border: 1px solid rgba(124, 224, 189, 0.28);
  color: var(--audstudio-database-accent);
}

.audstudio-object-kicker-portal {
  background: rgba(139, 195, 255, 0.12);
  border: 1px solid rgba(139, 195, 255, 0.28);
  color: var(--audstudio-portal-accent);
}

.audstudio-panel-body {
  padding: 24px;
  overflow: visible;
}

.audstudio-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.audstudio-panel-copy {
  font-size: 14px;
  color: var(--audstudio-muted);
  line-height: 1.6;
}

.audstudio-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.audstudio-dashboard-gauge-card .audstudio-panel-body {
  padding-bottom: 18px;
}

.audstudio-dashboard-graph {
  height: 210px;
}

.audstudio-dashboard-graph .js-plotly-plot,
.audstudio-dashboard-graph .plot-container,
.audstudio-dashboard-graph .svg-container {
  height: 210px !important;
}

.audstudio-metric-card {
  border: 1px solid var(--audstudio-border);
  background: linear-gradient(180deg, rgba(16, 39, 80, 0.84) 0%, rgba(10, 27, 61, 0.9) 100%);
}

.audstudio-metric-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audstudio-metric-badge {
  border: 1px solid rgba(127, 176, 255, 0.22);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.audstudio-metric-graph,
.audstudio-metric-graph .js-plotly-plot,
.audstudio-metric-graph .plot-container,
.audstudio-metric-graph .svg-container {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
}

.audstudio-stat-card {
  height: 100%;
  border-radius: 18px;
  background: rgba(8, 23, 48, 0.62);
  color: var(--audstudio-text);
}

.audstudio-stat-body {
  padding: 18px 20px;
}

.audstudio-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 232, 255, 0.7);
}

.audstudio-stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
}

.audstudio-stat-copy {
  font-size: 13px;
  color: var(--audstudio-muted);
  margin-top: 8px;
}

.audstudio-kpi-strip {
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 23, 48, 0.52);
}

.audstudio-kpi-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 176, 255, 0.12);
}

.audstudio-kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 232, 255, 0.68);
}

.audstudio-kpi-value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

.audstudio-bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audstudio-bullet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 176, 255, 0.1);
}

.audstudio-bullet-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 194, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 24px rgba(2, 9, 24, 0.18);
}

.audstudio-bullet-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--audstudio-accent-strong);
  box-shadow: 0 0 0 6px rgba(79, 163, 255, 0.12);
}

.audstudio-bullet-text {
  color: var(--audstudio-muted);
  font-size: 14px;
  line-height: 1.6;
}

.audstudio-readiness-ring {
  width: 172px;
  height: 172px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--audstudio-success) 0 var(--audstudio-progress), rgba(255,255,255,0.08) var(--audstudio-progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.audstudio-readiness-ring::before {
  content: "";
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #0b1f44;
  border: 1px solid rgba(127, 176, 255, 0.12);
}

.audstudio-readiness-center {
  position: absolute;
  text-align: center;
}

.audstudio-readiness-score {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.audstudio-readiness-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 232, 255, 0.68);
  margin-top: 6px;
}

.audstudio-action-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 23, 48, 0.56);
  color: var(--audstudio-text);
}

.audstudio-action-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.audstudio-action-copy {
  font-size: 14px;
  color: var(--audstudio-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.audstudio-menu-grid {
  display: grid;
  gap: 16px;
}

.audstudio-menu-card {
  min-height: 100%;
}

.audstudio-menu-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 232, 255, 0.64);
  margin-bottom: 10px;
}

.audstudio-menu-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.audstudio-menu-copy {
  color: var(--audstudio-muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 88px;
  margin-bottom: 14px;
}

.audstudio-menu-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--audstudio-accent);
  margin-bottom: 6px;
}

.audstudio-menu-status-copy {
  color: var(--audstudio-text);
  font-size: 14px;
  line-height: 1.55;
}

.audstudio-dark-input.form-control,
.audstudio-dark-input.form-control:focus,
.audstudio-dark-input.form-select,
.audstudio-dark-input.form-select:focus,
.audstudio-dark-textarea.form-control,
.audstudio-dark-textarea.form-control:focus {
  background: rgba(8, 23, 48, 0.72) !important;
  border: 1px solid rgba(127, 176, 255, 0.22) !important;
  color: var(--audstudio-text) !important;
  box-shadow: 0 0 0 0.2rem rgba(76, 135, 220, 0.15) !important;
}

.audstudio-dark-input.form-control::placeholder,
.audstudio-dark-textarea.form-control::placeholder {
  color: rgba(220, 232, 255, 0.45) !important;
}

.audstudio-date-range .DateRangePicker,
.audstudio-date-range .DateRangePickerInput {
  width: 100%;
}

.audstudio-date-range {
  position: relative;
  z-index: 2100;
}

.audstudio-date-range .DateRangePickerInput {
  background: rgba(8, 23, 48, 0.72);
  border: 1px solid rgba(127, 176, 255, 0.22);
  border-radius: 10px;
  padding: 2px 8px;
}

.audstudio-date-range .DateRangePickerInput_arrow {
  color: rgba(220, 232, 255, 0.6);
}

.audstudio-date-range .DateInput {
  background: transparent;
  width: calc(50% - 14px);
}

.audstudio-date-range .DateInput_input {
  background: transparent;
  border: 0;
  color: var(--audstudio-text);
  font-size: 14px;
  padding: 8px 6px;
}

.audstudio-date-range .DateInput_input::placeholder {
  color: rgba(220, 232, 255, 0.45);
}

.audstudio-date-range .DateInput_input__focused {
  border: 0;
  box-shadow: none;
}

.audstudio-date-range .DateRangePickerInput__withBorder:focus-within {
  border-color: rgba(127, 176, 255, 0.44);
  box-shadow: 0 0 0 0.2rem rgba(76, 135, 220, 0.15);
}

.audstudio-date-range .DateRangePicker_picker {
  z-index: 3000 !important;
}

.audstudio-modal .modal-dialog {
  max-width: 760px;
}

.audstudio-modal .modal-content {
  background: var(--audstudio-panel-strong);
  color: var(--audstudio-text);
  border: 1px solid var(--audstudio-border);
  border-radius: 24px;
  box-shadow: var(--audstudio-shadow);
  overflow: visible;
}

.audstudio-modal .modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(127, 176, 255, 0.14);
}

.audstudio-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.audstudio-modal .modal-body {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Keep date picker menu above nearby content without changing modal layout. */
.audstudio-date-range .DateRangePicker_picker,
.audstudio-modal .audstudio-date-range .DateRangePicker_picker {
  z-index: 5000 !important;
}

.audstudio-modal .modal-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(127, 176, 255, 0.14);
  background: rgba(7, 19, 43, 0.34);
}

.audstudio-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.72;
}

.audstudio-modal .modal-header .btn-close:hover {
  opacity: 1;
}

.audstudio-modal-header,
.audstudio-modal-body,
.audstudio-modal-footer {
  color: var(--audstudio-text);
}

.audstudio-modal .form-label,
.audstudio-modal label {
  color: var(--audstudio-text);
  font-weight: 600;
}

.audstudio-modal .modal-body .audstudio-panel-copy,
.audstudio-modal .modal-body .text-muted {
  color: var(--audstudio-muted);
}

.audstudio-modal .DateInput_input,
.audstudio-modal .DateInput_input::placeholder,
.audstudio-modal .DateRangePickerInput_input {
  color: var(--audstudio-text);
  background: transparent;
}

.audstudio-modal .DateRangePicker_picker {
  z-index: 2400;
}

.audstudio-choice-checklist-shell {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 23, 48, 0.72);
  border: 1px solid rgba(127, 176, 255, 0.22);
}

.audstudio-choice-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audstudio-choice-checklist .form-check {
  margin: 0;
  padding-left: 0;
}

.audstudio-choice-checklist-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.audstudio-choice-checklist-label {
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 176, 255, 0.16);
  color: var(--audstudio-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.audstudio-choice-checklist-label:hover {
  border-color: rgba(139, 195, 255, 0.34);
  color: var(--audstudio-text);
  transform: translateY(-1px);
}

.audstudio-choice-checklist-input:checked + .audstudio-choice-checklist-label {
  background: linear-gradient(180deg, rgba(68, 138, 232, 0.88) 0%, rgba(37, 89, 166, 0.96) 100%);
  border-color: rgba(160, 207, 255, 0.52);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(10, 27, 61, 0.28);
}

.pcu-timeline-track {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 14px;
}

.pcu-timeline-track::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 195, 255, 0.35) 0%, rgba(124, 224, 189, 0.3) 100%);
}

.pcu-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pcu-timeline-node {
  width: 14px;
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #a7d1ff 0%, #4fa3ff 72%);
  border: 1px solid rgba(216, 236, 255, 0.62);
  box-shadow: 0 0 0 5px rgba(79, 163, 255, 0.17);
}

.pcu-timeline-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(8, 23, 48, 0.58);
  border: 1px solid rgba(127, 176, 255, 0.2);
}

.pcu-timeline-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 232, 255, 0.72);
  margin-bottom: 6px;
}

.pcu-timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--audstudio-text);
  margin-bottom: 8px;
}

.pcu-timeline-copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--audstudio-muted);
  margin-top: 6px;
}

@media (max-width: 991.98px) {
  .audstudio-step-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .audstudio-hero-body,
  .audstudio-panel-body {
    padding: 20px;
  }

  .audstudio-title {
    font-size: 2rem;
  }
}
