.jcts-tool {
    width: 100%;
    margin: 1.5rem 0;
    color: #1f2937;
    font-family: inherit;
}

.jcts-heading h2 {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
}

.jcts-heading p {
    margin: 0 0 1rem;
    color: #5b6472;
}

.jcts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.jcts-panel {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.jcts-panel label {
    font-weight: 650;
}

.jcts-panel textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 360px;
    padding: .85rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    resize: vertical;
    white-space: pre;
    tab-size: 4;
}

.jcts-panel textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.jcts-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.jcts-button {
    padding: .65rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.jcts-button:hover:not(:disabled) {
    background: #e2e8f0;
}

.jcts-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.jcts-button.jcts-primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.jcts-button.jcts-primary:hover {
    background: #1e40af;
}

.jcts-button.jcts-secondary {
    background: #fff;
}

.jcts-status {
    font-size: .9rem;
    color: #166534;
}

.jcts-status.jcts-error {
    color: #b91c1c;
}

.jcts-note {
    margin-top: .75rem;
    color: #64748b;
    font-size: .85rem;
}

@media (max-width: 760px) {
    .jcts-grid {
        grid-template-columns: 1fr;
    }

    .jcts-panel textarea {
        min-height: 260px;
    }
}
