.ldt-root {
    max-width: 1100px;
    margin: 24px auto;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.ldt-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 18px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
}

.ldt-panel-header h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #0f172a;
}

.ldt-panel-header p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.ldt-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ldt-column {
    flex: 1 1 320px;
    min-width: 0;
}

.ldt-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ldt-label {
    font-weight: 600;
    color: #0f172a;
}

.ldt-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    resize: vertical;
    min-height: 120px;
    background-color: #f8fafc;
    color: #0f172a;
}

.ldt-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
    background-color: #ffffff;
}

.ldt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ldt-btn {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ldt-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.ldt-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.45);
    transform: translateY(-1px);
}

.ldt-btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.ldt-btn-secondary:hover {
    background: #cbd5e1;
}

.ldt-controls {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ldt-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #0f172a;
}

.ldt-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.ldt-results {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ldt-result-card {
    flex: 1 1 320px;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 12px 14px;
    background: #f8fafc;
}

.ldt-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.ldt-result-header h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.ldt-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
}

.ldt-count {
    font-weight: 700;
}

.ldt-result-card .ldt-textarea {
    background-color: #ffffff;
    min-height: 110px;
}

.ldt-results-panel .ldt-toolbar {
    margin-top: 8px;
}

.ldt-block-placeholder {
    padding: 12px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #475569;
}

@media (max-width: 768px) {
    .ldt-root {
        padding: 16px;
        margin: 12px;
    }
}
