* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    color: #1f2937;
}

body {
    margin: 0;
    padding: 12px;
    background: transparent;
}

.embed-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #d6dde8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.input-text,
.converted-text {
    width: 100%;
    min-height: 104px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    line-height: 1.45;
}

.input-text {
    display: block;
    resize: vertical;
    color: #111827;
    background: #ffffff;
}

.input-text:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.18);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.result-header .field-label {
    margin-bottom: 0;
}

.tts-controls {
    display: flex;
    gap: 8px;
}

.control-button {
    min-width: 64px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.control-button.secondary {
    background: #64748b;
}

.control-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.converted-text {
    display: block;
    margin-top: 8px;
    overflow: auto;
    white-space: pre-wrap;
    color: #0f172a;
    background: #f8fafc;
}

.converted-text.is-placeholder {
    color: #64748b;
}

.status-text {
    min-height: 1.3em;
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: #475569;
}

.status-text.is-error {
    color: #b91c1c;
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .embed-card {
        padding: 12px;
        border-radius: 10px;
    }

    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
