.mct-panel {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    background: var(--bg-content);
    padding: 20px;
    border-radius: 8px;
    color: var(--base-3);
}

.mct-panel label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.mct-panel textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    background: #3b3e42 !important;
    /* FORCE dark background */
    color: #c9c9c9 !important;
    /* text color */
    border: 1px solid #55585c;
    border-radius: 6px;
    font-size: 18px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}


/* Fix focus background changing */

.mct-panel textarea:focus {
    background: #3b3e42 !important;
    color: #c9c9c9 !important;
    border-color: #707379;
}


/* Make placeholder visible on ALL browsers */

.mct-panel textarea::placeholder,
.mct-panel textarea::-webkit-input-placeholder,
.mct-panel textarea::-moz-placeholder,
.mct-panel textarea:-ms-input-placeholder,
.mct-panel textarea::-ms-input-placeholder {
    color: #b8b8b8 !important;
    /* light placeholder */
    opacity: 1 !important;
    /* Firefox fix */
}


/* Buttons */

.mct-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.mct-buttons button {
    width: 70px;
    /* fixed width like screenshot */
    height: 70px;
    /* square tile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--red-1);
    color: var(--base-2);
    border: 1px solid var(--contrast-3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 8px;
}

.mct-buttons button:hover,
.mct-buttons button.active {
    background: var(--highlight-1);
    color: var(--contrast);
}

.mct-buttons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* Sliders */

.mct-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mct-slider label {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mct-slider input[type="range"] {
    width: 100%;
}


/* Light flash */

.mct-light {
    animation: mctFlash 0.15s ease-in-out;
}

@keyframes mctFlash {
    from {
        background: #fff;
    }
    to {
        background: var(--base-2);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .mct-panel {
        grid-template-columns: 1fr;
    }
}

#messageBox {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 16px;
    border: 1px solid #55585c;
    border-radius: 6px;
    padding: 10px 12px 12px;
    background: transparent;
    box-sizing: border-box;
}

#messageBox legend {
    padding: 0 8px;
    font-size: 14px;
    color: #b8b8b8;
    font-weight: 500;
    margin-bottom: 10px;
}

#live {
    display: inline;
}

#live .cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

#message:focus-within {
    border-color: #707379;
}

.cursor {
    display: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.mct-lang-field {
    margin-top: 30px;
}

.mct-lang-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #b8b8b8;
}


/* Select dropdown */

.mct-lang-field select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    background: #3b3e42;
    color: #c9c9c9;
    border: 1px solid #55585c;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}


/* Focus */

.mct-lang-field select:focus {
    border-color: #707379;
}


/* Option background (important for dark mode) */

.mct-lang-field option {
    background: #2f3135;
    color: #c9c9c9;
}