* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f5;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1c2433;
  padding: 20px;
}
.app {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, .12);
  padding: 28px;
}
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { font-size: 13px; color: #6b7684; margin: 0 0 22px; }
label.field { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
input[type="number"] {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid #ccd3dd;
  border-radius: 8px;
}
input[type="number"]:focus { outline: none; border-color: #2b6cb0; }
.dph { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 18px; font-weight: 400; }
.dph input { width: 16px; height: 16px; }
.out {
  background: #e9f7f0;
  border-radius: 10px;
  padding: 16px 18px;
  transition: background .2s;
}
.out.neg { background: #fdeceb; }
.out-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; }
.out-row b { font-variant-numeric: tabular-nums; }
.out.neg .out-row b { color: #c0392b; }
.foot { margin-top: 20px; font-size: 12px; color: #8a93a1; text-align: center; }
.foot a { color: #2b6cb0; }
