.tlc-root {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.tlc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.theme-dark .tlc-grid {
  border-color: #334155;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .tlc-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Panel izquierdo ── */
.tlc-inputs-panel {
  padding: 2rem 3rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.theme-dark .tlc-inputs-panel {
  background: rgba(15, 23, 42, 0.5);
}

@media (max-width: 768px) {
  .tlc-inputs-panel {
    padding: 2rem;
  }
}

.tlc-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
}

.theme-dark .tlc-panel-title {
  color: #f8fafc;
}

.tlc-panel-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6366f1;
}

.tlc-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tlc-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tlc-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.tlc-row {
  display: flex;
  gap: 1rem;
}

.tlc-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tlc-sub-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-left: 0.25rem;
}

.tlc-input {
  width: 100%;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #334155;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.theme-dark .tlc-input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.tlc-input-indigo:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.theme-dark .tlc-input-indigo:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.tlc-input-pink:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.theme-dark .tlc-input-pink:focus {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
}

.tlc-select-wrapper {
  position: relative;
}

.tlc-select {
  appearance: none;
  cursor: pointer;
  width: 100%;
}

.tlc-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
}

/* ── Panel derecho: gradiente ── */
.tlc-results-panel {
  padding: 2rem 3rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .tlc-results-panel {
    padding: 2rem;
  }
}

.tlc-results-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #c7d2fe;
  margin: 0;
}

.tlc-results-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #a5b4fc;
}

.tlc-interval-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tlc-interval-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c7d2fe;
  margin: 0;
}

.tlc-interval-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tlc-big-number {
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tlc-big-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a5b4fc;
}

.tlc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.tlc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tlc-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c7d2fe;
  margin: 0;
}

.tlc-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.1;
}

.tlc-stat-value-sm {
  font-size: 1.25rem;
  color: #e0e7ff;
}

.tlc-rule-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(165, 180, 252, 0.3);
}

.tlc-info-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #a5b4fc;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tlc-info-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c7d2fe;
  margin: 0;
}
