.tip-shell {
  width: min(980px, 94vw);
}

.tip-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 1rem;
  align-items: start;
}

.tip-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #fefcf8 100%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.tip-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
}

.tip-field {
  margin-bottom: 0.9rem;
}

.tip-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.tip-pill {
  border: 1px solid #b8ddcf;
  background: #e8f8f2;
  color: #1e5f4c;
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}

.input-prefix-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5f574e;
  pointer-events: none;
}

.tip-card input[type="number"],
.tip-card input[type="range"] {
  width: 100%;
}

.tip-card input[type="number"] {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfcf8;
  color: #1f1f1f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  padding: 0.58rem 0.65rem;
}

.input-prefix-wrap input[type="number"] {
  padding-left: 1.5rem;
}

.preset-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.preset-btn {
  border: 1px solid #c6ddd3;
  border-radius: 999px;
  background: #fff;
  color: #18493a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.3rem 0.62rem;
  cursor: pointer;
}

.preset-btn:hover,
.preset-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #2f2a24;
}

.toggle-row input {
  width: 1.05rem;
  height: 1.05rem;
}

.result-grid {
  display: grid;
  gap: 0.62rem;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid #e5ddd1;
  border-radius: 12px;
  background: #fff;
}

.result-line span {
  color: #5f574e;
  font-size: 0.92rem;
}

.result-line strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.muted-line {
  background: #fcfaf6;
}

@media (max-width: 820px) {
  .tip-layout {
    grid-template-columns: 1fr;
  }
}
