.ps-tool {
  --tool-navy: #102a43;
  --tool-green: #2f855a;
  --tool-amber: #f2a900;
  --tool-line: #d9e2ec;
  --tool-muted: #526579;
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tool-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 42, 67, .1);
  color: #172b3a;
}

.ps-tool *, .ps-tool *::before, .ps-tool *::after { box-sizing: border-box; }
.ps-tool__intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tool-line); }
.ps-tool__intro strong { color: var(--tool-navy); }
.ps-tool__intro span { color: var(--tool-muted); font-size: .88rem; }
.ps-tool__group + .ps-tool__group { margin-top: 1.75rem; }
.ps-tool__group h3 { margin: 0 0 1rem; color: var(--tool-navy); font-size: 1.1rem; }
.ps-tool__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; }
.ps-tool__fields label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--tool-navy); font-size: .88rem; font-weight: 700; }
.ps-tool__fields label > span { display: flex; min-width: 135px; align-items: center; gap: .4rem; color: var(--tool-muted); font-weight: 700; }
.ps-tool input, .ps-tool select { width: 100%; min-width: 0; padding: .65rem .7rem; border: 1px solid #b9c6d2; border-radius: 8px; background: #fff; color: var(--tool-navy); font: inherit; }
.ps-tool input:focus, .ps-tool select:focus { outline: 3px solid rgba(47, 133, 90, .2); border-color: var(--tool-green); }
.ps-tool__error { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid #b42318; background: #fef3f2; color: #8a1c13; }
.ps-tool__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.ps-tool__results--solar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-tool__results > div { padding: 1rem; border-radius: 12px; background: #f5f7fa; }
.ps-tool__results span, .ps-tool__results strong { display: block; }
.ps-tool__results span { color: var(--tool-muted); font-size: .75rem; }
.ps-tool__results strong { margin-top: .25rem; color: var(--tool-navy); font-size: 1.15rem; }
.ps-tool__result--primary { background: #e9f7ef !important; }
.ps-tool__result--primary strong { color: var(--tool-green); }
.ps-tool__compatibility { margin-top: 1.5rem; padding: .9rem 1rem; border-radius: 10px; font-weight: 750; }
.ps-tool__compatibility.is-ok { background: #e9f7ef; color: #21663f; }
.ps-tool__compatibility.is-warning { background: #fff5d6; color: #6b4c00; }
.ps-tool__compatibility.is-fail { background: #fef3f2; color: #8a1c13; }
.ps-tool__note { margin: 1rem 0 0; color: var(--tool-muted); font-size: .78rem; line-height: 1.55; }

@media (max-width: 720px) {
  .ps-tool__fields, .ps-tool__results, .ps-tool__results--solar { grid-template-columns: 1fr; }
  .ps-tool__fields label { align-items: flex-start; flex-direction: column; }
  .ps-tool__fields label > span { width: 100%; }
}
