

/* ============================================================
   TOPSOIL CALCULATOR — Enhanced Styles
   ============================================================ */

.ts-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ts-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.ts-preset-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 4px;
}

.ts-preset {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  background: var(--bg);
  color: var(--subtext);
  border: 1.5px solid var(--border);
  font-family: var(--system-fonts);
}

.ts-preset:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.ts-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .ts-input-grid { grid-template-columns: 1fr; }
}

.ts-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ts-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--subtext);
}

.ts-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  transition: border-color .2s ease, box-shadow .2s ease;
  text-align: center;
}

.ts-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.ts-input::placeholder {
  color: var(--border);
  font-weight: 400;
  font-size: .9rem;
}

.ts-hint {
  font-size: .68rem;
  color: var(--subtext);
  opacity: .7;
}

[data-theme="dark"] .ts-preset { background: var(--card); }

[data-theme="dark"] .ts-input { background: var(--bg); }

@media (max-width: 480px) {
  .ts-preset-label { display: none; }
}
