.tecz-links-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tecz-links-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-links-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.tecz-links-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.tecz-links-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-links-input-panel {
    padding: 20px;
    border-right: 1px solid #e2e8f0;
}

.tecz-links-targets-panel {
    padding: 20px;
    background: #f8fafc;
}

.tecz-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

#tecz-content-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
}

#tecz-content-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tecz-targets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tecz-targets-header label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
}

#tecz-targets-wrapper {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.tecz-target-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tecz-target-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 0;
}

.tecz-target-row input:focus {
    outline: none;
    border-color: #3b82f6;
}

.tecz-remove-target-btn {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    width: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tecz-remove-target-btn:hover {
    background: #fecaca;
}

.tecz-options-group {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.tecz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 8px;
    cursor: pointer;
}

.tecz-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.tecz-btn:hover {
    background: #2563eb;
}

.tecz-btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.tecz-btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.tecz-links-output-panel {
    background: #ffffff;
}

.tecz-output-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    padding-right: 20px;
}

.tecz-out-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tecz-out-tab-btn:hover {
    color: #1e293b;
}

.tecz-out-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #ffffff;
}

.tecz-stats-badge {
    margin-left: auto;
    background: #10b981;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tecz-out-content {
    padding: 20px;
}

.tecz-out-pane {
    display: none;
}

.tecz-out-pane.active {
    display: block;
}

#tecz-out-preview {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    padding: 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    background: #fafafa;
    min-height: 200px;
}

#tecz-out-preview a.tecz-suggested-link {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: underline;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

#tecz-html-result {
    width: 100%;
    height: 250px;
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.tecz-action-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tecz-copy-msg {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tecz-links-grid {
        grid-template-columns: 1fr;
    }
    .tecz-links-input-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}