* { box-sizing: border-box; }

body {
  background: #f4f3f0;
  min-height: 100vh;
  font-family: 'Sora', sans-serif;
  color: #1c1917;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e2dc;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  background: #faf9f7;
  border: 1px solid #e5e2dc;
  border-radius: 6px;
  color: #1c1917;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:focus {
  border-color: #a8a29e;
  box-shadow: 0 0 0 3px rgba(120,113,108,0.1);
}
.input-field::placeholder { color: #c4bfb8; }

.btn {
  width: 100%;
  background: #1c1917;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  transition: background 0.15s, transform 0.08s;
  user-select: none;
}
.btn:hover  { background: #292524; }
.btn:active { transform: scale(0.99); }

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
  margin-bottom: 1.25rem;
}

.dispenser-card {
  background: #faf9f7;
  border: 1px solid #e5e2dc;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  animation: fadeUp 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.value-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.1;
}

.stacks-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #a8a29e;
  margin-top: 0.25rem;
}

.error-msg {
  background: #fff1f0;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  animation: fadeUp 0.25s ease both;
}

.quadrant-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f3f0;
  border: 1px solid #e5e2dc;
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #57534e;
}

.compass-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c1917;
  flex-shrink: 0;
}

.sep { border: none; border-top: 1px solid #f0ede8; }
