:root {
  --bg-root: #000000;
  --fg-root: #ffffff;
  --fg-dim: #777777;
  --accent-color: #ffffff;
  --font-mono: "Departure Mono", monospace, sans-serif;
  --safe-pad: clamp(1rem, 4vw, 2rem);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 220ms;
  --transition-base: 320ms;
  --transition-slow: 460ms;
}

/* Modo Camaleão (Bluefy/iOS) */
body.theme-bluefy {
  --bg-root: #0a0a0a;
  --fg-dim: #8e8e93; /* Cinza adaptado para legibilidade ideal no fundo chumbo */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-root);
  color: var(--fg-root);
  font-family: var(--font-mono);
  width: 100vw;
  height: 100vh; /* Fallback iOS Antigo */
  height: 100svh;
  overflow: hidden;
  text-transform: lowercase;

  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

/* --- OVERLAY --- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: var(--safe-pad);
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--transition-base) var(--ease-soft),
    visibility var(--transition-base) var(--ease-soft),
    backdrop-filter 260ms ease,
    background-color 260ms ease;
}

body:not(.state-disconnected) #connection-overlay,
body.is-transitioning #connection-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0) saturate(1);
  background: rgba(0, 0, 0, 0);
}

.btn-overlay {
  background-color: var(--fg-root);
  color: var(--bg-root);
  border: 1px solid var(--fg-root);
  border-radius: 64px;
  font-family: inherit;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  padding: clamp(1rem, 4vw, 1.5rem);
  width: clamp(120px, 45%, 250px);
  cursor: pointer;
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 230ms ease,
    filter 230ms ease,
    transform 120ms ease;
}

.btn-overlay:active {
  transform: none;
}

.btn-overlay:last-child {
  background-color: transparent;
  color: var(--fg-root);
  border-style: solid;
}

.btn-overlay:last-child:active {
  background-color: var(--fg-root);
  color: var(--bg-root);
}

body:not(.state-disconnected) #connection-overlay .btn-overlay {
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

/* --- LAYOUT ESTRUTURAL --- */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  filter: blur(6px) saturate(0.95);
  transform: none;
  transition:
    opacity 360ms var(--ease-soft),
    filter 360ms var(--ease-soft);
}

body.is-ready .app-layout,
body.is-transitioning .app-layout {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: none;
}

body.app-return-transition .app-layout {
  animation: appReturnSlide 420ms var(--ease-soft) both;
}

@keyframes appReturnSlide {
  0% {
    opacity: 0;
    filter: blur(8px) saturate(0.9);
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateX(0);
  }
}

body:not(.is-ready):not(.is-transitioning) .app-layout {
  opacity: 0;
  filter: blur(10px) saturate(0.9);
  transform: none;
}

.top-nav,
.metrics-stack,
.signal-graph-container {
  padding-left: var(--safe-pad);
  padding-right: var(--safe-pad);
}

.top-nav,
.metrics-stack,
.signal-graph-container,
.action-footer {
  opacity: 0;
  transform: none;
  transition: opacity 0.38s ease;
}

body.is-ready .top-nav,
body.is-ready .metrics-stack,
body.is-ready .signal-graph-container,
body.is-ready .action-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

/* --- CABEÇALHO --- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--safe-pad);
  padding-bottom: clamp(1rem, 3svh, 2rem);
}

.nav-item {
  color: var(--fg-dim);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  opacity: 0.3;
}

/* --- METRICS --- */
.metrics-stack {
  display: flex;
  flex-direction: column;
  justify-content: end;
  flex-grow: 1;
  gap: clamp(1.5rem, 5svh, 5rem);
  margin-bottom: clamp(1.5rem, 5svh, 5rem);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.metric-value-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tiny-label,
.tiny-unit {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  color: var(--fg-dim);
}

.tiny-label {
  opacity: 0;
}

.hero-metric {
  font-size: clamp(4rem, 20vmin, 13rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

@media (pointer: fine) {
  .hero-metric {
    font-size: clamp(4rem, 10vmin, 8rem);
  }
}

.stable-dot {
  width: clamp(1rem, 3.5vw, 1.5rem);
  height: clamp(1rem, 3.5vw, 1.5rem);
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.15;
  transition: opacity 0.1s ease;
}

@media (hover: hover) and (pointer: fine) {
  .stable-dot:hover {
    cursor: pointer;
    background-color: rgb(255, 174, 0);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 174, 0, 0.6);
  }
}

.stable-dot.is-stable {
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* --- GRÁFICO --- */
.signal-graph-container {
  height: clamp(100px, 18svh, 200px);
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(1.5rem, 4svh, 3rem);
  min-height: 30svh;
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.signal-canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
}
body.state-reconnecting #val-flow-numeric {
  opacity: 0.3;
  animation: pulse 1s infinite alternate;
}

/* --- RODAPÉ E BREW ISLAND --- */
.action-footer {
  display: flex;
  flex-direction: column;
  /* Retiramos o background e bordas do pai, passando para os filhos */
  margin: auto 1rem 5vh 1rem;
  margin-bottom: calc(5vh + env(safe-area-inset-bottom, 0px));
  background-color: transparent;
}

/* Pílula Principal (Over it) */
.footer-top-row {
  display: flex;
  background-color: color-mix(in srgb, var(--bg-root) 85%, white);
  border-radius: 64px; /* Mantém o formato de pílula */
  z-index: 10; /* Fica sempre por cima */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
body.theme-bluefy .footer-top-row {
  background-color: #1f1f1f;
}
/* --- A ILHA DINÂMICA (Base Fixa) --- */
.footer-bottom-row {
  background-color: color-mix(in srgb, var(--bg-root) 92%, white);
  border-radius: 0px 0px 24px 24px;
  margin-top: -36px;
  padding-top: 36px;
  height: clamp(87px, 8vh, 102px);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0); /* Força o contexto de pintura isolado na GPU */
}
body.theme-bluefy .footer-bottom-row {
  background-color: #141414;
}

/* O Trilho Deslizante (Cilindro) */
.island-slider {
  display: flex;
  flex-direction: column;
  height: 200%; /* Duas telas (Config e Live) */
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.3, 1); /* Curva elástica suave */
  will-change: transform;
}

/* Transição acionada no RUNNING ou na REVISÃO PÓS-EXTRAÇÃO */
.action-footer.is-running .island-slider,
.action-footer.is-reviewing .island-slider {
  transform: translateY(-50%); /* Rola para a segunda tela */
}

/* Garante que o usuário saiba que a área virou um botão "clicável" no estado DONE */
.action-footer.is-done .island-slider {
  cursor: pointer;
}

/* Telas individuais */
.island-panel {
  height: 50%;
  width: 100%;
  display: flex;
}

.island-config {
  justify-content: space-between;
}

/* --- BARRA DE PROGRESSO MINIMALISTA (TIMELINE) --- */
.island-live {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.live-track-wrapper {
  position: relative;
  width: 85%; /* Afasta das bordas arredondadas da ilha */
  height: 100%;
  margin: 0 auto;
}

/* Linha base do trilho (fundo translúcido para dar contexto) */
.live-track-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: var(--fg-dim);
  opacity: 0.3;
  transform: translateY(-50%);
}

/* A barra de água real preenchendo (Linha fina avançando) */
.live-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px; /* Espessura minimalista */
  width: 0%;
  background-color: var(--fg-root); /* Branco/Destaque absoluto */
  transform: translateY(-50%);
  border-radius: 3px;
  transition: width 0.15s linear;
  z-index: 2; /* Fica por cima da linha base */
}

/* Container das linhas guias */
.live-ticks-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

/* O design minimalista dos cortes (Ticks verticais) */
.pour-tick {
  position: absolute;
  top: 35%;
  bottom: 35%;
  width: 1px;
  background-color: var(--fg-dim);
  opacity: 0.5;
  transform: translateX(-50%); /* Garante alinhamento matemático exato com o % */
  z-index: 1;
}

/* Destaque para o primeiro tick (Bloom) */
.pour-tick.tick-bloom {
  top: 25%;
  bottom: 25%;
  width: 2px;
  background-color: var(--fg-root);
  opacity: 0.8;
}

/* Botões da Ilha */
.island-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-family: inherit;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  padding: clamp(0.8rem, 2vh, 1.2rem) 0;
  cursor: pointer;
  transition: color 120ms ease;
}

#btn-method {
  color: var(--fg-dim);
}

#btn-method:active,
#btn-method.ct-active {
  color: var(--fg-dim);
}

.island-btn:active {
  color: var(--fg-dim);
}

/* Estado ativo do Smart CT */
.island-btn.ct-active {
  color: var(--accent-color);
}

.action-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--accent-color);
  border: none;
  font-family: inherit;
  font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  padding: clamp(0.75rem, 3svh, 1.25rem) 0;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.action-btn #timer-icon {
  height: clamp(1.2rem, 4.5vw, 2rem);
}

.action-btn:first-child {
  position: relative;
}

.action-btn:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%; /* Centraliza visualmente a linha */
  bottom: 15%;
  width: 1px;
  background-color: color-mix(in srgb, var(--fg-root) 15%, transparent);
}

.action-btn:active {
  background-color: color-mix(in srgb, var(--fg-root) 1%, transparent);
}

.action-btn img {
  width: clamp(28px, 7vw, 40px);
  pointer-events: none;
  filter: invert(1);
}

/* --- FEATURES AVANÇADAS DO LIVE TRACKER --- */

/* FEATURE 5: Micro-Tipografia da Legenda */
.live-legend {
  position: absolute;
  top: -8px; /* Flutua acima do trilho */
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

/* FEATURE 4: Overpour (O Excesso Suave que cresce para dentro) */
.overpour-fill {
  position: absolute;
  right: 0; /* Ancorado à borda direita */
  left: auto;
  top: 50%;
  height: 3px;
  width: 0%;
  background-color: #ff4a4a; /* Vermelho brutalista */
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  transition: width 0.15s linear;
  z-index: 2;
}

/* FEATURE 3: Drawdown Automático (Animação de Pulso) */
.live-progress-fill.is-drawdown {
  animation: pulse-drawdown 1.2s infinite alternate;
}
@keyframes pulse-drawdown {
  0% {
    opacity: 1;
    box-shadow: 0 0 2px var(--fg-root);
  }
  100% {
    opacity: 0.4;
    box-shadow: 0 0 10px var(--fg-root);
  }
}

/* FEATURE 1: Ticks Reativos e Adaptáveis */
.pour-tick {
  /* Transição de 'left' permite mover o tick na tela sem layout shift */
  transition:
    left 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    height 0.2s,
    background-color 0.2s,
    opacity 0.3s;
}

/* Tick sendo cruzado agora (Brilho instantâneo) */
.pour-tick.is-passed {
  height: 18px;
  background-color: var(--fg-root);
  opacity: 1;
  z-index: 5;
}

/* Tick que já foi superado (Assenta e fica translúcido) */
.pour-tick.is-settled {
  height: 6px;
  opacity: 0.3;
}

/* Ticks ignorados (Quando o user funde dois pours em um só) */
.pour-tick.is-hidden {
  opacity: 0 !important;
}

/* TABLET MODO */
@media (min-width: 700px) {
  .hero-metric {
    font-size: clamp(4rem, 15vmin, 12rem);
  }
}

/* --- TELA DE ESTATÍSTICAS --- */
.stats-overlay {
  --drag-offset: 0px;
  --drag-amount: 0;
  position: absolute;
  inset: 0;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-root);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: var(--safe-pad);
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px) scale(0.985);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, visibility;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stats-overlay::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.stats-overlay.is-dragging {
  opacity: 1;
  visibility: visible;
  transform: translate3d(calc(var(--drag-offset) * 0.32), 0, 0)
    scale(calc(1 - (var(--drag-amount) * 0.015)));
  box-shadow: -10px 0 18px rgba(0, 0, 0, 0.08);
}

.stats-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.stats-overlay.is-visible .stat-module,
.stats-overlay.is-visible .config-row,
.stats-overlay.is-visible .pours-config-slot {
  animation: overlayReveal 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stats-overlay.is-visible .config-row:nth-child(2) {
  animation-delay: 0.04s;
}
.stats-overlay.is-visible .config-row:nth-child(3) {
  animation-delay: 0.08s;
}
.stats-overlay.is-visible .pours-config-slot {
  animation-delay: 0.12s;
}

@keyframes overlayReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  color: var(--fg-dim);
  font-size: clamp(1rem, 4vw, 1.2rem);
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0.5rem 1.5rem;
}

.stats-nav-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.stats-nav-btn:active {
  color: var(--fg-root);
}
.stats-nav-title {
  letter-spacing: 0.05em;
}

.stats-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2vw, 12px);
  flex: 1;
  align-content: start;
  padding-bottom: clamp(2rem, 8vh, 4rem);
}

/* Base dos Módulos */
.stat-module {
  border-radius: clamp(12px, 3vw, 20px);
  padding: clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.module-dark {
  /* Calcula um fundo levemente mais claro baseado na cor primária, seja preto ou chumbo */
  background-color: color-mix(in srgb, var(--bg-root) 85%, white);
  color: var(--fg-root);
}

.module-dark::before {
  background-color: var(--fg-dim);
}

.module-light {
  background-color: #f0f0f0;
  color: #000000;
}

.module-light::before {
  background-color: #a0a0a0;
}

.hero-module {
  grid-column: 1 / -1;
  padding-bottom: 2rem;
}

.module-lbl {
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  opacity: 0.6;
  margin-bottom: clamp(0.5rem, 1.5rem, 3rem);
}

.module-val-huge {
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 0.9;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  margin-right: 0.5rem;
}

.module-val {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: flex-end;
}

.module-val-group {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
}

.module-unit {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  opacity: 0.6;
}

/* --- MÓDULO INTERATIVO (EXPORT) --- */
.module-action {
  appearance: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  grid-column: 1 / -1;
  transition:
    transform 0.05s ease,
    filter 0.1s ease;

  /* Reaproveita o mix escuro adaptativo */
  background-color: color-mix(in srgb, var(--bg-root) 85%, white);
  color: var(--fg-root);
}

.module-action:active {
  transform: scale(0.98);
  filter: brightness(0.85);
}

.module-action .module-val-group {
  justify-content: flex-start;
  margin-top: 10px;
}

/* --- MÓDULO DE HISTÓRICO --- */
.history-module {
  grid-column: 1 / -1;
  max-height: 25svh;
  display: flex;
  flex-direction: column;
}

.history-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;

  /* Oculta scrollbar nativa mantendo a funcionalidade de rolagem */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.history-list::-webkit-scrollbar {
  display: none;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--fg-dim);
  padding-bottom: 8px;
  font-size: clamp(0.8rem, 3vw, 1rem);
}

.history-info {
  display: flex;
  gap: clamp(8px, 2vw, 16px);
  color: var(--fg-dim);
}

.history-info strong {
  color: var(--fg-root);
  font-weight: normal;
}

.btn-delete-brew {
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-root);
  font-family: inherit;
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-delete-brew:active {
  background-color: var(--fg-root);
  color: var(--bg-root);
}

/* --- OVERLAY DE CONFIGURAÇÃO (RULER PILL SLIDERS) --- */
.config-body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vh, 20px);
  width: 100%;
  flex: 1;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.config-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(16px, 4vw, 24px);
  background-color: var(--bg-root);
  /* border: 1px solid rgba(255, 255, 255, 1.08); */
  border-radius: clamp(16px, 3vw, 24px);
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 3vw, 18px);
  width: 100%;
}

.config-row-label {
  flex: 0 0 clamp(42px, 11vw, 55px);
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  color: var(--fg-root);
  text-align: left;
  letter-spacing: -0.01em;
}

/* Trilho Cápsula */
.ruler-slider {
  --track-shift: 0px;
  --track-pattern: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  flex: 1;
  height: 40px;
  background: transparent;
  min-width: 0;
  cursor: grab;
  touch-action: none;
  position: relative;
}

.ruler-slider:active {
  cursor: grabbing;
}

.ruler-slider:focus {
  outline: none;
}

.ruler-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background-color: #141414;
  background-image:
    linear-gradient(
      90deg,
      #141414 0%,
      rgba(20, 20, 20, 0) 18%,
      rgba(20, 20, 20, 0) 82%,
      #141414 100%
    ),
    var(--track-pattern);
  background-size:
    100% 100%,
    calc(100% - 12px) 100%;
  background-position:
    center,
    calc(50% + var(--track-shift)) center;
  background-repeat: no-repeat, no-repeat;
  transition: background-position 0.14s ease-out;
}

.ruler-slider::-moz-range-track {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background-color: #141414;
  background-image:
    linear-gradient(
      90deg,
      #141414 0%,
      rgba(20, 20, 20, 0) 18%,
      rgba(20, 20, 20, 0) 82%,
      #141414 100%
    ),
    var(--track-pattern);
  background-size:
    100% 100%,
    calc(100% - 12px) 100%;
  background-position:
    center,
    calc(50% + var(--track-shift)) center;
  background-repeat: no-repeat, no-repeat;
  transition: background-position 0.14s ease-out;
}

.ruler-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background-color: var(--fg-root);
  border: none;
  margin-top: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  cursor: grab;
}

.ruler-slider::-moz-range-thumb {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background-color: var(--fg-root);
  border: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  cursor: grab;
}

/* Caixa de Valor à Direita */
/* Caixa de Valor à Direita */
.config-badge {
  flex: 0 0 74px;
  min-width: 74px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--fg-root);
  margin-top: 0;
}

.config-badge small {
  font-size: 0.78rem;
  color: var(--fg-dim);
  align-self: center;
}

/* Linha específica do Target Yield */
.config-yield-row {
  margin-bottom: 4px;
}

.config-yield-row .config-row-label {
  color: var(--fg-root);
}
.pours-config-slot {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: clamp(14px, 3vw, 20px);
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  opacity: 0.4;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
