body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    margin: 0;
    padding: 12px;
    width: 240px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header {
    display: grid;
    grid-template-columns: 4fr 1fr;
}

button {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    cursor: pointer;
}

button:hover {
    filter: brightness(0.98);
}

h1 {
    font-size: 18px;
    margin: 0 0 6px 0
}

#status {
    font-size: 12px;
    color: #444
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 25px;
    margin-top: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 3px;
    margin-top: 5px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(18px);
}

input[readonly],
textarea[readonly] {
    background-color: #fafafa;
    /* subtle gray background */
    color: #555;
    /* dim text color */
    border: 1px solid #ddd;
    /* lighter border */
    cursor: default;
    /* no text cursor change */
}