body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    word-wrap: break-word;
}
.container {
    max-width: 650px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: hidden;
    text-wrap: wrap;
}
h1 {
    text-align: center;
}

input, button.action {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
}
button.action {
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button.action:hover {
    background: #0056b3;
}

/* Tab container */
.tab {
    overflow: hidden;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab button {
    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 16px;
}

.tab button:hover {
    background-color: #007bff27;
}

.tab button.active {
    background-color: #007BFF;
  }

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}


/* Inline form block */
.trigger-row{display:flex;align-items:center;gap:8px;background:#fff;padding:8px;border-radius:8px;border:1px solid #e3e7ef;margin-bottom:8px}
.trigger-row > *{margin:0}
.flex-input{min-width:140px}
input.soundmaker[type="text"], input[type="number"] {padding:6px 8px;border-radius:6px;border:1px solid #d3d7e0}
input.soundmaker[type="file"]{padding:4px}
button.soundmaker{padding:6px 10px;border-radius:8px;border:0;background:#0f62fe;color:#fff;cursor:pointer}
button.ghost{background:transparent;color:#0f62fe;border:1px solid #d3d7e0}
.controls{display:flex;gap:8px;align-items:center}
.remove{background:#ff4d4f}
.toolbar{display:flex;gap:8px;margin:10px 0}


/* responsive shrink */
@media (max-width:640px){
.trigger-row{flex-direction:column;align-items:stretch}
.preview{max-width:100%;max-height:240px}
}