:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0b6cf6;
  --danger:#e11d48;
  --radius:12px;
}
*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:20px;
}
.card{
  width:100%;
  max-width:760px;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:0 6px 30px rgba(16,24,40,0.08);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
textarea{
  width:100%;
  min-height:180px;
  resize:none;
  padding:12px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  font-size:16px;
  line-height:1.4;
}
.controls{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.controls .left{display:flex;gap:8px;align-items:center}
.controls .right{display:flex;gap:12px;align-items:center}
select{
  min-width:160px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #e6e9ef;
  background:white;
}
.range-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:120px;
}
.range-row label{
  font-size:12px;
  color:var(--muted);
}
.range-row input[type="range"]{
  width:120px;
}
.buttons{display:flex;gap:8px;align-items:center}
button{
  padding:10px 12px;
  border-radius:8px;
  border:0;
  background:#111827;
  color:white;
  font-weight:600;
  min-width:72px;
}
button.primary{background:var(--accent)}
button:disabled{opacity:0.6;filter:grayscale(0.2)}
.status{
  color:var(--muted);
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
@media (max-width:720px){
  .controls{flex-direction:column;align-items:stretch;gap:10px}
  .controls .right{flex-wrap:wrap;justify-content:space-between}
  .range-row input[type="range"]{width:100%}
  select{min-width:100%}
}