.leavener-container {
  --lan-bg-card: rgba(255, 255, 255, 0.75);
  --lan-bg-solid: rgba(255, 255, 255, 0.95);
  --lan-border: rgba(0, 0, 0, 0.1);
  --lan-border-active: #10b981;
  --lan-text: #111827;
  --lan-text-muted: #4b5563;
  --lan-primary: #10b981;
  --lan-acid: #ec4899;
  --lan-alkaline: #3b82f6;
  --lan-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0.5rem;
  color: var(--lan-text);
}

.theme-dark .leavener-container {
  --lan-bg-card: rgba(18, 18, 20, 0.6);
  --lan-bg-solid: rgba(24, 24, 28, 0.9);
  --lan-border: rgba(255, 255, 255, 0.12);
  --lan-text: #f9fafb;
  --lan-text-muted: #9ca3af;
  --lan-primary: #34d399;
  --lan-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.leavener-card {
  background: var(--lan-bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--lan-border);
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: var(--lan-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-setup-card {
  background: var(--lan-bg-solid);
  border: 1px solid var(--lan-border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.luxury-badge {
  font-size: 0.875rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.12);
  color: var(--lan-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.unit-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.875rem;
  padding: 0.25rem;
  border: 1px solid var(--lan-border);
}

.theme-dark .unit-selector {
  background: rgba(255, 255, 255, 0.05);
}

.unit-btn {
  border: none;
  background: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: 0.625rem;
  color: var(--lan-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.unit-btn.active {
  background: var(--lan-bg-solid);
  color: var(--lan-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.flour-slider-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flour-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.flour-title-label {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lan-text-muted);
}

.flour-val-num {
  font-size: 2.75rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.premium-range-slider {
  width: 100%;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
  appearance: none;
}

.theme-dark .premium-range-slider {
  background: rgba(255, 255, 255, 0.08);
}

.premium-range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 32px;
  height: 32px;
  background: var(--lan-text);
  border-radius: 50%;
  border: 4px solid var(--lan-bg-solid);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.control-panel-card, .analysis-panel-card {
  background: var(--lan-bg-solid);
  border: 1px solid var(--lan-border);
  border-radius: 1.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-subtitle {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lan-text-muted);
  margin: 0;
}

.ingredients-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pill-btn {
  border: 2px solid var(--lan-border);
  background: none;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--lan-text);
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn.active {
  background: var(--lan-text);
  color: var(--lan-bg-solid);
  border-color: var(--lan-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.active-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.slider-wrapper-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--lan-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-dark .slider-wrapper-card {
  background: rgba(255, 255, 255, 0.03);
}

.slider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label-name {
  font-size: 1.25rem;
  font-weight: 900;
}

.slider-value-num {
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.linear-ph-scale-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--lan-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-dark .linear-ph-scale-card {
  background: rgba(255, 255, 255, 0.03);
}

.ph-track {
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  position: relative;
  overflow: visible;
}

.ph-zone {
  height: 100%;
}

.acid-zone {
  flex: 2;
  background: linear-gradient(90deg, var(--lan-acid) 0%, #fda4af 100%);
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}

.neutral-zone {
  flex: 1;
  background: #10b981;
}

.alkaline-zone {
  flex: 2;
  background: linear-gradient(90deg, #93c5fd 0%, var(--lan-alkaline) 100%);
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.ph-pointer-orb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 4px solid var(--lan-cream);
  background-color: var(--lan-primary);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
  z-index: 10;
}

.ph-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lan-text-muted);
}

.neutral-label {
  color: var(--lan-primary);
}

.simulation-adjuster {
  border: 2px solid var(--lan-border);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adjuster-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-auto-balance {
  background: var(--lan-primary);
  color: var(--lan-cream);
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auto-balance:hover {
  filter: brightness(1.1);
}

.adjuster-label {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--lan-text-muted);
}

.adjuster-val {
  font-size: 2.25rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.perfect-recipe-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recipe-title {
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--lan-text-muted);
}

.recipe-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed var(--lan-border);
  padding-bottom: 1rem;
}

.recipe-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.stat-main-label {
  font-size: 1.25rem;
  font-weight: 900;
}

.stat-sub-label {
  font-size: 0.95rem;
  color: var(--lan-text-muted);
}

.recipe-stat-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.num-large {
  font-size: 2.5rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.num-small {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--lan-text-muted);
  text-transform: uppercase;
}
