body {
  font-family: Arial, sans-serif;
  background: #ffffff; 
  margin: 0;
  padding: 20px;
}
 
.container {
  max-width: 900px;
  margin: auto;
  background: rgb(241, 196, 182); /* keep container white for contrast */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

button {
  padding: 14px;
  background: #4c6ef5;
  color: white;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  opacity: 0.9;
}

.clearBtn {
  background: #f03c3c;
}

.stopBtn {
  background: #d9534f;
}

/* ---------- Rewrite + Stop Row ---------- */
.action-row {
  display: flex;         /* row layout */
  gap: 12px;             /* spacing between buttons */
  margin-bottom: 10px;
  flex-wrap: nowrap;     /* prevent wrapping */
}

.action-row button {
  flex: 1 1 auto;        /* grow and shrink equally */
  min-width: 0;          /* prevent overflow issues */
  width: auto;           /* override global 100% */
  box-sizing: border-box;
}

/* ---------- Clear All ---------- */
.clear-row button {
  width: 100%;
}

/* ---------- Layout ---------- */
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.col {
  flex: 1 1 0;
  min-width: 300px;
}

.lbl {
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }

  .action-row {
    flex-direction: row;
  }
}
