:root{
  --bg:#fbfbfb;
  --card:#ffffff;
  --accent:#0b7a5f;
  --muted:#6b6b6b;
  --pad:14px;
  --radius:12px;
  --shadow: 0 6px 18px rgba(9,12,18,0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

html,body{
  height:100%;
  margin:0;
  background:var(--bg);
}

#app{
  box-sizing:border-box;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

form#calc{
  width:100%;
  max-width:520px;
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  display:grid;
  gap:12px;
  box-sizing:border-box;
}

.row{
  display:flex;
  align-items:center;
  gap:12px;
}

.row label{
  width:38%;
  font-size:13px;
  color:var(--muted);
}

.row input[type="text"],
.row select{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e6e6e6;
  font-size:14px;
  background:#fff;
}

.row input[type="range"]{
  flex:1;
  appearance:none;
  height:36px;
  background:transparent;
}

.row output{
  width:92px;
  text-align:right;
  font-weight:600;
  font-size:14px;
  color:var(--accent);
}

.result{
  margin-top:6px;
  padding:12px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(11,122,95,0.06), rgba(255,255,255,0));
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.price{
  font-size:20px;
  font-weight:700;
  color:var(--accent);
}

.breakdown{
  font-size:12px;
  color:var(--muted);
  text-align:right;
}

.actions{
  display:flex;
  gap:10px;
  justify-content:stretch;
  margin-top:4px;
}

button{
  flex:1;
  padding:12px;
  border-radius:10px;
  border:0;
  background:var(--accent);
  color:white;
  font-weight:600;
  font-size:14px;
  box-shadow: 0 6px 14px rgba(11,122,95,0.12);
}

button.secondary{
  background:#eef2f0;
  color:#1b1b1b;
  box-shadow:none;
}

@media (max-width:420px){
  .row label{width:40%;}
  form#calc{padding:12px;}
  .row output{width:76px;font-size:13px;}
  .price{font-size:18px;}
}