/*
© 2026 Deseo Developers LLC. All rights reserved.
DTIDecode™ guided tour — emerald spotlight aligned with the app theme.
*/
html.dti-tutorial-page-scroll {
  height: auto !important;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.dti-tutorial-page-scroll {
  overflow-x: hidden;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}
#dti-tutorial-root {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
}
.dti-tutorial-shade {
  position: fixed;
  display: none;
  background: rgba(2, 6, 23, 0.72);
  pointer-events: auto;
  z-index: 1;
}
html.light-mode .dti-tutorial-shade {
  background: rgba(15, 23, 42, 0.48);
}
#dti-tutorial-card {
  position: fixed;
  z-index: 80;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0;
  pointer-events: auto;
  overflow: visible;
  --dti-tutorial-arrow: rgba(16, 185, 129, 0.92);
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
}
html.light-mode #dti-tutorial-card {
  --dti-tutorial-arrow: rgba(5, 150, 105, 0.9);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  color: #0f172a;
}
#dti-tutorial-card:not(.dti-tutorial-card--center) {
  transition: top 0.25s ease, left 0.25s ease;
}
#dti-tutorial-card.dti-tutorial-card--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#dti-tutorial-card.dti-tutorial-card--welcome,
#dti-tutorial-card.dti-tutorial-card--finish {
  max-width: min(36rem, calc(100vw - 1.25rem));
  width: min(36rem, calc(100vw - 1.25rem));
}
#dti-tutorial-card.dti-tutorial-card--docked {
  width: auto;
  max-width: none;
}
#dti-tutorial-card .dti-tutorial-card-body {
  padding: 1.25rem 1.35rem 1.1rem;
  position: relative;
  z-index: 1;
  border-radius: inherit;
  overflow-y: auto;
  max-height: min(85dvh, calc(100dvh - 2rem));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.dti-tutorial-active .dti-tutorial-interactive-zone,
body.dti-tutorial-active .dti-tutorial-interactive-zone * {
  pointer-events: auto;
}
body.dti-tutorial-active .dti-tutorial-interactive-zone {
  position: relative;
  z-index: 78;
}
#dti-tutorial-card[data-placement]::after {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.45))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
#dti-tutorial-card[data-placement="bottom"]::after {
  bottom: 100%;
  border-color: transparent transparent var(--dti-tutorial-arrow) transparent;
}
#dti-tutorial-card[data-placement="top"]::after {
  top: 100%;
  border-color: var(--dti-tutorial-arrow) transparent transparent transparent;
}
.dti-tutorial-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.dti-tutorial-bubbles {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.35rem;
}
.dti-tutorial-bubble {
  box-sizing: border-box;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 0.4rem;
  min-width: 1.1rem;
  min-height: 0.4rem;
  max-width: 1.1rem;
  max-height: 0.4rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: #334155;
  border: 1px solid transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, width 0.2s ease, flex-basis 0.2s ease;
}
html.light-mode .dti-tutorial-bubble {
  background-color: #94a3b8;
  background-image: none;
  border-color: #94a3b8;
}
.dti-tutorial-bubble:hover:not(.is-active) {
  background-color: rgba(16, 185, 129, 0.45);
  background-image: none;
}
html.light-mode .dti-tutorial-bubble:hover:not(.is-active) {
  background-color: #6ee7b7;
  background-image: none;
  border-color: #34d399;
}
.dti-tutorial-bubble:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}
.dti-tutorial-bubble.is-active {
  width: 1.75rem;
  min-width: 1.75rem;
  max-width: 1.75rem;
  height: 0.4rem;
  min-height: 0.4rem;
  max-height: 0.4rem;
  flex: 0 0 1.75rem;
  border-radius: 999px;
  background-color: #059669;
  background-image: linear-gradient(90deg, #059669, #34d399);
  border-color: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}
html.light-mode .dti-tutorial-bubble.is-active {
  background-color: #059669;
  background-image: linear-gradient(90deg, #047857, #10b981);
  border-color: #047857;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}
.dti-tutorial-bubble.is-done {
  background-color: rgba(16, 185, 129, 0.35);
  background-image: none;
  border-color: rgba(16, 185, 129, 0.4);
}
html.light-mode .dti-tutorial-bubble.is-done {
  background-color: #6ee7b7;
  background-image: none;
  border-color: #34d399;
}
.dti-tutorial-step-label {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
html.light-mode .dti-tutorial-step-label {
  color: #64748b;
}
.dti-tutorial-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #34d399;
  margin: 0.15rem 0 0.65rem;
}
html.light-mode .dti-tutorial-section-label {
  color: #059669;
}
#dti-tutorial-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}
html.light-mode #dti-tutorial-title {
  color: #0f172a;
}
#dti-tutorial-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-top: 0.5rem;
}
html.light-mode #dti-tutorial-body {
  color: #475569;
}
.dti-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #334155;
}
html.light-mode .dti-tutorial-actions {
  border-top-color: #e2e8f0;
}
.dti-tutorial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #334155;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
html.light-mode .dti-tutorial-btn {
  border-color: #cbd5e1;
  color: #334155;
}
.dti-tutorial-btn:hover {
  border-color: #10b981;
  color: #6ee7b7;
}
html.light-mode .dti-tutorial-btn:hover {
  color: #047857;
}
.dti-tutorial-btn-primary {
  background: #10b981;
  border-color: #10b981;
  color: #022c22;
  font-weight: 600;
  margin-left: auto;
}
.dti-tutorial-btn-primary:hover {
  background: #34d399;
  border-color: #34d399;
  color: #022c22;
}
body.dti-tutorial-active .dti-tutorial-target-ancestor {
  position: relative;
  z-index: 77;
}
body.dti-tutorial-active .is-tutorial-target {
  position: relative;
  z-index: 79;
  overflow: visible;
  isolation: isolate;
}
body.dti-tutorial-active .is-tutorial-target,
body.dti-tutorial-active .is-tutorial-target * {
  pointer-events: auto;
}
@keyframes dti-tutorial-beam-pulse {
  0%, 100% { opacity: 0.88; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}
body.dti-tutorial-active .is-tutorial-target > .dti-tutorial-field-beam {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  border: 2px solid #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
  animation: dti-tutorial-beam-pulse 2.2s ease-in-out infinite;
}
html.light-mode body.dti-tutorial-active .is-tutorial-target > .dti-tutorial-field-beam {
  border-color: #059669;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.35);
}
body.dti-tutorial-active .is-tutorial-target > *:not(.dti-tutorial-field-beam) {
  position: relative;
  z-index: 1;
}
body.dti-tutorial-active [data-tutorial="reset-form"].is-tutorial-target,
body.dti-tutorial-active [data-tutorial="how-it-works"].is-tutorial-target,
body.dti-tutorial-active [data-tutorial="calculate-btn"].is-tutorial-target {
  border-radius: 9999px;
}
body.dti-tutorial-active [data-tutorial="reset-form"].is-tutorial-target > .dti-tutorial-field-beam,
body.dti-tutorial-active [data-tutorial="how-it-works"].is-tutorial-target > .dti-tutorial-field-beam,
body.dti-tutorial-active [data-tutorial="calculate-btn"].is-tutorial-target > .dti-tutorial-field-beam {
  border-radius: 9999px;
}
body.dti-tutorial-active #footer-toggle {
  z-index: 40;
}

#dti-help-overlay {
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  align-items: flex-start !important;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
@media (min-height: 720px) {
  #dti-help-overlay {
    align-items: safe center !important;
  }
}
html.light-mode #dti-help-title {
  color: #0f172a;
}
html.light-mode #dti-help-overlay .dti-help-dialog .text-slate-100,
html.light-mode #dti-help-overlay .dti-help-dialog strong.text-slate-100 {
  color: #0f172a;
}
#dti-help-overlay .dti-help-dialog {
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
  max-height: min(90dvh, calc(100dvh - 2rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.light-mode #dti-help-overlay .dti-help-dialog {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}
.dti-help-scroll-lock,
.dti-help-scroll-lock body {
  overflow: hidden;
}
.dti-help-steps,
.dti-help-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
html.light-mode .dti-help-steps,
html.light-mode .dti-help-list {
  color: #475569;
}
.dti-help-section {
  margin-top: 1rem;
}
.dti-help-section h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.02em;
}
.dti-help-range-strong {
  color: #6ee7b7;
}
.dti-help-range-moderate {
  color: #fcd34d;
}
.dti-help-range-high {
  color: #fda4af;
}
html.light-mode .dti-help-range-strong {
  color: #059669;
}
html.light-mode .dti-help-range-moderate {
  color: #d97706;
}
html.light-mode .dti-help-range-high {
  color: #e11d48;
}
html.light-mode .dti-help-section h3 {
  color: #059669;
}
@media print {
  #dti-tutorial-root,
  #dti-tutorial-card,
  #dti-help-overlay {
    display: none !important;
  }
}
