:root {
  --choc-card-bg: rgba(248, 246, 240, 0.95);
  --choc-accent: #8b5a2b;
  --choc-accent-hover: #5c3a1a;
  --choc-text: #2b1d16;
  --choc-text-muted: #6e5e54;
  --choc-glass-border: rgba(139, 90, 43, 0.18);
  --choc-glass-shadow: rgba(43, 29, 22, 0.05);
  --choc-alert-bg: rgba(139, 90, 43, 0.05);
  --choc-slider-track: rgba(43, 29, 22, 0.2);
  --choc-toggle-active-text: var(--choc-card-bg);
}

html.theme-dark,
.theme-dark {
  --choc-card-bg: rgba(26, 17, 13, 0.85);
  --choc-accent: #d4af37;
  --choc-accent-hover: #f3e5ab;
  --choc-text: #eae2dc;
  --choc-text-muted: #bda798;
  --choc-glass-border: rgba(212, 175, 55, 0.2);
  --choc-glass-shadow: rgba(0, 0, 0, 0.55);
  --choc-alert-bg: rgba(212, 175, 55, 0.08);
  --choc-slider-track: rgba(255, 255, 255, 0.25);
  --choc-toggle-active-text: #1a110d;
}

.choc-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: var(--choc-text);
  box-sizing: border-box;
}

.choc-outer-card {
  background: var(--choc-card-bg);
  border: 1px solid var(--choc-glass-border);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 2.5rem;
  box-shadow: 0 20px 50px var(--choc-glass-shadow);
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.choc-header-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.choc-controls-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 32px;
}

.choc-unit-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px;
  border-radius: 16px;
  border: 1px solid var(--choc-glass-border);
  height: 28px;
  box-sizing: border-box;
  align-items: center;
}

.theme-dark .choc-unit-toggle {
  background: rgba(0, 0, 0, 0.3);
}

.choc-unit-btn {
  background: none;
  border: none;
  color: var(--choc-text-muted);
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: normal;
}

.choc-unit-btn.active {
  background: var(--choc-accent);
  color: var(--choc-toggle-active-text);
  box-shadow: none;
}

.choc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 868px) {
  .choc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.choc-steps-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
}

.choc-thermometer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 32px;
  flex-shrink: 0;
}

.choc-thermo-body {
  position: relative;
  width: 10px;
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--choc-glass-border);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 220px;
}

.theme-dark .choc-thermo-body {
  background: rgba(255, 255, 255, 0.05);
}

.choc-thermo-ticks {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
  pointer-events: none;
  z-index: 1;
}

.choc-thermo-tick {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.theme-dark .choc-thermo-tick {
  background: rgba(255, 255, 255, 0.18);
}

.choc-thermo-fluid {
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #8b5a2b, #d4af37);
  border-radius: 4px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.choc-thermo-bulb {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #f3e5ab, #8b5a2b);
  border: 1.5px solid var(--choc-glass-border);
  border-radius: 50%;
  margin-top: -6px;
  z-index: 3;
}

.choc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.choc-input-group label,
.choc-section-label,
.choc-results-title {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--choc-accent);
  margin: 0;
}

.choc-select-wrapper {
  position: relative;
  width: 100%;
}

.choc-select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--choc-accent);
  border-bottom: 2px solid var(--choc-accent);
  transform: translateY(-60%) rotate(-45deg);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.choc-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--choc-glass-border);
  color: var(--choc-text);
  border-radius: 12px;
  padding: 12px 40px 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s;
}

.theme-dark .choc-select {
  background-color: rgba(0, 0, 0, 0.3);
}

.choc-select:focus {
  border-color: var(--choc-accent);
}

.choc-select option {
  background: var(--choc-card-bg);
  color: var(--choc-text);
}

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

.choc-slider-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--choc-accent);
}

.choc-slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--choc-slider-track);
  border-radius: 3px;
  outline: none;
}

.choc-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--choc-accent);
  border: 2px solid var(--choc-card-bg);
  box-shadow: 0 0 0 2px var(--choc-accent);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.choc-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.choc-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex-grow: 1;
}

.choc-step-card {
  background: none;
  border: none;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 0;
  padding: 0 0 0 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.theme-dark .choc-step-card {
  border-left-color: rgba(255, 255, 255, 0.05);
}

.choc-step-card.active {
  background: none;
  border-left-color: var(--choc-accent);
  box-shadow: none;
}

.choc-step-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.choc-step-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--choc-text-muted);
  transition: color 0.3s;
}

.choc-step-card.active .choc-step-title {
  color: var(--choc-accent);
}

.choc-step-temp-massive {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--choc-text);
  margin: 0.15rem 0 0.35rem;
  line-height: 1;
  letter-spacing: -1px;
  font-feature-settings: "tnum";
}

.choc-temp-unit {
  font-size: 0.55em;
  font-weight: inherit;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

.choc-degree {
  font-weight: inherit;
}

.choc-step-desc {
  font-size: 0.85rem;
  color: var(--choc-text-muted);
  line-height: 1.45;
  opacity: 0.8;
}

.choc-step-card.active .choc-step-desc {
  opacity: 1;
}

.choc-visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 868px) {
  .choc-visual-column {
    height: auto;
    gap: 2.5rem;
  }
}

.choc-canvas-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choc-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.choc-results-panel {
  width: 100%;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.choc-result-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  border: none;
  gap: 0.25rem;
}

.choc-result-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--choc-text-muted);
  opacity: 0.6;
}

.choc-result-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--choc-text);
  line-height: 1;
  letter-spacing: -1.5px;
  font-feature-settings: "tnum";
}

.choc-molecular-box {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  box-sizing: border-box;
}

.choc-molecular-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--choc-accent);
  margin-bottom: 0.5rem;
}

.choc-molecular-text {
  font-size: 0.85rem;
  color: var(--choc-text-muted);
  line-height: 1.45;
}

.theme-dark .choc-outer-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}
